/* ==========================================================================
   DEPARTMENT OF REVENUE - MINISTRY OF FINANCE, GOVERNMENT OF INDIA
   Next-Generation Official Portal Design System (2026)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Centralized Typography Design Tokens */
  --site-title-font-size: 16px;
  --site-content-font-size: 14px;

  /* Official Government Blue Color Palette */
  --gov-primary: #0A3663;        /* Deep Government Blue */
  --gov-primary-dark: #002244;   /* Navy Blue */
  --gov-primary-light: #1D5D9B;  /* Medium Government Blue */
  --gov-secondary: #001A33;      /* Deep Midnight Navy */
  
  /* Indian National Accent Colors */
  --gov-accent-saffron: #FF9933; /* Saffron Accent */
  --gov-accent-gold: #D4AF37;    /* Ashoka Gold */
  --gov-accent-green: #138808;   /* Subtle Tricolor Green */
  
  /* Neutral & Background Colors */
  --gov-bg-main: #FFFFFF;
  --gov-bg-light: #F4F7FB;       /* Very light cool blue-grey */
  --gov-bg-subtle: #EBF1F8;      /* Subtle section tint */
  --gov-card-bg: #FFFFFF;
  --gov-card-border: #E1E8F0;
  --gov-card-hover-border: #B6CDDF;
  
  /* Typography Colors */
  --gov-text-heading: #0B2238;
  --gov-text-body: #334155;
  --gov-text-muted: #64748B;
  --gov-text-light: #F8FAFC;
  
  /* UI Radii & Shadows */
  --gov-radius-sm: 4px;
  --gov-radius-md: 8px;
  --gov-radius-lg: 12px;
  --gov-radius-pill: 50px;
  
  --gov-shadow-subtle: 0 2px 8px rgba(10, 54, 99, 0.06);
  --gov-shadow-card: 0 4px 16px rgba(10, 54, 99, 0.08);
  --gov-shadow-hover: 0 10px 24px rgba(10, 54, 99, 0.12);
  --gov-shadow-focus: 0 0 0 3px rgba(29, 93, 155, 0.35);

  /* Fonts */
  --font-primary: 'Poppins', sans-serif;
  --font-devanagari: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  --font-heading: 'Poppins', sans-serif;

  /* Font Scaling for Accessibility */
  --font-scale: 1;
}

/* Base Sizing with Accessibility scaling */
html {
  font-size: calc(16px * var(--font-scale));
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

html.font-scale-sm { --font-scale: 0.88; }
html.font-scale-md { --font-scale: 1; }
html.font-scale-lg { --font-scale: 1.15; }

button, input, optgroup, select, textarea {
  font-family: var(--font-primary);
  font-size: var(--site-content-font-size, 14px);
}

body {
  font-family: var(--font-primary);
  font-size: var(--site-content-font-size, 14px);
  color: var(--gov-text-body);
  background-color: var(--gov-bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-size: var(--site-title-font-size, 16px);
  color: var(--gov-text-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.devanagari-text {
  font-family: var(--font-devanagari);
}

a {
  color: var(--gov-primary-light);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: var(--gov-primary-dark);
}

/* Keyboard Focus Accessibility */
:focus-visible {
  outline: 3px solid var(--gov-accent-saffron) !important;
  outline-offset: 2px !important;
}

/* Skip to Main Content Link */
.skip-to-main {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 9999;
  background: var(--gov-primary-dark);
  color: #FFFFFF;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
  border: 2px solid var(--gov-accent-saffron);
}

.skip-to-main:focus {
  top: 0;
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.top-utility-bar {
  background-color: var(--gov-secondary);
  color: #CBD5E1;
  font-size: var(--site-content-font-size, 14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 0;
}

.utility-link {
  color: #CBD5E1;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--gov-radius-sm);
  font-size: var(--site-content-font-size, 14px);
}

.utility-link:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
}

.utility-divider {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 3px;
}

.text-resize-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #CBD5E1;
  padding: 1px 7px;
  font-size: var(--site-content-font-size, 14px);
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1.4;
  transition: all 0.15s ease;
}

.text-resize-btn:hover,
.text-resize-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-color: var(--gov-accent-saffron);
}

.contrast-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #CBD5E1;
  padding: 1px 8px;
  font-size: var(--site-content-font-size, 14px);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.contrast-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* ==========================================================================
   MAIN HEADER
   ========================================================================== */
.main-header {
  background: #FFFFFF;
  border-bottom: 2px solid var(--gov-primary);
  padding: 12px 0;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 34, 68, 0.04);
}

.gov-emblem-wrapper {
  width: 58px;
  height: 70px;
  flex-shrink: 0;
}

.gov-emblem-wrapper img,
.gov-emblem-wrapper svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gov-title-group {
  border-left: 2px solid #E2E8F0;
  padding-left: 14px;
}

.gov-subtext-hi {
  font-size: var(--site-content-font-size, 14px);
  color: var(--gov-text-muted);
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.2;
}

.gov-main-title {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 800;
  color: var(--gov-primary);
  margin-bottom: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gov-parent-title {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 600;
  color: var(--gov-text-body);
  margin-bottom: 0;
}

.header-search-btn {
  background: var(--gov-bg-light);
  border: 1px solid var(--gov-card-border);
  color: var(--gov-text-muted);
  padding: 8px 16px;
  border-radius: var(--gov-radius-pill);
  font-size: var(--site-content-font-size, 14px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.header-search-btn:hover {
  background: #FFFFFF;
  border-color: var(--gov-primary-light);
  color: var(--gov-primary);
  box-shadow: var(--gov-shadow-subtle);
}

.header-badge-gov {
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  color: #C2410C;
  padding: 4px 10px;
  font-size: var(--site-content-font-size, 14px);
  font-weight: 600;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   PRIMARY NAVIGATION BAR (Sticky)
   ========================================================================== */
.primary-navbar {
  background-color: var(--gov-primary);
  box-shadow: 0 4px 12px rgba(0, 26, 51, 0.15);
  padding: 0;
  z-index: 1020;
}

.primary-navbar .navbar-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.primary-navbar .nav-link {
  color: #E2E8F0 !important;
  font-weight: 500;
  font-size: var(--site-content-font-size, 14px);
  padding: 14px 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.primary-navbar .nav-link:hover,
.primary-navbar .nav-link:focus,
.primary-navbar .nav-item.active > .nav-link,
.primary-navbar .nav-item.active .nav-link,
.primary-navbar .nav-link.active,
.primary-navbar .nav-link.show {
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--gov-accent-saffron);
}

/* Enable smooth desktop hover for dropdown menus */
@media (min-width: 992px) {
  .primary-navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  .primary-navbar .nav-item.dropdown:hover > .nav-link,
  .primary-navbar .nav-item.dropdown.active > .nav-link {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--gov-accent-saffron);
  }
}

.primary-navbar .dropdown-menu {
  background-color: #FFFFFF;
  border: 1px solid var(--gov-card-border);
  border-radius: 0 0 var(--gov-radius-md) var(--gov-radius-md);
  box-shadow: 0 10px 25px rgba(0, 34, 68, 0.15);
  padding: 8px 0;
  min-width: 240px;
  animation: navDropdownFade 0.2s ease-in-out;
}

@keyframes navDropdownFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.primary-navbar .dropdown-item {
  color: var(--gov-text-heading);
  font-size: var(--site-content-font-size, 14px);
  font-weight: 500;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.primary-navbar .dropdown-item:hover,
.primary-navbar .dropdown-item.active,
.primary-navbar .dropdown-item:active {
  background-color: var(--gov-bg-light);
  color: var(--gov-primary);
  border-left-color: var(--gov-primary);
  padding-left: 22px;
}

.primary-navbar .dropdown-divider {
  border-color: #EEF2F6;
  margin: 6px 0;
}

.nav-cta-btn {
  background-color: var(--gov-accent-saffron);
  color: #001A33 !important;
  font-weight: 700;
  font-size: var(--site-content-font-size, 14px);
  padding: 8px 16px;
  border-radius: var(--gov-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  transition: background-color 0.2s;
}

.nav-cta-btn:hover {
  background-color: #F5871F;
  color: #000000 !important;
}

/* ==========================================================================
   HERO BANNER SLIDER SECTION (After Main Navigation)
   ========================================================================== */
.gov-slider-section {
  position: relative;
  background-color: #072340;
  overflow: hidden;
  border-bottom: 3px solid var(--gov-accent-saffron);
}

.gov-carousel .carousel-item {
  height: 480px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.gov-carousel .carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(4, 26, 48, 0.94) 0%, rgba(10, 54, 99, 0.62) 55%, rgba(0, 26, 51, 0.35) 100%);
  display: flex;
  align-items: center;
}

.gov-carousel .carousel-caption {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  text-align: left;
  padding: 0;
  max-width: 760px;
  text-shadow: none;
}

.slider-badge {
  background: rgba(255, 153, 51, 0.2);
  border: 1px solid rgba(255, 153, 51, 0.5);
  color: #FFB366;
  font-size: var(--site-content-font-size, 14px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--gov-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.slider-title {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.slider-lead {
  font-size: var(--site-content-font-size, 14px);
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 24px;
}

.gov-carousel .carousel-indicators {
  margin-bottom: 18px;
  justify-content: flex-start;
  margin-left: 0;
  margin-right: 0;
  padding-left: calc((100% - 1320px) / 2);
  gap: 8px;
}

@media (max-width: 1399.98px) {
  .gov-carousel .carousel-indicators {
    padding-left: calc((100% - 1140px) / 2);
  }
}
@media (max-width: 1199.98px) {
  .gov-carousel .carousel-indicators {
    padding-left: calc((100% - 960px) / 2);
  }
}
@media (max-width: 991.98px) {
  .gov-carousel .carousel-indicators {
    padding-left: calc((100% - 720px) / 2);
  }
}
@media (max-width: 767.98px) {
  .gov-carousel .carousel-indicators {
    padding-left: 15px;
  }
}

.gov-carousel .carousel-indicators [data-bs-target] {
  width: 32px;
  height: 6px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  opacity: 1;
  transition: all 0.3s ease;
}

.gov-carousel .carousel-indicators .active {
  background-color: var(--gov-accent-saffron);
  width: 48px;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 26, 51, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 5;
  transition: all 0.2s;
  cursor: pointer;
}

.slider-nav-btn:hover {
  background: var(--gov-accent-saffron);
  color: #001A33;
  border-color: var(--gov-accent-saffron);
}

.slider-nav-prev { left: 24px; }
.slider-nav-next { right: 24px; }

.slider-pause-ctrl {
  position: absolute;
  bottom: 14px;
  right: 24px;
  z-index: 6;
  background: rgba(0, 26, 51, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #CBD5E1;
  border-radius: var(--gov-radius-pill);
  padding: 4px 12px;
  font-size: var(--site-content-font-size, 14px);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.slider-pause-ctrl:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

@media (max-width: 767.98px) {
  .gov-carousel .carousel-item {
    height: 520px;
  }
  .slider-title {
    font-size: var(--site-title-font-size, 16px);
  }
  .slider-lead {
    font-size: var(--site-content-font-size, 14px);
  }
  .slider-nav-btn {
    display: none;
  }
}

/* ==========================================================================
   HERO / DEPARTMENT INTRODUCTION SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #072340 0%, #0A3663 60%, #0F4982 100%);
  color: #FFFFFF;
  padding: 60px 0 70px;
  overflow: hidden;
}

.hero-pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-badge {
  background: rgba(255, 153, 51, 0.15);
  border: 1px solid rgba(255, 153, 51, 0.4);
  color: #FFB366;
  font-size: var(--site-content-font-size, 14px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--gov-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-title {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-top: 14px;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: var(--site-content-font-size, 14px);
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-btn-primary {
  background: var(--gov-accent-saffron);
  color: #001A33;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--gov-radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--gov-accent-saffron);
  box-shadow: 0 4px 14px rgba(255, 153, 51, 0.35);
  transition: all 0.2s;
}

.hero-btn-primary:hover {
  background: #F5871F;
  color: #000000;
  border-color: #F5871F;
  transform: translateY(-2px);
}

.hero-btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--gov-radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
}

.hero-btn-outline:hover {
  background: #FFFFFF;
  color: var(--gov-primary);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.hero-visual-card {
  position: relative;
  border-radius: var(--gov-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 15, 35, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #001C3D;
}

.hero-visual-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-card-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(7, 35, 64, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--gov-radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   QUICK ACCESS SECTION
   ========================================================================== */
.quick-access-section {
  margin-top: -36px;
  position: relative;
  z-index: 10;
}

.quick-card {
  background: #FFFFFF;
  border: 1px solid var(--gov-card-border);
  border-radius: var(--gov-radius-md);
  padding: 20px 18px;
  transition: all 0.22s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--gov-shadow-subtle);
  position: relative;
}

.quick-card:hover {
  border-color: var(--gov-primary-light);
  transform: translateY(-4px);
  box-shadow: var(--gov-shadow-card);
}

.quick-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--gov-radius-md);
  background: var(--gov-bg-subtle);
  color: var(--gov-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
  transition: all 0.2s;
}

.quick-card:hover .quick-icon-wrap {
  background: var(--gov-primary);
  color: #FFFFFF;
}

.quick-title {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 700;
  color: var(--gov-text-heading);
  margin-bottom: 6px;
}

.quick-desc {
  font-size: var(--site-content-font-size, 14px);
  color: var(--gov-text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
  line-height: 1.45;
}

.quick-link-action {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 700;
  color: var(--gov-primary-light);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.quick-card:hover .quick-link-action {
  color: var(--gov-primary-dark);
}

/* ==========================================================================
   SECTION COMMON STYLING
   ========================================================================== */
.section-padding {
  padding: 70px 0;
}

.section-tag {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gov-primary-light);
  background: var(--gov-bg-subtle);
  padding: 4px 12px;
  border-radius: var(--gov-radius-pill);
  display: inline-block;
  margin-bottom: 10px;
}

.section-title {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 800;
  color: var(--gov-text-heading);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: var(--site-content-font-size, 14px);
  color: var(--gov-text-muted);
  //max-width: 680px;
}

/* ==========================================================================
   ABOUT THE DEPARTMENT SECTION
   ========================================================================== */
.about-dept-section {
  background-color: #FFFFFF;
}

/* About Section Learn More Button (#0A3663) */
.about-dept-section .btn-primary {
  background-color: #0A3663 !important;
  border-color: #0A3663 !important;
  color: #FFFFFF !important;
  transition: all 0.25s ease-in-out;
}

.about-dept-section .btn-primary:hover {
  background-color: #002244 !important;
  border-color: #002244 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 54, 99, 0.25);
}

.about-dept-section .btn-primary:focus,
.about-dept-section .btn-primary:focus-visible {
  background-color: #002244 !important;
  border-color: #002244 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 0.25rem rgba(10, 54, 99, 0.4) !important;
  outline: none !important;
}

.about-dept-section .btn-primary:active {
  background-color: #001A33 !important;
  border-color: #001A33 !important;
  color: #FFFFFF !important;
  transform: translateY(0);
}

.org-hierarchy-card {
  background: var(--gov-bg-light);
  border: 1px solid var(--gov-card-border);
  border-radius: var(--gov-radius-lg);
  padding: 24px;
  position: relative;
}

.hierarchy-node {
  background: #FFFFFF;
  border: 1px solid var(--gov-card-border);
  border-radius: var(--gov-radius-md);
  padding: 14px 18px;
  box-shadow: var(--gov-shadow-subtle);
  transition: all 0.2s;
  position: relative;
}

.hierarchy-node:hover {
  border-color: var(--gov-primary-light);
  box-shadow: var(--gov-shadow-card);
}

.hierarchy-node.level-top {
  border-left: 4px solid var(--gov-accent-saffron);
}

.hierarchy-node.level-dept {
  border-left: 4px solid var(--gov-primary);
  background: #F8FAFC;
}

.hierarchy-node.level-board-cbdt {
  border-left: 4px solid #0A3663;
}

.hierarchy-node.level-board-cbic {
  border-left: 4px solid #002244;
}

.hierarchy-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gov-text-muted);
  font-size: 1.2rem;
  padding: 8px 0;
}
/* ==========================================================================
   TRIBUNAL PERFORMANCE & DISPOSAL METRICS BANNER
   ========================================================================== */
.tribunal-stats-banner {
  background-color: #04162e;
  border-top: 3px solid #d4af37;
  border-bottom: 3px solid #d4af37;
  padding: 42px 0;
  position: relative;
}

.stat-counter-box {
  padding: 8px 12px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #f6c034;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.stat-label {
  color: #FFFFFF;
  font-size: var(--site-content-font-size, 14px);
  font-weight: 600;
  letter-spacing: 0.2px;
  margin: 0;
}

@media (max-width: 767px) {
  .tribunal-stats-banner {
    padding: 32px 0;
  }
  .stat-number {
    font-size: 1.85rem;
  }
  .stat-label {
    font-size: var(--site-content-font-size, 14px);
  }
}

/* ==========================================================================
   APPEAL WORKFLOW (5-STAGE PROCESS)
   ========================================================================== */
.workflow-section {
  background: linear-gradient(180deg, #F1F6FC 0%, #E6EFF8 100%);
  border-top: 1px solid #DFE7F1;
  border-bottom: 1px solid #DFE7F1;
  position: relative;
}

.workflow-card {
  background: #FFFFFF;
  border: 1px solid var(--gov-card-border);
  border-radius: var(--gov-radius-md);
  padding: 30px 18px 24px;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.workflow-card:hover {
  border-color: var(--gov-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(10, 54, 99, 0.1);
}

.workflow-step-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gov-primary-dark);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 34, 68, 0.2);
  transition: transform 0.25s ease, background 0.25s ease;
}

.workflow-card:hover .workflow-step-badge {
  background: var(--gov-primary);
  transform: scale(1.08);
}

.workflow-title {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 700;
  color: var(--gov-text-heading);
  margin-bottom: 12px;
  line-height: 1.35;
}

.workflow-desc {
  font-size: var(--site-content-font-size, 14px);
  color: var(--gov-text-muted);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

/* ==========================================================================
   KEY AREAS / FUNCTIONS
   ========================================================================== */
.areas-section {
  background-color: var(--gov-bg-light);
}

.area-card {
  background: #FFFFFF;
  border: 1px solid var(--gov-card-border);
  border-radius: var(--gov-radius-lg);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.area-card:hover {
  border-color: var(--gov-primary);
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(10, 54, 99, 0.12);
}

.area-image-box {
  width: 100%;
  height: 190px;
  overflow: hidden;
  position: relative;
  background: #EBF4FC;
}

.area-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.area-card:hover .area-card-img {
  transform: scale(1.06);
}

.area-card-body {
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  min-height: 110px;
}

.area-title {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--gov-text-heading);
  line-height: 1.35;
}

.area-desc {
  font-size: var(--site-content-font-size, 14px);
  color: var(--gov-text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.area-link {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 700;
  color: var(--gov-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.area-card:hover .area-link {
  color: var(--gov-primary-light);
  gap: 10px;
}

/* ==========================================================================
   STATUTORY BOARDS (CBDT & CBIC)
   ========================================================================== */
.boards-section {
  background-color: #FFFFFF;
}

.board-card {
  background: #FFFFFF;
  border: 1px solid var(--gov-card-border);
  border-radius: var(--gov-radius-lg);
  padding: 32px 28px;
  box-shadow: var(--gov-shadow-subtle);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.board-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.board-card.cbdt-card::before {
  background: linear-gradient(90deg, #0A3663, #1D5D9B);
}

.board-card.cbic-card::before {
  background: linear-gradient(90deg, #002244, #FF9933);
}

.board-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gov-shadow-hover);
  border-color: var(--gov-primary-light);
}

.board-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}

.board-logo-wrap svg,
.board-logo-wrap img {
  width: 100%;
  height: 100%;
}

.board-badge {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.board-badge-cbdt {
  background: #EFF6FF;
  color: #1D4ED8;
}

.board-badge-cbic {
  background: #FFF7ED;
  color: #C2410C;
}

.board-title {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 800;
  margin-bottom: 6px;
}

.board-subtitle {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 600;
  color: var(--gov-text-muted);
  margin-bottom: 14px;
}

.board-feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
}

.board-feature-list li {
  font-size: var(--site-content-font-size, 14px);
  color: var(--gov-text-body);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-feature-list li i {
  color: var(--gov-primary-light);
  font-size: 1rem;
}

/* ==========================================================================
   CITIZEN & TAXPAYER SERVICES
   ========================================================================== */
.services-section {
  background-color: var(--gov-bg-subtle);
  position: relative;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--gov-card-border);
  border-radius: var(--gov-radius-md);
  padding: 22px 18px;
  height: 100%;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
  border-color: var(--gov-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10, 54, 99, 0.12);
}

.service-badge-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: var(--site-content-font-size, 14px);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
}

.service-badge-direct {
  background: #EFF6FF;
  color: #1D4ED8;
}

.service-badge-indirect {
  background: #F0FDF4;
  color: #15803D;
}

.service-badge-common {
  background: #FFF7ED;
  color: #C2410C;
}

.service-icon {
  font-size: 1.75rem;
  color: var(--gov-primary);
  margin-bottom: 12px;
}

.service-title {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 700;
  color: var(--gov-text-heading);
  margin-bottom: 6px;
}

.service-desc {
  font-size: var(--site-content-font-size, 14px);
  color: var(--gov-text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex-grow: 1;
}

.service-action-btn {
  background: var(--gov-bg-light);
  color: var(--gov-primary);
  font-weight: 600;
  font-size: var(--site-content-font-size, 14px);
  padding: 8px 14px;
  border-radius: var(--gov-radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--gov-card-border);
  transition: all 0.15s;
}

.service-card:hover .service-action-btn {
  background: var(--gov-primary);
  color: #FFFFFF;
  border-color: var(--gov-primary);
}

/* ==========================================================================
   WHAT'S NEW (TABBED SEGMENTS)
   ========================================================================== */
.whats-new-section {
  background: #FFFFFF;
}

.news-tab-nav {
  border-bottom: 2px solid var(--gov-card-border);
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 2px;
}

.news-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--gov-text-muted);
  font-weight: 600;
  font-size: var(--site-content-font-size, 14px);
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.news-tab-btn:hover {
  color: var(--gov-primary);
}

.news-tab-btn.active {
  color: var(--gov-primary);
  border-bottom-color: var(--gov-primary);
  font-weight: 700;
}

.news-item-card {
  background: #FFFFFF;
  border: 1px solid var(--gov-card-border);
  border-radius: var(--gov-radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.news-item-card:hover {
  border-color: var(--gov-primary-light);
  background-color: var(--gov-bg-light);
}

.news-date-badge {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: var(--gov-radius-sm);
  padding: 6px 10px;
  text-align: center;
  min-width: 65px;
  flex-shrink: 0;
}

.news-date-day {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 800;
  color: var(--gov-primary);
  line-height: 1;
}

.news-date-month {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 700;
  color: var(--gov-text-muted);
  text-transform: uppercase;
}

.news-cat-pill {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.news-title-link {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 600;
  color: var(--gov-text-heading);
  display: block;
  line-height: 1.4;
}

.news-title-link:hover {
  color: var(--gov-primary);
}

.news-download-btn {
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: var(--gov-primary);
  padding: 6px 12px;
  border-radius: var(--gov-radius-sm);
  font-size: var(--site-content-font-size, 14px);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.news-download-btn:hover {
  background: var(--gov-primary);
  color: #FFFFFF;
}

/* ==========================================================================
   IMPORTANT NOTICES / ANNOUNCEMENT TICKER
   ========================================================================== */
.notice-strip-section {
  background: linear-gradient(90deg, #001C3D 0%, #0A3663 100%);
  color: #FFFFFF;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notice-heading-badge {
  background: var(--gov-accent-saffron);
  color: #001A33;
  font-weight: 800;
  font-size: var(--site-content-font-size, 14px);
  padding: 6px 14px;
  border-radius: var(--gov-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.notice-ticker-wrap {
  overflow: hidden;
  position: relative;
}

.notice-ticker-list {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
}

.notice-ticker-list.paused {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.notice-ticker-item {
  color: #E2E8F0;
  font-size: var(--site-content-font-size, 14px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notice-ticker-item:hover {
  color: #FFFFFF;
}

.notice-control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--site-content-font-size, 14px);
  cursor: pointer;
  transition: all 0.2s;
}

.notice-control-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   LEADERSHIP SECTION
   ========================================================================== */
.leadership-section {
  background-color: var(--gov-bg-light);
}

.leader-card {
  background: #FFFFFF;
  border: 1px solid var(--gov-card-border);
  border-radius: var(--gov-radius-lg);
  overflow: hidden;
  box-shadow: var(--gov-shadow-subtle);
  transition: all 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-leader-card {
  width: 100%;
  max-width: 380px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gov-shadow-hover);
  border-color: var(--gov-primary-light);
}

.leader-img-wrap {
  width: 100%;
  height: 260px;
  background-color: #E2E8F0;
  overflow: hidden;
  position: relative;
}

.about-leader-card .leader-img-wrap {
  flex: 1 1 auto;
  min-height: 300px;
  width: 100%;
  background-color: #E2E8F0;
  overflow: hidden;
  position: relative;
}

.about-leader-card .leader-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-leader-card .leader-body {
  padding: 10px 18px 0px;
  flex-grow: 0;
  flex-shrink: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.about-leader-card .leader-tag {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gov-primary);
  background: var(--gov-bg-subtle);
  padding: 2px 8px;
  border-radius: var(--gov-radius-pill);
  display: inline-block;
  margin: 0 auto 6px;
}

.about-leader-card .leader-name {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 800;
  color: var(--gov-text-heading);
  margin-bottom: 2px;
}

.about-leader-card .leader-designation {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 600;
  color: var(--gov-text-muted);
  margin-bottom: 8px;
}

.about-leader-card .leader-dept {
  font-size: var(--site-content-font-size, 14px);
  color: var(--gov-text-body);
  border-top: 1px solid var(--gov-card-border);
  padding-top: 8px;
  margin-top: 0;
}

@media (max-width: 991.98px) {
  .about-leader-card {
    height: auto;
    max-width: 340px;
    margin-top: 24px;
  }
  .about-leader-card .leader-img-wrap {
    height: 240px;
  }
}

.leader-img-wrap img,
.leader-img-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.leader-card:hover .leader-img-wrap img {
  transform: scale(1.03);
}

.leader-body {
  padding: 22px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.leader-tag {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gov-primary);
  background: var(--gov-bg-subtle);
  padding: 3px 10px;
  border-radius: var(--gov-radius-pill);
  display: inline-block;
  margin: 0 auto 10px;
}

.leader-name {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 800;
  color: var(--gov-text-heading);
  margin-bottom: 4px;
}

.leader-designation {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 600;
  color: var(--gov-text-muted);
  margin-bottom: 12px;
}

.leader-dept {
  font-size: var(--site-content-font-size, 14px);
  color: var(--gov-text-body);
  border-top: 1px solid var(--gov-card-border);
  padding-top: 12px;
  margin-top: auto;
}

/* ==========================================================================
   STATISTICS / DIGITAL FOOTPRINT
   ========================================================================== */
.stats-section {
  background: linear-gradient(135deg, #0A3663 0%, #001C3D 100%);
  color: #FFFFFF;
  padding: 60px 0;
  position: relative;
}

.stat-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--gov-radius-md);
  padding: 26px 20px;
  text-align: center;
  transition: all 0.2s;
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: rgba(255, 153, 51, 0.4);
}

.stat-icon {
  font-size: 2rem;
  color: var(--gov-accent-saffron);
  margin-bottom: 12px;
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 600;
  color: #CBD5E1;
  line-height: 1.35;
}

/* ==========================================================================
   MEDIA & GALLERY
   ========================================================================== */
.gallery-section {
  background-color: #FFFFFF;
}

.gallery-card {
  border-radius: var(--gov-radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--gov-shadow-subtle);
  cursor: pointer;
  background: #001C3D;
  height: 220px;
}

.gallery-card img,
.gallery-card svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover img,
.gallery-card:hover svg {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 24, 48, 0.85) 0%, rgba(0, 24, 48, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #FFFFFF;
  transition: all 0.2s;
}

.gallery-overlay-badge {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 700;
  background: rgba(255, 153, 51, 0.9);
  color: #000000;
  padding: 2px 7px;
  border-radius: 3px;
  align-self: flex-start;
  margin-bottom: 6px;
}

.gallery-overlay-title {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.3;
}

/* ==========================================================================
   IMPORTANT LINKS SECTION
   ========================================================================== */
.links-section {
  background-color: var(--gov-bg-light);
}

.gov-link-tile {
  background: #FFFFFF;
  border: 1px solid var(--gov-card-border);
  border-radius: var(--gov-radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
  color: var(--gov-text-heading);
  font-weight: 600;
  font-size: var(--site-content-font-size, 14px);
  box-shadow: var(--gov-shadow-subtle);
}

.gov-link-tile:hover {
  border-color: var(--gov-primary-light);
  color: var(--gov-primary);
  transform: translateY(-2px);
  box-shadow: var(--gov-shadow-card);
}

.gov-link-tile i {
  color: var(--gov-primary-light);
  font-size: 1.1rem;
}

/* ==========================================================================
   COMPREHENSIVE GOVERNMENT FOOTER
   ========================================================================== */
.gov-footer {
  background-color: #001A33;
  color: #CBD5E1;
  font-size: var(--site-content-font-size, 14px);
  border-top: 4px solid var(--gov-accent-saffron);
}

.footer-top {
  padding: 60px 0 40px;
}

.footer-col-title {
  color: #FFFFFF;
  font-size: var(--site-title-font-size, 16px);
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 8px;
  position: relative;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--gov-accent-saffron);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: #94A3B8;
  font-size: var(--site-content-font-size, 14px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-badge-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--gov-radius-sm);
  padding: 10px 14px;
  margin-bottom: 10px;
}

.footer-bottom {
  background-color: #001124;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: var(--site-content-font-size, 14px);
  color: #8492A6;
}

/* ==========================================================================
   HIGH CONTRAST MODE (WCAG AAA)
   ========================================================================== */
body.high-contrast {
  --gov-primary: #FFFF00;
  --gov-primary-dark: #000000;
  --gov-primary-light: #FFFF00;
  --gov-secondary: #000000;
  --gov-bg-main: #000000;
  --gov-bg-light: #121212;
  --gov-bg-subtle: #181818;
  --gov-card-bg: #1A1A1A;
  --gov-card-border: #FFFF00;
  --gov-text-heading: #FFFFFF;
  --gov-text-body: #EEEEEE;
  --gov-text-muted: #CCCCCC;
  background-color: #000000 !important;
  color: #FFFFFF !important;
}

body.high-contrast a {
  color: #FFFF00 !important;
}

body.high-contrast .main-header,
body.high-contrast .quick-card,
body.high-contrast .area-card,
body.high-contrast .board-card,
body.high-contrast .service-card,
body.high-contrast .leader-card,
body.high-contrast .hierarchy-node,
body.high-contrast .gov-link-tile,
body.high-contrast .news-item-card {
  background-color: #121212 !important;
  border-color: #FFFF00 !important;
  color: #FFFFFF !important;
}

body.high-contrast .section-title,
body.high-contrast .quick-title,
body.high-contrast .area-title,
body.high-contrast .board-title,
body.high-contrast .service-title,
body.high-contrast .leader-name,
body.high-contrast .news-title-link {
  color: #FFFF00 !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-title {
  font-size: var(--site-title-font-size, 16px);
  }
  
  .hero-visual-card {
    margin-top: 30px;
  }
  
  .quick-access-section {
    margin-top: 20px;
  }

  .primary-navbar .nav-link {
    padding: 10px 14px !important;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .primary-navbar .nav-link:hover,
  .primary-navbar .nav-item.active .nav-link {
    border-left-color: var(--gov-accent-saffron);
  }
}

@media (max-width: 575.98px) {
  .gov-title-group {
    padding-left: 8px;
  }
  
  .gov-main-title {
    font-size: var(--site-title-font-size, 16px);
  }

  .hero-title {
    font-size: var(--site-title-font-size, 16px);
  }

  .section-title {
    font-size: var(--site-title-font-size, 16px);
  }

  .hero-btn-primary,
  .hero-btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* Print Styles */
@media print {
  .top-utility-bar,
  .primary-navbar,
  .notice-strip-section,
  .header-search-btn,
  .btn,
  .skip-to-main {
    display: none !important;
  }
  
  body {
    background: #FFF;
    color: #000;
  }
}

/* =====================================================
   REUSABLE INNER PAGE STYLING - APPELLATE TRIBUNAL
   ===================================================== */
.inner-page-banner {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  padding: 2.25rem 0 !important;
  box-shadow: inset 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.inner-page-banner .breadcrumb {
  --bs-breadcrumb-divider: '›';
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.55);
  font-size: var(--site-content-font-size, 14px);
}

.inner-page-banner .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.inner-page-banner .breadcrumb-item a:hover {
  color: #ffb703;
  text-decoration: underline !important;
}

.inner-page-banner .breadcrumb-item,
.inner-page-banner .breadcrumb-item span {
  color: rgba(255, 255, 255, 0.75);
}

.inner-page-banner .breadcrumb-item.active {
  color: #ffffff;
  font-weight: 500;
}

.inner-page-main {
  background-color: #ffffff;
  padding-top: 2rem !important;
  padding-bottom: 4rem !important;
  min-height: 500px;
}

.highlighted-region:empty,
.highlighted-region:has([data-drupal-messages-fallback].hidden),
.highlighted-region:has(.hidden:only-child) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.highlighted-region:has(.messages) {
  margin-bottom: 1.5rem !important;
}

.inner-page-content-box {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Prose formatting for dynamic body content */
.content-body-prose {
  font-size: var(--site-content-font-size, 14px);
  line-height: 1.75;
  color: #334155;
}

.content-body-prose h2 {
  color: #0b2545;
  font-weight: 700;
  font-size: var(--site-title-font-size, 16px);
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.content-body-prose h3 {
  color: #134074;
  font-weight: 600;
  font-size: var(--site-title-font-size, 16px);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-body-prose h4 {
  color: #334155;
  font-weight: 600;
  font-size: var(--site-title-font-size, 16px);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.content-body-prose p {
  margin-bottom: 1.25rem;
}

.content-body-prose ul,
.content-body-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.content-body-prose li {
  margin-bottom: 0.5rem;
}

.content-body-prose blockquote {
  border-left: 4px solid #134074;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background-color: #f1f5f9;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #475569;
}

.content-body-prose table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}

.content-body-prose table th,
.content-body-prose table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
}

.content-body-prose table th {
  background-color: #f8fafc;
  color: #0b2545;
  font-weight: 600;
}

/* Image styling */
.inner-page-media-card img,
.inner-page-full-image img {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.image-caption {
  font-size: var(--site-content-font-size, 14px);
  color: #64748b;
}

/* Document download cards */
.document-download-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}

.document-download-card:hover {
  background: #ffffff;
  border-color: #ffb703;
  box-shadow: 0 6px 16px rgba(11, 37, 69, 0.12);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .inner-page-banner {
    padding: 2.5rem 0;
  }
  .inner-page-banner .page-title {
  font-size: var(--site-title-font-size, 16px) !important;
  }
  .inner-page-content-box {
    padding: 0 !important;
  }
  .inner-page-media-card {
    position: static !important;
    margin-bottom: 1.5rem;
  }
}

/* ==========================================================================
   Appellate Tribunal - Judgements & Orders Search Interface
   ========================================================================== */

.case-search-wrapper {
  max-width: 1060px;
  margin: 0.5rem 0 2rem 0;
  font-family: var(--font-primary, 'Poppins', sans-serif);
}

.case-search-intro-text {
  font-size: var(--site-content-font-size, 14px);
  color: #334155;
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.case-search-form-container {
  display: flex;
  flex-direction: column;
}

.case-search-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 0;
  gap: 12px;
}

.case-search-label {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}

.case-search-label label {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0;
  line-height: 1.4;
  cursor: pointer;
  display: block;
}

.case-search-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
}

.case-search-fields {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  max-width: 820px;
}

.case-search-fields .field-item {
  position: relative;
}

.case-search-fields .field-act-type {
  width: 250px;
  flex-shrink: 0;
}

.case-search-fields .field-party-case {
  flex: 1 1 auto;
  min-width: 220px;
}

.case-search-fields .field-day {
  width: 130px;
  flex-shrink: 0;
}

.case-search-fields .field-month {
  width: 170px;
  flex-shrink: 0;
}

.case-search-fields .field-year {
  width: 140px;
  flex-shrink: 0;
}

.case-search-fields .field-member-name {
  flex: 1 1 auto;
  min-width: 220px;
}

/* Input text fields */
.case-search-input {
  width: 100%;
  height: 44px;
  padding: 8px 16px;
  font-size: var(--site-content-font-size, 14px);
  font-weight: 400;
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.case-search-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.case-search-input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.45);
}

/* Custom select dropdown */
.case-search-select {
  width: 100%;
  height: 44px;
  padding: 8px 38px 8px 16px;
  font-size: var(--site-content-font-size, 14px);
  font-weight: 400;
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.case-search-select:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.5);
}

/* Search Action Button */
.case-search-action {
  flex: 0 0 135px;
  margin-left: 0;
}

.case-search-btn {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1.5px solid #64748b;
  border-radius: 6px;
  color: #475569;
  font-size: var(--site-content-font-size, 14px);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.case-search-btn:hover {
  background-color: #f8fafc;
  border-color: #334155;
  color: #0f172a;
}

.case-search-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.25);
}

.case-search-btn:active {
  background-color: #f1f5f9;
  transform: translateY(1px);
}

/* Row divider */
.case-search-divider {
  width: 100%;
  height: 1px;
  background-color: #e2e8f0;
  margin: 24px 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .case-search-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .case-search-fields {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .case-search-fields .field-act-type,
  .case-search-fields .field-party-case,
  .case-search-fields .field-member-name {
    width: 100%;
    flex: 1 1 100%;
  }
  .case-search-fields .field-day,
  .case-search-fields .field-month,
  .case-search-fields .field-year {
    flex: 1 1 calc(33.333% - 12px);
    width: auto;
  }
  .case-search-action {
    flex: 0 0 auto;
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .case-search-fields .field-day,
  .case-search-fields .field-month,
  .case-search-fields .field-year {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ==========================================================================
   Appellate Tribunal - Former Chairman & Members Tables
   ========================================================================== */

.table-header-navy th {
  background-color: #0A3663 !important;
  color: #ffffff !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--site-content-font-size, 14px);
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 2px solid #002244;
}

.former-members-table tbody tr td {
  padding: 13px 16px;
  font-size: var(--site-content-font-size, 14px);
  border-color: #e2e8f0;
}

.former-members-table tbody tr:hover {
  background-color: #f1f5f9;
}

/* ==========================================================================
   Appellate Tribunal - Dynamic Vacancy Circular Table
   ========================================================================== */

.vacancy-circular-table thead th {
  background-color: #0A3663 !important;
  color: #ffffff !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--site-content-font-size, 14px);
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 2px solid #002244;
}

.vacancy-circular-table tbody tr td {
  padding: 13px 16px;
  font-size: var(--site-content-font-size, 14px);
  border-color: #e2e8f0;
  vertical-align: middle;
}

.vacancy-circular-table tbody tr:hover {
  background-color: #f8fafc;
}

.vacancy-toolbar {
  background: transparent;
}

.vacancy-toolbar .form-control:focus,
.vacancy-toolbar .form-select:focus {
  border-color: #0A3663;
  box-shadow: 0 0 0 0.2rem rgba(10, 54, 99, 0.15);
}

.vacancy-badge-size {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
  font-size: var(--site-content-font-size, 14px);
  letter-spacing: 0.2px;
}

.vacancy-download-link {
  border-color: #0A3663 !important;
  color: #0A3663 !important;
  font-weight: 500;
  font-size: var(--site-content-font-size, 14px);
  transition: all 0.2s ease-in-out;
}

.vacancy-download-link:hover {
  background-color: #0A3663 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(10, 54, 99, 0.25);
  transform: translateY(-1px);
}

.vacancy-footer .pagination .page-item .page-link {
  color: #0A3663;
  border-color: #dee2e6;
  font-weight: 500;
  padding: 6px 12px;
  min-width: 36px;
  text-align: center;
}

.vacancy-footer .pagination .page-item.active .page-link {
  background-color: #0A3663 !important;
  border-color: #0A3663 !important;
  color: #ffffff !important;
}

.vacancy-footer .pagination .page-item.disabled .page-link {
  color: #94a3b8;
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

.vacancy-cell-notice {
  color: #0A3663;
  font-size: var(--site-content-font-size, 14px);
}

/* ==========================================================================
   Appellate Tribunal - Dynamic Court Notices Table
   ========================================================================== */

.court-notices-table thead th {
  background-color: #0A3663 !important;
  color: #ffffff !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--site-content-font-size, 14px);
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 2px solid #002244;
}

.court-notices-table tbody tr td {
  padding: 13px 16px;
  font-size: var(--site-content-font-size, 14px);
  border-color: #e2e8f0;
  vertical-align: middle;
}

.court-notices-table tbody tr:hover {
  background-color: #f8fafc;
}

.court-notices-toolbar {
  background: transparent;
}

.court-notices-toolbar .form-control:focus,
.court-notices-toolbar .form-select:focus {
  border-color: #0A3663;
  box-shadow: 0 0 0 0.2rem rgba(10, 54, 99, 0.15);
}

.court-notice-badge-size {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
  font-size: var(--site-content-font-size, 14px);
  letter-spacing: 0.2px;
}

.court-notice-download-link {
  border-color: #0A3663 !important;
  color: #0A3663 !important;
  font-weight: 500;
  font-size: var(--site-content-font-size, 14px);
  transition: all 0.2s ease-in-out;
}

.court-notice-download-link:hover {
  background-color: #0A3663 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(10, 54, 99, 0.25);
  transform: translateY(-1px);
}

.court-notices-footer .pagination .page-item .page-link {
  color: #0A3663;
  border-color: #dee2e6;
  font-weight: 500;
  padding: 6px 12px;
  min-width: 36px;
  text-align: center;
}

.court-notices-footer .pagination .page-item.active .page-link {
  background-color: #0A3663 !important;
  border-color: #0A3663 !important;
  color: #ffffff !important;
}

.court-notices-footer .pagination .page-item.disabled .page-link {
  color: #94a3b8;
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

/* ==========================================================================
   SITTING CHAIRMAN & MEMBERS PAGE
   ========================================================================== */
.sitting-members-container {
  width: 100%;
}

.sitting-section-title {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 800;
  color: #0A3663;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.sitting-title-divider {
  width: 50px;
  height: 3px;
  background: #D97706;
  border-radius: 2px;
  margin-top: 10px;
}

.sitting-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sitting-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px -4px rgba(10, 54, 99, 0.12), 0 6px 12px -2px rgba(0, 0, 0, 0.04);
  border-color: #93C5FD;
}

.sitting-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 280px;
  background-color: #F0F0F0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sitting-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background-color: #F0F0F0;
  transition: transform 0.35s ease;
  display: block;
}

.sitting-card:hover .sitting-card-img {
  transform: scale(1.03);
}

.sitting-card-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F0F0F0;
  color: #94A3B8;
  font-size: 4rem;
}

.sitting-card-body {
  padding: 18px 16px 20px;
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.sitting-card-name {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
  line-height: 1.35;
}

.sitting-card-designation {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 600;
  color: #0A3663;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* Specific styling for Chairman card to give it an authoritative presence */
.sitting-card-chairman {
  max-width: 360px;
  margin: 0 auto;
}

.sitting-card-chairman .sitting-card-name {
  font-size: var(--site-title-font-size, 16px);
}

.sitting-card-chairman .sitting-card-designation {
  color: #D97706;
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (max-width: 767.98px) {
  .sitting-section-title {
    font-size: var(--site-title-font-size, 16px);
  }
  .sitting-card-img-wrap {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}


/* ==========================================================================
   Appellate Tribunal - Dynamic Cause List & Archive Cause List Table
   ========================================================================== */

.cause-list-table thead th {
  background-color: #0A3663 !important;
  color: #ffffff !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--site-content-font-size, 14px);
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 2px solid #002244;
}

.cause-list-table tbody tr td {
  padding: 13px 16px;
  font-size: var(--site-content-font-size, 14px);
  border-color: #e2e8f0;
  vertical-align: middle;
}

.cause-list-table tbody tr:hover {
  background-color: #f8fafc;
}

.cause-list-title-text {
  word-break: break-word;
  line-height: 1.45;
}

.cause-list-toolbar {
  background: transparent;
}

.cause-list-toolbar .form-control:focus,
.cause-list-toolbar .form-select:focus {
  border-color: #0A3663;
  box-shadow: 0 0 0 0.2rem rgba(10, 54, 99, 0.15);
}

.cause-list-badge-size {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
  font-size: var(--site-content-font-size, 14px);
  letter-spacing: 0.2px;
}

.cause-list-view-link {
  border-color: #0A3663 !important;
  color: #0A3663 !important;
  font-weight: 500;
  font-size: var(--site-content-font-size, 14px);
  transition: all 0.2s ease-in-out;
}

.cause-list-view-link:hover,
.cause-list-view-link:focus-visible {
  background-color: #0A3663 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(10, 54, 99, 0.25);
  transform: translateY(-1px);
}

.cause-list-view-link:hover i,
.cause-list-view-link:focus-visible i {
  color: #ffffff !important;
}

.cause-list-tab-btn {
  border: 1.5px solid #0A3663;
  background-color: #ffffff;
  color: #0A3663;
  transition: all 0.2s ease-in-out;
}

.cause-list-tab-btn .cause-list-count-pill {
  background-color: #e2e8f0;
  color: #0A3663;
  font-weight: 700;
}

.cause-list-tab-btn:hover {
  background-color: #f1f5f9;
  color: #0A3663;
}

.cause-list-tab-btn.active {
  background-color: #0A3663 !important;
  border-color: #0A3663 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(10, 54, 99, 0.25);
}

.cause-list-tab-btn.active .cause-list-count-pill {
  background-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.cause-list-footer .pagination .page-item .page-link {
  color: #0A3663;
  border-color: #dee2e6;
  font-weight: 500;
  padding: 6px 12px;
  min-width: 36px;
  text-align: center;
}

.cause-list-footer .pagination .page-item.active .page-link {
  background-color: #0A3663 !important;
  border-color: #0A3663 !important;
  color: #ffffff !important;
}

.cause-list-footer .pagination .page-item.disabled .page-link {
  color: #94a3b8;
  background-color: #f8fafc;
  border-color: #e2e8f0;
}


/* Ensure Cause List count pills are hidden */
#causeListActiveViewBadge,
#badgeCurrentCount,
#badgeArchiveCount,
.cause-list-count-pill {
  display: none !important;
}


/* View PDF button styles for Vacancy and Court Notices tables */
.vacancy-view-link,
.court-notice-view-link {
  border-color: #0A3663 !important;
  color: #0A3663 !important;
  font-weight: 500;
  font-size: var(--site-content-font-size, 14px);
  transition: all 0.2s ease-in-out;
}

.vacancy-view-link:hover,
.vacancy-view-link:focus-visible,
.court-notice-view-link:hover,
.court-notice-view-link:focus-visible {
  background-color: #0A3663 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(10, 54, 99, 0.25);
  transform: translateY(-1px);
}

.vacancy-view-link:hover i,
.vacancy-view-link:focus-visible i,
.court-notice-view-link:hover i,
.court-notice-view-link:focus-visible i {
  color: #ffffff !important;
}


/* ==========================================================================
   IMPORTANT GOVERNMENT LINKS CARDS
   ========================================================================== */
.portal-link-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  text-decoration: none !important;
  color: #0f172a;
  transition: all 0.25s ease-in-out;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.portal-link-card:hover {
  border-color: #0A3663;
  box-shadow: 0 10px 20px -3px rgba(10, 54, 99, 0.1), 0 4px 6px -2px rgba(10, 54, 99, 0.04);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.portal-emblem-wrap {
  width: 38px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portal-emblem-img {
  max-width: 100%;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.portal-info-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.portal-card-title {
  font-size: var(--site-title-font-size, 16px);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.portal-link-card:hover .portal-card-title {
  color: #0A3663;
}

.portal-card-domain {
  font-size: var(--site-content-font-size, 14px);
  font-weight: 400;
  color: #64748b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === ACCESSIBILITY UNIFIED SUITE === */
@import url("accessibility.css");

/* =========================================================================
   ACCESSIBILITY STYLESHEET (UNIFIED ACROSS ALL 4 SITES)
   - Skip to Main Content target styling & focus indicators
   - 5-Level Font Resizing (-2, -1, 0, +1, +2) excluding Topbar & Header
   - High Contrast Dark Palette (#121212, #1E1E1E, #252525, #F5F5F5)
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. SKIP TO MAIN CONTENT TARGET & ACCESSIBLE FOCUS
   ------------------------------------------------------------------------- */
#main-content,
#mainContent,
main[tabindex="-1"] {
  scroll-margin-top: 110px !important;
  outline: none !important;
}

#main-content:focus,
#mainContent:focus,
main[tabindex="-1"]:focus {
  outline: 3px dashed #ffc107 !important;
  outline-offset: 4px !important;
}

/* Skip Link Target Styling - Preserve native theme appearance */
#main-content,
#mainContent,
main[tabindex="-1"] {
  scroll-margin-top: 120px !important;
  outline: none !important;
}

/* Ensure hidden skip links become accessible when focused via keyboard Tab */
.visually-hidden-focusable:focus,
.visually-hidden:focus {
  position: absolute !important;
  z-index: 100000 !important;
  clip: auto !important;
  clip-path: none !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* Universal Visible Focus Indicator */
:focus-visible {
  outline: 3px solid #ffc107 !important;
  outline-offset: 2px !important;
}

/* -------------------------------------------------------------------------
   2. FONT RESIZE SCALING (-2, -1, 0, +1, +2)
   CRITICAL: Topbar, Header, Logo, and Navigation Menus ARE STRICTLY EXCLUDED
   ------------------------------------------------------------------------- */
.gov-top-header,
.top-utility-bar,
.gov-utility-bar,
.utility-controls,
.topbar,
.main-header,
header[role="banner"],
.navbar,
.nav-menu,
.navbar-nav,
.offcanvas,
#mobileNavOffcanvas,
.main-nav,
.gov-brand-box,
.brand-wrapper,
.header-emblem,
.campaign-logo-img,
.site-logo {
  zoom: 1 !important;
}

/* Zoom scaling applied only to Main Content & Footer */
:is(body.font-scale-m2, html.font-scale-m2) :is(#main-content, main, .main-content, .inner-page-main, footer, .gov-footer, .main-footer, .site-footer) {
  zoom: 0.88;
}
:is(body.font-scale-m1, html.font-scale-m1) :is(#main-content, main, .main-content, .inner-page-main, footer, .gov-footer, .main-footer, .site-footer) {
  zoom: 0.94;
}
:is(body.font-scale-0, html.font-scale-0) :is(#main-content, main, .main-content, .inner-page-main, footer, .gov-footer, .main-footer, .site-footer) {
  zoom: 1;
}
:is(body.font-scale-p1, html.font-scale-p1) :is(#main-content, main, .main-content, .inner-page-main, footer, .gov-footer, .main-footer, .site-footer) {
  zoom: 1.06;
}
:is(body.font-scale-p2, html.font-scale-p2) :is(#main-content, main, .main-content, .inner-page-main, footer, .gov-footer, .main-footer, .site-footer) {
  zoom: 1.12;
}

/* Font button active states */
.gov-font-btn.active,
.text-resize-btn.active,
.btn-acc.active,
.accessibility-btn.active,
.font-size-btn.active {
  background-color: #0b2545 !important;
  color: #ffc107 !important;
  font-weight: 700 !important;
  border-color: #ffc107 !important;
}

/* -------------------------------------------------------------------------
   3. HIGH CONTRAST DARK MODE PALETTE
   Main background: #121212
   Cards / surfaces: #1E1E1E
   Elevated / modals: #252525
   Primary text: #F5F5F5
   Secondary text: #D0D0D0
   Borders: #383838 / #555555
   Links / accents: #60A5FA / #FFC107
   ------------------------------------------------------------------------- */

/* HTML & Body Base */
body.dark-contrast,
body.high-contrast,
html.dark-contrast,
html.high-contrast {
  background-color: #121212 !important;
  color: #f5f5f5 !important;
}

/* Header & Topbars */
body.dark-contrast .gov-top-header,
body.dark-contrast .top-utility-bar,
body.dark-contrast .gov-utility-bar,
body.high-contrast .gov-top-header,
body.high-contrast .top-utility-bar,
body.high-contrast .gov-utility-bar {
  background-color: #0a0a0a !important;
  color: #d0d0d0 !important;
  border-bottom: 1px solid #383838 !important;
}

body.dark-contrast .main-header,
body.high-contrast .main-header,
body.dark-contrast header[role="banner"],
body.high-contrast header[role="banner"] {
  background-color: #161616 !important;
  color: #f5f5f5 !important;
  border-bottom: 1px solid #383838 !important;
}

body.dark-contrast .main-nav,
body.dark-contrast .navbar,
body.high-contrast .main-nav,
body.high-contrast .navbar {
  background-color: #1c1c1c !important;
  border-bottom: 1px solid #383838 !important;
}

body.dark-contrast .nav-link,
body.high-contrast .nav-link,
body.dark-contrast .dropdown-item,
body.high-contrast .dropdown-item {
  color: #f5f5f5 !important;
}

body.dark-contrast .nav-link:hover,
body.dark-contrast .nav-link.active,
body.high-contrast .nav-link:hover,
body.high-contrast .nav-link.active {
  color: #ffc107 !important;
}

/* Sections & Page Wrappers */
body.dark-contrast section,
body.high-contrast section,
body.dark-contrast .section,
body.high-contrast .section,
body.dark-contrast .section-padding,
body.high-contrast .section-padding,
body.dark-contrast .section-light,
body.high-contrast .section-light,
body.dark-contrast .bg-light,
body.high-contrast .bg-light,
body.dark-contrast .bg-white,
body.high-contrast .bg-white,
body.dark-contrast .bg-theme-white,
body.high-contrast .bg-theme-white,
body.dark-contrast .bg-theme-subtle,
body.high-contrast .bg-theme-subtle,
body.dark-contrast .main-wrapper,
body.high-contrast .main-wrapper,
body.dark-contrast main,
body.high-contrast main,
body.dark-contrast #main-content,
body.high-contrast #main-content {
  background-color: #121212 !important;
  color: #f5f5f5 !important;
}

/* Cards, Tiles, Panels, Sidebars */
body.dark-contrast .card,
body.high-contrast .card,
body.dark-contrast .portal-card,
body.high-contrast .portal-card,
body.dark-contrast .leader-card,
body.high-contrast .leader-card,
body.dark-contrast .sitting-member-card,
body.high-contrast .sitting-member-card,
body.dark-contrast .sitting-card-img-wrap,
body.high-contrast .sitting-card-img-wrap,
body.dark-contrast .service-card,
body.high-contrast .service-card,
body.dark-contrast .quick-card,
body.high-contrast .quick-card,
body.dark-contrast .area-card,
body.high-contrast .area-card,
body.dark-contrast .board-card,
body.high-contrast .board-card,
body.dark-contrast .stat-card,
body.high-contrast .stat-card,
body.dark-contrast .about-card,
body.high-contrast .about-card,
body.dark-contrast .trust-card,
body.high-contrast .trust-card,
body.dark-contrast .gov-link-tile,
body.high-contrast .gov-link-tile,
body.dark-contrast .notice-item,
body.high-contrast .notice-item,
body.dark-contrast .news-item-card,
body.high-contrast .news-item-card,
body.dark-contrast .inner-page-content-box,
body.high-contrast .inner-page-content-box,
body.dark-contrast .inner-page-sidebar,
body.high-contrast .inner-page-sidebar,
body.dark-contrast .notice-strip-section,
body.high-contrast .notice-strip-section,
body.dark-contrast .ticker-wrap,
body.high-contrast .ticker-wrap,
body.dark-contrast .whats-new,
body.high-contrast .whats-new,
body.dark-contrast .portal-link-card,
body.high-contrast .portal-link-card,
body.dark-contrast .workflow-card,
body.high-contrast .workflow-card {
  background-color: #1e1e1e !important;
  border-color: #383838 !important;
  color: #f5f5f5 !important;
}

/* Inner Page Banners */
body.dark-contrast .inner-page-banner,
body.high-contrast .inner-page-banner {
  background: #181818 !important;
  border-bottom: 2px solid #383838 !important;
}

/* Headings & Text */
body.dark-contrast h1, body.high-contrast h1,
body.dark-contrast h2, body.high-contrast h2,
body.dark-contrast h3, body.high-contrast h3,
body.dark-contrast h4, body.high-contrast h4,
body.dark-contrast h5, body.high-contrast h5,
body.dark-contrast h6, body.high-contrast h6,
body.dark-contrast .section-title, body.high-contrast .section-title,
body.dark-contrast .section-heading, body.high-contrast .section-heading,
body.dark-contrast .card-title, body.high-contrast .card-title,
body.dark-contrast .page-title, body.high-contrast .page-title,
body.dark-contrast .portal-card-title, body.high-contrast .portal-card-title,
body.dark-contrast .leader-name, body.high-contrast .leader-name,
body.dark-contrast strong, body.high-contrast strong {
  color: #f5f5f5 !important;
}

body.dark-contrast p, body.high-contrast p,
body.dark-contrast span:not(.badge):not(.btn), body.high-contrast span:not(.badge):not(.btn),
body.dark-contrast li, body.high-contrast li,
body.dark-contrast label, body.high-contrast label,
body.dark-contrast .text-muted, body.high-contrast .text-muted,
body.dark-contrast .text-secondary, body.high-contrast .text-secondary,
body.dark-contrast .portal-card-domain, body.high-contrast .portal-card-domain,
body.dark-contrast .page-subtitle, body.high-contrast .page-subtitle {
  color: #d0d0d0 !important;
}

/* Links */
body.dark-contrast a:not(.btn):not(.badge):not(.nav-link),
body.high-contrast a:not(.btn):not(.badge):not(.nav-link) {
  color: #60a5fa !important;
}

body.dark-contrast a:not(.btn):not(.badge):not(.nav-link):hover,
body.high-contrast a:not(.btn):not(.badge):not(.nav-link):hover {
  color: #93c5fd !important;
  text-decoration: underline !important;
}

/* Tables */
body.dark-contrast table,
body.high-contrast table,
body.dark-contrast .table,
body.high-contrast .table,
body.dark-contrast .gov-table,
body.high-contrast .gov-table {
  background-color: #1e1e1e !important;
  color: #f5f5f5 !important;
  border-color: #383838 !important;
}

body.dark-contrast table thead,
body.high-contrast table thead,
body.dark-contrast .table thead,
body.high-contrast .table thead,
body.dark-contrast table th,
body.high-contrast table th,
body.dark-contrast .table th,
body.high-contrast .table th {
  background-color: #252525 !important;
  color: #f5f5f5 !important;
  border-color: #383838 !important;
}

body.dark-contrast table td,
body.high-contrast table td,
body.dark-contrast .table td,
body.high-contrast .table td {
  background-color: #1e1e1e !important;
  color: #f5f5f5 !important;
  border-color: #383838 !important;
}

body.dark-contrast table tbody tr:nth-of-type(even) td,
body.high-contrast table tbody tr:nth-of-type(even) td,
body.dark-contrast .table tbody tr:nth-of-type(even) td,
body.high-contrast .table tbody tr:nth-of-type(even) td {
  background-color: #181818 !important;
}

body.dark-contrast table tbody tr:hover td,
body.high-contrast table tbody tr:hover td,
body.dark-contrast .table tbody tr:hover td,
body.high-contrast .table tbody tr:hover td {
  background-color: #262626 !important;
}

/* Form Inputs */
body.dark-contrast input[type="text"], body.high-contrast input[type="text"],
body.dark-contrast input[type="search"], body.high-contrast input[type="search"],
body.dark-contrast input[type="email"], body.high-contrast input[type="email"],
body.dark-contrast input[type="password"], body.high-contrast input[type="password"],
body.dark-contrast input[type="date"], body.high-contrast input[type="date"],
body.dark-contrast select, body.high-contrast select,
body.dark-contrast textarea, body.high-contrast textarea,
body.dark-contrast .form-control, body.high-contrast .form-control,
body.dark-contrast .form-select, body.high-contrast .form-select {
  background-color: #1e1e1e !important;
  color: #f5f5f5 !important;
  border-color: #555555 !important;
}

body.dark-contrast input::placeholder,
body.high-contrast input::placeholder,
body.dark-contrast textarea::placeholder,
body.high-contrast textarea::placeholder {
  color: #888888 !important;
}

/* Dropdowns & Modals (Elevated Surfaces) */
body.dark-contrast .dropdown-menu,
body.high-contrast .dropdown-menu,
body.dark-contrast .modal-content,
body.high-contrast .modal-content,
body.dark-contrast .popover,
body.high-contrast .popover,
body.dark-contrast .offcanvas,
body.high-contrast .offcanvas {
  background-color: #252525 !important;
  color: #f5f5f5 !important;
  border: 1px solid #383838 !important;
}

body.dark-contrast .dropdown-item:hover,
body.dark-contrast .dropdown-item:focus,
body.high-contrast .dropdown-item:hover,
body.high-contrast .dropdown-item:focus {
  background-color: #383838 !important;
  color: #60a5fa !important;
}

/* Badges & Pagination */
body.dark-contrast .badge:not(.bg-warning):not(.bg-danger):not(.bg-success),
body.high-contrast .badge:not(.bg-warning):not(.bg-danger):not(.bg-success) {
  background-color: #252525 !important;
  color: #f5f5f5 !important;
  border: 1px solid #555555 !important;
}

body.dark-contrast .pagination .page-link,
body.high-contrast .pagination .page-link {
  background-color: #1e1e1e !important;
  color: #f5f5f5 !important;
  border-color: #383838 !important;
}

body.dark-contrast .pagination .page-item.active .page-link,
body.high-contrast .pagination .page-item.active .page-link {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

/* Footers */
body.dark-contrast footer,
body.high-contrast footer,
body.dark-contrast .gov-footer,
body.high-contrast .gov-footer,
body.dark-contrast .main-footer,
body.high-contrast .main-footer,
body.dark-contrast .site-footer,
body.high-contrast .site-footer {
  background-color: #0e0e0e !important;
  color: #d0d0d0 !important;
  border-top: 1px solid #383838 !important;
}

body.dark-contrast footer a,
body.high-contrast footer a,
body.dark-contrast .gov-footer a,
body.high-contrast .gov-footer a,
body.dark-contrast .main-footer a,
body.high-contrast .main-footer a {
  color: #60a5fa !important;
}

/* Contrast Button Active States */
body.dark-contrast #btn-contrast-toggle,
body.high-contrast #btn-contrast-toggle,
body.dark-contrast #btnHighContrast,
body.high-contrast #btnHighContrast,
body.dark-contrast .contrast-toggle-btn,
body.high-contrast .contrast-toggle-btn,
body.dark-contrast .btn-theme-toggle,
body.high-contrast .btn-theme-toggle {
  background-color: #ffc107 !important;
  color: #000000 !important;
  border-color: #ffc107 !important;
}

.gov-theme-btn.btn-white.active {
  box-shadow: 0 0 0 2px #ffc107 !important;
}
.gov-theme-btn.btn-black.active {
  box-shadow: 0 0 0 2px #ffc107 !important;
}


/* =========================================================================
   EMBLEM & PORTAL CARDS DYNAMIC LIGHT / DARK THEME
   ========================================================================= */
/* Default / Light Mode */
.gov-emblem-wrapper .emblem-dark,
.portal-emblem-wrap .emblem-dark {
  display: none !important;
}

.gov-emblem-wrapper .emblem-light,
.portal-emblem-wrap .emblem-light {
  display: block !important;
}

/* Dark / High Contrast Mode */
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .gov-emblem-wrapper .emblem-light,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .portal-emblem-wrap .emblem-light {
  display: none !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .gov-emblem-wrapper .emblem-dark,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .portal-emblem-wrap .emblem-dark {
  display: block !important;
}

/* Fallback filter in dark mode if an emblem image lacks the .emblem-dark class */
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .gov-emblem-wrapper img:not(.emblem-dark):not(.emblem-light),
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .portal-emblem-wrap img:not(.emblem-dark):not(.emblem-light) {
  filter: brightness(0) invert(1) !important;
}

/* Portal Link Cards Dark Contrast */
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .portal-link-card {
  background-color: #1e1e1e !important;
  border-color: #383838 !important;
  color: #f5f5f5 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .portal-link-card:hover {
  background-color: #242424 !important;
  border-color: #60a5fa !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .portal-link-card .portal-card-title {
  color: #ffffff !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .portal-link-card .portal-card-domain {
  color: #94a3b8 !important;
}


/* =========================================================================
   HOMEPAGE DYNAMIC THEME SECTIONS (DARK & HIGH CONTRAST MODES)
   ========================================================================= */

/* Common Section Typography in Dark Mode */
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .section-tag {
  color: #ffc107 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .section-title {
  color: #ffffff !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .section-subtitle {
  color: #d1d5db !important;
}

/* 1. About Section Text Visibility */
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .about-dept-section .text-body,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .about-text-content .text-body,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .about-desc-text,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .about-text-content {
  color: #d1d5db !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .about-dept-section {
  background-color: #121212 !important;
}

/* 2. Step-by-Step Procedure / Appeal Workflow Section */
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .workflow-section {
  background: #121212 !important;
  border-top: 1px solid #383838 !important;
  border-bottom: 1px solid #383838 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .workflow-section .section-title {
  color: #ffffff !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .workflow-section .section-subtitle {
  color: #d1d5db !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .workflow-card {
  background: #1e1e1e !important;
  border: 1px solid #383838 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .workflow-card:hover {
  background: #242424 !important;
  border-color: #60a5fa !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .workflow-step-badge {
  background: #0f172a !important;
  color: #ffc107 !important;
  border: 2px solid #ffc107 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .workflow-card:hover .workflow-step-badge {
  background: #ffc107 !important;
  color: #000000 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .workflow-title {
  color: #ffffff !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .workflow-desc {
  color: #d1d5db !important;
}

/* 3. Important Government Links Section */
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .links-section {
  background-color: #121212 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .links-section .section-title {
  color: #ffffff !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .links-section .section-subtitle {
  color: #d1d5db !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .portal-link-card {
  background: #1e1e1e !important;
  border: 1px solid #383838 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .portal-link-card:hover {
  background: #242424 !important;
  border-color: #60a5fa !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .portal-link-card .portal-card-title {
  color: #ffffff !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .portal-link-card .portal-card-domain {
  color: #94a3b8 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .portal-link-card:hover .portal-card-title {
  color: #60a5fa !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .portal-link-card:hover .portal-card-domain {
  color: #93c5fd !important;
}

/* 4. Statutory Acts & Services Section */
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .services-section {
  background-color: #121212 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-card {
  background-color: #1e1e1e !important;
  border: 1px solid #383838 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-card:hover {
  background-color: #242424 !important;
  border-color: #60a5fa !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-badge-tag,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) span.service-badge-tag,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-badge-direct,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) span.service-badge-direct,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-badge-indirect,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) span.service-badge-indirect,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-badge-common,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) span.service-badge-common {
  background-color: #172554 !important;
  color: #93c5fd !important;
  border: 1px solid #1e40af !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-icon i {
  color: #ffc107 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-title {
  color: #ffffff !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-desc {
  color: #d1d5db !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-action-btn {
  background-color: #252525 !important;
  color: #60a5fa !important;
  border: 1px solid #404040 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-action-btn span,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-action-btn i {
  color: #60a5fa !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-action-btn:hover,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-card:hover .service-action-btn {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-action-btn:hover span,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-action-btn:hover i,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-card:hover .service-action-btn span,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .service-card:hover .service-action-btn i {
  color: #ffffff !important;
}

/* 5. What's New Notice Board Section */
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .whats-new-section {
  background-color: #121212 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-container {
  background: transparent !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-item-card {
  background-color: #1e1e1e !important;
  border: 1px solid #383838 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-item-card:hover {
  background-color: #242424 !important;
  border-color: #4b5563 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-date-badge {
  background-color: #262626 !important;
  border: 1px solid #383838 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-date-day {
  color: #ffc107 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-date-month {
  color: #d1d5db !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-cat-pill {
  background-color: #262626 !important;
  color: #93c5fd !important;
  border: 1px solid #383838 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-cat-pill.text-primary,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-cat-pill.bg-primary-subtle {
  background-color: #172554 !important;
  color: #93c5fd !important;
  border: 1px solid #1e40af !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-cat-pill.text-success,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-cat-pill.bg-success-subtle {
  background-color: #052e16 !important;
  color: #86efac !important;
  border: 1px solid #166534 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-cat-pill.text-warning-emphasis,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-cat-pill.bg-warning-subtle {
  background-color: #2e2008 !important;
  color: #fbbf24 !important;
  border: 1px solid #784c0c !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-cat-pill.text-info-emphasis,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-cat-pill.bg-info-subtle {
  background-color: #083344 !important;
  color: #67e8f9 !important;
  border: 1px solid #0e7490 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-title-link {
  color: #ffffff !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-title-link:hover {
  color: #60a5fa !important;
  text-decoration: underline !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-item-card small,
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-item-card .text-muted {
  color: #94a3b8 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-item-card small i {
  color: #60a5fa !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-download-btn {
  background-color: #252525 !important;
  border: 1px solid #404040 !important;
  color: #93c5fd !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-download-btn span {
  color: #93c5fd !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-download-btn:hover {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-download-btn:hover span {
  color: #ffffff !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-download-btn i.text-danger {
  color: #f87171 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-download-btn:hover i.text-danger {
  color: #ffffff !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-tab-nav {
  border-bottom: 2px solid #383838 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-tab-btn {
  color: #94a3b8 !important;
  background: transparent !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-tab-btn:hover {
  color: #60a5fa !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .news-tab-btn.active {
  color: #ffc107 !important;
  background: #252525 !important;
  border-color: #383838 !important;
}

/* 6. Key Judicial & Registry Services */
:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .areas-section {
  background-color: #121212 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .area-card {
  background: #1e1e1e !important;
  border: 1px solid #383838 !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .area-title {
  color: #ffffff !important;
}

:is(body.dark-contrast, body.high-contrast, html.dark-contrast, html.high-contrast) .area-link {
  color: #60a5fa !important;
}

/* CRITICAL: PRESERVE ALL IMAGES, LOGOS, AND PHOTOS WITHOUT INVERSION */
img,
picture,
svg:not(.bi):not(.gov-flag-icon),
video,
canvas,
iframe {
  filter: none !important;
}




/* =========================================================================
   GLOBAL STANDARDIZED TYPOGRAPHY SUITE (APPELLATE TRIBUNAL - AT)
   Strict Standards:
     --site-title-font-size: 16px   -> All titles, headings, and title-like elements
     --site-content-font-size: 14px -> All respective content, descriptions, and text
   Applies across Desktop, Tablet, Mobile, Light & Dark themes, and Drupal dynamic content.
   ========================================================================= */

/* 1. Base Typography & Font Family */
html,
body {
  font-family: 'Poppins', sans-serif;
  font-size: var(--site-content-font-size, 14px);
  line-height: 1.5;
}

/* 2. All Titles and Headings (16px) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Poppins', sans-serif;
  font-size: var(--site-title-font-size, 16px) !important;
  line-height: 1.35;
}

/* Homepage Section Headings and Subtitles */
.gov-main-title,
.slider-title,
.hero-title,
.quick-title,
.section-tag,
.section-title,
.workflow-title,
.area-title,
.board-title,
.service-title,
.news-title-link,
.chairperson-title,
.chairperson-name,
.leader-name,
.gallery-overlay-title,
.footer-col-title,
.footer-brand-title,
.sitting-section-title,
.sitting-card-name,
.sitting-card-chairman .sitting-card-name,
.portal-card-title,
.acts-card-title,
.cause-list-title,
.court-notice-title,
.vacancies-title,
.order-title,
.judgement-title,
.card-title,
.card-header,
.dropdown-header,
.modal-title,
.offcanvas-title,
.table-header-navy th,
.former-members-table thead th,
.vacancy-circular-table thead th,
.court-notices-table thead th,
.cause-list-table thead th,
.table thead th,
.table caption {
  font-size: var(--site-title-font-size, 16px) !important;
}

/* Inner-page Titles */
.page-title,
h1.page-title,
.inner-hero-title,
.inner-page-banner h1,
.inner-page-banner .page-title,
.doc-name {
  font-size: var(--site-title-font-size, 16px) !important;
}

/* Section and Subsection Headings */
.content-body-prose h1,
.content-body-prose h2,
.content-body-prose h3,
.content-body-prose h4,
.content-body-prose h5,
.content-body-prose h6 {
  font-size: var(--site-title-font-size, 16px) !important;
}

/* 3. All Respective Content and Descriptive Text (14px) */
/* Paragraphs and Descriptions */
p,
.lead,
.page-subtitle,
.slider-lead,
.hero-lead,
.quick-desc,
.section-subtitle,
.workflow-desc,
.area-desc,
.board-subtitle,
.service-desc,
.chairperson-excerpt,
.content-body-prose,
.content-body-prose p,
.content-body-prose li,
.content-body-prose span {
  font-size: var(--site-content-font-size, 14px) !important;
  line-height: 1.6;
}

/* Card Descriptions, Lists & Supporting Details */
.board-feature-list li,
.quick-link-action,
.area-link,
.service-action-btn,
.portal-card-domain,
.image-caption,
.case-search-intro-text,
.former-members-table tbody tr td,
.vacancy-circular-table tbody tr td,
.court-notices-table tbody tr td,
.cause-list-table tbody tr td,
.table tbody tr td,
.table td {
  font-size: var(--site-content-font-size, 14px) !important;
}

/* Breadcrumb Text */
.breadcrumb,
.breadcrumb-item,
.breadcrumb-item a,
.breadcrumbs-wrapper,
.inner-page-banner .breadcrumb {
  font-size: var(--site-content-font-size, 14px) !important;
}

/* Navigation, Dropdowns & Menus */
.top-utility-bar,
.utility-link,
.primary-navbar .nav-link,
.primary-navbar .dropdown-item,
.gov-subtext-hi,
.gov-parent-title,
.gov-link-tile,
.dropdown-item,
.navbar-nav .nav-link {
  font-size: var(--site-content-font-size, 14px) !important;
}

/* Form Controls, Inputs, Placeholders, Labels & Helper Text */
input,
select,
textarea,
label,
.form-label,
.form-control,
.form-select,
.form-text,
.case-search-label label,
.case-search-input,
.case-search-select {
  font-size: var(--site-content-font-size, 14px) !important;
}

/* Buttons and Action Links */
button,
.btn,
.text-resize-btn,
.contrast-toggle-btn,
.header-search-btn,
.nav-cta-btn,
.slider-pause-ctrl,
.news-tab-btn,
.news-download-btn,
.notice-control-btn,
.case-search-btn,
.vacancy-download-link,
.vacancy-view-link,
.court-notice-download-link,
.court-notice-view-link,
.cause-list-view-link {
  font-size: var(--site-content-font-size, 14px) !important;
}

/* Metadata, Badges, Dates, Status & Tenures */
.badge,
.header-badge-gov,
.slider-badge,
.hero-badge,
.board-badge,
.service-badge-tag,
.news-date-day,
.news-date-month,
.news-cat-pill,
.notice-heading-badge,
.notice-ticker-item,
.chairperson-badge,
.chairperson-tenure,
.leader-tag,
.leader-designation,
.leader-dept,
.sitting-card-designation,
.stat-label,
.gallery-overlay-badge,
.vacancy-badge-size,
.court-notice-badge-size,
.cause-list-badge-size,
.vacancy-cell-notice,
kbd {
  font-size: var(--site-content-font-size, 14px) !important;
}

/* Footer Contact Details, Email, Address, Links & Credits */
.gov-footer,
.gov-footer p,
.gov-footer a,
.footer-links a,
.footer-bottom,
.footer-bottom p,
.footer-bottom a {
  font-size: var(--site-content-font-size, 14px) !important;
}

/* Error Messages, Validation & Notifications */
.alert,
.messages,
.messages--error,
.messages--status,
.messages--warning,
.invalid-feedback,
.valid-feedback,
.pagination .page-link {
  font-size: var(--site-content-font-size, 14px) !important;
}

/* 4. Responsive Enforcement (Desktop, Tablet, Mobile) */
@media (max-width: 1199.98px), (max-width: 991.98px), (max-width: 767.98px), (max-width: 575.98px) {
  h1, h2, h3, h4, h5, h6,
  .h1, .h2, .h3, .h4, .h5, .h6,
  .gov-main-title,
  .slider-title,
  .hero-title,
  .quick-title,
  .section-tag,
  .section-title,
  .workflow-title,
  .area-title,
  .board-title,
  .service-title,
  .news-title-link,
  .chairperson-title,
  .chairperson-name,
  .leader-name,
  .gallery-overlay-title,
  .footer-col-title,
  .footer-brand-title,
  .sitting-section-title,
  .sitting-card-name,
  .sitting-card-chairman .sitting-card-name,
  .portal-card-title,
  .page-title,
  h1.page-title,
  .inner-hero-title,
  .inner-page-banner h1,
  .inner-page-banner .page-title,
  .doc-name,
  .content-body-prose h1,
  .content-body-prose h2,
  .content-body-prose h3,
  .content-body-prose h4,
  .content-body-prose h5,
  .content-body-prose h6 {
    font-size: var(--site-title-font-size, 16px) !important;
  }

  p,
  .lead,
  .page-subtitle,
  .slider-lead,
  .hero-lead,
  .quick-desc,
  .section-subtitle,
  .workflow-desc,
  .area-desc,
  .board-subtitle,
  .service-desc,
  .chairperson-excerpt,
  .content-body-prose,
  .content-body-prose p,
  .content-body-prose li,
  .content-body-prose span,
  .breadcrumb,
  .breadcrumb-item,
  .navbar-nav .nav-link,
  .dropdown-item,
  input,
  select,
  textarea,
  label,
  button,
  .btn,
  table,
  .table,
  table td,
  .table td,
  table th,
  .table th,
  .badge,
  .stat-label,
  .sitting-card-designation,
  .leader-designation,
  .leader-dept,
  .chairperson-tenure,
  .gov-footer,
  .footer-bottom {
    font-size: var(--site-content-font-size, 14px) !important;
  }
}
