/* ==========================================================================
   APNA GHAR SCHEME - PUBLIC HOUSING & FINANCE PORTAL
   Official Government-Style Clean Design System (Modern Portal Edition)
   ========================================================================== */

:root {
  --primary-green: #006633;
  --primary-dark: #004d26;
  --primary-deep: #003319;
  --primary-light: #0d8a4a;
  --primary-surface: #f0fdf4;
  --primary-surface-2: #e6f7ed;
  
  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-gold-dark: #b45309;
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-light: #64748b;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.08), 0 3px 6px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 28px -6px rgba(0, 0, 0, 0.1), 0 8px 12px -6px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 24px 38px -8px rgba(0, 77, 38, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --max-width: 1240px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.68;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-size: 16px;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 750; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.15rem; font-weight: 650; }

p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

ul, ol {
  margin-bottom: 1.35rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.55rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Top Notification & Disclaimer Bar (Continuous Ticker Slider) */
.top-notice-bar {
  background-color: #fef3c7;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.835rem;
  padding: 0.45rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1001;
}

.ticker-container {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #d97706;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.725rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.ticker-pulse {
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.ticker-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tickerSlide 42s linear infinite;
}

.top-notice-bar:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  font-size: 0.835rem;
  color: #78350f;
}

.ticker-item strong {
  color: #92400e;
  font-weight: 700;
}

.ticker-item a {
  color: #78350f;
  font-weight: 750;
  text-decoration: underline;
}

.ticker-item a:hover {
  color: #b45309;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .ticker-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.675rem;
    margin-right: 0.75rem;
  }
  .ticker-group {
    gap: 2rem;
    padding-right: 2rem;
  }
}

.top-flag-strip {
  height: 4px;
  background: linear-gradient(90deg, #006633 0%, #006633 75%, #ffffff 75%, #ffffff 100%);
}

/* Main Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  min-height: 64px;
  gap: 1rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  flex-shrink: 0;
}

.logo-wrapper img {
  height: 42px;
  width: auto;
  max-width: 270px;
  transition: height 0.2s ease;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-green);
  background-color: var(--primary-surface);
  text-decoration: none;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-dark)) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 2px 6px rgba(0, 102, 51, 0.25);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--primary-deep) !important;
  box-shadow: 0 4px 10px rgba(0, 102, 51, 0.35);
  color: #ffffff !important;
}

/* Mobile Nav Toggle Button */
.mobile-menu-btn {
  display: none;
  background-color: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  color: var(--primary-dark);
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-btn:hover,
.mobile-menu-btn.is-active {
  background-color: var(--primary-surface);
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
  transition: transform 0.25s ease;
}

.mobile-menu-btn.is-active svg {
  transform: rotate(90deg);
}

/* Backdrop Overlay for Mobile Nav */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.menu-open {
  overflow: hidden;
}

/* Compact Laptop Screens (1024px to 1180px) */
@media (min-width: 1024px) and (max-width: 1180px) {
  .logo-wrapper img {
    height: 38px;
    max-width: 230px;
  }
  .nav-links {
    gap: 0.35rem;
  }
  .nav-links a {
    font-size: 0.825rem;
    padding: 0.35rem 0.45rem;
  }
  .nav-cta {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.825rem !important;
  }
}

/* ==========================================================================
   MODERN PORTAL HERO SECTION (Full-Width, Sleek State Portal Aesthetic)
   ========================================================================== */
.portal-hero {
  background: linear-gradient(135deg, #004d26 0%, #003319 60%, #001f0f 100%);
  color: #ffffff;
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--accent-gold);
}

.portal-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.12) 0%, rgba(0, 102, 51, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.portal-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  max-width: 100%;
}

.hero-pill .status-dot {
  width: 9px;
  height: 9px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.3);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-pill {
    font-size: 0.775rem;
    padding: 0.4rem 0.85rem;
    line-height: 1.4;
    border-radius: 16px;
    text-align: left;
  }
}

.portal-hero h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.18;
}

.portal-hero h1 span {
  color: #fbbf24;
}

.portal-hero .hero-sub {
  color: #e2e8f0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none !important;
}

.btn-gold-glow {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.btn-gold-glow:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Floating Stats Bar (Below Hero) */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
}

.stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
  border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
  border-right: none;
}

.stat-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  display: block;
}

.stat-desc {
  font-size: 0.825rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.35rem;
}

/* Official Program Banner Showcase */
.official-banner-section {
  padding: 1.75rem 0 2.25rem;
}

.official-banner-wrapper {
  background: #ffffff;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
}

.official-banner-wrapper:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green);
}

.official-banner-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .official-banner-section {
    padding: 1rem 0 1.5rem;
  }
}

/* ==========================================================================
   PORTAL SECTIONS ARCHITECTURE (Full-Width, High-End Layout)
   ========================================================================== */
.portal-section {
  padding: 4.5rem 0;
  position: relative;
}

.portal-section.bg-light {
  background-color: #ffffff;
}

.portal-section.bg-surface {
  background-color: var(--primary-surface);
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.section-badge {
  display: inline-block;
  background-color: var(--primary-surface);
  border: 1px solid #bbf7d0;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  margin-bottom: 0.75rem;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* 2-Column Action Cards (Federal vs Punjab) */
.scheme-track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.track-card {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.track-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.track-card.featured {
  border-color: var(--primary-green);
  background: linear-gradient(180deg, #ffffff 0%, var(--primary-surface) 100%);
}

.track-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.track-badge.gold {
  background: var(--accent-gold);
}

.track-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  margin-bottom: 1.25rem;
}

.track-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.track-limit {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.track-rate {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  margin-bottom: 1.25rem;
}

.track-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  flex-grow: 1;
}

.track-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.track-features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--primary-green);
  margin-top: 3px;
}

.track-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  width: 100%;
}

.track-actions .btn {
  flex: 1 1 0;
  white-space: nowrap;
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
  text-align: center;
  justify-content: center;
}

@media (max-width: 580px) {
  .track-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
  .track-actions .btn {
    width: 100%;
    white-space: normal;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }
}

/* Interactive Calculator Box (Full Width Modern) */
.calc-portal-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.calc-form-side {
  padding: 2.75rem;
}

.calc-display-side {
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
  color: #ffffff;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
}

.calc-display-side::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at top right, rgba(217, 119, 6, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.calc-form-side h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.calc-form-side p {
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-weight: 650;
  font-size: 0.925rem;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: inherit;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(0, 102, 51, 0.12);
}

.calc-display-side .result-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cbd5e1;
}

.calc-display-side .result-value {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fbbf24;
  margin: 0.75rem 0 1.5rem;
  line-height: 1.1;
}

.display-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.5rem;
  text-align: left;
}

.display-item span {
  font-size: 0.8rem;
  color: #94a3b8;
  display: block;
}

.display-item strong {
  font-size: 1.15rem;
  color: #ffffff;
}

/* Bento Grid Features (Modern Government Technology Look) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #bbf7d0;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-surface);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.bento-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.bento-card p {
  font-size: 0.925rem;
  line-height: 1.6;
  margin: 0;
}

/* Step-by-Step Modern Horizontal Roadmap */
.roadmap-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin: 3rem 0;
  position: relative;
}

.roadmap-step {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.roadmap-step:hover {
  transform: translateY(-4px);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.step-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 3px 8px rgba(0, 102, 51, 0.3);
}

.roadmap-step h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.roadmap-step p {
  font-size: 0.825rem;
  line-height: 1.5;
  margin: 0;
}

/* Comprehensive Knowledge / Content Cards */
.knowledge-block {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.knowledge-block h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.45rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--primary-surface);
}

.knowledge-block h3 svg {
  color: var(--primary-green);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

th {
  background-color: var(--primary-surface);
  color: var(--primary-dark);
  font-weight: 750;
  white-space: nowrap;
}

tr:hover td {
  background-color: #f8fafc;
}

/* Participating Banks Grid */
.banks-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.bank-item-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.bank-item-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bank-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.bank-tag.islamic {
  background: #dcfce7;
  color: #15803d;
}

.bank-tag.conventional {
  background: #e0f2fe;
  color: #0369a1;
}

.bank-item-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.bank-item-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* Accordion FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.4rem;
  text-align: left;
  background: #ffffff;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s;
}

.faq-question:hover {
  background-color: var(--primary-surface);
  color: var(--primary-green);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.4rem 1.25rem;
  display: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Official Disclaimer Box */
.disclaimer-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.6;
}

.disclaimer-card strong {
  color: #92400e;
}

.disclaimer-card a {
  color: #b45309;
  font-weight: 700;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: #0b1324;
  color: #94a3b8;
  margin-top: auto;
  border-top: 3px solid var(--primary-green);
  font-size: 0.925rem;
}

.footer-top {
  padding: 4rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.885rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.885rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  background-color: #060a12;
  padding: 1.25rem 0;
  border-top: 1px solid #1e293b;
  font-size: 0.825rem;
  text-align: center;
}

.footer-bottom a {
  color: #cbd5e1;
}

/* Breadcrumbs (for subpages) */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.75rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary-green);
}

.breadcrumbs span.separator {
  color: #cbd5e1;
}

.breadcrumbs span.current {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Subpage layout with sidebar */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  padding: 2.5rem 0 3.5rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-surface);
  padding-bottom: 0.5rem;
  color: var(--primary-dark);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 0.65rem;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.sidebar-links a:hover {
  color: var(--primary-green);
  text-decoration: none;
}

.helpline-box {
  background: linear-gradient(135deg, var(--primary-surface), #e0f2fe);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.helpline-phone {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: block;
  margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 1023px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  
  .main-nav {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 3px solid var(--primary-green);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    padding: 1.25rem 1.5rem 2rem;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 999;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.25s;
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-backdrop.active {
    display: block;
    opacity: 1;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
  }
  
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    border-radius: var(--radius-sm);
  }

  .nav-links a::after {
    content: '›';
    font-size: 1.35rem;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background-color: var(--primary-surface);
    color: var(--primary-dark);
    font-weight: 700;
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
    color: var(--primary-green);
  }
  
  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    justify-content: center !important;
    padding: 0.9rem !important;
    font-size: 1.05rem !important;
    width: 100%;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 4px 12px rgba(0, 102, 51, 0.25);
  }

  .nav-cta::after {
    display: none !important;
  }

  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .stat-item {
    border-right: none;
  }
  .scheme-track-grid {
    grid-template-columns: 1fr;
  }
  .calc-portal-wrapper {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .banks-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-stats-bar {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-container {
    grid-template-columns: 1fr;
  }
  .banks-showcase-grid {
    grid-template-columns: 1fr;
  }
  .calc-form-side, .calc-display-side {
    padding: 1.75rem 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .page-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.5rem 0;
    min-height: 58px;
  }
  .logo-wrapper img {
    height: 34px;
    max-width: 215px;
  }
  .mobile-menu-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.8rem;
  }
  .mobile-menu-btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 380px) {
  .logo-wrapper img {
    height: 30px;
    max-width: 185px;
  }
}
