/**
 * Rashtriya Bal Shiksha Kendra (RBSK)
 * Official Portal Stylesheet - GIGW & Bootstrap 5 Compliant
 * Design Architecture inspired by Department of Higher Education (dohe-education.gov.in)
 * Motto: "आज की शिक्षा, कल का सशक्त भारत।" • Estd. 2014
 */

/* ==========================================================================
   1. CSS VARIABLES & COLOR PALETTES
   ========================================================================== */
:root {
  --primary-navy: #0b2545;
  --primary-navy-dark: #07172b;
  --primary-navy-light: #133e87;
  --accent-saffron: #ff9933;
  --accent-saffron-dark: #d97706;
  --accent-green: #138808;
  --accent-green-dark: #0f6a06;
  --national-gold: #c59b27;
  --tricolor-orange: #ff9933;
  --tricolor-white: #ffffff;
  --tricolor-green: #138808;
  
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-color-dark: #cbd5e1;
  
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #ffffff;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --font-base: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Mukta', 'Noto Sans', sans-serif;
  --font-gov: 'Cinzel', serif;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. ACCESSIBILITY MODES (GIGW COMPLIANCE)
   ========================================================================== */
/* Font Sizing Controls */
body.font-small {
  font-size: 88% !important;
}
body.font-normal {
  font-size: 100% !important;
}
body.font-large {
  font-size: 112% !important;
}
body.font-xlarge {
  font-size: 124% !important;
}

/* High Contrast: Dark Mode */
body.high-contrast-dark {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
}
body.high-contrast-dark .bg-light,
body.high-contrast-dark .bg-white,
body.high-contrast-dark .card,
body.high-contrast-dark .modal-content,
body.high-contrast-dark .top-utility-bar,
body.high-contrast-dark .main-branding-header,
body.high-contrast-dark .notice-item,
body.high-contrast-dark .service-card,
body.high-contrast-dark .scheme-card,
body.high-contrast-dark .stat-box,
body.high-contrast-dark .header-info-card {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
  border-color: #444444 !important;
}
body.high-contrast-dark h1,
body.high-contrast-dark h2,
body.high-contrast-dark h3,
body.high-contrast-dark h4,
body.high-contrast-dark h5,
body.high-contrast-dark h6,
body.high-contrast-dark .text-dark {
  color: #ffffff !important;
}
body.high-contrast-dark .text-muted {
  color: #a0aec0 !important;
}
body.high-contrast-dark a {
  color: #93c5fd !important;
}
body.high-contrast-dark .navbar {
  background-color: #000000 !important;
}
body.high-contrast-dark .footer-main {
  background-color: #0a0a0a !important;
}

/* High Contrast: Yellow on Black */
body.high-contrast-yellow {
  background-color: #000000 !important;
  color: #ffff00 !important;
}
body.high-contrast-yellow * {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}
body.high-contrast-yellow a {
  color: #00ffff !important;
  text-decoration: underline !important;
}
body.high-contrast-yellow .btn {
  border: 1px solid #ffff00 !important;
  color: #ffff00 !important;
}
body.high-contrast-yellow img {
  filter: contrast(140%) grayscale(20%);
}

/* Skip to Main Content */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent-saffron-dark);
  color: #ffffff !important;
  padding: 10px 18px;
  z-index: 99999;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #ffffff;
}

/* ==========================================================================
   3. GENERAL & BASE RESETS
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-navy);
}

a {
  color: var(--primary-navy-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-saffron-dark);
}

.tricolor-strip {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #ff9933 0%, #ff9933 33.3%, #ffffff 33.3%, #ffffff 66.6%, #138808 66.6%, #138808 100%);
  display: block;
}

.tricolor-strip-thick {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #ff9933 0%, #ff9933 33.3%, #ffffff 33.3%, #ffffff 66.6%, #138808 66.6%, #138808 100%);
  display: block;
}

.section-title-wrap {
  position: relative;
  margin-bottom: 2.2rem;
  text-align: center;
}
.section-subtitle {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-saffron-dark);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.section-main-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 12px;
}
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.section-divider span {
  height: 3px;
  width: 50px;
  background-color: var(--accent-saffron);
  border-radius: 2px;
}
.section-divider .dot {
  width: 10px;
  height: 10px;
  background-color: var(--primary-navy);
  border-radius: 50%;
}
.section-divider span.green-line {
  background-color: var(--accent-green);
}

/* ==========================================================================
   4. TOP ACCESSIBILITY UTILITY BAR
   ========================================================================== */
.top-utility-bar {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
  padding: 5px 0;
  color: #334155;
}
.top-utility-bar .gov-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.top-utility-bar .gov-flag-icon {
  width: 18px;
  height: 12px;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}
.top-utility-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-utility-links li {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.top-utility-links li:not(:last-child)::after {
  content: "|";
  margin-left: 12px;
  color: #cbd5e1;
}
.top-utility-links a {
  color: #475569;
  font-weight: 500;
  text-decoration: none;
}
.top-utility-links a:hover {
  color: var(--primary-navy);
}

/* Accessibility Control Buttons */
.accessibility-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.access-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
  transition: var(--transition);
}
.access-btn:hover, .access-btn.active {
  background-color: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}
.theme-switch-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #64748b;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}
.theme-switch-standard {
  background: linear-gradient(135deg, #ffffff 50%, #0b2545 50%);
}
.theme-switch-dark {
  background-color: #121212;
  border-color: #ffffff;
}
.theme-switch-yellow {
  background-color: #ffff00;
  border-color: #000000;
}

.lang-switch {
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 3px;
  background-color: #e2e8f0;
  font-size: 0.78rem;
  border: 1px solid #cbd5e1;
  transition: var(--transition);
}
.lang-switch:hover, .lang-switch.active {
  background-color: var(--accent-saffron);
  color: #ffffff;
  border-color: var(--accent-saffron-dark);
}

/* ==========================================================================
   MULTI-LANGUAGE SELECTOR BAR & GOOGLE TRANSLATE STYLES
   ========================================================================== */
.language-selector-wrapper {
  position: relative;
  display: inline-block;
}
.lang-bar-btn {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.45;
  transition: var(--transition);
}
.lang-bar-btn:hover,
.lang-bar-btn:focus,
.lang-bar-btn.show {
  background-color: #e2e8f0;
  border-color: var(--primary-navy);
  color: var(--primary-navy);
}
.language-menu {
  min-width: 195px;
  padding: 6px 0;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 1060;
  margin-top: 4px;
}
.language-menu .dropdown-item {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.language-menu .dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--primary-navy);
}
.language-menu .dropdown-item.active {
  background-color: var(--primary-navy);
  color: #ffffff;
  font-weight: 700;
}
.language-menu .dropdown-item.active small {
  color: #e2e8f0 !important;
}
.lang-code-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: #e2e8f0;
  color: #334155;
  padding: 2px 5px;
  border-radius: 3px;
  min-width: 24px;
  text-align: center;
  display: inline-block;
  line-height: 1.2;
}
.language-menu .dropdown-item.active .lang-code-badge {
  background: var(--accent-saffron);
  color: #ffffff;
}

/* Clean Google Translate Overlays & Artifacts */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
body {
  top: 0px !important;
  position: static !important;
}
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Urdu / RTL Localization Overrides */
body.lang-rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Mukta', 'Noto Nastaliq Urdu', Tahoma, sans-serif;
}
body.lang-rtl .dropdown-menu-end {
  right: auto !important;
  left: 0 !important;
}
body.lang-rtl .top-utility-links {
  direction: rtl;
}
body.lang-rtl .navbar-nav {
  padding-right: 0;
}
body.lang-rtl .ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}
body.lang-rtl .me-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}
body.lang-rtl .ms-1,
body.lang-rtl .ms-2,
body.lang-rtl .ms-3 {
  margin-right: 0.5rem !important;
  margin-left: 0 !important;
}
body.lang-rtl .me-1,
body.lang-rtl .me-2,
body.lang-rtl .me-3 {
  margin-left: 0.5rem !important;
  margin-right: 0 !important;
}
body.lang-rtl .header-emblem-wrap {
  flex-direction: row-reverse;
}
body.lang-rtl .main-gov-navbar .nav-link {
  text-align: right;
}

/* ==========================================================================
   5. MAIN BRANDING & GOVERNMENT HEADER
   ========================================================================== */
.main-branding-header {
  background: #ffffff;
  padding: 14px 0;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}
.header-emblem-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.state-emblem-svg {
  height: 82px;
  width: auto;
  flex-shrink: 0;
}
.official-rbsk-logo {
  height: 121px;
  width: 121px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(11, 37, 69, 0.15);
  transition: transform 0.3s ease;
  background: #ffffff;
}
.official-rbsk-logo:hover {
  transform: scale(1.05);
}
.footer-rbsk-logo {
  height: 70px;
  width: 70px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
}
.org-motto-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  margin-top: 4px;
}
.org-title-group {
  line-height: 1.25;
}
.org-title-group .dept-name-hi {
  font-size: 0.88rem;
  color: #475569;
  font-weight: 600;
  margin: 0;
}
.org-title-group .dept-name-en {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0 0 2px 0;
}
.org-title-group .main-name-hi {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 0;
  font-family: var(--font-heading);
}
.org-title-group .main-name-en {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-saffron-dark);
  letter-spacing: 0.8px;
  margin: 0;
}
.org-title-group .tagline-en {
  font-size: 0.75rem;
  color: #475569;
  margin: 3px 0 0 0;
  font-weight: 500;
}

/* Header Right Side Cards (Unified Government Styling) */
.header-cards-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.header-info-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  min-height: 56px;
  box-shadow: 0 2px 5px rgba(11, 37, 69, 0.05);
  transition: all 0.25s ease;
  text-decoration: none;
}
.header-info-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 14px rgba(11, 37, 69, 0.09);
}

.header-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.header-card-icon.icon-amber {
  background: #fef3c7;
  color: #d97706;
}
.header-card-icon.icon-green {
  background: #dcfce7;
  color: #16a34a;
}
.header-card-icon.icon-orange {
  background: #ffedd5;
  color: #ea580c;
}

.header-card-text {
  line-height: 1.25;
}
.header-card-text .card-primary-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
  white-space: nowrap;
}
.header-card-text .card-secondary-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
}
.header-card-text .card-secondary-sub a {
  color: #64748b;
}
.header-card-text .card-secondary-sub a:hover {
  color: var(--primary-navy);
}

/* Helpline Card Variant with subtle accent border */
.header-info-card.helpline-card {
  background: #f8fafc;
  border-left: 3px solid var(--accent-saffron);
}

/* Legacy Classes Fallback */
.header-national-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.gov-campaign-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(11, 37, 69, 0.05);
  transition: var(--transition);
}
.gov-campaign-badge:hover {
  border-color: var(--accent-saffron);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(11, 37, 69, 0.09);
}
.gov-campaign-badge .badge-icon {
  font-size: 1.25rem;
  color: var(--primary-navy-light);
}
.gov-campaign-badge .badge-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
}
.header-helpline-box {
  background: #f8fafc;
  border-left: 3px solid var(--accent-saffron);
  padding: 8px 14px;
  border-radius: 8px;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  text-align: right;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(11, 37, 69, 0.05);
}
.header-helpline-box .help-label {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
}
.header-helpline-box .help-number {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 0;
  line-height: 1.2;
}
.header-helpline-box .help-email {
  font-size: 0.72rem;
  color: #475569;
  margin: 0;
}

/* ==========================================================================
   6. PRIMARY NAVIGATION BAR (Gov Mega Menu)
   ========================================================================== */
.main-gov-navbar {
  background-color: var(--primary-navy);
  padding: 0;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
  border-bottom: 3px solid var(--accent-saffron);
}
.main-gov-navbar .navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 12px !important;
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}
.main-gov-navbar .navbar-nav .nav-link:hover,
.main-gov-navbar .navbar-nav .nav-link:focus,
.main-gov-navbar .navbar-nav .nav-item.active .nav-link {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffb84d !important;
}
.main-gov-navbar .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-saffron);
  transition: width 0.25s ease;
}
.main-gov-navbar .navbar-nav .nav-link:hover::after,
.main-gov-navbar .navbar-nav .nav-item.active .nav-link::after {
  width: 100%;
}

/* Dropdown Menu Styling */
.main-gov-navbar .dropdown-menu {
  background-color: #ffffff;
  border-radius: 0 0 6px 6px;
  border: 1px solid #cbd5e1;
  border-top: 3px solid var(--accent-saffron);
  box-shadow: var(--shadow-xl);
  padding: 8px 0;
  margin-top: 0;
  min-width: 270px;
}
.main-gov-navbar .dropdown-item {
  font-size: 0.86rem;
  font-weight: 500;
  color: #1e293b;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dashed #f1f5f9;
  transition: var(--transition);
}
.main-gov-navbar .dropdown-item:last-child {
  border-bottom: none;
}
.main-gov-navbar .dropdown-item i {
  color: var(--accent-saffron);
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}
.main-gov-navbar .dropdown-item:hover {
  background-color: #f8fafc;
  color: var(--primary-navy);
  padding-left: 22px;
}
.main-gov-navbar .dropdown-item:hover i {
  transform: translateX(3px);
  color: var(--primary-navy);
}

/* Desktop Hover Trigger */
@media (min-width: 992px) {
  .main-gov-navbar .dropdown:hover > .dropdown-menu {
    display: block;
    animation: fadeInDown 0.2s ease forwards;
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav Action Buttons */
.nav-cta-btn {
  background-color: var(--accent-saffron);
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 7px 14px !important;
  border-radius: 4px;
  margin-left: 6px;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.nav-cta-btn:hover {
  background-color: var(--accent-saffron-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.nav-cta-btn.nav-login-btn {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.nav-cta-btn.nav-login-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   7. LIVE ANNOUNCEMENTS / TICKER MARQUEE
   ========================================================================== */
.news-ticker-strip {
  background-color: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  display: flex;
  align-items: stretch;
  height: 44px;
  overflow: hidden;
}
.ticker-badge-col {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  z-index: 5;
}
.ticker-badge-col i {
  animation: pulse 1.5s infinite;
}
.ticker-marquee-col {
  flex-grow: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 0 10px;
}
.ticker-marquee-track,
.ticker-marquee-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: scrollContinuous 55s linear infinite;
  font-size: 0.86rem;
  color: #431407;
  font-weight: 500;
  will-change: transform;
}
.ticker-marquee-group {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-ticker-strip:hover .ticker-marquee-track,
.news-ticker-strip:hover .ticker-marquee-content,
.ticker-marquee-track.paused,
.ticker-marquee-content.paused {
  animation-play-state: paused;
}
@keyframes scrollContinuous {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 48px;
  color: #431407;
  text-decoration: none;
}
.ticker-item:hover {
  color: #c2410c;
  text-decoration: underline;
}
.ticker-tag-new {
  background-color: #dc2626;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  animation: blink 1.2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.ticker-controls-col {
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  background-color: #ffedd5;
  border-left: 1px solid #fed7aa;
}
.ticker-ctrl-btn {
  background: transparent;
  border: none;
  color: #9a3412;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px;
}
.ticker-ctrl-btn:hover {
  color: #431407;
}

/* ==========================================================================
   8. HERO BANNER & SLIDER
   ========================================================================== */
.hero-slider-section {
  position: relative;
  background-color: #07172b;
}
.hero-carousel .carousel-item {
  height: 500px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
}
.hero-carousel .carousel-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(7, 23, 43, 0.92) 0%, rgba(7, 23, 43, 0.70) 50%, rgba(7, 23, 43, 0.15) 75%, transparent 100%);
}
.hero-carousel .carousel-item.image-only-slide::before {
  display: none !important;
}
.hero-content-wrap {
  position: relative;
  z-index: 3;
  color: #ffffff;
  padding-top: 55px;
  max-width: 760px;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 153, 51, 0.25);
  border: 1px solid var(--accent-saffron);
  color: #ffb84d;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.hero-subtitle {
  font-size: 1.08rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 26px;
  font-weight: 400;
}
.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-gov-primary {
  background: linear-gradient(135deg, #ff9933 0%, #ea580c 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 5px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
  transition: var(--transition);
}
.btn-gov-primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45);
}
.btn-gov-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-gov-outline:hover {
  background: #ffffff;
  color: var(--primary-navy) !important;
  border-color: #ffffff;
  transform: translateY(-2px);
}
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
}
.hero-carousel .carousel-indicators .active {
  background-color: var(--accent-saffron);
  width: 30px;
  border-radius: 6px;
}
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 48px;
  opacity: 0.7;
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  background-color: rgba(11, 37, 69, 0.7);
  padding: 22px;
  border-radius: 50%;
  background-size: 50%;
}

/* ==========================================================================
   9. QUICK PUBLIC SERVICES STRIP (DoHE Style Key Actions)
   ========================================================================== */
.quick-services-section {
  position: relative;
  margin-top: -50px;
  z-index: 10;
  padding-bottom: 2rem;
}
.quick-services-card-wrap {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.12);
  padding: 20px;
  border: 1px solid var(--border-color);
}
.service-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: var(--transition);
  color: var(--primary-navy);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary-navy-light);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.service-tile:hover {
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
  color: var(--primary-navy);
}
.service-tile:hover::before {
  transform: scaleX(1);
  background: var(--accent-saffron);
}
.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(19, 62, 135, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy-light);
  font-size: 1.4rem;
  margin-bottom: 12px;
  transition: var(--transition);
}
.service-tile:hover .service-icon-box {
  background: var(--accent-saffron);
  color: #ffffff;
  transform: rotate(5deg) scale(1.08);
}
.service-tile .service-label {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #1e293b;
}
.service-tile .service-subtext {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
}
.service-tile .badge-status {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* ==========================================================================
   10. LEADERSHIP & DIGNITARY DESK (DoHE Signature Layout)
   ========================================================================== */
.leadership-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 4rem 0 3.5rem 0;
}
.leader-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}
.leader-card-header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
  padding: 12px 16px;
  color: #ffffff;
  text-align: center;
}
.leader-card-header .post-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fed7aa;
  font-weight: 700;
  margin: 0;
}
.leader-img-wrap {
  width: 130px;
  height: 130px;
  margin: 20px auto 14px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #f1f5f9;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
  background-color: #e2e8f0;
}
.leader-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leader-body {
  padding: 0 20px 20px 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.leader-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 2px;
}
.leader-designation {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-saffron-dark);
  margin-bottom: 12px;
}
.leader-quote {
  font-size: 0.85rem;
  color: #475569;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
  position: relative;
  padding: 0 10px;
}
.leader-quote::before {
  content: '“';
  font-size: 1.8rem;
  color: #cbd5e1;
  position: absolute;
  left: -4px;
  top: -10px;
}
.leader-footer-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-navy-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.leader-footer-link:hover {
  color: var(--accent-saffron-dark);
}

/* ==========================================================================
   11. NOTICE BOARD, RECRUITMENT & INFORMATION DESK (Tabs)
   ========================================================================== */
.notices-section {
  padding: 3.5rem 0;
  background-color: #ffffff;
}
.notice-tabs-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.notice-tabs-card .nav-tabs {
  background-color: #f1f5f9;
  border-bottom: 2px solid var(--primary-navy);
  padding: 0 10px;
}
.notice-tabs-card .nav-tabs .nav-link {
  color: #475569;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 16px;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice-tabs-card .nav-tabs .nav-link:hover {
  color: var(--primary-navy);
  background-color: rgba(255, 255, 255, 0.5);
}
.notice-tabs-card .nav-tabs .nav-link.active {
  color: var(--primary-navy);
  background-color: #ffffff;
  border-bottom: 3px solid var(--accent-saffron);
}

.notice-filter-bar {
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.notice-search-input {
  max-width: 300px;
  font-size: 0.85rem;
}

.notice-list-scroll {
  max-height: 440px;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}
.notice-list-scroll::-webkit-scrollbar {
  width: 6px;
}
.notice-list-scroll::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 3px;
}

.notice-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}
.notice-item:hover {
  background-color: #f8fafc;
}
.notice-date-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
  min-width: 64px;
}
.notice-date-box .day {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1;
}
.notice-date-box .month-year {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}

.notice-content {
  flex-grow: 1;
}
.notice-ref-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.notice-category-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  background: #e2e8f0;
  color: #334155;
}
.badge-recruitment {
  background: #fee2e2;
  color: #991b1b;
}
.badge-guidelines {
  background: #e0f2fe;
  color: #0369a1;
}
.badge-tenders {
  background: #fef3c7;
  color: #92400e;
}

.notice-item-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 6px 0;
  line-height: 1.4;
}
.notice-item-title a {
  color: #1e293b;
}
.notice-item-title a:hover {
  color: var(--accent-saffron-dark);
}
.notice-meta-info {
  font-size: 0.76rem;
  color: #64748b;
  display: flex;
  gap: 14px;
}
.notice-action-btn {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--primary-navy-light);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.notice-action-btn:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.notice-card-footer {
  padding: 12px 20px;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sidebar Info Cards */
.info-alert-card {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}
.info-alert-card .card-head {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-head-navy {
  background: var(--primary-navy);
  color: #ffffff;
}
.card-head-warning {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
}
.card-head-success {
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  color: #166534;
}
.info-alert-card .card-body-content {
  padding: 16px;
}

/* Quick Download List */
.quick-download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quick-download-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
}
.quick-download-list li:last-child {
  border-bottom: none;
}
.quick-download-list a {
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}
.quick-download-list a:hover {
  color: var(--accent-saffron-dark);
}
.quick-download-list i {
  color: #dc2626;
  font-size: 1.1rem;
}

/* ==========================================================================
   12. SCHEMES & PROGRAMS (Offerings & Child Welfare)
   ========================================================================== */
.schemes-section {
  background: #f8fafc;
  padding: 4.5rem 0;
  position: relative;
}
.scheme-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.scheme-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-navy);
  transition: background 0.25s ease;
}
.scheme-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}
.scheme-card:hover::after {
  background: linear-gradient(90deg, #ff9933, #138808);
}
.scheme-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-saffron-dark);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.scheme-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-navy-light);
  margin-bottom: 16px;
  transition: var(--transition);
}
.scheme-card:hover .scheme-icon-circle {
  background: var(--primary-navy);
  color: #ffffff;
  transform: scale(1.05);
}
.scheme-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
}
.scheme-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}
.scheme-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  font-size: 0.82rem;
  color: #475569;
}
.scheme-features-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scheme-features-list li i {
  color: var(--accent-green);
  font-size: 0.75rem;
}
.scheme-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-navy-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.scheme-link:hover {
  color: var(--accent-saffron-dark);
}

/* ==========================================================================
   13. IMPACT STATISTICS COUNTER (With Animated Numbers)
   ========================================================================== */
.stats-counter-section {
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 100%)!important;
  color: #ffffff;
  padding: 3.5rem 0;
  position: relative;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}
.stat-box {
  text-align: center;
  padding: 20px 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.stat-box:last-child {
  border-right: none;
}
.stat-icon {
  font-size: 2.2rem;
  color: var(--accent-saffron);
  margin-bottom: 12px;
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  font-family: var(--font-heading);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}

/* ==========================================================================
   14. DIRECTOR'S VISION & GENESIS (Rashtriya Bal Shiksha Kendra)
   ========================================================================== */
.vision-section {
  padding: 4.5rem 0;
  background: #ffffff;
}
.vision-card {
  background: #f8fafc;
  border-left: 5px solid var(--accent-saffron);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.vision-card h3 {
  font-size: 1.45rem;
  color: var(--primary-navy);
  margin-bottom: 14px;
}
.vision-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}
.about-rich-content p,
.mission-rich-content p,
.vision-rich-content p,
.director-rich-content p {
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}
.about-rich-content p.lead,
.mission-rich-content p.lead,
.vision-rich-content p.lead,
.director-rich-content p.lead {
  font-size: 1.05rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.7;
}
.about-rich-content strong,
.mission-rich-content strong,
.vision-rich-content strong,
.director-rich-content strong {
  color: #0f172a;
  font-weight: 700;
}
.about-rich-content ul,
.about-rich-content ol,
.mission-rich-content ul,
.mission-rich-content ol,
.vision-rich-content ul,
.vision-rich-content ol,
.director-rich-content ul,
.director-rich-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.about-rich-content li,
.mission-rich-content li,
.vision-rich-content li,
.director-rich-content li {
  margin-bottom: 0.35rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}
.about-rich-content blockquote,
.mission-rich-content blockquote,
.vision-rich-content blockquote,
.director-rich-content blockquote {
  border-left: 4px solid var(--accent-saffron);
  background: rgba(255, 153, 51, 0.08);
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #334155;
}
.genesis-timeline-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}
.genesis-timeline-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #334155;
}
.genesis-timeline-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-green);
  font-size: 0.85rem;
}

/* ==========================================================================
   15. PHOTO & MEDIA GALLERY
   ========================================================================== */
.gallery-section {
  padding: 4.5rem 0;
  background-color: #f1f5f9;
}
.gallery-filter-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.gallery-filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background-color: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.gallery-grid-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  background: #000000;
}
.gallery-grid-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  display: block;
}
.gallery-grid-item:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 37, 69, 0.95) 100%);
  color: #ffffff;
  transform: translateY(10px);
  opacity: 0.9;
  transition: var(--transition);
}
.gallery-grid-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}
.gallery-overlay h5 {
  color: #ffffff;
  font-size: 0.95rem;
  margin: 0 0 4px 0;
}
.gallery-overlay span {
  font-size: 0.75rem;
  color: #cbd5e1;
}
.gallery-zoom-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  font-size: 0.9rem;
  opacity: 0;
  transition: var(--transition);
  cursor: pointer;
}
.gallery-grid-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1.05);
}

/* ==========================================================================
   16. NATIONAL PORTALS LOGOS & CAROUSEL
   ========================================================================== */
.national-portals-section {
  padding: 2.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.portal-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  height: 70px;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: var(--transition);
}
.portal-logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}
.portal-logo-item img {
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
}

/* ==========================================================================
   17. GOVERNMENT FOOTER (GIGW & NIC STYLE)
   ========================================================================== */
.footer-main {
  background-color: var(--primary-navy);
  color: #cbd5e1;
  padding: 4rem 0 2rem 0;
  position: relative;
}
.footer-emblem-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-emblem-svg {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-org-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}
.footer-org-subtitle {
  color: #94a3b8;
  font-size: 0.75rem;
  margin: 0;
}
.footer-about-text {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
}
.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--accent-saffron);
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links-list li {
  margin-bottom: 9px;
  font-size: 0.85rem;
}
.footer-links-list a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links-list a i {
  font-size: 0.65rem;
  color: var(--accent-saffron);
}
.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-info {
  font-size: 0.85rem;
  color: #94a3b8;
}
.footer-contact-info p {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact-info i {
  color: var(--accent-saffron);
  margin-top: 4px;
}

/* Secondary Compliance Footer Bar */
.footer-bottom-bar {
  background-color: var(--primary-navy-dark);
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: #94a3b8;
}
.footer-policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
}
.footer-policy-nav li {
  position: relative;
}
.footer-policy-nav li:not(:last-child)::after {
  content: '|';
  margin-left: 12px;
  color: #475569;
}
.footer-policy-nav a {
  color: #cbd5e1;
}
.footer-policy-nav a:hover {
  color: var(--accent-saffron);
}
.nic-badge-col {
  text-align: right;
}
.nic-badge-col img {
  height: 28px;
  margin-left: 8px;
}

/* ==========================================================================
   18. FLOATING TOOLS & BACK TO TOP
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background-color: var(--accent-saffron);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 999;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top-btn:hover {
  background-color: var(--accent-saffron-dark);
  transform: translateY(-3px);
  color: #ffffff;
}

.floating-help-pill {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.3);
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}
.floating-help-pill:hover {
  background: var(--primary-navy-light);
  transform: translateY(-2px);
  color: #ffffff;
}

/* ==========================================================================
   19. MODALS & POPUPS
   ========================================================================== */
.gov-modal-header {
  background: var(--primary-navy);
  color: #ffffff;
  border-bottom: 3px solid var(--accent-saffron);
}
.gov-modal-header .btn-close {
  filter: brightness(0) invert(1);
}
.status-result-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 16px;
  margin-top: 16px;
}

/* ==========================================================================
   20. RESPONSIVE DESIGN ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991.98px) {
  .header-cards-container,
  .header-national-logos {
    justify-content: flex-start;
    margin-top: 14px;
  }
  .hero-carousel .carousel-item {
    height: 460px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .stat-box {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .stat-box:last-child {
    border-bottom: none;
  }
  .quick-services-section {
    margin-top: -30px;
  }
  .nic-badge-col {
    text-align: left;
    margin-top: 12px;
  }
  .main-gov-navbar .navbar-nav .nav-link {
    padding: 10px 14px !important;
  }
  .main-gov-navbar .dropdown-menu {
    border: none;
    box-shadow: none;
    background: #07172b;
    padding-left: 10px;
  }
  .main-gov-navbar .dropdown-item {
    color: #e2e8f0;
  }
  .main-gov-navbar .dropdown-item:hover {
    background-color: transparent;
    color: var(--accent-saffron);
  }
}

@media (max-width: 575.98px) {
  .state-emblem-svg {
    height: 60px;
  }
  .org-title-group .main-name-hi {
    font-size: 1.25rem;
  }
  .org-title-group .main-name-en {
    font-size: 1rem;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-carousel .carousel-item {
    height: 480px;
  }
  .service-tile {
    padding: 14px 10px;
  }
}

/* ==========================================================================
   21. INNER PAGES (BREADCRUMB, BANNER & ABOUT US STYLING)
   ========================================================================== */
.inner-page-banner {
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 70%, var(--primary-navy-light) 100%);
  color: #ffffff;
  padding: 3rem 0 2.5rem 0;
  position: relative;
  border-bottom: 4px solid var(--accent-saffron);
}
.inner-page-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
}
.inner-page-banner .page-heading {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}
.inner-page-banner .page-subheading {
  font-size: 1rem;
  color: #fed7aa;
  margin-bottom: 14px;
}
.breadcrumb-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
}
.breadcrumb-custom a {
  color: #cbd5e1;
  text-decoration: none;
}
.breadcrumb-custom a:hover {
  color: #ffffff;
}
.breadcrumb-custom .separator {
  color: var(--accent-saffron);
}
.breadcrumb-custom .current-page {
  color: #ffffff;
  font-weight: 700;
}

/* In-Page Quick Navigation Bar (DoHE Style) */
.inner-quick-nav-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  position: sticky;
  top: 56px;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.quick-nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  white-space: nowrap;
}
.quick-nav-pills::-webkit-scrollbar {
  height: 4px;
}
.quick-nav-pill-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.quick-nav-pill-btn:hover,
.quick-nav-pill-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

/* Timeline & Milestones */
.timeline-card {
  position: relative;
  padding-left: 32px;
  border-left: 3px solid var(--accent-saffron);
  margin-bottom: 24px;
}
.timeline-card::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary-navy);
  border: 3px solid var(--accent-saffron);
}
.timeline-year {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-saffron-dark);
}

/* Governance / Organization Hierarchy Boxes */
.gov-org-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  height: 100%;
}
.gov-org-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-saffron);
}
.gov-org-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

body.high-contrast-dark .inner-page-banner {
  background: #000000 !important;
  color: #ffffff !important;
}
body.high-contrast-dark .gov-org-card {
  background: #1e1e1e !important;
  color: #e0e0e0 !important;
  border-color: #444444 !important;
}
body.high-contrast-yellow .inner-page-banner,
body.high-contrast-yellow .gov-org-card {
  background: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

/* Dynamic Career Post Detailed Description (from CKEditor) */
.post-detailed-description {
  color: #334155;
  line-height: 1.65;
}
.post-detailed-description p {
  margin-bottom: 0.85rem;
}
.post-detailed-description ul:not(.list-unstyled) {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.post-detailed-description ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.post-detailed-description table {
  width: 100%;
  margin-bottom: 1.25rem;
  border-collapse: collapse;
}
.post-detailed-description table td,
.post-detailed-description table th {
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
}
.post-detailed-description table th {
  background: #f8fafc;
  font-weight: 600;
}
