/* ============================================================
   NRI PAN Card Guide — Main Stylesheet
   Color Palette: Deep Navy (#1a3a6b) + Saffron (#f47920)
   ============================================================ */

/* --- Variables --- */
:root {
  --primary:        #1a3a6b;
  --primary-light:  #2d5086;
  --accent:         #f47920;
  --accent-dark:    #d4661a;
  --bg:             #f8f9fa;
  --bg-alt:         #edf2f7;
  --text:           #2d3748;
  --text-light:     #718096;
  --white:          #ffffff;
  --border:         #e2e8f0;
  --success:        #276749;
  --success-light:  #c6f6d5;
  --warning-light:  #fefcbf;
  --card-shadow:    0 2px 12px rgba(0,0,0,0.08);
  --radius:         8px;
  --radius-lg:      16px;
  --transition:     all 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.6em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }
a  { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); text-decoration: underline; }
ul, ol { padding-left: 1.5em; margin-bottom: 1.1em; }
li { margin-bottom: 0.4em; }
strong { color: var(--primary); }
em { font-style: italic; }

/* --- Layout --- */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px;  margin: 0 auto; padding: 0 24px; }
section           { padding: 72px 0; }
section.alt-bg    { background: var(--white); }
section.dark-bg   { background: var(--primary); color: var(--white); }
section.dark-bg h2,
section.dark-bg h3 { color: var(--white); }

/* --- Header & Nav --- */
header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-logo .logo-text {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.2;
}
.nav-logo .logo-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  list-style: none;
  padding: 0; margin: 0;
  gap: 2px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.83rem;
  padding: 7px 11px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  padding: 8px 15px !important;
  margin-left: 6px;
}
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}
.breadcrumb-nav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; font-size: 0.82rem; color: var(--text-light);
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.breadcrumb-nav a { color: var(--accent); }
.breadcrumb-nav .sep { color: var(--border); }

/* --- Hero (Homepage) --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d5086 55%, #1a3a6b 100%);
  color: var(--white);
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -40%; right: -5%;
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(244,121,32,0.13) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(244,121,32,0.18);
  border: 1px solid rgba(244,121,32,0.45);
  color: #fbd38d;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { color: var(--white); font-size: 2.8rem; max-width: 720px; margin-bottom: 18px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.82); max-width: 580px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-stats {
  display: flex; gap: 48px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat .number { font-size: 2rem; font-weight: 700; color: var(--accent); font-family: 'Merriweather', serif; display: block; }
.hero-stat .label  { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 56px 0;
  color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: 2.1rem; margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 620px; margin-bottom: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(244,121,32,0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header .label {
  display: inline-block; color: var(--accent);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p  { color: var(--text-light); max-width: 560px; margin: 0 auto; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.11); transform: translateY(-3px); }
.card-icon {
  width: 52px; height: 52px;
  background: rgba(244,121,32,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 10px; }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* --- Callout Boxes --- */
.callout {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0;
  border-left: 4px solid;
}
.callout strong { display: block; margin-bottom: 5px; }
.callout-info    { background: #ebf8ff; border-color: #3182ce; color: #1a365d; }
.callout-success { background: var(--success-light); border-color: var(--success); color: #1c4532; }
.callout-warning { background: var(--warning-light); border-color: #d69e2e; color: #744210; }
.callout-orange  { background: #fff7ed; border-color: var(--accent); color: #7c2d12; }

/* --- PAN Card Express Promo Box --- */
.promo-box {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 44px 0;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.promo-box .promo-icon { font-size: 2.6rem; flex-shrink: 0; }
.promo-box h3 { color: var(--accent-dark); margin-bottom: 8px; }
.promo-box p  { color: var(--text); margin-bottom: 18px; }

/* --- Steps --- */
.steps-list { list-style: none; padding: 0; }
.step {
  display: flex; gap: 20px;
  padding-bottom: 32px; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.step-number {
  width: 42px; height: 42px;
  background: var(--primary); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
  flex-shrink: 0; margin-top: 2px;
}
.step-content h3 { margin-bottom: 8px; font-size: 1.2rem; }

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
th {
  background: var(--primary); color: var(--white);
  padding: 14px 16px; text-align: left;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.03em;
}
td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--bg); }
.table-responsive { overflow-x: auto; border-radius: var(--radius); }

/* --- FAQ Accordion --- */
.faq-list { list-style: none; padding: 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--white);
  overflow: hidden;
}
.faq-question {
  padding: 18px 22px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--primary);
  transition: var(--transition);
  user-select: none;
}
.faq-question:hover { background: var(--bg); }
.faq-icon { font-size: 1.3rem; flex-shrink: 0; transition: transform 0.22s; color: var(--accent); }
.faq-answer {
  padding: 0 22px 18px;
  display: none;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  color: var(--text);
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon   { transform: rotate(45deg); }

/* --- Content + Sidebar Layout --- */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 290px; gap: 44px; align-items: start; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  position: sticky; top: 88px;
}
.sidebar-card h4 {
  font-size: 0.95rem; margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { margin-bottom: 4px; }
.sidebar-nav a {
  display: block; padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text); font-size: 0.875rem;
  transition: var(--transition);
}
.sidebar-nav a:hover { background: var(--bg); color: var(--accent); text-decoration: none; }

/* --- Testimonial --- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--card-shadow);
  border-left: 5px solid var(--accent);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 5rem; color: var(--accent); opacity: 0.13;
  position: absolute; top: 14px; left: 18px;
  line-height: 1; font-family: Georgia, serif;
}
.testimonial-text { font-style: italic; font-size: 1.05rem; margin-bottom: 22px; padding-left: 14px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 50px; height: 50px;
  background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.testimonial-author-info strong { display: block; color: var(--primary); }
.testimonial-author-info span   { font-size: 0.85rem; color: var(--text-light); }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white); text-align: center; padding: 80px 0;
}
.cta-section h2 { color: var(--white); font-size: 2.1rem; margin-bottom: 14px; }
.cta-section p  { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 520px; margin: 0 auto 32px; }

/* --- Icon Check List --- */
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 9px 0 9px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* --- Badges --- */
.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 999px; font-size: 0.75rem; font-weight: 600;
}
.badge-green  { background: var(--success-light); color: var(--success); }
.badge-orange { background: #fff7ed; color: var(--accent-dark); }
.badge-blue   { background: #ebf8ff; color: #2c5282; }
.badge-grey   { background: var(--bg-alt); color: var(--text-light); }

/* --- Highlight Box (two-tone info) --- */
.highlight-box {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
}
.highlight-box h3 { color: var(--white); margin-bottom: 10px; }
.highlight-box p  { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* --- Process Steps Row --- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process-step { text-align: center; }
.process-step-number {
  width: 56px; height: 56px;
  background: var(--accent); color: var(--white);
  border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; font-family: 'Merriweather', serif;
}
.process-step h4 { font-size: 0.95rem; margin-bottom: 6px; }
.process-step p  { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* --- Footer --- */
footer { background: #111827; color: rgba(255,255,255,0.65); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand-name { font-family: 'Merriweather', serif; font-size: 1.1rem; color: var(--white); display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.65; color: rgba(255,255,255,0.5); }
.footer-col h4 {
  color: var(--white); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a  { color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-disclaimer {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 32px;
  font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* --- Misc Utility --- */
.text-center { text-align: center; }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-light); }
.mb-0  { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* --- Responsive --- */
@media (max-width: 960px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  .hero h1 { font-size: 2.1rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-steps    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 60px 0 52px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 28px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .grid-2, .grid-3, .grid-4, .process-steps { grid-template-columns: 1fr; }
  .promo-box { flex-direction: column; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--primary);
    padding: 16px; z-index: 999; gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .step { flex-direction: column; gap: 12px; }
  .step-number { margin-top: 0; }
}
@media print {
  header, footer, .promo-box, .cta-section, .nav-cta { display: none; }
  body { font-size: 12pt; background: white; }
  a::after { content: ' (' attr(href) ')'; font-size: 10pt; }
  .content-with-sidebar { grid-template-columns: 1fr; }
}
