/* ============================================================
   PAN Card Services — Main Stylesheet
   https://www.pancardservices.com
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ── */
:root {
  --navy:        #0f2d4a;
  --navy-dark:   #091e33;
  --teal:        #1a5276;
  --teal-light:  #2471a3;
  --saffron:     #e07b1a;
  --accent:      #f39c12;
  --accent-light:#fef9ec;
  --light:       #f5f8fa;
  --white:       #ffffff;
  --text:        #2c3e50;
  --muted:       #6c7a8a;
  --border:      #dce6ef;
  --danger:      #c0392b;
  --danger-bg:   #fdf0ee;
  --success:     #1a7a4a;
  --success-bg:  #eafaf2;
  --warn:        #7d5a00;
  --warn-bg:     #fef9ec;
  --max-w:       820px;
  --max-w-wide:  1100px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
}

img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--saffron); }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); }
p + p { margin-top: 1rem; }

/* ── Header ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 1.5rem;
}
.logo {
  color: var(--white);
  font-family: 'Arial', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-size: 0.83rem;
  padding: 0.4rem 0.65rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.site-nav .nav-cta {
  background: var(--saffron);
  color: var(--white) !important;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
}
.site-nav .nav-cta:hover { background: var(--accent); }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 1.5rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
}
.breadcrumb-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Hero variants ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}
.hero-sm {
  padding: 2.5rem 1.5rem 2.2rem;
}
.hero-tag {
  display: inline-block;
  background: var(--saffron);
  color: var(--white);
  font-family: 'Arial', sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 800px;
  margin: 0 auto 1rem;
}
.hero-sub {
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin: 0 auto 1.6rem;
  line-height: 1.6;
}
.hero-meta {
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.hero-meta span { margin: 0 0.4rem; }

/* Country flag accent */
.hero-country {
  font-size: 2.8rem;
  margin-bottom: 0.6rem;
  display: block;
}

/* ── Page layout ── */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.page-wrap-wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Table of contents ── */
.toc {
  background: var(--light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 4px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc-title {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.7rem;
}
.toc ol { padding-left: 1.25rem; }
.toc li { margin-bottom: 0.3rem; }
.toc a {
  font-family: 'Arial', sans-serif;
  font-size: 0.88rem;
  color: var(--teal);
  text-decoration: none;
}
.toc a:hover { text-decoration: underline; color: var(--saffron); }

/* ── Article sections ── */
.section {
  margin-bottom: 2.8rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }

.section-number {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: 'Arial', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.4px;
}
.section h2 {
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.section h3 {
  font-size: 1.1rem;
  color: var(--teal);
  margin: 1.5rem 0 0.6rem;
}

/* ── Intro block ── */
.intro-block {
  font-size: 1.06rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

/* ── Callout boxes ── */
.callout {
  border-radius: 5px;
  padding: 1.05rem 1.25rem;
  margin: 1.4rem 0;
  font-family: 'Arial', sans-serif;
  font-size: 0.91rem;
  line-height: 1.65;
}
.callout-label {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}
.callout.danger  { background: var(--danger-bg); border-left: 4px solid var(--danger); color: #5a1a10; }
.callout.danger .callout-label { color: var(--danger); }
.callout.warn    { background: var(--warn-bg); border-left: 4px solid var(--accent); color: var(--warn); }
.callout.warn .callout-label { color: #c07800; }
.callout.info    { background: #eef4fb; border-left: 4px solid var(--teal); color: var(--teal-light); }
.callout.info .callout-label { color: var(--teal); }
.callout.success { background: var(--success-bg); border-left: 4px solid var(--success); color: #0f4a2a; }
.callout.success .callout-label { color: var(--success); }
.callout.saffron { background: #fff5e8; border-left: 4px solid var(--saffron); color: #6b3d00; }
.callout.saffron .callout-label { color: var(--saffron); }

/* ── Use case cards ── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0;
}
.usecase-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  border-radius: 6px;
  padding: 1.2rem 1.3rem;
  transition: box-shadow 0.2s, border-top-color 0.2s;
}
.usecase-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-top-color: var(--saffron);
}
.usecase-icon { font-size: 1.6rem; margin-bottom: 0.5rem; display: block; }
.usecase-title {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.usecase-card p {
  font-family: 'Arial', sans-serif;
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Stat highlights ── */
.stat-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.stat-box {
  flex: 1;
  min-width: 140px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: 'Arial', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Step list ── */
.step-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.step-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 2px;
}
.step-list li div { flex: 1; font-family: 'Arial', sans-serif; font-size: 0.93rem; }
.step-list li strong { color: var(--navy); }

/* ── Checklist ── */
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li {
  font-family: 'Arial', sans-serif;
  font-size: 0.93rem;
  padding: 0.45rem 0 0.45rem 1.8rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 16px;
  height: 16px;
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: 3px;
}

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Arial', sans-serif;
  font-size: 0.87rem;
  margin: 1.3rem 0;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.data-table th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.83rem;
}
.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--light); }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: 'Arial', sans-serif;
}
.badge-red   { background: #fde8e8; color: var(--danger); }
.badge-green { background: #e8f8ee; color: var(--success); }
.badge-blue  { background: #e8f0f8; color: var(--teal); }
.badge-amber { background: #fef3e2; color: #8a5500; }

/* ── Solve / feature cards ── */
.solves-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}
.solve-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-top: 3px solid var(--saffron);
  border-radius: 5px;
  padding: 1rem 1.1rem;
}
.solve-title {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.solve-card p {
  font-family: 'Arial', sans-serif;
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ── FAQ accordion ── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 0;
  font-family: 'Arial', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover { color: var(--teal); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: transform 0.25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 0 1rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.91rem;
  color: var(--text);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── CTA box ── */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  border-radius: 8px;
  padding: 2.2rem 2rem;
  text-align: center;
  margin-top: 3rem;
}
.cta-box h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.75rem; }
.cta-box p {
  font-family: 'Arial', sans-serif;
  font-size: 0.93rem;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
  margin: 0 auto 1.6rem;
  line-height: 1.6;
}
.cta-btn {
  display: inline-block;
  background: var(--saffron);
  color: var(--white);
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-btn:hover { background: var(--accent); color: var(--white); }
.cta-secondary {
  display: block;
  margin-top: 0.85rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.cta-secondary a { color: rgba(255,255,255,0.8); text-decoration: underline; }

/* ── Related articles ── */
.related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-heading {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 0.7rem;
}
.related-grid a {
  display: block;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.86rem;
  color: var(--teal);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  line-height: 1.4;
}
.related-grid a:hover {
  background: #e6f0f7;
  border-color: var(--teal);
  color: var(--navy);
}

/* ── Country nav cards (homepage) ── */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0;
}
.country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1rem;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.country-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: var(--teal);
  transform: translateY(-2px);
  color: var(--navy);
}
.country-flag { font-size: 2.2rem; margin-bottom: 0.5rem; }
.country-name {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.country-pop {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Nav card grid (topic navigation) ── */
.nav-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.nav-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 5px;
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  transition: border-left-color 0.2s, box-shadow 0.2s;
}
.nav-card:hover {
  border-left-color: var(--saffron);
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}
.nav-card-title {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.nav-card p {
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* ── Highlight banner ── */
.highlight-banner {
  background: var(--accent-light);
  border: 1px solid #f0d080;
  border-left: 5px solid var(--saffron);
  border-radius: 5px;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-family: 'Arial', sans-serif;
  font-size: 0.93rem;
}
.highlight-banner strong { color: var(--navy); }

/* ── Review stars ── */
.stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 2px; }
.review-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
}
.review-score {
  font-family: 'Arial', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.review-count {
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .logo { font-size: 1rem; }
.footer-brand p {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  max-width: 260px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.8rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.65rem 1rem; border-radius: 4px; }
  .hero { padding: 2.5rem 1.2rem 2rem; }
  .page-wrap { padding: 1.8rem 1.2rem 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .cta-box { padding: 1.8rem 1.2rem; }
  .stat-row { gap: 0.6rem; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.font-sans { font-family: 'Arial', sans-serif; }
.text-muted { color: var(--muted); font-size: 0.88rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
