/* ================================================================
   login ck888 - Complete Design System
   Target: Bangladesh (bn-BD)
   ================================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  background-color: #f0f7ff;
  color: #1e293b;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
  width: 100%;
}

img { max-width: 100% !important; height: auto; display: block; }
a { color: #0284c7; text-decoration: none; transition: color 0.25s; }
a:hover { color: #0369a1; }

.container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

/* Prevent all sections from causing horizontal overflow */
.site-header,
.hero-banner,
.inner-hero,
.breadcrumb-bar,
.content-section,
.site-footer {
  max-width: 100%;
  overflow-x: hidden;
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.25);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand-wrap {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  height: 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  width: auto;
  max-width: 168px;
  max-height: 48px;
  height: auto;
  object-fit: contain;
}

.primary-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.1vw, 20px);
  overflow: hidden;
  flex-wrap: nowrap;
}

.primary-nav a {
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  padding: 10px 7px;
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
}

/* More menu */
.nav-more {
  position: relative;
  flex: 0 0 auto;
}

.more-toggle {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
}

.more-toggle:hover { background: rgba(255,255,255,0.2); }

.more-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  padding: 10px;
  border-radius: 16px;
  z-index: 1200;
  background: #0c4a6e;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.more-menu[hidden] { display: none !important; }

.nav-more.is-open .more-menu {
  display: grid;
  gap: 4px;
}

.more-menu a {
  display: block;
  width: 100%;
  max-width: none;
  padding: 11px 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #e0f2fe;
  border-radius: 8px;
  font-size: 14px;
}

.more-menu a:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Header actions - only if competitor has them */
.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #e0f2fe;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-family: inherit;
}

/* --- Mobile header --- */
@media (max-width: 900px) {
  .header-inner {
    min-height: 60px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 16px;
  }

  .brand-wrap {
    width: auto;
    min-width: 120px;
    max-width: 160px;
    height: 48px;
    flex: 0 0 auto;
  }

  .site-logo {
    max-width: 140px;
    max-height: 40px;
  }

  .primary-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 18px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: #0c4a6e;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    z-index: 1100;
  }

  .primary-nav.is-open { display: flex; }

  .primary-nav a {
    max-width: none;
    width: 100%;
    padding: 14px 12px;
    text-overflow: initial;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .primary-nav a:last-child { border-bottom: 0; }

  .nav-more { display: none !important; }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
  }
}

/* --- HERO / BANNER --- */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
}

.hero-banner img,
.hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 540px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: rgba(12, 74, 110, 0.55);
  color: #fff;
}

.hero-overlay h1 {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 860px;
}

.hero-overlay p {
  font-size: clamp(15px, 1.8vw, 20px);
  max-width: 680px;
  margin-bottom: 24px;
  color: #bae6fd;
}

/* Inner page hero */
.inner-hero {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
  color: #fff;
  padding: 56px 0 48px;
  text-align: center;
}

.inner-hero h1 {
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

.inner-hero p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: #bae6fd;
  max-width: 700px;
  margin: 0 auto;
}

/* --- BREADCRUMB --- */
.breadcrumb-bar {
  background: #e0f2fe;
  padding: 14px 0;
  border-bottom: 1px solid #bae6fd;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
}

.breadcrumb-list li::after { content: "/"; margin-left: 6px; color: #94a3b8; }
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list a { color: #0284c7; }
.breadcrumb-list span { color: #64748b; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.btn-outline {
  background: transparent;
  color: #0ea5e9;
  border: 2px solid #0ea5e9;
}

.btn-outline:hover { background: #0ea5e9; color: #fff; }

.btn-light {
  background: #fff;
  color: #0369a1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-light:hover { background: #f0f9ff; color: #0284c7; }

/* --- CARDS --- */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.1);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 4px solid #0ea5e9;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.18);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0c4a6e;
}

.card p { color: #475569; font-size: 15px; }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* --- SECTIONS --- */
.content-section { padding: 64px 0; }
.content-section:nth-child(even) { background: #f8fafc; }

.section-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: #0c4a6e;
  margin-bottom: 18px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 17px;
  color: #64748b;
  margin-bottom: 36px;
  max-width: 700px;
}

/* --- PROSE (content text) --- */
.prose { max-width: 820px; }

.prose p {
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 18px;
  color: #334155;
}

.prose h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.25;
  margin: 42px 0 18px;
  color: #0c4a6e;
  font-weight: 700;
}

.prose h3 {
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.35;
  margin: 28px 0 12px;
  color: #0369a1;
  font-weight: 600;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin: 0 0 18px;
}

.prose li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.8;
}

.prose img {
  border-radius: 14px;
  margin: 28px 0;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.15);
}

/* Content grid (text + image side by side) */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 36px;
  align-items: start;
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* --- STEPS --- */
.step-list { counter-reset: step-counter; }

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  border-left: 5px solid #0ea5e9;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.1);
}

.step-num {
  counter-increment: step-counter;
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.step-body h4 {
  font-size: 17px;
  font-weight: 600;
  color: #0c4a6e;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
}

/* --- COMPARISON TABLE --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.1);
}

.compare-table th {
  background: linear-gradient(135deg, #0c4a6e, #0369a1);
  color: #fff;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
}

.compare-table tr:last-child td { border-bottom: 0; }
.compare-table tr:nth-child(even) { background: #f8fafc; }

/* --- PRIVACY ALERT --- */
.alert-box {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-left: 5px solid #0ea5e9;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 36px 0;
}

.alert-box h3 {
  color: #0c4a6e;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.alert-box p { color: #334155; font-size: 15px; }
.alert-box a { color: #0284c7; font-weight: 600; text-decoration: underline; }

/* --- FAQ --- */
.faq-list { max-width: 820px; }

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #0c4a6e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: #0ea5e9;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding: 0 24px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: #475569;
}

/* --- PRICING / MEMBERSHIP --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.1);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.18);
}

.pricing-card.featured {
  border: 3px solid #0ea5e9;
  transform: scale(1.03);
}

.pricing-card h3 { font-size: 22px; color: #0c4a6e; margin-bottom: 8px; }

.price-tag {
  font-size: 36px;
  color: #0ea5e9;
  font-weight: 700;
  margin: 12px 0;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 20px 0;
}

.pricing-card li {
  padding: 8px 0;
  font-size: 15px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.pricing-card li::before {
  content: "\2713";
  color: #0ea5e9;
  font-weight: 700;
  margin-right: 8px;
}

/* --- TESTIMONIALS --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.08);
}

.testimonial-card .stars {
  color: #f59e0b;
  font-size: 18px;
  margin-bottom: 12px;
}

.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 14px;
  font-style: italic;
}

.testimonial-card .author {
  font-weight: 600;
  color: #0c4a6e;
}

.testimonial-card .location {
  font-size: 13px;
  color: #94a3b8;
}

/* --- STATS --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.08);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #0ea5e9;
  margin-bottom: 6px;
}

.stat-label { font-size: 14px; color: #64748b; }

/* --- TIMELINE --- */
.timeline { position: relative; padding-left: 40px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #0ea5e9, #06b6d4);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: #0ea5e9;
  border-radius: 50%;
  border: 3px solid #e0f2fe;
}

.timeline-item h4 { color: #0c4a6e; font-size: 17px; margin-bottom: 6px; }
.timeline-item p { color: #475569; font-size: 15px; }

/* --- CTA SECTION --- */
.cta-section {
  background: linear-gradient(135deg, #0c4a6e, #0369a1, #0ea5e9);
  color: #fff;
  padding: 56px 28px;
  border-radius: 18px;
  text-align: center;
  margin: 48px 0;
}

.cta-section h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 14px;
}

.cta-section p {
  font-size: 17px;
  color: #bae6fd;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- FOOTER --- */
.site-footer {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
  color: #cbd5e1;
  padding: 56px 0 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.12);
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: #bae6fd;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.footer-bottom a { color: #bae6fd; }

/* --- 404 --- */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page h1 {
  font-size: 120px;
  font-weight: 800;
  color: #0ea5e9;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h2 { font-size: 28px; color: #0c4a6e; margin-bottom: 12px; }
.error-page p { color: #64748b; margin-bottom: 24px; max-width: 500px; }

/* --- CATEGORY GRID (FAQ) --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.category-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 3px solid #0ea5e9;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.15);
}

.category-card .cat-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.category-card h3 { font-size: 16px; color: #0c4a6e; margin-bottom: 6px; }
.category-card p { font-size: 13px; color: #64748b; }

/* --- CONTACT BOX --- */
.contact-box {
  background: #e0f2fe;
  border-left: 5px solid #0ea5e9;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 36px 0;
}

.contact-box h4 { color: #0c4a6e; margin-bottom: 12px; }
.contact-box p { font-size: 15px; color: #334155; margin-bottom: 6px; }

/* --- VALUES / FEATURES LIST --- */
.value-list { display: grid; gap: 20px; }

.value-item {
  display: flex;
  gap: 18px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.08);
  transition: transform 0.2s;
}

.value-item:hover { transform: translateX(6px); }

.value-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}

.value-content h4 { color: #0c4a6e; font-size: 17px; margin-bottom: 6px; }
.value-content p { color: #475569; font-size: 15px; }

/* --- INTERNAL LINK CARDS --- */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  color: #0c4a6e;
  font-weight: 500;
  font-size: 15px;
}

.related-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.15);
  color: #0284c7;
}

.related-link::before {
  content: "\2192";
  color: #0ea5e9;
  font-size: 18px;
  flex-shrink: 0;
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }
.mt-lg { margin-top: 40px; }

/* --- RESPONSIVE --- */

/* Tablet */
@media (max-width: 900px) {
  .content-section { padding: 48px 0; }
  .prose p { font-size: 16px; line-height: 1.85; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .related-links { grid-template-columns: 1fr; }

  .hero-banner img,
  .hero-banner svg {
    max-height: 360px;
  }

  .hero-overlay {
    padding: 28px 16px;
  }

  .hero-overlay h1 {
    font-size: clamp(22px, 5vw, 36px);
  }

  .inner-hero {
    padding: 40px 0 36px;
  }

  .section-title {
    font-size: clamp(22px, 4vw, 32px);
  }

  .cta-section {
    padding: 40px 20px;
    margin: 32px 0;
    border-radius: 14px;
  }

  .pricing-card.featured {
    transform: none;
  }

  /* Responsive table wrapper */
  .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* Mobile */
@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.65;
  }

  .container {
    padding: 0 16px;
  }

  .content-section { padding: 36px 0; }

  /* Hero */
  .hero-banner img,
  .hero-banner svg {
    max-height: 240px;
  }

  .hero-overlay {
    padding: 20px 14px;
  }

  .hero-overlay h1 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .hero-overlay p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .hero-overlay .btn {
    padding: 10px 22px;
    font-size: 14px;
  }

  /* Inner hero */
  .inner-hero {
    padding: 32px 0 28px;
  }

  .inner-hero h1 {
    font-size: 22px;
  }

  /* Breadcrumb */
  .breadcrumb-bar {
    padding: 10px 0;
  }

  .breadcrumb-list {
    font-size: 13px;
  }

  /* Section titles */
  .section-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  /* Prose */
  .prose {
    max-width: 100%;
  }

  .prose h2 {
    font-size: 20px;
    margin: 28px 0 14px;
  }

  .prose h3 {
    font-size: 17px;
    margin: 20px 0 10px;
  }

  .prose p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
  }

  .prose img {
    margin: 18px 0;
    border-radius: 10px;
  }

  /* Cards */
  .card {
    padding: 20px;
    border-radius: 12px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 14px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 12px;
  }

  /* Steps */
  .step-item {
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 16px;
  }

  .step-num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 18px;
  }

  .step-body h4 {
    font-size: 16px;
  }

  .step-body p {
    font-size: 14px;
  }

  /* Table */
  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Alert box */
  .alert-box {
    padding: 18px 16px;
    margin: 24px 0;
    border-radius: 10px;
  }

  .alert-box h3 {
    font-size: 16px;
  }

  .alert-box p {
    font-size: 14px;
  }

  /* FAQ */
  .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer-inner {
    padding: 0 16px 14px;
    font-size: 14px;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-card {
    padding: 24px;
    border-radius: 14px;
  }

  .pricing-card.featured {
    transform: none;
    border-width: 2px;
  }

  .price-tag {
    font-size: 28px;
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-card {
    padding: 20px;
    border-radius: 12px;
  }

  .testimonial-card blockquote {
    font-size: 14px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 18px 12px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 13px;
  }

  /* CTA */
  .cta-section {
    padding: 32px 18px;
    margin: 24px 0;
    border-radius: 12px;
  }

  .cta-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .cta-section p {
    font-size: 15px;
    margin-bottom: 18px;
  }

  /* Category grid */
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .category-card {
    padding: 16px;
    border-radius: 10px;
  }

  /* Values */
  .value-item {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .value-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 18px;
    border-radius: 12px;
  }

  /* Related links */
  .related-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .related-link {
    padding: 14px 16px;
    font-size: 14px;
  }

  /* Contact box */
  .contact-box {
    padding: 18px 16px;
  }

  /* Buttons */
  .btn {
    padding: 10px 22px;
    font-size: 14px;
  }

  /* Footer */
  .site-footer {
    padding: 40px 0 20px;
    margin-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }

  .footer-col h4 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .footer-col p,
  .footer-col a {
    font-size: 13px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  /* Timeline */
  .timeline {
    padding-left: 30px;
  }

  .timeline-item h4 {
    font-size: 15px;
  }

  .timeline-item p {
    font-size: 14px;
  }

  /* 404 */
  .error-page h1 {
    font-size: 80px;
  }

  .error-page h2 {
    font-size: 22px;
  }

  .error-page p {
    font-size: 14px;
  }

  /* Content grid - ensure single column */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Extra small screens */
@media (max-width: 380px) {
  .container {
    padding: 0 12px;
  }

  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .brand-wrap {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    height: 42px;
  }

  .site-logo {
    max-width: 120px;
    max-height: 36px;
  }

  .hero-overlay h1 {
    font-size: 18px;
  }

  .section-title {
    font-size: 20px;
  }

  .card-grid,
  .category-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 24px 14px;
  }

  .step-item {
    padding: 14px;
  }
}
