/* ==========================================================================
   Typography Font Face Definitions
   ========================================================================== */

/* poppins-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('poppins-v24-latin-regular.woff2') format('woff2');
}
/* poppins-italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  src: url('poppins-v24-latin-italic.woff2') format('woff2');
}
/* poppins-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('poppins-v24-latin-500.woff2') format('woff2');
}
/* poppins-500italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 500;
  src: url('poppins-v24-latin-500italic.woff2') format('woff2');
}
/* poppins-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('poppins-v24-latin-600.woff2') format('woff2');
}
/* poppins-600italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 600;
  src: url('poppins-v24-latin-600italic.woff2') format('woff2');
}
/* poppins-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('poppins-v24-latin-700.woff2') format('woff2');
}
/* poppins-700italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 700;
  src: url('poppins-v24-latin-700italic.woff2') format('woff2');
}
/* poppins-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  src: url('poppins-v24-latin-800.woff2') format('woff2');
}
/* poppins-800italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 800;
  src: url('poppins-v24-latin-800italic.woff2') format('woff2');
}
/* poppins-900 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 900;
  src: url('poppins-v24-latin-900.woff2') format('woff2');
}
/* poppins-900italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 900;
  src: url('poppins-v24-latin-900italic.woff2') format('woff2');
}

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */

:root {
  --font-step: 0;
  --base-font-size: calc(1rem + (var(--font-step) * 0.125rem));
  
  /* Core Color Tokens */
  --white: #ffffff;
  --white-rgb: 255, 255, 255;
  --black: #000000;
  --black-rgb: 0, 0, 0;

  /* High-Contrast Tokens */
  --hc-cyan: #00ffff;
  --hc-cyan-rgb: 0, 255, 255;
  --hc-cyan-bright: #00f0ff;
  --hc-cyan-bright-rgb: 0, 240, 255;
  --hc-cyan-soft: #80f8ff;
  --hc-cyan-deep: #00c8d6;
  --hc-surface: #001217;
  --hc-surface-soft: #00151a;

  /* Shared Advertisement Metrics */
  --ad-square-size: 15.625rem;
  --ad-square-padding: 0.25rem;
  --ad-grid-gap: 0.5rem;
  --ad-additional-gap: 2.5rem;
  --mobile-ad-gap: 0.25rem;
  --mobile-ad-padding: 0.25rem;
  --mobile-ad-max-size: var(--ad-square-size);

  /* Semantic Light Surfaces */
  --bg-canvas: var(--white);
  --bg-surface: var(--white);
  --bg-subtle: #f8fafc;
  --bg-glass: rgba(var(--white-rgb), 0.95);
  
  /* Text Tokens (Compliant with WCAG 1.4.3 >= 4.5:1 on light canvas) */
  --text-main: var(--navy-surface);
  --text-muted: #475569;
  --text-faint: var(--text-muted);
  
  /* Border Tokens */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dashed: #94a3b8;
  
  /* Shared Neutral / Ad Tokens */
  --ad-surface-start: #f8fafc;
  --ad-surface-end: #edf2f7;
  --text-on-dark: #f1f5f9;
  --status-emerald: #059669;

  /* Brand Palette Tokens */
  --ruby-imperial: #b91c1c; /* Refined for WCAG 4.5:1 text compliance */
  --ruby-vivid: #e62e2d;
  --coral-bright: #ff4757;
  --saffron-sunburst: #f59e0b;
  --marigold-gold: #fbbf24;
  --navy-deep: #0a192f;
  --navy-surface: #0f172a;
  --navy-midnight: #0c2340;
  --navy-royal: #112d52;
  --navy-violet: #1e1b4b;
  
  /* Accessibility Focus Ring Tokens (WCAG 2.4.7) */
  --focus-ring-color: #005fcc;
  --focus-ring-offset: 0.1875rem;

  /* Card RGBs for Radial Bloom Effects */
  --card1-rgb: 245, 158, 11;
  --card2-rgb: 16, 185, 129;
  --card3-rgb: 236, 72, 153;
  --card4-rgb: 255, 71, 87;
  --card5-rgb: 14, 165, 233;

  /* Card Gradient Fills */
  --card1-gradient: linear-gradient(145deg, #fffdf8 0%, #fef3c7 50%, #fffbeb 100%);
  --card2-gradient: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 50%, #ecfdf5 100%);
  --card3-gradient: linear-gradient(145deg, #fdf4f9 0%, #fce7f3 50%, #fff1f2 100%);
  --card4-gradient: linear-gradient(145deg, #fff4f4 0%, #ffe4e6 50%, #fff5f5 100%);
  --card5-gradient: linear-gradient(145deg, #f4faff 0%, #e0f2fe 50%, #f8fafc 100%);
  
  /* Elevation Shadows */
  --shadow-sm: 0 0.125rem 0.5rem rgba(15, 23, 42, 0.06);
  --shadow-md: 0 0.625rem 1.5625rem -0.25rem rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 1.25rem 2.5rem -0.625rem rgba(15, 23, 42, 0.14);
  
  /* Smooth Physics Curves */
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-morph: cubic-bezier(0.25, 1, 0.5, 1);
  
  /* Universal Radii */
  --radius-pill: 624.9375rem;
  --radius-ad: 1.25rem;
}

/* ==========================================================================
   High Contrast Theme (GIGW 3.0 & WCAG 2.1 AA)
   ========================================================================== */

body.high-contrast {
  --bg-canvas: var(--black) !important;
  --bg-surface: var(--black) !important;
  --bg-subtle: #050505 !important;
  --bg-glass: rgba(var(--black-rgb), 0.98) !important;
  
  --text-main: var(--hc-cyan-bright) !important;
  --text-muted: var(--hc-cyan-soft) !important;
  --text-faint: var(--hc-cyan-deep) !important;
  
  --border-subtle: var(--hc-cyan) !important;
  --border-medium: var(--hc-cyan) !important;
  --border-dashed: var(--hc-cyan) !important;
  
  --ruby-imperial: var(--hc-cyan) !important;
  --coral-bright: var(--hc-cyan) !important;
  --saffron-sunburst: var(--hc-cyan) !important;
  --marigold-gold: var(--hc-cyan) !important;
  --navy-deep: var(--black) !important;
  --navy-surface: var(--hc-surface) !important;

  --card1-gradient: var(--black) !important;
  --card2-gradient: var(--black) !important;
  --card3-gradient: var(--black) !important;
  --card4-gradient: var(--black) !important;
  --card5-gradient: var(--black) !important;
  
  --shadow-sm: 0 0 0.625rem rgba(var(--hc-cyan-bright-rgb), 0.3) !important;
  --shadow-md: 0 0 1.25rem rgba(var(--hc-cyan-bright-rgb), 0.4) !important;
  --shadow-lg: 0 0 2.1875rem rgba(var(--hc-cyan-bright-rgb), 0.5) !important;
  --focus-ring-color: var(--hc-cyan) !important;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Poppins', Verdana, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.35s var(--transition-smooth), color 0.35s var(--transition-smooth);
}

h1 {
  font-family: 'Poppins', Verdana, Georgia, serif;
  letter-spacing: -0.10rem;
  word-spacing: 0.5rem;
  color: var(--text-main);
  margin: 0 auto;
}

h2 {
  font-family: 'Poppins', Verdana, Georgia, serif;
  letter-spacing: -0.05rem;
  word-spacing: 3px;
  color: var(--focus-ring-color);
}


h3 {
  font-family: 'Poppins', Verdana, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.05rem;
  word-spacing: 0.25rem;
  color: var(--text-main);
}

h4, h5, h6 {
  font-family: 'Poppins', Verdana, Georgia, serif;
  letter-spacing: -0.025rem;
  word-spacing: 0.15rem;
  color: var(--text-main);
}

@media (max-width: 576px) {
  h1, h2 {
    letter-spacing: -0.05rem;
    word-spacing: 0.15rem;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.img-inline {
  display: inline;
}

@media (max-width: 576px) {
  header {
    display: none;
  }
}

@media (max-width: 576px) {
  .display-none-576 {
    display: none;
  }
}

/* ==========================================================================
   Universal Accessible Focus Indicators (WCAG 2.4.7)
   ========================================================================== */

:focus-visible {
  outline: 0.1875rem solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

.top-accessibility-bar :focus-visible,
.hero-slider-block :focus-visible,
.site-footer :focus-visible,
.dropdown-menu :focus-visible,
.sub-submenu :focus-visible {
  outline-color: var(--white);
}

body.high-contrast :focus-visible {
  outline-color: var(--hc-cyan) !important;
}

/* Skip to Content Link (WCAG 2.4.1) */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5000;
  padding: 0.75rem 1.25rem;
  background: var(--navy-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom-right-radius: 0.5rem;
  border: 0.125rem solid var(--marigold-gold);
  transform: translateY(-150%);
  transition: transform 0.2s ease-in-out;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Universal Layout Container */
.container-layout {
  width: 100%;
  max-width: 102.5rem; /* 1640px */
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2vw, 1.75rem);
  padding-right: clamp(1rem, 2vw, 1.75rem);
}

.w-100 { width: 100%; }
.d-none { display: none !important; }
.flex-grow-1 { flex: 1; }

/* ==========================================================================
   Accessibility Header Bar
   ========================================================================== */

.top-accessibility-bar {
  background: linear-gradient(135deg, var(--navy-deep), #2e2284, var(--navy-violet), var(--navy-deep));
  color: var(--white);
  font-size: 0.825rem;
  border-bottom: 0.0625rem solid rgba(var(--white-rgb), 0.12);
  position: relative;
  z-index: 120;
  transition: background 0.3s ease;
}

body.high-contrast .top-accessibility-bar {
  background: var(--black);
  border-bottom: 0.0625rem solid var(--hc-cyan);
  color: var(--hc-cyan);
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.top-bar-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--border-subtle);
}

.status-indicator-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #10b981;
  margin-right: 0.25rem;
}

body.high-contrast .top-bar-item {
  color: var(--hc-cyan-bright);
}

.top-bar-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.font-resizer-group {
  display: inline-flex;
  align-items: center;
  background: rgba(var(--white-rgb), 0.12);
  border: 0.0625rem solid rgba(var(--white-rgb), 0.2);
  border-radius: var(--radius-pill);
  padding: 0.125rem 0.25rem;
}

body.high-contrast .font-resizer-group {
  background: var(--hc-surface-soft);
  border-color: var(--hc-cyan);
}

.resizer-btn {
  color: var(--white);
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}

.resizer-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.high-contrast .resizer-btn {
  color: var(--hc-cyan-bright);
}

.resizer-btn:hover {
  background: var(--ruby-imperial);
  color: var(--white);
}

body.high-contrast .resizer-btn:hover {
  background: var(--hc-cyan);
  color: var(--black);
}

.contrast-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--ruby-vivid), var(--coral-bright));
  color: var(--white);
  font-weight: 700;
  font-size: 0.775rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  box-shadow: 0 0.125rem 0.625rem rgba(230, 46, 45, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

body.high-contrast .contrast-toggle-btn {
  background: var(--black);
  color: var(--hc-cyan);
  border: 0.0625rem solid var(--hc-cyan);
  box-shadow: 0 0 0.75rem var(--hc-cyan);
}

/* ==========================================================================
   Sticky Navbar & Desktop Navigation
   ========================================================================== */

.sticky-navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 4.75rem; /* 76px */
  background: var(--bg-glass);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border-bottom: 0.0625rem solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, border-color 0.3s;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
  position: relative;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  user-select: none;
  padding: 0.25rem 0;
  z-index: 10;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-initials {
  font-family: 'Poppins', serif;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05rem;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--navy-deep) 40%, var(--ruby-imperial) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.high-contrast .brand-initials {
  background: none;
  -webkit-text-fill-color: var(--hc-cyan);
  color: var(--hc-cyan);
}

.brand-full-name {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
  max-width: 18.125rem;
}

body.high-contrast .brand-full-name {
  color: var(--hc-cyan-soft);
}

.nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.desktop-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  position: relative;
  padding: 0.25rem;
}

body.high-contrast .desktop-nav-menu {
  background: var(--hc-surface);
  border-color: var(--hc-cyan);
}

.nav-slider-pill {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--navy-deep), #1e3a8a);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
  box-shadow: 0 0.25rem 0.875rem rgba(10, 25, 47, 0.25);
}

body.high-contrast .nav-slider-pill {
  background: var(--hc-cyan);
  box-shadow: 0 0 0.9375rem var(--hc-cyan);
}

.nav-item {
  position: relative;
  z-index: 2;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.48rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  transition: color 0.25s ease;
  white-space: nowrap;
  position: relative;
  z-index: 3;
}

.nav-link:hover,
.nav-link.hovered {
  color: var(--white) !important;
}

.nav-link.active {
  color: var(--ruby-imperial);
}

.nav-link.active:hover,
.nav-link.active.hovered {
  color: var(--white) !important;
}

body.high-contrast .nav-link:hover,
body.high-contrast .nav-link.hovered {
  color: var(--black) !important;
}

.nav-chevron-down {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.nav-item-has-dropdown.dropdown-open > .nav-link .nav-chevron-down {
  transform: rotate(180deg);
}

/* Left-Expanding Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 19.375rem;
  background: linear-gradient(160deg, var(--navy-midnight) 0%, var(--navy-royal) 60%, var(--navy-violet) 100%);
  border: 0.0625rem solid rgba(245, 158, 11, 0.45);
  border-radius: 1rem 0 1rem 1rem;
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 1.25rem 2.8125rem rgba(10, 25, 47, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.5rem) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.35s var(--transition-spring), transform 0.35s var(--transition-spring), visibility 0.35s;
  z-index: 150;
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

body.high-contrast .dropdown-menu {
  background: var(--black) !important;
  border-color: var(--hc-cyan) !important;
  box-shadow: 0 0 1.5625rem rgba(var(--hc-cyan-bright-rgb), 0.4) !important;
}

.nav-item-has-dropdown.dropdown-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: gsapSpringIn 0.4s var(--transition-spring) forwards;
}

@keyframes gsapSpringIn {
  0% { opacity: 0; transform: translateY(-0.75rem) scale(0.95); }
  70% { opacity: 1; transform: translateY(0.125rem) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item {
  position: relative;
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.625rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-on-dark);
  width: 100%;
  text-align: left;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.dropdown-link:hover {
  background: rgba(230, 46, 45, 0.28);
  color: var(--marigold-gold);
}

.dropdown-arrow-icon {
  width: 0.875rem;
  height: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--marigold-gold);
  flex-shrink: 0;
}

.dropdown-arrow-spacer {
  width: 0.875rem;
  height: 0.875rem;
  display: inline-block;
  flex-shrink: 0;
}

body.high-contrast .dropdown-link {
  color: var(--hc-cyan);
}

body.high-contrast .dropdown-link:hover {
  background: var(--hc-cyan);
  color: var(--black);
}

.sub-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  right: auto;
  margin-right: 0.25rem;
  min-width: 18.4375rem;
  background: linear-gradient(160deg, #091b32 0%, #0f2746 60%, #1a1643 100%);
  border: 0.0625rem solid rgba(245, 158, 11, 0.45);
  border-radius: 0.875rem;
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 1.25rem 2.8125rem rgba(10, 25, 47, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(0.625rem) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.35s var(--transition-spring), transform 0.35s var(--transition-spring), visibility 0.35s;
  z-index: 160;
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

body.high-contrast .sub-submenu {
  background: var(--black) !important;
  border-color: var(--hc-cyan) !important;
  box-shadow: 0 0 1.5625rem rgba(var(--hc-cyan-bright-rgb), 0.4) !important;
}

.dropdown-item-nested.sub-open > .sub-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  animation: gsapSubmenuSpringIn 0.38s var(--transition-spring) forwards;
}

@keyframes gsapSubmenuSpringIn {
  0% { opacity: 0; transform: translateX(0.75rem) scale(0.95); }
  70% { opacity: 1; transform: translateX(-0.125rem) scale(1.01); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ==========================================================================
   Hamburger Button & Mobile Drawer
   ========================================================================== */

.hamburger-btn {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 0.0625rem solid var(--border-medium);
  background: var(--bg-surface);
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3125rem;
  cursor: pointer;
  z-index: 1010;
  transition: border-color 0.25s, box-shadow 0.25s;
}

body.high-contrast .hamburger-btn {
  background: var(--black);
  border-color: var(--hc-cyan);
}

.hamburger-line {
  width: 1.375rem;
  height: 0.15625rem;
  background: var(--navy-deep);
  border-radius: 0.25rem;
  transition: transform 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.25s, background-color 0.25s;
  transform-origin: center;
}

body.high-contrast .hamburger-line {
  background: var(--hc-cyan);
}

.hamburger-btn.is-active .line-top {
  transform: translateY(0.46875rem) rotate(45deg);
}

.hamburger-btn.is-active .line-mid {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-active .line-bot {
  transform: translateY(-0.46875rem) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: 4.75rem;
  left: 0;
  right: 0;
  height: calc(100vh - 4.75rem);
  max-height: calc(100vh - 4.75rem);
  background: var(--bg-surface);
  z-index: 999;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--transition-smooth), opacity 0.25s ease, visibility 0.35s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 0.1875rem solid var(--ruby-imperial);
  box-shadow: 0 0.9375rem 2.1875rem rgba(10, 25, 47, 0.2);
}

body.high-contrast .mobile-drawer {
  background: var(--black);
  border-color: var(--hc-cyan);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-group {
  border-bottom: 0.0625rem dashed var(--border-subtle);
  padding: 0.35rem 0;
  width: 100%;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mobile-sub-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.2rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mobile-nav-link {
  font-family: 'Poppins', serif;
  font-size: 1.5rem;
  color: var(--text-main);
  transition: color 0.2s, padding-left 0.2s;
  pointer-events: none;
}

.mobile-sub-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: color 0.2s, padding-left 0.2s;
  pointer-events: none;
}

/* Hover and Focus-Visible Micro-Interactions */
.mobile-nav-header:hover .mobile-nav-link,
.mobile-nav-header:focus-visible .mobile-nav-link {
  color: var(--ruby-imperial);
  padding-left: 0.5rem;
}

.mobile-sub-flex-row:hover .mobile-sub-link,
.mobile-sub-flex-row:focus-visible .mobile-sub-link {
  color: var(--ruby-imperial);
  padding-left: 0.35rem;
}

body.high-contrast .mobile-nav-header:hover .mobile-nav-link,
body.high-contrast .mobile-nav-header:focus-visible .mobile-nav-link,
body.high-contrast .mobile-sub-flex-row:hover .mobile-sub-link,
body.high-contrast .mobile-sub-flex-row:focus-visible .mobile-sub-link {
  color: var(--hc-cyan);
}

.mobile-accordion-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--navy-deep);
  font-weight: 500;
  transition: transform 0.25s ease, background 0.25s;
}

.mobile-accordion-sub-toggle {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.9rem;
}

body.high-contrast .mobile-accordion-toggle {
  background: var(--hc-surface);
  color: var(--hc-cyan);
  border: 0.0625rem solid var(--hc-cyan);
}

.mobile-sub-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--transition-smooth);
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mobile-accordion-content.expanded {
  max-height: 75rem;
  padding-top: 0.65rem;
  padding-bottom: 0.45rem;
}

.mobile-sub-sub-box {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-sub-sub-box.expanded {
  max-height: 37.5rem;
  padding-top: 0.45rem;
}

.mobile-sub-sub-link {
  font-size: 0.825rem;
  color: var(--text-faint);
}

.mobile-sub-sub-link:hover {
  color: var(--navy-deep);
}

body.high-contrast .mobile-sub-sub-link {
  color: var(--hc-cyan-deep);
}

/* Square Box Plus / Minus Indicator Icon */
.mobile-accordion-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--bg-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--navy-deep);
  font-weight: 500;
  flex-shrink: 0;
  pointer-events: none;
  transition: transform 0.25s ease, background 0.25s, color 0.25s;
}

.mobile-accordion-icon.mobile-accordion-sub-toggle {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.9rem;
}

.mobile-nav-header:hover .mobile-accordion-icon,
.mobile-sub-flex-row:hover .mobile-accordion-icon {
  background: rgba(185, 28, 28, 0.12);
  color: var(--ruby-imperial);
}

body.high-contrast .mobile-accordion-icon {
  background: var(--hc-surface);
  color: var(--hc-cyan);
  border: 0.0625rem solid var(--hc-cyan);
}

body.high-contrast .mobile-nav-header:hover .mobile-accordion-icon,
body.high-contrast .mobile-sub-flex-row:hover .mobile-accordion-icon {
  background: var(--hc-cyan);
  color: var(--black);
}

@media (max-width: 1150px) {
  .desktop-nav-menu, .nav-slider-pill {
    display: none !important;
  }
  .hamburger-btn {
    display: flex;
  }
}

/* ==========================================================================
   Advertisement Banners Shared Styles
   ========================================================================== */

.ad-top-badge {
  position: absolute;
  top: -0.6875rem;
  left: 1rem;
  background: var(--bg-canvas);
  color: var(--text-main);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  padding: 0.0625rem 0.5rem;
  border-radius: 0.25rem;
  border: 0.0625rem solid var(--border-subtle);
  line-height: 1.2;
  z-index: 10;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

body.high-contrast .ad-top-badge {
  background: var(--black);
  color: var(--hc-cyan);
  border-color: var(--hc-cyan);
}

.sponsor-context-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: var(--text-faint);
}

body.high-contrast .ad-letter-badge {
  color: var(--hc-cyan);
}

/* Strict Sizing for Banners A & C (250px x 500px content box) */
.ad-banner-slot {
  box-sizing: content-box !important;
  width: 15.625rem !important;
  max-width: 15.625rem !important;
  height: 31.25rem !important;
  max-height: 31.25rem !important;
  flex: 0 0 15.625rem !important;
  position: relative;
  background: linear-gradient(145deg, var(--ad-surface-start) 0%, var(--ad-surface-end) 100%);
  border: 0.125rem dashed var(--border-dashed);
  border-radius: var(--radius-ad);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s, border-color 0.3s;
}

body.high-contrast .ad-banner-slot {
  background: var(--black);
  border: 0.125rem dashed var(--hc-cyan);
  box-shadow: 0 0 0.9375rem rgba(var(--hc-cyan-bright-rgb), 0.2);
}

.ad-banner-slot:hover {
  transform: translateY(-0.25rem);
  border-color: var(--ruby-imperial);
  box-shadow: var(--shadow-md);
}

body.high-contrast .ad-banner-slot:hover {
  border-color: var(--hc-cyan);
  box-shadow: 0 0 1.5625rem rgba(var(--hc-cyan-bright-rgb), 0.5);
}

/* ==========================================================================
   Hero Grid & Association Carousel
   ========================================================================== */

.hero-aligned-grid {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  gap: 2rem;
  width: 100%;
  max-width: 98rem; /* 1568px */
  margin: 3rem auto;
  align-items: stretch;
}

.hero-slider-block {
  width: 100%;
  min-height: 31.25rem;
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: url(slider/fancy-background.webp);
  background-position: center center;
  display: flex;
  flex-direction: column;
  border: 0.125rem solid rgba(var(--white-rgb), 0.1);
}

body.high-contrast .hero-slider-block {
  border: 0.125rem solid var(--hc-cyan);
  box-shadow: 0 0 1.875rem rgba(var(--hc-cyan-bright-rgb), 0.35);
  background: var(--black);
}

.slider-stage {
  position: relative;
  flex-grow: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-align: center;
  margin: 0 auto;
}

.slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
  transform: scale(1.02);
  text-align: center;
  margin: 0 auto;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* .slide-1 {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(15, 23, 42, 0.88) 100%),
              radial-gradient(circle at 80% 20%, rgba(185, 28, 28, 0.3) 0%, transparent 60%);
}
.slide-2 {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.88) 100%),
              radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.3) 0%, transparent 60%);
}
.slide-3 {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(88, 28, 135, 0.88) 100%),
              radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.25) 0%, transparent 60%);
} */

body.high-contrast .slide-item {
  background: var(--black) !important;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(var(--white-rgb), 0.14);
  backdrop-filter: blur(0.5rem);
  border: 0.0625rem solid rgba(var(--white-rgb), 0.25);
  color: var(--marigold-gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01rem;
  word-spacing: 0.15rem;
  text-transform: uppercase;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin: 0 auto 1.25rem;
}

body.high-contrast .slide-badge {
  background: var(--hc-surface);
  color: var(--hc-cyan);
  border-color: var(--hc-cyan);
}

.slide-title {
  font-family: 'Poppins', serif;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.2;
  color: var(--white);
  margin: 0 auto 0.85rem;
  max-width: 42.5rem;
}

body.high-contrast .slide-title {
  color: var(--hc-cyan);
}

.slide-desc {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 700;
  color: var(--border-medium);
  max-width: 36.25rem;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

body.high-contrast .slide-desc {
  color: var(--hc-cyan-soft);
}

.slide-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, var(--ruby-vivid), var(--coral-bright));
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 0.25rem 1.25rem rgba(230, 46, 45, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  width: fit-content;
  margin: 0 auto;
}

body.high-contrast .slide-action-btn {
  background: var(--hc-cyan);
  color: var(--black);
  box-shadow: 0 0 0.9375rem var(--hc-cyan);
}

.slide-action-btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5625rem rgba(230, 46, 45, 0.6);
}

.slider-badge-center {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: var(--navy-deep);
  border: 0.125rem solid rgba(var(--white-rgb), 0.25);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}

body.high-contrast .slider-badge-center {
  background: var(--black);
  border-color: var(--hc-cyan);
  box-shadow: 0 0 0.9375rem var(--hc-cyan);
}

.slider-controls-flex {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slider-pagination-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot-btn {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: rgba(var(--white-rgb), 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
}

.dot-btn.active {
  width: 1.5rem;
  border-radius: 0.75rem;
  background: var(--white);
}

body.high-contrast .dot-btn.active {
  background: var(--hc-cyan);
}

.slider-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(var(--white-rgb), 0.2);
  color: var(--white);
  transition: background 0.2s;
}

.slider-control-btn:hover {
  background: var(--ruby-imperial);
}

body.high-contrast .slider-control-btn {
  background: var(--hc-cyan);
  color: var(--black);
}

.slider-nav-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 1.25rem;
  z-index: 15;
  margin-bottom: 0.5rem;
}

.arrow-btn {
  pointer-events: auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(var(--white-rgb), 0.2);
  backdrop-filter: blur(0.5rem);
  border: 0.0625rem solid rgba(var(--white-rgb), 0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

body.high-contrast .arrow-btn {
  background: var(--black);
  border-color: var(--hc-cyan);
  color: var(--hc-cyan);
}

.arrow-btn:hover {
  background: var(--ruby-imperial);
  transform: scale(1.1);
}

/* ==========================================================================
   Neomorphic News Ticker
   ========================================================================== */

.ticker-neomorph-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  height: 6.25rem;
  max-width: 98rem;
  margin: 0 auto 3rem;
  padding: 0.5rem 0.85rem 0.5rem 0.55rem;
  background: var(--white);
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
  border: 0.0625rem solid rgba(226, 232, 240, 0.85);
  box-shadow: 
    0.375rem 0.375rem 1rem rgba(15, 23, 42, 0.07),
    -0.375rem -0.375rem 1rem rgba(var(--white-rgb), 0.95),
    inset 0.0625rem 0.0625rem 0.125rem rgba(var(--white-rgb), 0.9),
    inset -0.0625rem -0.0625rem 0.1875rem rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

body.high-contrast .ticker-neomorph-container {
  background: var(--black) !important;
  border: 0.0625rem solid var(--hc-cyan) !important;
  box-shadow: 0 0 0.9375rem rgba(var(--hc-cyan-bright-rgb), 0.35), inset 0 0 0.5rem rgba(var(--hc-cyan-bright-rgb), 0.2) !important;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--ruby-vivid), var(--coral-bright));
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: -0.025rem;
  word-spacing: 0.15rem;
  text-transform: uppercase;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  box-shadow: 0 0.1875rem 0.75rem rgba(230, 46, 45, 0.35);
  z-index: 2;
  white-space: nowrap;
  user-select: none;
}

body.high-contrast .ticker-badge {
  background: var(--hc-surface);
  color: var(--hc-cyan);
  border: 0.0625rem solid var(--hc-cyan);
  box-shadow: 0 0 0.625rem var(--hc-cyan);
}

.ticker-pulse-icon {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--white);
  animation: tickerPulse 1.8s infinite;
  flex-shrink: 0;
}

body.high-contrast .ticker-pulse-icon {
  background: var(--hc-cyan);
}

@keyframes tickerPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--white-rgb), 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 0.4375rem rgba(var(--white-rgb), 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--white-rgb), 0); }
}

.ticker-track-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 2.5%, black 97.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 2.5%, black 97.5%, transparent 100%);
  display: flex;
  align-items: center;
  min-width: 0;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 2.5rem;
  animation: tickerContinuousScroll 188s linear infinite;
  will-change: transform;
}

.ticker-neomorph-container:hover .ticker-track,
.ticker-neomorph-container:focus-within .ticker-track,
.ticker-track.is-paused {
  animation-play-state: paused !important;
}

@keyframes tickerContinuousScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ticker-item:hover {
  color: var(--ruby-imperial);
}

body.high-contrast .ticker-item {
  color: var(--hc-cyan-soft);
}

body.high-contrast .ticker-item:hover {
  color: var(--hc-cyan);
  text-shadow: 0 0 0.5rem var(--hc-cyan);
}

.ticker-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  line-height: 1.2;
}

.ticker-tag-urgent {
  background: rgba(230, 46, 45, 0.12);
  color: var(--ruby-imperial);
  border: 0.0625rem solid rgba(230, 46, 45, 0.3);
}

.ticker-tag-rates {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border: 0.0625rem solid rgba(245, 158, 11, 0.35);
}

.ticker-tag-event {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 0.0625rem solid rgba(16, 185, 129, 0.3);
}

.ticker-tag-circular {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  border: 0.0625rem solid rgba(14, 165, 233, 0.3);
}

body.high-contrast .ticker-tag {
  background: var(--hc-surface) !important;
  color: var(--hc-cyan) !important;
  border-color: var(--hc-cyan) !important;
}

.ticker-separator {
  color: var(--border-medium);
  font-size: 0.75rem;
  flex-shrink: 0;
  user-select: none;
}

body.high-contrast .ticker-separator {
  color: var(--hc-cyan);
}

.ticker-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--text-on-dark);
  border: 0.0625rem solid var(--border-subtle);
  color: var(--navy-deep);
  flex-shrink: 0;
  box-shadow: 0.125rem 0.125rem 0.375rem rgba(15, 23, 42, 0.07), -0.125rem -0.125rem 0.375rem rgba(var(--white-rgb), 0.9);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
  z-index: 2;
}

.ticker-control-btn:hover {
  background: var(--navy-deep);
  color: var(--white);
  transform: scale(1.06);
}

body.high-contrast .ticker-control-btn {
  background: var(--black);
  border-color: var(--hc-cyan);
  color: var(--hc-cyan);
  box-shadow: 0 0 0.5rem rgba(var(--hc-cyan-bright-rgb), 0.4);
}

body.high-contrast .ticker-control-btn:hover {
  background: var(--hc-cyan);
  color: var(--black);
}

@media (max-width: 640px) {
  .ticker-neomorph-container {
    border-bottom-left-radius: 1.125rem;
    border-bottom-right-radius: 1.125rem;
    padding: 0.4rem 0.55rem;
    gap: 0.65rem;
    height: 50px;
    margin-bottom: 1rem;
  }
  .ticker-badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
  }
  .ticker-badge span.badge-text-full {
    display: none;
  }
  .ticker-badge span.badge-text-short {
    display: inline;
  }
}

@media (min-width: 641px) {
  .ticker-badge span.badge-text-short {
    display: none;
  }
}

/* ==========================================================================
   Banner D Section (1500px content box)
   ========================================================================== */

.banner-d-row {
  width: 100%;
  max-width: 98rem;
  margin: 0 auto 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.banner-d-container {
  box-sizing: content-box;
  width: 93.75rem; /* 1500px */
  max-width: calc(100% - 4rem - 0.25rem);
  min-height: 12.5rem;
  height: auto;
  border: 0.125rem dashed var(--border-dashed);
  border-radius: var(--radius-ad);
  background: linear-gradient(120deg, var(--text-on-dark) 0%, var(--border-subtle) 100%);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--transition-smooth), border-color 0.3s, box-shadow 0.3s;
}

.banner-d-container picture, .banner-d-container img {
  text-align: center;
  margin: 0 auto;
}

body.high-contrast .banner-d-container {
  background: var(--black);
  border-color: var(--hc-cyan);
  box-shadow: 0 0 0.9375rem rgba(var(--hc-cyan-bright-rgb), 0.2);
}

.banner-d-container:hover {
  transform: translateY(-0.1875rem);
  border-color: var(--ruby-imperial);
  box-shadow: var(--shadow-md);
}

body.high-contrast .banner-d-container:hover {
  border-color: var(--hc-cyan);
  box-shadow: 0 0 1.5625rem rgba(var(--hc-cyan-bright-rgb), 0.4);
}

.banner-d-brand-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.banner-d-letter {
  font-family: 'Poppins', serif;
  font-size: clamp(3.5rem, 5vw, 4.5rem);
  line-height: 1;
  font-weight: 700;
  color: var(--navy-deep);
}

body.high-contrast .banner-d-letter {
  color: var(--hc-cyan);
}

.banner-d-company-name {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy-deep);
}

body.high-contrast .banner-d-company-name {
  color: var(--hc-cyan);
}

.banner-d-editorial-block {
  flex: 1;
  max-width: 56.25rem;
  min-width: 17.5rem;
}

.banner-d-editorial-title {
  font-family: 'Poppins', serif;
  font-size: 1.45rem;
  color: var(--navy-deep);
  margin-bottom: 0.35rem;
}

body.high-contrast .banner-d-editorial-title {
  color: var(--hc-cyan);
}

.banner-d-editorial-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

body.high-contrast .banner-d-editorial-desc {
  color: var(--hc-cyan-soft);
}

.banner-d-status-pill {
  padding: 0.6rem 1.25rem;
  border: 0.0625rem solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: rgba(var(--white-rgb), 0.7);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-deep);
}

body.high-contrast .banner-d-status-pill {
  background: var(--black);
  border-color: var(--hc-cyan);
  color: var(--hc-cyan);
}

/* ==========================================================================
   Above-the-Fold Square Advertisement Matrix Q-AF
   ========================================================================== */

.ad-matrix-section {
  width: 100%;
  max-width: 98rem;
  margin: 0 auto 3rem;
  padding: 0;
}

.ad-matrix-heading {
  width: min(100%, 68rem);
  margin: 0 auto 1rem;
  padding: 0 0.5rem;
  text-align: center;
}

.ad-matrix-title {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--navy-deep);
}

.ad-matrix-desc {
  margin: 0 auto;
  max-width: 54rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.ad-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--ad-square-size), var(--ad-square-size)));
  justify-content: center;
  gap: var(--ad-additional-gap);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 0.5rem 1.5rem 0;
  background: linear-gradient(145deg, var(--ad-surface-start) 0%, var(--ad-surface-end) 100%);
  border: 0.125rem dashed var(--border-dashed);
  border-radius: var(--radius-ad);
  box-shadow: var(--shadow-sm);
}

.ad-matrix-card {
  box-sizing: content-box;
  width: var(--ad-square-size);
  height: var(--ad-square-size);
  min-width: 0;
  position: relative;
  padding: var(--ad-square-padding);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--transition-smooth),
              box-shadow 0.3s,
              border-color 0.3s;
}

@media (max-width: 576px) {
  .ad-matrix-card picture, .ad-matrix-card img {
  max-width: 193px;
  max-height: 238px;
  width: 100%;
  height: auto;
}
}

.ad-matrix-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0.875rem;
}

.ad-matrix-letter {
  position: absolute;
  right: 0.55rem;
  bottom: 0.45rem;
  z-index: 3;
  min-width: 1.65rem;
  min-height: 1.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--white-rgb), 0.92);
  color: var(--navy-deep);
  border: 0.0625rem solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ad-matrix-card:hover {
  transform: translateY(-0.25rem);
  border-color: var(--ruby-imperial);
  box-shadow: var(--shadow-md);
}

.ad-matrix-card:hover .ad-matrix-image {
  transform: scale(1.025);
}

.ad-matrix-card .ad-matrix-image {
  transition: transform 0.45s var(--transition-smooth);
}

body.high-contrast .ad-matrix-card {
  background: var(--black);
  border-color: var(--hc-cyan);
  box-shadow: 0 0 0.9375rem rgba(var(--hc-cyan-bright-rgb), 0.2);
}

body.high-contrast .ad-matrix-card:hover {
  border-color: var(--hc-cyan);
  box-shadow: 0 0 1.5625rem rgba(var(--hc-cyan-bright-rgb), 0.5);
}

body.high-contrast .ad-matrix-letter {
  background: var(--black);
  color: var(--hc-cyan);
  border-color: var(--hc-cyan);
}

/* ==========================================================================
   Middle Grid & Square Banners E-L
   ========================================================================== */

.middle-aligned-grid {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  gap: 2rem;
  width: 100%;
  max-width: 98rem;
  margin: 0 auto 3rem;
  align-items: start;
}

.side-sponsor-column,
.side-ads-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: max-content;
}

/* Strict 250px x 250px content box */
.ad-card-square {
  box-sizing: content-box !important;
  width: 250px !important;
  max-width: 250px !important;
  height: 250px !important;
  max-height: 250px !important;
  flex: 0 0 250px !important;
  position: relative;
  background: var(--white);
  border: 0.125rem dashed var(--border-dashed);
  border-radius: var(--radius-ad);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--transition-smooth);
}

body.high-contrast .ad-card-square {
  background: var(--black);
  border-color: var(--hc-cyan);
}

.ad-card-square:hover {
  transform: translateY(-0.25rem);
  border-color: var(--ruby-imperial);
  box-shadow: var(--shadow-md);
}

body.high-contrast .ad-card-square:hover {
  border-color: var(--hc-cyan);
  box-shadow: 0 0 1.25rem rgba(var(--hc-cyan-bright-rgb), 0.4);
}

.square-letter-badge {
  font-family: 'Poppins', serif;
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  color: var(--navy-deep);
}

body.high-contrast .square-letter-badge {
  color: var(--hc-cyan);
}

.ad-square-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0.25rem;
}

.ad-square-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ad-square-merchant-tag {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-main);
}

/* ==========================================================================
   Center Association Content & Vaulted Arch Cards
   ========================================================================== */

.association-core-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.center-seal-wrapper {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-heading-unit {
  text-align: center;
  margin-bottom: 2.75rem;
  max-width: 48.75rem;
}

.luminous-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(230, 46, 45, 0.08) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 0.0625rem solid rgba(230, 46, 45, 0.3);
  color: var(--ruby-imperial);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01rem;
  word-spacing: 0.15rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: 0 0.125rem 0.625rem rgba(230, 46, 45, 0.08);
}

body.high-contrast .luminous-section-badge {
  background: var(--hc-surface);
  color: var(--hc-cyan);
  border-color: var(--hc-cyan);
  box-shadow: 0 0 0.625rem var(--hc-cyan);
}

.main-section-title {
  font-size: clamp(2.15rem, 4.5vw, 3.4rem);
  line-height: 1.18;
  color: var(--navy-deep);
  margin-bottom: 1.15rem;
}

body.high-contrast .main-section-title {
  color: var(--hc-cyan);
}

.highlight-wrapper {
  position: relative;
  display: inline-block;
  white-space: normal;
  padding: 0 0.15em;
}

.highlight-wrapper em {
  font-style: italic;
  font-weight: 900;
  color: navy;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

body.high-contrast .highlight-wrapper em {
  color: var(--hc-cyan);
  text-shadow: 0 0 0.9375rem var(--hc-cyan);
}

.natural-highlighter-svg {
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 108%;
  height: 1.375rem;
  z-index: 1;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  mix-blend-mode: multiply;
  opacity: 0.95;
}

body.high-contrast .natural-highlighter-svg {
  mix-blend-mode: screen;
  opacity: 0.5;
}

.natural-highlighter-svg.stroke-drawn {
  transform: scaleX(1);
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 40.625rem;
  margin: 0 auto;
  line-height: 1.65;
}

body.high-contrast .section-subtext {
  color: var(--hc-cyan-soft);
}

.content-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

.bpfma-feature-card {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 0.125rem solid transparent;
  box-shadow: var(--shadow-md);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-radius 400ms var(--transition-morph),
              transform 400ms var(--transition-morph),
              box-shadow 400ms var(--transition-morph),
              border-color 400ms var(--transition-morph);
  will-change: border-radius, transform, box-shadow;
}

.bpfma-feature-card.arch-style-a {
  border-radius: 2.75rem 0.875rem 2.25rem 0.875rem;
}
.bpfma-feature-card.arch-style-a:hover {
  border-radius: 0.875rem 2.75rem 0.875rem 2.25rem;
  transform: translateY(-0.375rem);
}

.bpfma-feature-card.arch-style-b {
  border-radius: 2.5rem 0.875rem 2.5rem 0.875rem;
}
.bpfma-feature-card.arch-style-b:hover {
  border-radius: 0.875rem 2.5rem 0.875rem 2.5rem;
  transform: translateY(-0.375rem);
}

.bpfma-feature-card::before {
  content: '';
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 11.25rem;
  height: 11.25rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--card-rgb), 0.4) 0%, rgba(var(--card-rgb), 0.12) 50%, transparent 70%);
  opacity: 0.2;
  transition: transform 500ms ease, opacity 500ms ease;
  pointer-events: none;
  z-index: 1;
}

.bpfma-feature-card:hover::before {
  transform: scale(1.6);
  opacity: 0.55;
}

.bpfma-feature-card::after {
  content: '';
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-bottom: 0.1875rem solid var(--card-accent);
  border-right: 0.1875rem solid var(--card-accent);
  border-radius: 0 0 0.5rem 0;
  opacity: 0.45;
  transition: width 400ms var(--transition-smooth), height 400ms var(--transition-smooth), opacity 400ms;
  pointer-events: none;
  z-index: 1;
}

.bpfma-feature-card:hover::after {
  width: 2.75rem;
  height: 2.75rem;
  opacity: 1;
}

/* Card Themes */
.card-theme-1 {
  --card-rgb: var(--card1-rgb);
  --card-accent: #f59e0b;
  background: var(--card1-gradient);
  border: 0.0625rem solid #f5d8a7 !important;
}
.card-theme-1:hover {
  border-color: #d97706 !important;
  box-shadow: 0 1rem 2.25rem rgba(245, 158, 11, 0.22);
}

.card-theme-2 {
  --card-rgb: var(--card2-rgb);
  --card-accent: var(--status-emerald);
  background: var(--card2-gradient) !important;
  border: 0.0625rem solid #a8d8c8 !important;
  box-shadow: 0 0.5rem 1.5rem rgba(16, 185, 129, 0.16) !important;
}
.card-theme-2:hover {
  border-color: var(--status-emerald) !important;
  box-shadow: 0 1.125rem 2.625rem rgba(16, 185, 129, 0.32) !important;
}

.card-theme-2 .card-icon-sphere {
  color: var(--status-emerald);
  border-color: #86efac;
  background: rgba(var(--white-rgb), 0.95);
}

.card-theme-2 .card-pill-tag {
  border-color: #a7f3d0;
  color: #065f46;
  background: rgba(var(--white-rgb), 0.85);
}

.card-theme-3 {
  --card-rgb: var(--card3-rgb);
  --card-accent: #ec4899;
  background: var(--card3-gradient);
  border: 0.0625rem solid #ffcae5 !important;
}
.card-theme-3:hover {
  border-color: #db2777 !important;
  box-shadow: 0 1rem 2.25rem rgba(236, 72, 153, 0.22);
}

.card-theme-5 {
  --card-rgb: var(--card5-rgb);
  --card-accent: #0ea5e9;
  background: var(--card5-gradient);
  border: 0.0625rem solid #afe4fd !important;
}
.card-theme-5:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 1rem 2.25rem rgba(14, 165, 233, 0.25);
}

body.high-contrast .bpfma-feature-card {
  border-color: var(--hc-cyan) !important;
  background: var(--black) !important;
  box-shadow: none !important;
}
body.high-contrast .bpfma-feature-card:hover {
  box-shadow: 0 0 1.875rem var(--hc-cyan) !important;
}

.card-inner-flex {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

@media (max-width: 576px) {
  .card-inner-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.card-icon-sphere {
  width: 3.625rem;
  height: 3.625rem;
  border-radius: 1rem;
  background: rgba(var(--white-rgb), 0.85);
  border: 0.0625rem solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--card-accent);
  transition: transform 0.3s ease, background 0.3s;
  box-shadow: var(--shadow-sm);
}

body.high-contrast .card-icon-sphere {
  background: var(--hc-surface);
  border-color: var(--hc-cyan);
  color: var(--hc-cyan);
}

.bpfma-feature-card:hover .card-icon-sphere {
  transform: scale(1.1) rotate(5deg);
  background: var(--white);
}

.card-content-block {
  flex: 1;
}

.card-meta-category {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--card-accent);
}

body.high-contrast .card-meta-category {
  color: var(--hc-cyan);
}

.card-title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
  color: var(--navy-deep);
  margin-bottom: 0.6rem;
}

.card-title-underlined {
  text-decoration: underline;
  text-decoration-color: var(--card-accent);
  text-underline-offset: 0.25rem;
}

body.high-contrast .card-title {
  color: var(--hc-cyan);
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

body.high-contrast .card-description {
  color: var(--hc-cyan-soft);
}

.card-footer-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.card-pill-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(var(--white-rgb), 0.75);
  border: 0.0625rem solid var(--border-subtle);
  color: var(--text-main);
}

body.high-contrast .card-pill-tag {
  background: var(--black);
  border-color: var(--hc-cyan);
  color: var(--hc-cyan);
}

.president-letter-body {
  font-style: italic;
}

.president-p {
  margin-bottom: 0.85rem;
}

/* ==========================================================================
   Bottom Fix Advertisement Banners (M, N, O, P)
   ========================================================================== */

.bottom-fix-advertisement-section {
  margin-top: 1rem;
  margin-bottom: 4.5rem;
  position: relative;
  width: 100%;
  max-width: 120rem;
  margin-left: auto;
  margin-right: auto;
}

.bottom-aligned-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 3rem;
  width: 100%;
  margin: 0 auto;
}

/* Strictly 600px content-box width; wraps without stretching */
.bottom-ad-card {
  box-sizing: content-box;
  aspect-ratio: 2 / 1;
  width: 100%;
  max-width: 708px;
  max-height: 18.75rem;
  height: auto;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--ad-surface-start) 0%, var(--ad-surface-end) 100%);
  border: 0.125rem dashed var(--border-dashed);
  border-radius: var(--radius-ad);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--transition-smooth);
  position: relative;
}

/* ==========================================================================
   M + N MERGED FEATURED ADVERTISEMENT
   ========================================================================== */

.bottom-merged-featured-ad {
  box-sizing: border-box;
  /* Consume the entire first flex row */
  flex: 1 1 100%;
  width: 100%;
  max-width: 1584px;
  position: relative;
  /* Retain the same visual language as the other ad cards */
  background: linear-gradient(
    135deg,
    #f8fafc 0%,
    #edf2f7 100%
  );
  border: 0.125rem dashed var(--border-dashed);
  border-radius: var(--radius-ad);
  /* The padding you wanted around the Ashapura image */
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--transition-smooth),
    box-shadow 0.3s var(--transition-smooth),
    border-color 0.3s var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 576px) {
  .bottom-merged-featured-ad {
    min-height: 17.5rem;
    height: 17.5rem;
    padding: var(--mobile-ad-padding);
  }
}

/* Ashapura itself stays INSIDE the dashed card */
.bottom-merged-featured-ad img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1584px;
  margin: 0 auto;
  border: 1px solid var(--navy-royal);
  text-align: center;
  margin: 0 auto;
}

/* Preserve existing hover language */
.bottom-merged-featured-ad:hover {
  transform: translateY(-0.25rem);
  border-color: var(--ruby-imperial);
  box-shadow: var(--shadow-md);
}

body.high-contrast .bottom-merged-featured-ad {
  background: #000000;
  border-color: #00ffff;
  box-shadow: 0 0 1.5625rem rgba(0, 240, 255, 0.4);
}

body.high-contrast .bottom-ad-card {
  background: var(--black);
  border-color: var(--hc-cyan);
}

.bottom-ad-card:hover {
  transform: translateY(-0.25rem);
  border-color: var(--ruby-imperial);
  box-shadow: var(--shadow-md);
}

body.high-contrast .bottom-ad-card:hover {
  border-color: var(--hc-cyan);
  box-shadow: 0 0 1.5625rem rgba(var(--hc-cyan-bright-rgb), 0.4);
}

.bottom-letter-badge {
  font-family: 'Poppins', serif;
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--navy-deep);
}

body.high-contrast .bottom-letter-badge {
  color: var(--hc-cyan);
}

.bottom-ad-text-block {
  margin: 0.75rem 0;
}

.bottom-ad-title {
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.bottom-ad-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bottom-ad-partner-tag {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-main);
  text-transform: uppercase;
}

@media (max-width: 1150px) {
  .bottom-ad-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 708px;
    height: auto;
    min-height: 17.5rem;
  }
}

/* ==========================================================================
   Alternating Reveal Animations
   ========================================================================== */

.reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.85s var(--transition-smooth), transform 1.85s var(--transition-smooth);
  will-change: transform, opacity;
}

.reveal-left {
  transform: translate3d(-6.25rem, 0, 0);
}

.reveal-right {
  transform: translate3d(6.25rem, 0, 0);
}

.revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0);
}

.bpfma-feature-card.reveal-left,
.bpfma-feature-card.reveal-right {
  transition: opacity 0.85s var(--transition-smooth),
              border-radius 400ms var(--transition-morph),
              transform 1850ms var(--transition-morph),
              box-shadow 400ms var(--transition-morph),
              border-color 400ms var(--transition-morph);
}

.bpfma-feature-card.revealed:hover {
  transform: translateY(-0.375rem) !important;
}

/* Responsive Grid Breakpoint (<= 1150px) */
@media (max-width: 1150px) {
  .hero-aligned-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
  }
  .hero-slider-block {
    width: 100%;
    flex: 1 1 100%;
    order: 1;
  }
  .ad-banner-slot {
    box-sizing: content-box !important;
    width: 15.625rem !important;
    max-width: 15.625rem !important;
    height: 31.25rem !important;
    max-height: 31.25rem !important;
    flex: 0 0 15.625rem !important;
    margin: 0;
  }
  .ad-banner-slot.slot-a { order: 2; }
  .ad-banner-slot.slot-c { order: 3; }

  .middle-aligned-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .side-sponsor-column,
  .side-ads-col {
    width: 100%;
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center;
    gap: 1.5rem !important;
  }
  .side-sponsor-column.col-left,
  .side-ads-col.col-left { order: 2; }
  .association-core-center { order: 1; }
  .side-sponsor-column.col-right,
  .side-ads-col.col-right { order: 3; }

  .ad-card-square {
    box-sizing: content-box !important;
    width: 15.625rem !important;
    max-width: 15.625rem !important;
    height: 15.625rem !important;
    max-height: 15.625rem !important;
    flex: 0 0 15.625rem !important;
    margin: 0 !important;
  }
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: var(--border-medium);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  border-top: 0.25rem solid var(--ruby-imperial);
  margin-top: auto;
  width: 100%;
}

body.high-contrast .site-footer {
  background: var(--black);
  border-top: 0.125rem solid var(--hc-cyan);
  color: var(--hc-cyan-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-title {
  font-family: 'Poppins', serif;
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

body.high-contrast .footer-title {
  color: var(--hc-cyan);
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 0.125rem;
  background: var(--ruby-imperial);
}

body.high-contrast .footer-title::after {
  background: var(--hc-cyan);
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-badge-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.footer-star {
  color: var(--marigold-gold);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--white);
  text-decoration: underline;
}

body.high-contrast .footer-links-list a:hover {
  color: var(--hc-cyan);
}

.footer-address-text {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-contact-text {
  font-size: 0.85rem;
  color: var(--border-dashed);
}

.footer-bottom-bar {
  border-top: 0.0625rem solid rgba(var(--white-rgb), 0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
}

body.high-contrast .footer-bottom-bar {
  border-color: var(--hc-cyan);
  color: var(--hc-cyan);
}

/* Figure & President Photo Styles */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.logo {
  width: auto;
  height: 3.4375rem;
}

.float-right {
  float: right;
  margin-left: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 576px) {
  .float-right {
    float: none;
    display: block;
    margin: 0 auto 1rem auto;
    text-align: center;
  }
}

figure, figure img {
  position: relative;
  filter: drop-shadow(-0.0625rem -0.0625rem 0.125rem white) drop-shadow(0.0625rem 0.0625rem 1.5rem rgb(138, 187, 228));
}

figcaption {
  position: relative;
  bottom: 0;
  left: 0;
  max-width: 193px;
  width: 100%;
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 0.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  user-select: none;
  border-top: 0.125rem solid cornflowerblue;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

/* High Contrast Override for Figcaption (Fixes black-on-black collision) */
body.high-contrast figcaption {
  background: var(--black) !important;
  color: var(--hc-cyan) !important;
  border: 0.0625rem solid var(--hc-cyan) !important;
}


/* ==========================================================================
   Compact Mobile Advertisement Composition (<= 576px)
   ========================================================================== */

@media (max-width: 576px) {
  :root {
    --ad-grid-gap: var(--mobile-ad-gap);
  }

  .hero-aligned-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
    align-items: stretch;
  }

  .hero-slider-block {
    grid-column: 1 / -1;
    grid-row: 1;
    order: 1;
    min-height: 0;
    height: clamp(15rem, 62vw, 20rem);
    border-radius: 1rem;
    padding: var(--mobile-ad-padding);
    padding-bottom: 3rem;
  }

  .slider-stage {
    min-height: 0;
    height: 100%;
    border-radius: 0.75rem;
  }

  .slide-item {
    padding: 0.75rem;
    border-radius: 0.75rem;
  }

  .slide-item img,
  .slider-border {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slide-badge {
    margin-bottom: 0.55rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.64rem;
  }

  .slide-title {
    font-size: clamp(1.05rem, 5vw, 1.45rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .slide-desc {
    font-size: 0.76rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  .slide-action-btn {
    font-size: 0.72rem;
    padding: 0.5rem 0.85rem;
  }

  .slider-badge-center {
    bottom: 0.35rem;
    padding: 0.3rem 0.7rem;
  }

  .slider-controls-flex {
    gap: 0.45rem;
  }

  .slider-pagination-dots {
    gap: 0.3rem;
  }

  .dot-btn {
    width: 0.45rem;
    height: 0.45rem;
  }

  .dot-btn.active {
    width: 1rem;
  }

  .slider-nav-arrows {
    padding: 0 0.5rem;
    margin-bottom: 0.35rem;
  }

  .arrow-btn {
    width: 2rem;
    height: 2rem;
  }

  .ad-banner-slot {
    width: 100% !important;
    max-width: 250px !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 2;
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    padding: var(--mobile-ad-padding);
    margin: 0 !important;
    border-radius: 0.75rem;
    align-self: start;
  }

  .ad-banner-slot.slot-a {
    grid-column: 1;
    grid-row: 2;
    order: 2;
  }

  .ad-banner-slot.slot-c {
    grid-column: 2;
    grid-row: 2;
    order: 3;
  }

  .ad-banner-slot img,
  .ad-banner-slot picture {
    width: 100%;
    height: 100%;
  }

  .ad-banner-slot img {
    object-fit: cover;
    border-radius: 0.65rem;
  }

  .banner-d-row {
    margin-bottom: 1.25rem;
  }

  .banner-d-container {
    max-width: calc(100% - 1rem);
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 0.8rem;
    gap: 0.75rem;
  }

  .banner-d-brand-block {
    gap: 0.7rem;
  }

  .banner-d-letter {
    font-size: 2.5rem;
  }

  .banner-d-editorial-block {
    min-width: 0;
  }

  .banner-d-editorial-title {
    font-size: 1rem;
  }

  .banner-d-editorial-desc {
    font-size: 0.72rem;
  }

  .banner-d-status-pill {
    width: 100%;
    text-align: center;
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
  }

  .ad-matrix-section {
    margin-bottom: 1.5rem;
  }

  .ad-matrix-heading {
    margin-bottom: 0.65rem;
    padding: 0 0.25rem;
  }

  .ad-matrix-title {
    font-size: 1.1rem;
  }

  .ad-matrix-desc {
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .ad-matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mobile-ad-gap);
    padding: var(--mobile-ad-padding);
  }

  .ad-matrix-card {
    width: min(100%, 250px);
    max-width: var(--mobile-ad-max-size);
    height: auto;
/*     min-height: 250px;
    aspect-ratio: 1; */
    justify-self: center;
    padding: var(--mobile-ad-padding);
    border-radius: 0.75rem;
  }

  .ad-matrix-image {
    border-radius: 0.6rem;
  }

  .ad-matrix-letter {
    right: 0.4rem;
    bottom: 0.35rem;
    min-width: 1.35rem;
    min-height: 1.35rem;
    font-size: 0.55rem;
  }

  .middle-aligned-grid {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .side-sponsor-column,
  .side-ads-col {
    gap: var(--mobile-ad-gap) !important;
  }

  .ad-card-square {
    box-sizing: border-box !important;
    width: min(100%, 250px) !important;
    max-width: 250px !important;
    min-height: 142px !important;
    max-height: 250px;
    height: auto !important;
    aspect-ratio: 3/4;
    flex: 1 1 calc(50% - var(--mobile-ad-gap)) !important;
    padding: var(--mobile-ad-padding);
    justify-content: center;
    align-items: center;
  }

  .ad-card-square img {
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

/* ==========================================================================
   Reduced Motion Accessibility Media Query (WCAG 2.2.2 / AAA Best Practice)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .nav-slider-pill,
  .mobile-drawer,
  .slide-item,
  .bpfma-feature-card,
  .ticker-track,
  .natural-highlighter-svg {
    transition: none !important;
    animation: none !important;
  }
}

.ad-border {
  border-radius: 1rem;
}

.slider-border {
  border-radius: 1rem;
  border: 2px solid cornflowerblue;
  box-shadow: 5px 5px 25px cornflowerblue,
              -5px -5px 25px cornflowerblue;
}

@media (min-width: 767px) {
  .ad-1-3 {
    width: 100% !important;
    max-width: 250px !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 3;
    box-sizing: content-box !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    border-radius: 0.75rem;
    align-self: start;
  }
}

/* ==========================================================================
   BPFMA Committee Directory Table
   W3C & WCAG 2.1 AA Compliant | Pure CSS3 | Zero Frameworks
   ========================================================================== */

.bpfma-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-surface);
  border-radius: var(--radius-ad);
  border: 0.0625rem solid var(--border-medium);
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.bpfma-data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Poppins', Verdana, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-main);
  text-align: left;
}

.bpfma-data-table th {
  background: linear-gradient(135deg, var(--navy-midnight) 0%, var(--navy-royal) 60%, var(--navy-violet) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 0.825rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 1rem 1.125rem;
  border-bottom: 0.1875rem solid var(--ruby-imperial);
  white-space: nowrap;
}

.bpfma-data-table td {
  padding: 0.875rem 1.125rem;
  border-bottom: 0.0625rem solid var(--border-subtle);
  vertical-align: middle;
}

.bpfma-data-table tbody tr {
  background-color: var(--white);
  transition: background-color 0.2s var(--transition-smooth);
}

.bpfma-data-table tbody tr:nth-child(even) {
  background-color: var(--bg-subtle);
}

.bpfma-data-table tbody tr:hover {
  background-color: rgba(230, 46, 45, 0.05);
}

.bpfma-data-table .col-name {
  color: var(--navy-deep);
  font-weight: 600;
  white-space: nowrap;
}

.bpfma-data-table .col-photo {
  width: 5.5rem;
  padding: 0.5rem;
}

.bpfma-data-table .text-center {
  text-align: center;
}

/* Fixed-size, Object-fit Cover Member Placeholder Image */
.member-photo-thumb {
  width: 4.5rem;
  height: 5.625rem;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 0.0625rem solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: block;
  margin: 0 auto;
  background-color: var(--border-subtle);
}

.table-link {
  color: var(--navy-royal);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
  white-space: nowrap;
}

.table-link:hover {
  color: var(--ruby-imperial);
  text-decoration: underline;
}

.table-email-link {
  word-break: break-all;
  white-space: normal;
}

/* Role Badges */
.designation-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-president {
  background: rgba(185, 28, 28, 0.12);
  color: var(--ruby-imperial);
  border: 0.0625rem solid rgba(185, 28, 28, 0.35);
}

.badge-vp {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 0.0625rem solid rgba(245, 158, 11, 0.4);
}

.badge-officer {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-emerald);
  border: 0.0625rem solid rgba(16, 185, 129, 0.35);
}

.badge-member {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  border: 0.0625rem solid rgba(14, 165, 233, 0.35);
}

.badge-coopted {
  background: rgba(236, 72, 153, 0.12);
  color: #be185d;
  border: 0.0625rem solid rgba(236, 72, 153, 0.35);
}

.badge-exofficio {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border: 0.0625rem solid rgba(100, 116, 139, 0.35);
}

/* High Contrast Overrides */
body.high-contrast .bpfma-table-wrapper {
  background: var(--black) !important;
  border-color: var(--hc-cyan) !important;
  box-shadow: 0 0 1rem rgba(var(--hc-cyan-bright-rgb), 0.3) !important;
}

body.high-contrast .bpfma-data-table th {
  background: var(--hc-surface) !important;
  color: var(--hc-cyan-bright) !important;
  border-bottom: 0.1875rem solid var(--hc-cyan) !important;
}

body.high-contrast .bpfma-data-table td {
  border-bottom-color: var(--hc-surface-soft) !important;
  color: var(--hc-cyan-soft) !important;
}

body.high-contrast .bpfma-data-table tbody tr {
  background-color: var(--black) !important;
}

body.high-contrast .bpfma-data-table tbody tr:nth-child(even) {
  background-color: var(--hc-surface-soft) !important;
}

body.high-contrast .bpfma-data-table tbody tr:hover {
  background-color: var(--hc-surface) !important;
}

body.high-contrast .bpfma-data-table .col-name {
  color: var(--hc-cyan-bright) !important;
}

body.high-contrast .member-photo-thumb {
  border-color: var(--hc-cyan) !important;
}

body.high-contrast .table-link {
  color: var(--hc-cyan) !important;
}

body.high-contrast .table-link:hover {
  color: var(--hc-cyan-bright) !important;
  text-shadow: 0 0 0.5rem var(--hc-cyan);
}

body.high-contrast .designation-badge {
  background: var(--hc-surface) !important;
  color: var(--hc-cyan) !important;
  border-color: var(--hc-cyan) !important;
}

/* PDF Download Action Links */
.pdf-download-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pdf-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(185, 28, 28, 0.08);
  border: 0.0625rem solid rgba(185, 28, 28, 0.25);
  color: var(--ruby-imperial);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.pdf-download-link:hover {
  background: var(--ruby-imperial);
  color: var(--white);
  border-color: var(--ruby-imperial);
  transform: translateY(-0.0625rem);
}

.pdf-icon {
  width: 0.95rem;
  height: 1.25rem;
  display: inline-block;
  flex-shrink: 0;
  object-fit: contain;
}

body.high-contrast .pdf-download-link {
  background: var(--hc-surface) !important;
  border-color: var(--hc-cyan) !important;
  color: var(--hc-cyan) !important;
}

body.high-contrast .pdf-download-link:hover {
  background: var(--hc-cyan) !important;
  color: var(--black) !important;
}

/* ==========================================================================
   Donation & Banking Layouts (Strict CSS3 | Zero Inline Styling)
   ========================================================================== */

.donation-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1rem;
  background: var(--bg-subtle);
  border: 0.0625rem solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.donation-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.donation-meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.donation-meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-deep);
  word-break: break-word;
}

.donation-meta-value.highlight-code {
  font-family: monospace, sans-serif;
  font-size: 1.05rem;
  color: var(--ruby-imperial);
  letter-spacing: 0.03em;
}

/* UPI QR Code Showcase */
.upi-qr-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin: 1.25rem 0 1rem;
  background: var(--bg-subtle);
  border: 0.0625rem solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.upi-qr-frame {
  flex-shrink: 0;
  background: var(--white);
  border: 0.0625rem solid var(--border-medium);
  border-radius: 0.625rem;
  padding: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.upi-qr-image {
  display: block;
  width: 9.5rem;
  height: 9.5rem;
  object-fit: contain;
}

.upi-instruction-block {
  flex: 1 1 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upi-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(185, 28, 28, 0.08);
  border: 0.0625rem dashed var(--ruby-imperial);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  font-family: monospace, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ruby-imperial);
  width: fit-content;
}

/* Postal Dispatch & Helpline Blocks */
.helpline-flex-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.helpline-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 0.0625rem solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-deep);
  text-decoration: none;
  transition: all 0.2s ease;
}

.helpline-chip:hover {
  background: var(--ruby-imperial);
  color: var(--white);
  border-color: var(--ruby-imperial);
  transform: translateY(-0.0625rem);
}

/* High Contrast Overrides */
body.high-contrast .donation-details-grid,
body.high-contrast .upi-qr-layout,
body.high-contrast .upi-qr-frame,
body.high-contrast .helpline-chip {
  background: var(--black) !important;
  border-color: var(--hc-cyan) !important;
}

body.high-contrast .donation-meta-label,
body.high-contrast .donation-meta-value,
body.high-contrast .helpline-chip {
  color: var(--hc-cyan-bright) !important;
}

body.high-contrast .donation-meta-value.highlight-code,
body.high-contrast .upi-id-pill {
  color: var(--hc-cyan) !important;
  border-color: var(--hc-cyan) !important;
}

/* ==========================================================================
   80-G Certificate Photoframe & Tax Relief Feature Styles
   Strict CSS3 | Zero Inline Styling | WCAG 2.1 AA Compliant
   ========================================================================== */

/* Conic-Gradient Photoframe Showcase */
.cert-photoframe-container {
  margin: 1.5rem 0 2rem;
}

.cert-photoframe {
  position: relative;
  padding: 0.625rem;
  border-radius: 1rem;
  background: conic-gradient(from 45deg, goldenrod, gold, chocolate, goldenrod);
  box-shadow: 0 0.5rem 2rem rgba(139, 69, 19, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-photoframe:hover {
  transform: translateY(-0.1875rem);
  box-shadow: 0 0.75rem 2.5rem rgba(139, 69, 19, 0.25);
}

.cert-photoframe-inner {
  background: var(--white);
  border-radius: 0.625rem;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  border: 0.125rem double goldenrod;
  text-align: center;
  position: relative;
}

.cert-crest-sphere {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(218, 165, 32, 0.12);
  border: 0.0625rem solid goldenrod;
  display: flex;
  align-items: center;
  justify-content: center;
  color: chocolate;
}

.cert-sub-authority {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.cert-main-authority {
  font-family: 'Poppins', serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.cert-badge-ribbon {
  display: inline-block;
  padding: 0.3rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(185, 28, 28, 0.08);
  border: 0.0625rem solid var(--ruby-imperial);
  color: var(--ruby-imperial);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.cert-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  text-align: left;
  margin: 1.25rem 0 1.5rem;
  background: var(--bg-subtle);
  border: 0.0625rem solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.cert-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cert-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.cert-detail-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.cert-detail-val.code-val {
  font-family: monospace, sans-serif;
  font-size: 1.05rem;
  color: var(--ruby-imperial);
  letter-spacing: 0.03em;
}

.cert-seal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 0.0625rem dashed var(--border-medium);
  padding-top: 1.25rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cert-sign-block {
  text-align: right;
  font-weight: 600;
  color: var(--navy-deep);
}

/* Tax Benefit Explanation Checkmarks */
.tax-benefit-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tax-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-main);
  line-height: 1.55;
}

.tax-check-icon {
  flex-shrink: 0;
  color: var(--emerald-base);
  margin-top: 0.15rem;
}

/* High Contrast Mode Overrides (WCAG 2.1 AA) */
body.high-contrast .cert-photoframe {
  background: var(--hc-cyan) !important;
  box-shadow: 0 0 1.5rem rgba(var(--hc-cyan-bright-rgb), 0.35) !important;
}

body.high-contrast .cert-photoframe-inner,
body.high-contrast .cert-details-grid {
  background: var(--black) !important;
  border-color: var(--hc-cyan) !important;
}

body.high-contrast .cert-crest-sphere {
  background: var(--black) !important;
  border-color: var(--hc-cyan) !important;
  color: var(--hc-cyan) !important;
}

body.high-contrast .cert-sub-authority,
body.high-contrast .cert-detail-label,
body.high-contrast .cert-seal-footer {
  color: var(--hc-cyan-soft) !important;
}

body.high-contrast .cert-main-authority,
body.high-contrast .cert-detail-val,
body.high-contrast .cert-sign-block {
  color: var(--hc-cyan-bright) !important;
}

body.high-contrast .cert-badge-ribbon,
body.high-contrast .cert-detail-val.code-val {
  background: var(--black) !important;
  border-color: var(--hc-cyan) !important;
  color: var(--hc-cyan) !important;
}

body.high-contrast .tax-check-icon {
  color: var(--hc-cyan) !important;
}

/* ==========================================================================
   Mobile Navigation Drawer & Accordion Buttons (W3C & WCAG 2.1 AA Compliant)
   ========================================================================== */

.mobile-nav-group {
  border-bottom: 0.0625rem dashed var(--border-subtle);
  padding: 0.35rem 0;
  width: 100%;
}

/* Primary Level Accordion Button */
.mobile-accordion-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 0.5rem 0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.mobile-accordion-title {
  font-family: 'Poppins', serif;
  font-size: 1.5rem;
  color: var(--text-main);
  line-height: 1.2;
  transition: color 0.2s ease, padding-left 0.2s ease;
  pointer-events: none;
}

.mobile-accordion-btn:hover .mobile-accordion-title,
.mobile-accordion-btn:focus-visible .mobile-accordion-title {
  color: var(--ruby-imperial);
  padding-left: 0.5rem;
}

/* Primary Indicator Icon Box */
.mobile-accordion-icon {
  width: 2.25rem !important;
  height: 2.25rem !important;
  border-radius: 0.5rem;
  background: var(--bg-subtle);
  border: 0.0625rem solid var(--border-subtle);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy-deep);
  flex-shrink: 0;
  pointer-events: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.mobile-accordion-btn:hover .mobile-accordion-icon,
.mobile-accordion-btn:focus-visible .mobile-accordion-icon {
  background: rgba(185, 28, 28, 0.12);
  color: var(--ruby-imperial);
  border-color: var(--ruby-imperial);
}

/* Primary Standalone Links (e.g. HOME, CONTACT US) */
.mobile-nav-link {
  display: block;
  font-family: 'Poppins', serif;
  font-size: 1.5rem;
  color: var(--text-main);
  padding: 0.5rem 0;
  text-decoration: none;
  pointer-events: auto !important;
  cursor: pointer;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--ruby-imperial);
  padding-left: 0.5rem;
}

/* Accordion Collapsible Drawer Content */
.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--transition-smooth);
  padding-left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.mobile-accordion-content.expanded {
  max-height: 80rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Secondary Sub-Level Accordion Button (e.g. Current Sub-Committees) */
.mobile-sub-accordion-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 0.4rem 0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.mobile-sub-accordion-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color 0.2s ease, padding-left 0.2s ease;
  pointer-events: none;
}

.mobile-sub-accordion-btn:hover .mobile-sub-accordion-title,
.mobile-sub-accordion-btn:focus-visible .mobile-sub-accordion-title {
  color: var(--ruby-imperial);
  padding-left: 0.35rem;
}

.mobile-sub-accordion-icon {
  width: 1.75rem !important;
  height: 1.75rem !important;
  border-radius: 0.375rem;
  background: var(--bg-subtle);
  border: 0.0625rem solid var(--border-subtle);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-deep);
  flex-shrink: 0;
  pointer-events: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.mobile-sub-accordion-btn:hover .mobile-sub-accordion-icon,
.mobile-sub-accordion-btn:focus-visible .mobile-sub-accordion-icon {
  background: rgba(185, 28, 28, 0.12);
  color: var(--ruby-imperial);
  border-color: var(--ruby-imperial);
}

/* Destination Sub-Links (100% Clickable) */
.mobile-sub-link {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0;
  text-decoration: none;
  pointer-events: auto !important;
  cursor: pointer;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-sub-link:hover,
.mobile-sub-link:focus-visible {
  color: var(--ruby-imperial);
  padding-left: 0.35rem;
}

/* Nested Tertiary Sub-Sub Box */
.mobile-sub-sub-box {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.mobile-sub-sub-box.expanded {
  max-height: 40rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.mobile-sub-sub-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-faint);
  padding: 0.25rem 0;
  text-decoration: none;
  pointer-events: auto !important;
  cursor: pointer;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-sub-sub-link:hover,
.mobile-sub-sub-link:focus-visible {
  color: var(--navy-deep);
  padding-left: 0.35rem;
}

/* High Contrast Overrides */
body.high-contrast .mobile-accordion-title,
body.high-contrast .mobile-nav-link {
  color: var(--hc-cyan) !important;
}

body.high-contrast .mobile-sub-accordion-title,
body.high-contrast .mobile-sub-link {
  color: var(--hc-cyan-soft) !important;
}

body.high-contrast .mobile-sub-sub-link {
  color: var(--hc-cyan-deep) !important;
}

body.high-contrast .mobile-accordion-icon,
body.high-contrast .mobile-sub-accordion-icon {
  background: var(--hc-surface) !important;
  color: var(--hc-cyan) !important;
  border-color: var(--hc-cyan) !important;
}

body.high-contrast .mobile-accordion-btn:hover .mobile-accordion-icon,
body.high-contrast .mobile-accordion-btn:focus-visible .mobile-accordion-icon,
body.high-contrast .mobile-sub-accordion-btn:hover .mobile-sub-accordion-icon,
body.high-contrast .mobile-sub-accordion-btn:focus-visible .mobile-sub-accordion-icon {
  background: var(--hc-cyan) !important;
  color: var(--black) !important;
}

/* ==========================================================================
   Photo Gallery Grid Uniform Frame & Caption Refinements
   ========================================================================== */

.photo-showcase-grid .photo-thumbnail-trigger.frame-portrait {
  aspect-ratio: 750 / 500;
}

.photo-showcase-grid .photo-thumbnail-trigger.frame-portrait .photo-thumbnail-img {
  object-position: center 68%;
}

.photo-frame-card .photo-card-caption {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-frame-card .photo-caption-title:last-child,
.dialog-footer-bar .dialog-photo-title:last-child {
  margin-bottom: 0;
}
