* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(248, 251, 253, 0.94), rgba(237, 243, 248, 0.96)),
    url("choose-template-background.jpeg") no-repeat center / cover;
  font-family: "Segoe UI", sans-serif;
  font-size: 17px;
  color: #243443;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(36, 52, 67, 0.08);
  backdrop-filter: blur(14px);
}

.logo img {
  height: 70px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #444;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f05423;
}

.btn-nav {
  background: #f05423;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 60px;
}

.header {
  text-align: center;
  margin: 18px 0 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #f05423;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #1d3557;
}

.header p {
  max-width: 620px;
  margin: 10px auto 0;
  color: #666;
}

.hero-note {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-bottom: 34px;
}

.hero-note-card {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(36, 52, 67, 0.08);
}

.hero-note-card h2,
.hero-note-card h3 {
  margin: 0 0 10px;
  color: #1d3557;
}

.hero-note-card p,
.hero-note-card li {
  color: #56687a;
}

.hero-note-card ul {
  margin: 0;
  padding-left: 18px;
}

.highlight-card {
  background: linear-gradient(180deg, #ffffff, #fff3ed);
}

.template-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.tab {
  background: white;
  padding: 22px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 2px solid #f05423;
  text-align: center;
}

.tab h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: #1d3557;
}

.tab p {
  margin: 0;
  color: #666;
}

.template-section {
  max-width: 1200px;
  margin: 0 auto 42px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(36, 52, 67, 0.08);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-header h2 {
  margin: 0;
  color: #1d3557;
}

.section-desc {
  color: #66788a;
  margin-bottom: 22px;
}

.badge {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.free {
  background: #e7fff1;
  color: #1f9d55;
}

.view-all {
  color: #f05423;
  font-weight: 700;
}

.template-slider {
  position: relative;
  display: flex;
  align-items: center;
}

.template-track {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}

.template-track::-webkit-scrollbar {
  display: none;
}

.template-card {
  min-width: 270px;
  flex-shrink: 0;
  background: white;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  transition: 0.25s;
  cursor: pointer;
  position: relative;
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  border-color: #f05423;
}

.template-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.template-card h3 {
  margin: 0 0 6px;
  color: #1d3557;
}

.template-meta {
  margin: 0 0 14px;
  color: #66788a;
  font-size: 0.95rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.slider-btn.left {
  left: -15px;
}

.slider-btn.right {
  right: -15px;
}

.slider-btn:hover {
  background: #f05423;
  color: white;
}

.price {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.price.free {
  background: #1f9d55;
}

.use-btn {
  background: #f05423;
  border: none;
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 30px;
  padding: 24px 12px 0;
  color: #555;
  font-weight: 600;
}

@media (max-width: 900px) {
  .navbar {
    padding: 15px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
  }

  .template-section {
    padding: 20px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .slider-btn {
    display: none;
  }

  .template-card {
    min-width: 230px;
  }
}
