/* ==========================================================================
   BHARAT YOJNA — UTTAR PRADESH GOVERNMENT PORTAL
   Professional Government Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&family=Noto+Sans+Devanagari:wght@400;600;700;800&family=Tiro+Devanagari+Sanskrit&display=swap');

:root {
  --blue-primary: #003580;
  --blue-dark:    #002060;
  --blue-mid:     #0047AB;
  --blue-light:   #e8f0fb;
  --saffron:      #FF6600;
  --saffron-light:#fff3eb;
  --green-govt:   #006600;
  --green-light:  #e6f2e6;
  --grey-border:  #d1d9e6;
  --grey-bg:      #f4f6fb;
  --text-dark:    #1a1a2e;
  --text-muted:   #5a6478;
  --white:        #ffffff;
  --card-shadow:  0 2px 12px rgba(0,53,128,0.10);
  --card-radius:  8px;
  --font-scale:   1;
}

/* ── HIGH CONTRAST ─────────────────────────────────────────────── */
body.high-contrast { background:#000 !important; color:#fff !important; }
body.high-contrast .top-bar, body.high-contrast .main-header,
body.high-contrast .nav-bar { background:#111 !important; color:#fff !important; }
body.high-contrast .scheme-card { background:#111 !important; color:#fff !important; border-color:#555 !important; }
body.high-contrast .nav-menu a { color:#eee !important; }
body.high-contrast .footer-banner { background:#000 !important; border-top-color:#555 !important; }

/* ── BASE ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: calc(15px * var(--font-scale)); scroll-behavior: smooth; }
body { font-family: 'Open Sans', 'Noto Sans Devanagari', Arial, sans-serif; color: var(--text-dark); background: #f9fafc; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── SKIP LINK ─────────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--blue-primary);
  color: #fff; padding: 8px 16px; z-index: 9999; border-radius: 0 0 6px 0;
  font-size: 0.85rem; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   1. TOP ACCESSIBILITY BAR
   ========================================================================== */
.top-bar {
  background: #f1f5fb;
  border-bottom: 1px solid #dde3ef;
  padding: 5px 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 0.68rem;
  color: #4a5568;
}
.top-bar-left .divider { color: #bbb; }

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Font size toggle — single button cycle */
.font-size-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.3px;
}
.font-size-btn:hover { background: var(--blue-dark); }
.font-size-btn .fs-icon { font-size: 0.9rem; line-height: 1; }

/* Contrast toggle */
.contrast-btn {
  background: none;
  border: 1px solid #c4cdd8;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  color: #4a5568;
  display: flex; align-items: center; gap: 4px;
  transition: all 0.2s;
}
.contrast-btn:hover { background: var(--blue-primary); color: #fff; border-color: var(--blue-primary); }

/* Accessibility divider */
.top-bar-divider { width: 1px; height: 16px; background: #c8d2de; margin: 0 2px; }

/* Language Selector */
.lang-selector-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-select {
  background: var(--white);
  border: 1px solid #c4cdd8;
  border-radius: 4px;
  padding: 3px 24px 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23003580'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  transition: border-color 0.2s;
}
.lang-select:focus { outline: none; border-color: var(--blue-primary); }
.lang-icon {
  width: 20px; height: 14px;
  background: linear-gradient(to bottom, #FF9933 33%, #fff 33%, #fff 66%, #138808 66%);
  border-radius: 2px;
  border: 1px solid #ccc;
  flex-shrink: 0;
}

/* ==========================================================================
   2. MAIN HEADER
   ========================================================================== */
.main-header {
  background: var(--blue-primary);
  padding: 14px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.branding {
  display: flex;
  align-items: center;
  gap: 16px;
}
.emblem-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.emblem-svg { width: 68px; height: 68px; }
.emblem-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-align: center;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.dept-name-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dept-name-hi {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Noto Sans Devanagari', sans-serif;
  line-height: 1.2;
}
.dept-name-en {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.80);
  line-height: 1.3;
}
.dept-name-sub {
  font-size: 0.72rem;
  color: var(--saffron);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.header-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}
.header-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */
.nav-bar {
  background: var(--blue-dark);
  border-top: 3px solid var(--saffron);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  position: relative;
}
.nav-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 13px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.2px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  background: var(--saffron);
  color: #fff;
}
.nav-menu > li > a .caret { font-size: 0.6rem; opacity: 0.7; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--grey-border);
  border-top: 3px solid var(--blue-primary);
  box-shadow: 0 8px 24px rgba(0,53,128,0.12);
  border-radius: 0 0 6px 6px;
  display: none;
  z-index: 600;
}
.nav-menu > li:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.78rem;
  color: var(--text-dark);
  border-bottom: 1px solid #f0f4f8;
  transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover {
  background: var(--blue-light);
  color: var(--blue-primary);
  padding-left: 24px;
}
.dropdown li:last-child a { border-bottom: none; }

/* Sub-dropdown */
.dropdown .has-sub { position: relative; }
.dropdown .sub-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--grey-border);
  border-top: 3px solid var(--blue-primary);
  box-shadow: 0 8px 24px rgba(0,53,128,0.12);
  border-radius: 0 6px 6px 0;
  display: none;
}
.dropdown .has-sub:hover .sub-dropdown { display: block; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 12px 16px;
}

/* ==========================================================================
   4. BREADCRUMBS
   ========================================================================== */
.breadcrumbs-bar {
  background: #fff;
  border-bottom: 1px solid #e8edf5;
  padding: 8px 0;
}
.breadcrumbs-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.breadcrumb-path {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-path a { color: var(--blue-primary); }
.breadcrumb-path a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #a0aec0; font-size: 0.65rem; }

.social-share {
  display: flex;
  gap: 8px;
  align-items: center;
}
.share-btn {
  width: 28px; height: 28px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
  color: #fff; cursor: pointer; border: none;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #000; }
.share-btn.wa { background: #25d366; }

/* ==========================================================================
   5. HERO SECTION (Hotstar-style featured schemes carousel)
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #001a4d 0%, #003580 50%, #002060 100%);
  padding: 36px 0 40px;
  overflow: hidden;
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1599470849718-d52fe6a7f0de?w=1400&auto=format&fit=crop&q=60') center/cover no-repeat;
  opacity: 0.12;
}
.hero-inner { position: relative; z-index: 1; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--saffron);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-label::before { content: '●'; font-size: 0.5rem; animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
  max-width: 500px;
}

/* Horizontal scroll strip — featured scheme cards */
.featured-strip-wrapper {
  position: relative;
}
.featured-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.featured-strip::-webkit-scrollbar { display: none; }

.featured-card {
  flex: 0 0 260px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  backdrop-filter: blur(4px);
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  border-color: var(--saffron);
}
.featured-card.active-hero {
  border-color: var(--saffron);
  box-shadow: 0 0 0 2px var(--saffron), 0 8px 24px rgba(0,0,0,0.3);
}
.featured-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.featured-card-img-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #1a3a6b, #0047ab);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.featured-card-body {
  padding: 12px 14px;
}
.featured-badge {
  display: inline-block;
  background: var(--saffron);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.featured-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-card-ministry {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
}

/* Hero scroll buttons */
.hero-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.hero-scroll-btn:hover { background: var(--saffron); border-color: var(--saffron); }
.hero-scroll-btn.left { left: -18px; }
.hero-scroll-btn.right { right: -18px; }

/* ==========================================================================
   6. STATS STRIP
   ========================================================================== */
.stats-strip {
  background: #fff;
  border-bottom: 1px solid #e8edf5;
  box-shadow: 0 2px 8px rgba(0,53,128,0.06);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 18px 10px;
  border-right: 1px solid #e8edf5;
  transition: background 0.2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--blue-light); }
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ==========================================================================
   7. SCHEMES SECTION — Filter + Grid
   ========================================================================== */
.schemes-section {
  padding: 32px 0 48px;
}
.section-header {
  margin-bottom: 24px;
}
.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.section-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

/* ── FILTER TOOLBAR (Professional, clean) ──────────────────────── */
.filter-toolbar {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,53,128,0.06);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.filter-tab {
  background: var(--grey-bg);
  border: 1px solid var(--grey-border);
  color: var(--text-dark);
  border-radius: 5px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.filter-tab:hover { background: var(--blue-light); border-color: var(--blue-primary); color: var(--blue-primary); }
.filter-tab.active { background: var(--blue-primary); color: #fff; border-color: var(--blue-primary); }

.filter-divider { width: 1px; height: 28px; background: var(--grey-border); margin: 0 4px; }

/* Search box */
.search-box {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--grey-border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--blue-primary); box-shadow: 0 0 0 2px rgba(0,53,128,0.1); }
.search-box input {
  flex: 1;
  border: none;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-dark);
  font-family: inherit;
  background: transparent;
  outline: none;
}
.search-box input::placeholder { color: #a0aec0; }
.search-btn {
  background: var(--blue-primary);
  border: none;
  color: #fff;
  padding: 8px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.18s;
  display: flex; align-items: center; gap: 5px;
}
.search-btn:hover { background: var(--blue-dark); }

/* Admin button */
.admin-btn {
  margin-left: auto;
  background: var(--white);
  border: 1px solid var(--grey-border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.18s;
  white-space: nowrap;
}
.admin-btn:hover { background: var(--blue-light); border-color: var(--blue-primary); color: var(--blue-primary); }
.admin-btn svg { width: 14px; height: 14px; }

/* Results count */
.results-info {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.results-info strong { color: var(--blue-primary); }

/* ── SCHEME CARDS GRID ─────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.scheme-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  display: flex;
  flex-direction: column;
}
.scheme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,53,128,0.14);
  border-color: var(--blue-mid);
}

.card-img-wrap {
  width: 100%;
  height: 185px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0fb, #c8d8f0);
  position: relative;
  flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.scheme-card:hover .card-img-wrap img { transform: scale(1.04); }
.card-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--blue-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-state { background: var(--blue-primary); }
.badge-central { background: var(--green-govt); }
.badge-cs { background: #7b2d8b; }
.badge-eap { background: #a05a00; }

.card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-ministry {
  font-size: 0.72rem;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-ministry::before { content: '🏛'; font-size: 0.7rem; }
.card-desc {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 14px;
}
.card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #f0f4f8;
  padding-top: 12px;
  margin-top: auto;
}
.btn-details {
  flex: 1;
  background: var(--blue-primary);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
  text-align: center;
}
.btn-details:hover { background: var(--blue-dark); }
.btn-share {
  background: var(--grey-bg);
  border: 1px solid var(--grey-border);
  color: var(--text-muted);
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s;
  display: flex; align-items: center;
}
.btn-share:hover { background: var(--blue-light); border-color: var(--blue-primary); color: var(--blue-primary); }

/* ── BLANK SLATE ──────────────────────────────────────────────── */
.blank-slate {
  text-align: center;
  padding: 60px 20px;
  display: none;
}
.blank-slate .blank-icon { font-size: 3.5rem; margin-bottom: 16px; }
.blank-slate h3 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 8px; }
.blank-slate p { font-size: 0.83rem; color: var(--text-muted); }

/* ── PAGINATION ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--grey-border);
  background: #fff;
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover { background: var(--blue-light); border-color: var(--blue-primary); color: var(--blue-primary); }
.page-btn.active { background: var(--blue-primary); color: #fff; border-color: var(--blue-primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ==========================================================================
   8. DIRECTORY SECTION
   ========================================================================== */
.directory-section {
  padding: 32px 0 48px;
}
.dir-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--grey-border);
  box-shadow: var(--card-shadow);
  margin-top: 24px;
}
.dir-table-title {
  background: var(--blue-dark);
  color: #fff;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.dir-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  background: #fff;
}
.dir-table th {
  background: var(--blue-primary);
  color: #fff;
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.75rem;
  letter-spacing: 0.2px;
}
.dir-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eef1f8;
  vertical-align: top;
  color: var(--text-dark);
}
.dir-table tr:last-child td { border-bottom: none; }
.dir-table tr:nth-child(even) td { background: var(--grey-bg); }
.dir-table tr:hover td { background: var(--blue-light); }

/* ==========================================================================
   9. ADMIN PANEL (Side Drawer) — Professional CMS Look
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.admin-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 440px;
  max-width: 95vw;
  height: 100%;
  background: #fff;
  z-index: 900;
  box-shadow: -4px 0 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.admin-drawer.open { right: 0; }

.drawer-header {
  background: var(--blue-dark);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.drawer-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-header-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.drawer-header-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.drawer-header-sub {
  font-size: 0.7rem;
  opacity: 0.65;
}
.drawer-close {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s;
  flex-shrink: 0;
}
.drawer-close:hover { background: rgba(255,255,255,0.25); }

.drawer-tabs {
  display: flex;
  background: #f4f6fb;
  border-bottom: 1px solid var(--grey-border);
  flex-shrink: 0;
}
.drawer-tab {
  flex: 1;
  padding: 11px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.18s;
  text-align: center;
}
.drawer-tab.active { color: var(--blue-primary); border-bottom-color: var(--blue-primary); background: #fff; }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-track { background: #f1f5f9; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--grey-border); border-radius: 4px; }

.form-row { margin-bottom: 18px; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.form-label .req { color: var(--saffron); margin-left: 2px; }
.form-control {
  width: 100%;
  border: 1px solid var(--grey-border);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 0.82rem;
  color: var(--text-dark);
  font-family: inherit;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}
.form-control:focus { border-color: var(--blue-primary); box-shadow: 0 0 0 3px rgba(0,53,128,0.08); }
.form-control::placeholder { color: #a0b0c8; }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23003580'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }

.form-hint { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.form-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  margin-top: 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--blue-light);
}

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--grey-border);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  background: #fff;
}
.btn-publish {
  flex: 1;
  background: var(--blue-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-publish:hover { background: var(--blue-dark); }
.btn-cancel {
  background: var(--grey-bg);
  border: 1px solid var(--grey-border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 11px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-cancel:hover { background: #e8edf5; color: var(--text-dark); }

/* Publish success toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--blue-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .toast-icon { font-size: 1.1rem; }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
  background: var(--blue-dark);
  border-top: 3px solid var(--saffron);
  color: rgba(255,255,255,0.75);
  padding: 28px 0 0;
}
.footer-nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-nav a {
  padding: 5px 14px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.72);
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: color 0.18s;
}
.footer-nav a:last-child { border-right: none; }
.footer-nav a:hover { color: var(--saffron); }

.footer-credits {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.75rem;
  line-height: 1.8;
}
.footer-credits a { color: rgba(255,255,255,0.6); text-decoration: underline; }
.footer-credits a:hover { color: var(--saffron); }

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px; height: 42px;
  background: var(--blue-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(0,53,128,0.3);
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ==========================================================================
   11. MODAL — Scheme Detail
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff;
  border-radius: 10px;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: scale(0.95);
  transition: transform 0.25s;
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-img { width: 100%; height: 220px; object-fit: cover; }
.modal-img-placeholder { width: 100%; height: 220px; background: linear-gradient(135deg, #003580, #0047ab); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.modal-content { padding: 24px 28px; }
.modal-badge { display: inline-block; background: var(--blue-primary); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 3px 10px; border-radius: 3px; text-transform: uppercase; margin-bottom: 12px; }
.modal-title { font-size: 1.2rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 8px; line-height: 1.3; }
.modal-ministry { font-size: 0.78rem; color: var(--saffron); font-weight: 600; margin-bottom: 16px; }
.modal-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.modal-close-bar { display: flex; justify-content: flex-end; padding: 12px 28px 16px; border-top: 1px solid #f0f4f8; }
.modal-close-btn { background: var(--blue-primary); color: #fff; border: none; border-radius: 6px; padding: 9px 20px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.18s; }
.modal-close-btn:hover { background: var(--blue-dark); }

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--blue-dark); z-index: 600; border-top: 2px solid var(--saffron); }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 12px 20px; }
  .nav-toggle { display: flex; }
  .dropdown { position: static; box-shadow: none; border: none; border-top: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); border-radius: 0; }
  .dropdown li a { color: rgba(255,255,255,0.75); border-bottom-color: rgba(255,255,255,0.1); }
  .dropdown li a:hover { background: rgba(255,255,255,0.08); color: #fff; padding-left: 30px; }

  .hero-title { font-size: 1.3rem; }
  .featured-card { flex: 0 0 220px; }

  .filter-toolbar { gap: 8px; }
  .search-box { min-width: 100%; max-width: 100%; order: 10; }
  .admin-btn { order: 11; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  
  .top-bar-left .gov-extra { display: none; }
  .header-right { display: none; }
  .dept-name-hi { font-size: 1.1rem; }

  .form-row-2col { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .admin-drawer { width: 100%; }
  .hero-scroll-btn { display: none; }
  .footer-logos { flex-wrap: wrap; gap: 10px; }
}
/* ==========================================================================
   NEW SECTIONS: About, Contact, Help
   ========================================================================== */

.info-section {
  padding: 48px 0;
  background: #fff;
}
.info-section.alt-bg {
  background: var(--grey-bg);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,53,128,0.12);
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
}

.info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: var(--card-radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s;
}

.contact-card:hover {
  transform: translateY(-3px);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.contact-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--blue-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.help-item {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.help-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.help-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer disclaimer */
.footer-disclaimer {
  background: rgba(255,102,0,0.1);
  border: 1px solid rgba(255,102,0,0.3);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: center;
}

.footer-disclaimer p {
  font-size: 0.8rem;
  color: #fff;
  line-height: 1.6;
  margin: 0;
}

.footer-disclaimer strong {
  color: var(--saffron);
}

/* Language content visibility */
.lang-hi, .lang-en {
  transition: opacity 0.3s;
}

/* Fix nav active state */
.nav-menu > li > a.active {
  background: var(--saffron);
  color: #fff;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .info-grid,
  .contact-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-disclaimer {
    padding: 12px 16px;
  }
  
  .footer-disclaimer p {
    font-size: 0.75rem;
  }
}

/* Admin featured page styles */
.admin-featured-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.admin-featured-table th,
.admin-featured-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--grey-border);
  font-size: 0.85rem;
}

.admin-featured-table th {
  background: var(--blue-primary);
  color: #fff;
  font-weight: 700;
}

.admin-featured-table tr:hover td {
  background: var(--blue-light);
}

.featured-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.featured-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.order-input {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid var(--grey-border);
  border-radius: 4px;
  font-size: 0.82rem;
  text-align: center;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-save {
  background: var(--green-govt);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-save:hover {
  background: #004d00;
}

/* Fix for hero scroll buttons on mobile */
@media (max-width: 480px) {
  .hero-scroll-btn {
    display: none !important;
  }
  
  .featured-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Ensure proper responsive scaling */
html {
  font-size: calc(15px * var(--font-scale, 1));
}

@media (max-width: 360px) {
  html {
    font-size: calc(14px * var(--font-scale, 1));
  }
}

/* ==========================================================================
   NEW SECTIONS: About, Contact, Help, Content Pages
   ========================================================================== */

.content-article {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--grey-border);
  box-shadow: var(--card-shadow);
  margin-bottom: 40px;
}

.content-article h1 {
  font-size: 1.8rem;
  color: var(--blue-dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--blue-light);
}

.content-article h2 {
  font-size: 1.3rem;
  color: var(--blue-primary);
  margin: 24px 0 12px;
}

.content-article h3 {
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin: 20px 0 10px;
}

.content-article p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.content-article a {
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 600;
}

.content-article a:hover {
  text-decoration: underline;
}

/* Language content visibility */
.lang-content {
  transition: opacity 0.3s ease;
}

.lang-content[data-lang="en"],
.lang-content[data-lang="ur"] {
  display: none;
}

/* RTL support for Urdu */
html[dir="rtl"] .lang-content[data-lang="ur"] {
  text-align: right;
}

html[dir="rtl"] .container {
  direction: rtl;
}

html[dir="rtl"] .nav-menu > li > a {
  flex-direction: row-reverse;
}

html[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .top-bar-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .breadcrumb-path {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-nav {
  flex-direction: row-reverse;
}

/* Contact page styles */
.contact-info-box {
  background: var(--blue-light);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 32px;
}

.contact-info-box h3 {
  color: var(--blue-primary);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.contact-info-box p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.contact-info-box a {
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-info-box a:hover {
  text-decoration: underline;
}

/* FAQ items */
.faq-item {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--grey-border);
  margin-bottom: 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,53,128,0.12);
}

.faq-item h3 {
  color: var(--blue-primary);
  margin-bottom: 10px;
  font-size: 1rem;
}

.faq-item p {
  line-height: 1.7;
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* Form styles */
form .form-group {
  margin-bottom: 18px;
}

form label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form textarea,
form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey-border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: var(--blue-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,53,128,0.08);
}

form button[type="submit"] {
  background: var(--blue-primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

form button[type="submit"]:hover {
  background: var(--blue-dark);
}

/* Success/Error messages */
.alert-success {
  background: #d4edda;
  color: #155724;
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  border-left: 4px solid #28a745;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  border-left: 4px solid #dc3545;
}

/* Footer improvements */
.footer-disclaimer {
  background: rgba(255,102,0,0.1);
  border: 1px solid rgba(255,102,0,0.3);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: center;
}

.footer-disclaimer p {
  font-size: 0.8rem;
  color: #fff;
  line-height: 1.6;
  margin: 0;
}

.footer-disclaimer strong {
  color: var(--saffron);
}

.footer-nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-nav a {
  padding: 5px 14px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.72);
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: color 0.18s;
  text-decoration: none;
}

.footer-nav a:last-child {
  border-right: none;
}

.footer-nav a:hover {
  color: var(--saffron);
  text-decoration: underline;
}

.footer-credits {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.75rem;
  line-height: 1.8;
}

.footer-credits a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

.footer-credits a:hover {
  color: var(--saffron);
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.footer-logo-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3px;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .content-article {
    padding: 24px 16px;
  }

  .content-article h1 {
    font-size: 1.4rem;
  }

  .faq-item {
    padding: 16px;
  }

  .contact-info-box {
    padding: 16px;
  }

  .footer-nav a {
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  .footer-logos {
    gap: 12px;
  }

  .footer-logo-box {
    padding: 5px 10px;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .content-article {
    padding: 16px 12px;
  }

  .content-article h1 {
    font-size: 1.2rem;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
  }

  .footer-nav a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
    width: 100%;
    text-align: center;
  }

  .footer-nav a:last-child {
    border-bottom: none;
  }
}

/* Admin featured page styles */
.admin-featured-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.admin-featured-table th,
.admin-featured-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--grey-border);
  font-size: 0.85rem;
}

.admin-featured-table th {
  background: var(--blue-primary);
  color: #fff;
  font-weight: 700;
}

.admin-featured-table tr:hover td {
  background: var(--blue-light);
}

.admin-featured-table tr.featured-row {
  background: #fff8f0;
}

.admin-featured-table tr.featured-row td {
  border-bottom-color: #ffe4cc;
}

.checkbox-featured {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--saffron);
}

.order-input {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid var(--grey-border);
  border-radius: 4px;
  font-size: 0.82rem;
  text-align: center;
}

.order-input:focus {
  border-color: var(--blue-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,53,128,0.08);
}

/* Toast notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--green-govt);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Info box */
.info-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue-primary);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 24px;
}

.info-box p {
  font-size: 0.82rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.6;
}

.info-box strong {
  color: var(--blue-primary);
}

/* Save bar */
.save-bar {
  display: flex;
  justify-content: flex-end;
  padding: 20px 0;
  position: sticky;
  bottom: 0;
  background: #f4f6fb;
  border-top: 1px solid var(--grey-border);
  margin-top: 20px;
}

.btn-save {
  background: var(--green-govt);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-save:hover {
  background: #004d00;
}

/* Admin dashboard improvements */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-toolbar h2 {
  font-size: 1.1rem;
  color: var(--blue-dark);
}

.btn-secondary {
  background: var(--saffron);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #e55a00;
}

/* Badge styles */
.badge-featured {
  background: var(--saffron);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-regular {
  background: var(--grey-border);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* Ensure proper responsive scaling */
html {
  font-size: calc(15px * var(--font-scale, 1));
}

@media (max-width: 360px) {
  html {
    font-size: calc(14px * var(--font-scale, 1));
  }
}

/* Hero scroll buttons visibility */
@media (max-width: 480px) {
  .hero-scroll-btn {
    display: none !important;
  }

  .featured-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Nav improvements */
.nav-menu > li > a.active {
  background: var(--saffron);
  color: #fff;
}

/* Mobile menu improvements */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    z-index: 600;
    border-top: 2px solid var(--saffron);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu > li > a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--blue-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(0,53,128,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}
