/* ==========================================================================
   Society for Banana Research and Development (SBRD)
   Official Stylesheet - Refined Agricultural Green & Golden Theme
   Compliant with GIGW 3.0 & WCAG 2.1 Level AA Accessibility
   ========================================================================== */

:root {
  /* Primary Theme Palette (Botanical Forest & Emerald Greens) */
  --bs-primary: #0f5132;
  --bs-primary-rgb: 15, 81, 50;
  --primary-green: #0f5132;
  --primary-theme: #0a4d2e;
  --primary-dark: #052e1a;
  --primary-navy: #0f5132;
  --primary-glow: #10b981;
  --primary-accent: #166534;
  
  /* Secondary Palette (Golden Yellow & Warm Accents) */
  --secondary-gold: #f59e0b;
  --secondary-yellow: #ffc107;
  --secondary-light: #fef3c7;
  
  /* Neutral Palette */
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  
  /* Elevation Shadows */
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 18px rgba(15, 81, 50, 0.08);
  --shadow-lg: 0 12px 35px rgba(15, 81, 50, 0.12);
  --shadow-gold: 0 8px 25px rgba(245, 158, 11, 0.22);
}

/* ==========================================================================
   Accessibility Modes (GIGW 3.0 & WCAG 2.1 Level AAA Standard High Contrast)
   ========================================================================== */
body.high-contrast,
html.high-contrast {
  --primary-navy: #ffff00;
  --primary-green: #ffff00;
  --primary-theme: #ffff00;
  --secondary-gold: #ffff00;
  --secondary-yellow: #ffff00;
  --text-dark: #ffffff;
  --text-muted: #e2e8f0;
  --bg-light: #000000;
  --bg-white: #000000;
  --border-color: #ffff00;
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.high-contrast .pale-digital-bg,
body.high-contrast .ambient-glow-1,
body.high-contrast .ambient-glow-2,
body.high-contrast .bio-particle,
body.high-contrast .header-ref-wave-left,
body.high-contrast #scrollProgressBar,
body.high-contrast .hero-leaves-svg,
body.high-contrast .hero-leaves-svg-left {
  display: none !important;
}

/* Master Header & Navigation in High Contrast */
body.high-contrast .top-accessibility-bar {
  background: #000000 !important;
  color: #ffffff !important;
  border-bottom: 2px solid #ffff00 !important;
}
body.high-contrast .top-accessibility-bar a {
  color: #ffff00 !important;
  text-decoration: underline !important;
}
body.high-contrast .font-resizer-btn {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 1.5px solid #ffff00 !important;
}
body.high-contrast .font-resizer-btn:hover,
body.high-contrast .font-resizer-btn.active {
  background: #ffff00 !important;
  color: #000000 !important;
  font-weight: 900 !important;
}

body.high-contrast .sbrd-master-header {
  background: #000000 !important;
  color: #ffffff !important;
  border-bottom: 3px solid #ffff00 !important;
  box-shadow: none !important;
}
body.high-contrast .header-title-hindi,
body.high-contrast .header-title-english {
  color: #ffff00 !important;
}
body.high-contrast .header-sub-hindi,
body.high-contrast .header-sub-english {
  color: #ffffff !important;
}
body.high-contrast .header-act-badge {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}
body.high-contrast .header-badge-tag {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #ffff00 !important;
}
body.high-contrast .header-badge-tag a,
body.high-contrast .header-badge-tag i {
  color: #ffff00 !important;
}
body.high-contrast .sbrd-logo-main {
  border-color: #ffff00 !important;
  background-color: #000000 !important;
}

/* Navbar High Contrast */
body.high-contrast .main-navbar {
  background: #000000 !important;
  border-top: 1px solid #ffffff !important;
  border-bottom: 3px solid #ffff00 !important;
  box-shadow: none !important;
}
body.high-contrast .main-navbar .nav-link {
  color: #ffffff !important;
}
body.high-contrast .main-navbar .nav-link:hover,
body.high-contrast .main-navbar .nav-link.active {
  background-color: #222222 !important;
  color: #ffff00 !important;
  border-bottom: 3px solid #ffff00 !important;
}
body.high-contrast .main-navbar .dropdown-menu {
  background-color: #000000 !important;
  border: 2px solid #ffff00 !important;
}
body.high-contrast .main-navbar .dropdown-item {
  color: #ffffff !important;
  background-color: #000000 !important;
}
body.high-contrast .main-navbar .dropdown-item:hover {
  background-color: #ffff00 !important;
  color: #000000 !important;
  font-weight: bold !important;
}

/* Ticker High Contrast */
body.high-contrast .ticker-wrap {
  background: #000000 !important;
  border-bottom: 2px solid #ffff00 !important;
}
body.high-contrast .ticker-label {
  background: #ffff00 !important;
  color: #000000 !important;
  font-weight: 900 !important;
}
body.high-contrast .ticker-content span,
body.high-contrast .ticker-content strong {
  color: #ffffff !important;
}
body.high-contrast .ticker-content a {
  color: #ffff00 !important;
  text-decoration: underline !important;
}

/* Hero, Cards, & Section Elements */
body.high-contrast .hero-refined {
  background: #000000 !important;
  color: #ffffff !important;
  border-bottom: 2px solid #ffff00 !important;
}
body.high-contrast .hero-glass-card,
body.high-contrast .card,
body.high-contrast .card-custom,
body.high-contrast .president-card-refined,
body.high-contrast .bank-digital-card,
body.high-contrast .festival-vector-banner {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffff00 !important;
  box-shadow: none !important;
}
body.high-contrast .stats-counter-bar {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
  color: #ffffff !important;
}
body.high-contrast .stat-number,
body.high-contrast .festival-title-main,
body.high-contrast .festival-subtitle-tag {
  color: #ffff00 !important;
}
body.high-contrast .stat-label {
  color: #ffffff !important;
}
body.high-contrast .section-title,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6 {
  color: #ffff00 !important;
}
body.high-contrast .section-title::after {
  background: #ffff00 !important;
}
body.high-contrast p,
body.high-contrast span,
body.high-contrast li,
body.high-contrast td,
body.high-contrast th,
body.high-contrast label,
body.high-contrast .text-secondary,
body.high-contrast .text-muted,
body.high-contrast .text-dark {
  color: #ffffff !important;
}
body.high-contrast a:not(.btn):not(.nav-link):not(.dropdown-item) {
  color: #ffff00 !important;
  text-decoration: underline !important;
}
body.high-contrast .text-primary,
body.high-contrast .text-success,
body.high-contrast .text-warning,
body.high-contrast .text-danger,
body.high-contrast .text-info {
  color: #ffff00 !important;
}

/* Buttons & Badges in High Contrast */
body.high-contrast .btn-primary,
body.high-contrast .btn-success,
body.high-contrast .btn-warning,
body.high-contrast .btn-dark,
body.high-contrast .btn-outline-primary,
body.high-contrast .btn-outline-success,
body.high-contrast .btn-outline-warning,
body.high-contrast .btn-outline-dark {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
  font-weight: bold !important;
}
body.high-contrast .btn:hover,
body.high-contrast .btn:focus {
  background-color: #ffff00 !important;
  color: #000000 !important;
  border-color: #ffff00 !important;
}
body.high-contrast .badge {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border: 1px solid #ffff00 !important;
}

/* Forms & Tables in High Contrast */
body.high-contrast .form-control,
body.high-contrast .form-select,
body.high-contrast textarea,
body.high-contrast input {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}
body.high-contrast .form-control:focus,
body.high-contrast .form-select:focus {
  border-color: #ffffff !important;
  box-shadow: 0 0 8px #ffff00 !important;
}
body.high-contrast .table,
body.high-contrast table {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffff00 !important;
}
body.high-contrast .table th,
body.high-contrast .table td {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
}
body.high-contrast .table-striped>tbody>tr:nth-of-type(odd)>* {
  background-color: #111111 !important;
}

/* Containers with light backgrounds */
body.high-contrast .bg-light,
body.high-contrast .bg-white,
body.high-contrast .bg-success-subtle,
body.high-contrast .bg-warning-subtle,
body.high-contrast .bg-info-subtle,
body.high-contrast .bg-danger-subtle {
  background-color: #0d0d0d !important;
  color: #ffffff !important;
  border-color: #ffff00 !important;
}

/* Footer in High Contrast */
body.high-contrast .site-footer {
  background: #000000 !important;
  color: #ffffff !important;
  border-top: 3px solid #ffff00 !important;
}
body.high-contrast .footer-heading {
  color: #ffff00 !important;
}
body.high-contrast .footer-heading::after {
  background: #ffff00 !important;
}
body.high-contrast .footer-links a {
  color: #ffffff !important;
}
body.high-contrast .footer-links a:hover {
  color: #ffff00 !important;
  text-decoration: underline !important;
}
body.high-contrast .footer-social-icon {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 1.5px solid #ffff00 !important;
}
body.high-contrast .footer-bottom {
  background: #000000 !important;
  border-top: 1px solid #ffff00 !important;
  color: #ffffff !important;
}
body.high-contrast #backToTopBtn {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}

/* Botanical Stage & Anime Elements in High Contrast */
body.high-contrast .botanical-core-wrap {
  background-color: #000000 !important;
  border: 2px solid #ffff00 !important;
}
body.high-contrast .botanical-variety-tag {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}
body.high-contrast .nexus-status-pill {
  background-color: #000000 !important;
  border: 2px solid #ffff00 !important;
}
body.high-contrast .nexus-status-pill span {
  color: #ffff00 !important;
}
body.high-contrast .anime-science-canvas-wrap {
  background-color: #000000 !important;
  border-color: #ffff00 !important;
}
body.high-contrast .anime-science-canvas-wrap svg text {
  fill: #ffff00 !important;
}

/* Modal in High Contrast */
body.high-contrast .modal-content {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffff00 !important;
}
body.high-contrast .modal-header {
  background-color: #000000 !important;
  border-bottom: 2px solid #ffff00 !important;
}
body.high-contrast .modal-body {
  background-color: #000000 !important;
}

body.dark-mode {
  --primary-navy: #34d399;
  --primary-green: #10b981;
  --primary-theme: #059669;
  --text-dark: #f8fafc;
  --text-muted: #94a3b8;
  --bg-light: #0b1510;
  --bg-white: #13241b;
  --border-color: #204030;
  background-color: #0b1510 !important;
  color: #f8fafc !important;
}

/* Font Resizing Scale */
body.font-size-sm { font-size: 0.875rem; }
body.font-size-md { font-size: 1rem; }
body.font-size-lg { font-size: 1.25rem; }
body.font-size-xl { font-size: 1.5rem; }

html{
  overflow-x: hidden;
}
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .font-heading {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.015em;
}

/* ==========================================================================
   Bootstrap Component Color Overrides for Green Theme
   ========================================================================== */
.btn-primary {
  background-color: #0f5132 !important;
  border-color: #0f5132 !important;
  color: #ffffff !important;
  font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #073b22 !important;
  border-color: #073b22 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 81, 50, 0.25);
}

.btn-outline-primary {
  color: #0f5132 !important;
  border-color: #0f5132 !important;
  font-weight: 600;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
  background-color: #0f5132 !important;
  border-color: #0f5132 !important;
  color: #ffffff !important;
}

.text-primary {
  color: #0f5132 !important;
}

.bg-primary {
  background-color: #0f5132 !important;
}

.border-primary {
  border-color: #0f5132 !important;
}

.badge.bg-primary {
  background-color: #0f5132 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Top Scroll Progress Bar
   ========================================================================== */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #0f5132 0%, #f59e0b 50%, #10b981 100%);
  z-index: 10000;
  box-shadow: 0 0 10px rgba(15, 81, 50, 0.7);
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Botanical & Scientific Preloader
   ========================================================================== */
#sbrdPreloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f0fdf4 60%, #e2e8f0 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

#sbrdPreloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-emblem-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3.5px solid transparent;
  border-top-color: #0f5132;
  border-bottom-color: #f59e0b;
  animation: preloaderSpin 1.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.preloader-ring-outer {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(15, 81, 50, 0.25);
  animation: preloaderSpinReverse 8s linear infinite;
}

.preloader-logo {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(15, 81, 50, 0.15);
  border: none;
}

.preloader-bar-wrap {
  width: 180px;
  height: 4px;
  background: rgba(15, 81, 50, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-top: 14px;
}

.preloader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #0f5132, #f59e0b);
  border-radius: 10px;
  animation: preloaderBar 1.4s ease-in-out infinite;
}

@keyframes preloaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes preloaderSpinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes preloaderBar {
  0% { left: -40%; width: 40%; }
  50% { width: 70%; }
  100% { left: 100%; width: 40%; }
}

/* ==========================================================================
   Pale Digital Background
   ========================================================================== */
.pale-digital-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pale-digital-grid {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(15, 81, 50, 0.05) 1.5px, transparent 1.5px),
    radial-gradient(rgba(245, 158, 11, 0.04) 1.5px, transparent 1.5px);
  background-size: 40px 40px, 80px 80px;
  background-position: 0 0, 20px 20px;
  opacity: 0.7;
}

.ambient-glow-1 {
  position: absolute;
  top: -15%;
  left: 10%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 81, 50, 0.05) 0%, rgba(15, 81, 50, 0) 70%);
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: absolute;
  top: 40%;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0) 70%);
  animation: floatAmbient 22s ease-in-out infinite alternate-reverse;
}

.bio-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.25;
}

.bio-particle.p1 {
  top: 20%;
  left: 15%;
  width: 8px;
  height: 8px;
  background: #0f5132;
  box-shadow: 0 0 10px #0f5132;
  animation: floatBio1 12s infinite ease-in-out;
}

.bio-particle.p2 {
  top: 60%;
  left: 80%;
  width: 10px;
  height: 10px;
  background: #f59e0b;
  box-shadow: 0 0 12px #f59e0b;
  animation: floatBio2 15s infinite ease-in-out;
}

.bio-particle.p3 {
  top: 75%;
  left: 30%;
  width: 6px;
  height: 6px;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: floatBio3 14s infinite ease-in-out;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes floatBio1 {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-35px) translateX(20px); }
  100% { transform: translateY(0) translateX(0); }
}

@keyframes floatBio2 {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-45px) translateX(-25px); }
  100% { transform: translateY(0) translateX(0); }
}

@keyframes floatBio3 {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(30px) translateX(30px); }
  100% { transform: translateY(0) translateX(0); }
}

/* ==========================================================================
   Scroll-Driven Reveal Animation Framework
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.reveal-left { transform: translateX(-35px); }
.scroll-reveal.reveal-right { transform: translateX(35px); }
.scroll-reveal.reveal-scale { transform: scale(0.93) translateY(20px); }
.scroll-reveal.is-visible { opacity: 1; transform: translate(0, 0) scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .pale-digital-bg,
  .ambient-glow-1,
  .ambient-glow-2,
  .bio-particle {
    animation: none !important;
    opacity: 0.03 !important;
  }
  .scroll-reveal { 
    opacity: 1 !important; 
    transform: none !important; 
    transition: none !important; 
  }
  #sbrdPreloader { 
    display: none !important; 
  }
  .ticker-content { 
    animation: none !important; 
    white-space: normal !important;
  }
}

/* ==========================================================================
   Accessibility Topbar
   ========================================================================== */
.top-accessibility-bar {
  background: linear-gradient(90deg, #052e1a 0%, #0f5132 50%, #052e1a 100%);
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 100;
}

.top-accessibility-bar a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-accessibility-bar a:hover {
  color: var(--secondary-yellow);
}

.font-resizer-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 0.75rem;
  line-height: 1.4;
  margin-left: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.font-resizer-btn:hover, .font-resizer-btn.active {
  background: var(--secondary-gold);
  color: #000;
  border-color: var(--secondary-gold);
}

/* ==========================================================================
   Refined SBRD Master Header
   ========================================================================== */
.sbrd-master-header {
  position: relative;
  background: #ffffff;
  padding: 18px 0 16px 0;
  border-bottom: 4px solid var(--secondary-gold);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 81, 50, 0.08);
  z-index: 90;
}

/* Reference Left Curved Wave (Golden Yellow & Deep Botanical Green) */
.header-ref-wave-left {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 140px;
  pointer-events: none;
  z-index: 1;
}

.header-inner-content {
  position: relative;
  z-index: 3;
}

/* SBRD Logo on Left */
.sbrd-logo-container-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sbrd-logo-main {
  max-height: 105px;
  width: auto;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(15, 81, 50, 0.15);
  border: none;
  outline: none;
  transition: transform 0.35s ease;
}

.sbrd-logo-main:hover {
  transform: scale(1.05) rotate(2deg);
}

/* Header Titles & Typography */
.header-title-hindi {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f5132;
  margin-bottom: 1px;
  letter-spacing: 0.5px;
}

.header-title-english {
  font-size: 2rem;
  font-weight: 900;
  color: #0a4d2e;
  line-height: 1.2;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* Reference Banana Motif Divider */
.header-banana-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 6px 0;
}

.header-banana-divider .divider-line {
  height: 2px;
  flex: 1;
  max-width: 220px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0) 0%, #f59e0b 50%, rgba(245, 158, 11, 0) 100%);
}

.header-banana-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
}

.header-sub-hindi {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1px;
}

.header-sub-english {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

/* Reference Act Pill Badge */
.header-act-badge {
  background-color: #fef3c7;
  color: #78350f;
  border: 1px solid #fde047;
  border-radius: 30px;
  padding: 4px 18px;
  font-size: 0.775rem;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.12);
}

.header-badge-tag {
  font-size: 0.78rem;
  border-radius: 20px;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #0f5132;
  font-weight: 700;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.main-navbar {
  background: linear-gradient(90deg, #052e1a 0%, #0f5132 50%, #15803d 100%);
  padding: 0;
  box-shadow: 0 5px 18px rgba(5, 46, 26, 0.25);
  z-index: 80;
}

.main-navbar .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 15px 14px !important;
  transition: all 0.25s ease;
  position: relative;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.14);
  color: #fef08a !important;
}

.main-navbar .nav-link.active:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 3px;
  background-color: var(--secondary-gold);
  border-radius: 3px 3px 0 0;
}

/* Ensure Dropdown Caret is Always Visible and Never Overwritten */
.main-navbar .nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.main-navbar .nav-link.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.35em;
  vertical-align: 0.15em;
  content: "";
  border-top: 0.38em solid currentColor;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  position: static !important;
  height: 0 !important;
  width: 0 !important;
  background: transparent !important;
}

.main-navbar .nav-link.dropdown-toggle.active {
  border-bottom: 3px solid var(--secondary-gold);
}

.main-navbar .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  padding: 8px 0;
  margin-top: 4px;
  border-top: 3px solid var(--secondary-gold);
}

.main-navbar .dropdown-item {
  font-size: 0.875rem;
  padding: 9px 22px;
  color: #1e293b;
  font-weight: 600;
  transition: all 0.2s ease;
}

.main-navbar .dropdown-item:hover {
  background-color: #f0fdf4;
  color: #0f5132;
  padding-left: 26px;
}

/* Scrolling Ticker (Immediately visible on load, smooth continuous loop) */
.ticker-wrap {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 7px 0;
  font-size: 0.875rem;
  overflow: hidden;
  position: relative;
  z-index: 70;
}

.ticker-label {
  background: #0f5132;
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.775rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 70s linear infinite;
  will-change: transform;
}

.ticker-wrap:hover .ticker-content,
.ticker-wrap:focus-within .ticker-content {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* Global Pale Form Placeholders */
::placeholder,
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: #cbd5e1 !important;
  opacity: 0.65 !important;
  font-weight: 300 !important;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder {
  color: #cbd5e1 !important;
  opacity: 0.65 !important;
  font-weight: 300 !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder,
.form-control::-moz-placeholder {
  color: #cbd5e1 !important;
  opacity: 0.65 !important;
  font-weight: 300 !important;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder,
.form-control:-ms-input-placeholder {
  color: #cbd5e1 !important;
  opacity: 0.65 !important;
  font-weight: 300 !important;
}

/* Also soften helper hints below form inputs (.form-text) */
.form-text,
.form-text.text-muted {
  color: #94a3b8 !important;
  font-weight: 400;
  opacity: 0.85;
}

body.high-contrast ::placeholder,
body.high-contrast input::placeholder,
body.high-contrast textarea::placeholder,
body.high-contrast .form-control::placeholder {
  color: #ffff00 !important;
  opacity: 0.85 !important;
}

/* Publications Module Layout Fixes */
.publications-sidebar {
  min-height: 480px;
}
@media (min-width: 992px) {
  .publications-sidebar {
    min-height: 560px;
  }
}

/* ==========================================================================
   Hero Showcase Section
   ========================================================================== */
.hero-refined {
  position: relative;
  background: linear-gradient(135deg, #052e1a 0%, #0f5132 55%, #15803d 100%);
  color: #ffffff;
  padding: 75px 0;
  overflow: hidden;
  z-index: 10;
}

.hero-leaves-svg {
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 420px;
  height: 420px;
  opacity: 0.15;
  pointer-events: none;
  animation: floatSlow 8s ease-in-out infinite;
}

.hero-leaves-svg-left {
  position: absolute;
  left: -80px;
  top: -40px;
  width: 320px;
  height: 320px;
  opacity: 0.12;
  pointer-events: none;
  animation: floatSlow 10s ease-in-out infinite reverse;
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   Hero Anime.js Botanical Banana & Plantain Stage
   ========================================================================== */
.hero-botanical-stage,
.hero-nexus-container {
  width: 340px;
  height: 340px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.botanical-canopy-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.musa-leaf {
  transform-origin: 180px 240px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

.botanical-core-wrap {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: none;
  outline: none;
}

.botanical-core-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: none;
  outline: none;
  object-fit: cover;
}

.botanical-aura-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.7);
  pointer-events: none;
}

.botanical-bunch-wrap {
  position: absolute;
  bottom: 22px;
  right: 28px;
  z-index: 12;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  cursor: pointer;
  transition: transform 0.25s ease;
}

.botanical-bunch-wrap:hover {
  transform: scale(1.15) rotate(5deg);
}

.botanical-hanging-bunch {
  transform-origin: top center;
}

.botanical-variety-tag {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #0f5132;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border: 1.5px solid #86efac;
  z-index: 14;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  user-select: none;
}

.botanical-variety-tag:hover {
  transform: scale(1.08) !important;
  background: #fef08a;
  border-color: #f59e0b;
  color: #78350f;
}

.botanical-variety-tag.tag-1 {
  top: 15px;
  left: 10px;
}

.botanical-variety-tag.tag-2 {
  top: 38px;
  right: 8px;
}

.botanical-variety-tag.tag-3 {
  bottom: 20px;
  left: 5px;
}

.botanical-variety-tag.tag-4 {
  bottom: 35px;
  right: 5px;
}

.nexus-orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.nexus-ring-outer {
  inset: 0px;
  border: 1.5px dashed rgba(245, 158, 11, 0.45);
}

.nexus-ring-inner {
  inset: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nexus-core-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nexus-core-logo {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  border: none;
  outline: none;
}

.nexus-core-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.6);
  pointer-events: none;
}

.nexus-node {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f5132;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border: 2px solid #f59e0b;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nexus-node:hover {
  background-color: #f59e0b;
  color: #000000;
  transform: scale(1.18);
}

.nexus-node.node-1 { top: 6px; left: 138px; }
.nexus-node.node-2 { top: 70px; right: 8px; }
.nexus-node.node-3 { bottom: 35px; right: 35px; }
.nexus-node.node-4 { bottom: 35px; left: 35px; }
.nexus-node.node-5 { top: 70px; left: 8px; }

.nexus-status-pill {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #86efac;
  z-index: 15;
  white-space: nowrap;
}

.nexus-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* ==========================================================================
   Anime.js Interactive Science Explorer Matrix
   ========================================================================== */
.dimension-pill {
  transition: all 0.25s ease;
  font-size: 0.875rem;
}

.anime-science-canvas-wrap {
  border-color: #bbf7d0 !important;
}

.anime-svg-stage {
  max-height: 270px;
}

.anime-floating-node {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.anime-floating-node:hover {
  transform: scale(1.15);
}

.anime-metric-val {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

/* ==========================================================================
   Stat Impact Counters Bar
   ========================================================================== */
.stats-counter-bar {
  background: linear-gradient(135deg, #052e1a 0%, #0f5132 50%, #15803d 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  margin-top: -40px;
  position: relative;
  z-index: 20;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.stat-item {
  text-align: center;
  padding: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.35rem;
  font-weight: 800;
  color: #fef08a;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Section Titles & Universal Card Aesthetics
   ========================================================================== */
.section-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: #0a4d2e;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b 0%, #0f5132 100%);
  border-radius: 3px;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.card-custom {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 81, 50, 0.3);
}

/* ==========================================================================
   Master Image & Text Carousel Slider
   ========================================================================== */
.sbrd-image-text-carousel {
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 40px rgba(5, 46, 26, 0.25);
}

.sbrd-image-text-carousel .carousel-item {
  min-height: 380px;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.sbrd-image-text-carousel .slide-festival {
  background: linear-gradient(135deg, #052e1a 0%, #0f5132 50%, #78350f 100%);
}

.sbrd-image-text-carousel .slide-biodiversity {
  background: linear-gradient(135deg, #052e1a 0%, #0a4d2e 50%, #15803d 100%);
}

.sbrd-image-text-carousel .slide-bioprotect {
  background: linear-gradient(135deg, #0f172a 0%, #0f5132 50%, #881337 100%);
}

.sbrd-image-text-carousel .slide-circular {
  background: linear-gradient(135deg, #052e1a 0%, #166534 50%, #d97706 100%);
}

.slider-slide-content {
  position: relative;
  z-index: 5;
}

.slider-visual-art-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid #f59e0b;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-visual-art-card:hover {
  transform: translateY(-6px) scale(1.03);
}

.slider-icon-hero {
  font-size: 4rem;
  line-height: 1;
  display: inline-block;
  animation: floatBio1 4s ease-in-out infinite;
}

.sbrd-image-text-carousel .carousel-indicators {
  margin-bottom: 1rem;
}

.sbrd-image-text-carousel .carousel-indicators [data-bs-target] {
  width: 32px;
  height: 6px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.45);
  border: none;
  margin: 0 4px;
  transition: all 0.35s ease;
}

.sbrd-image-text-carousel .carousel-indicators .active {
  width: 52px;
  background-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.sbrd-image-text-carousel .carousel-control-prev,
.sbrd-image-text-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5, 46, 26, 0.65);
  border-radius: 50%;
  margin: 0 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  opacity: 0.85;
  transition: all 0.25s ease;
}

.sbrd-image-text-carousel .carousel-control-prev:hover,
.sbrd-image-text-carousel .carousel-control-next:hover {
  background: #0f5132;
  border-color: #f59e0b;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* High Contrast mode for Slider */
body.high-contrast .sbrd-image-text-carousel {
  border: 3px solid #ffff00 !important;
  background: #000000 !important;
  box-shadow: none !important;
}

body.high-contrast .sbrd-image-text-carousel .carousel-item {
  background: #000000 !important;
}

body.high-contrast .slider-visual-art-card {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
  color: #ffffff !important;
}

body.high-contrast .slider-visual-art-card .text-dark {
  color: #ffffff !important;
}

body.high-contrast .sbrd-image-text-carousel .carousel-indicators [data-bs-target] {
  background-color: #ffffff !important;
}

body.high-contrast .sbrd-image-text-carousel .carousel-indicators .active {
  background-color: #ffff00 !important;
}

body.high-contrast .sbrd-image-text-carousel .carousel-control-prev,
body.high-contrast .sbrd-image-text-carousel .carousel-control-next {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
}

/* ==========================================================================
   National Banana Fair 2027 Showstopper Banner
   ========================================================================== */
.festival-vector-banner {
  background: radial-gradient(circle at 10% 10%, #f0fdf4 0%, #ffffff 60%, #ddffef 100%);
  border: 2px solid #86efac;
  border-radius: 22px;
  padding: 38px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}

.festival-badge-ribbon {
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.festival-title-main {
  font-size: 2.4rem;
  font-weight: 900;
  color: #78350f;
  line-height: 1.15;
  text-transform: uppercase;
}

.festival-subtitle-tag {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f5132;
}

/* ==========================================================================
   President Citation Card
   ========================================================================== */
.president-card-refined {
  background: #ffffff;
  border-radius: 18px;
  border-left: 6px solid #0f5132;
  box-shadow: var(--shadow-md);
  padding: 38px;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  z-index: 10;
}

.president-avatar-badge {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: linear-gradient(135deg, #052e1a 0%, #0f5132 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 3.5px solid #f59e0b;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Fintech-Style Digital Bank Remittance Card
   ========================================================================== */
.bank-digital-card {
  background: linear-gradient(135deg, #052e1a 0%, #0a4d2e 50%, #15803d 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 15px 35px rgba(5, 46, 26, 0.35);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.copy-btn-interactive {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn-interactive:hover {
  background: var(--secondary-gold);
  color: #000000;
  border-color: var(--secondary-gold);
}

.qr-code-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border: 2px solid #e2e8f0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #052e1a;
  color: #cbd5e1;
  padding-top: 60px;
  border-top: 4px solid var(--secondary-gold);
  position: relative;
  z-index: 10;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary-gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: #fef08a;
  transform: translateX(4px);
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-right: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-icon:hover {
  background: var(--secondary-gold);
  color: #000000;
  transform: scale(1.12);
}

.footer-bottom {
  background: #021a0e;
  padding: 20px 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

#backToTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0f5132;
  color: #ffffff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s ease;
}

#backToTopBtn:hover {
  background: var(--secondary-gold);
  color: #000000;
  transform: translateY(-3px);
}

/* Google Translate layout cleanup */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; border: none !important; }


/* ==========================================================================
   RESPONSIVE ENHANCEMENT LAYER
   Mobile-First Optimization — Theme, Colors & Data Unchanged
   Breakpoints: 1400 / 1200 / 992 / 768 / 576 / 400
   ========================================================================== */

/* ---------- 1. GLOBAL BASE & FLUID CONTAINER PADDING ---------- */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

img, svg, video, iframe { max-width: 100%; height: auto; }

.container-fluid.px-lg-5 {
  padding-left: clamp(12px, 3vw, 3rem);
  padding-right: clamp(12px, 3vw, 3rem);
}

/* Prevent horizontal scroll from fixed-width decorative elements */
.pale-digital-bg, .hero-refined, .sbrd-master-header,
.festival-vector-banner, .stats-counter-bar { overflow: hidden; }

/* ---------- 2. FLUID TYPOGRAPHY ---------- */
.header-title-english { font-size: clamp(1.1rem, 1.5vw + 0.7rem, 1.75rem); }
.header-title-hindi   { font-size: clamp(0.95rem, 1.1vw + 0.55rem, 1.35rem); }
.header-sub-hindi     { font-size: clamp(0.82rem, 0.5vw + 0.6rem, 0.95rem); }
.header-sub-english   { font-size: clamp(0.78rem, 0.5vw + 0.55rem, 0.9rem); }
.section-title        { font-size: clamp(1.3rem, 1.6vw + 0.75rem, 1.95rem); }
.festival-title-main  { font-size: clamp(1.35rem, 2.6vw + 0.55rem, 2.4rem); }
.festival-subtitle-tag{ font-size: clamp(0.95rem, 0.9vw + 0.6rem, 1.2rem); }
.stat-number          { font-size: clamp(1.4rem, 1.8vw + 0.9rem, 2.35rem); }
.stat-label           { font-size: clamp(0.68rem, 0.5vw + 0.55rem, 0.85rem); }
.hero-refined .display-4,
.hero-refined h1      { font-size: clamp(1.55rem, 3vw + 0.6rem, 3.4rem) !important; line-height: 1.22; }
.hero-refined .lead   { font-size: clamp(0.95rem, 1vw + 0.6rem, 1.2rem) !important; }
.carousel-item .display-6 { font-size: clamp(1.35rem, 2.4vw + 0.5rem, 2.5rem) !important; }
.president-card-refined p.lead,
.card-custom p.lead   { font-size: clamp(0.92rem, 0.6vw + 0.65rem, 1.05rem) !important; }

/* ---------- 3. TOP ACCESSIBILITY BAR ---------- */
.top-accessibility-bar { padding: 8px 0; }
.top-accessibility-bar .small { font-size: 0.78rem; }

@media (max-width: 991.98px) {
  .top-accessibility-bar .d-flex.justify-content-between {
    justify-content: center !important;
    text-align: center;
  }
  .top-accessibility-bar .d-flex.align-items-center.gap-3 {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }
  .top-accessibility-bar .d-flex.align-items-center.gap-2 {
    justify-content: center;
    width: 100%;
  }
}
@media (max-width: 575.98px) {
  .top-accessibility-bar { font-size: 0.72rem; }
  .top-accessibility-bar .font-resizer-btn { padding: 1px 6px; font-size: 0.7rem; }
  .top-accessibility-bar .text-secondary.opacity-50 { display: none; }
  .top-accessibility-bar select { min-width: 92px !important; font-size: 0.72rem !important; }
  .top-accessibility-bar .d-flex.gap-3 { gap: 0.5rem !important; }
  .top-accessibility-bar a { font-size: 0.72rem; }
}

/* ---------- 4. MASTER HEADER ---------- */
.sbrd-master-header { padding: 14px 0 12px; }
.sbrd-logo-main { max-height: clamp(60px, 10vw, 200px); }

@media (max-width: 991.98px) {
  .sbrd-master-header { padding: 12px 0 10px; }
  .sbrd-logo-main { max-height: 72px; }
  .header-banana-divider .divider-line { max-width: 90px; }
  .header-banana-icon svg { width: 18px; height: 18px; }
}
@media (max-width: 767.98px) {
  .sbrd-master-header { padding: 10px 0 8px; }
  .sbrd-logo-main { max-height: 62px; }
  .header-banana-divider { gap: 6px; margin: 2px 0 4px; }
  .header-banana-divider .divider-line { max-width: 60px; }
  .header-act-badge { font-size: 0.68rem; padding: 3px 12px; line-height: 1.35; }
  .header-badge-tag { font-size: 0.7rem; padding: 3px 10px; }
}
@media (max-width: 575.98px) {
  .sbrd-logo-main { max-height: 54px; }
  .header-title-english { letter-spacing: 0; }
  .header-act-badge { font-size: 0.62rem; padding: 2px 9px; }
  .header-badge-tag { font-size: 0.65rem; }
}

/* ---------- 5. NAVBAR ---------- */
@media (max-width: 991.98px) {
  .main-navbar .navbar-collapse {
    max-height: 78vh;
    overflow-y: auto;
    padding: 6px 0 12px;
  }
  .main-navbar .nav-link {
    padding: 11px 14px !important;
    font-size: 0.9rem;
    border-radius: 8px;
  }
  .main-navbar .nav-link.active::after { display: none; }
  .main-navbar .dropdown-menu {
    border-radius: 8px;
    margin: 2px 8px 8px;
    box-shadow: none;
    border: 1px solid rgba(15, 81, 50, 0.15);
  }
  .main-navbar .dropdown-item { padding: 9px 16px; font-size: 0.85rem; }
  .main-navbar .navbar-nav { margin-bottom: 8px !important; }
  .main-navbar .btn-warning { width: 100%; justify-content: center; padding: 9px 16px; }
}
@media (max-width: 575.98px) {
  .main-navbar .navbar-brand span { font-size: 0.95rem; }
  .main-navbar .nav-link { font-size: 0.85rem; }
}

/* ---------- 6. TICKER ---------- */
@media (max-width: 767.98px) {
  .ticker-wrap { font-size: 0.78rem; padding: 6px 0; }
  .ticker-label { font-size: 0.68rem; padding: 2px 9px; }
  .ticker-content { animation-duration: 120s; }
  .ticker-content span { margin-right: 2.5rem !important; }
}
@media (max-width: 575.98px) {
  .ticker-wrap .container-fluid { padding-left: 8px; padding-right: 8px; }
  .ticker-label { display: none; }
  .ticker-wrap .col.overflow-hidden { padding-left: 0 !important; }
}

/* ---------- 7. HERO SECTION ---------- */
.hero-refined { padding: clamp(38px, 6vw, 75px) 0; }

@media (max-width: 991.98px) {
  .hero-refined { padding: 45px 0 55px; text-align: center; }
  .hero-refined .row { justify-content: center; }
  .hero-refined .d-inline-flex.align-items-center.gap-2.px-3 {
    font-size: 0.72rem !important;
    padding: 5px 12px !important;
    text-align: left;
    max-width: 100%;
    white-space: normal;
  }
  .hero-refined .d-flex.flex-wrap.gap-3 {
    justify-content: center;
  }
  .hero-refined .btn-lg { font-size: 0.92rem; padding: 10px 20px; }
}
@media (max-width: 575.98px) {
  .hero-refined { padding: 34px 0 42px; }
  .hero-refined .btn-lg {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    padding: 11px 16px;
    font-size: 0.9rem;
  }
  .hero-refined .d-flex.flex-wrap.gap-3 { flex-direction: column; }
  .hero-refined .d-flex.flex-wrap.gap-3 > * { width: 100%; }
}

/* ---------- 8. HERO BOTANICAL STAGE ---------- */
.hero-botanical-stage,
.hero-nexus-container {
  width: clamp(230px, 78vw, 340px);
  height: clamp(230px, 78vw, 340px);
}

@media (max-width: 991.98px) {
  .hero-botanical-stage,
  .hero-nexus-container { margin: 12px auto 0; }
}
@media (max-width: 575.98px) {
  .botanical-core-wrap { width: 108px; height: 108px; }
  .botanical-core-logo { width: 88px; height: 88px; }
  .botanical-variety-tag { font-size: 0.68rem; padding: 4px 9px; }
  .botanical-variety-tag.tag-1 { top: 8px; left: 0; }
  .botanical-variety-tag.tag-2 { top: 30px; right: 0; }
  .botanical-variety-tag.tag-3 { bottom: 14px; left: 0; }
  .nexus-core-wrap { width: 112px; height: 112px; }
  .nexus-core-logo { width: 92px; height: 92px; }
  .nexus-node { width: 38px; height: 38px; font-size: 1.05rem; }
  .nexus-node.node-1 { top: 4px; left: 112px; }
  .nexus-node.node-2 { top: 56px; right: 4px; }
  .nexus-node.node-3 { bottom: 26px; right: 26px; }
  .nexus-node.node-4 { bottom: 26px; left: 26px; }
  .nexus-node.node-5 { top: 56px; left: 4px; }
  .nexus-status-pill { bottom: -18px; padding: 3px 10px; }
  .nexus-status-pill span { font-size: 0.68rem !important; }
}

/* ---------- 9. STATS COUNTER BAR ---------- */
.stats-counter-bar {
  margin-top: clamp(-32px, -4vw, -40px);
  padding: clamp(18px, 3vw, 28px);
}

@media (max-width: 991.98px) {
  .stats-counter-bar { margin-top: -25px; border-radius: 14px; }
  .stat-item { padding: 8px 4px; }
}
@media (max-width: 575.98px) {
  .stats-counter-bar { margin-top: -18px; padding: 16px 10px; border-radius: 12px; }
  .stats-counter-bar .row > div:nth-child(2) .stat-item,
  .stats-counter-bar .row > div:nth-child(4) .stat-item { border-right: none; }
  .stats-counter-bar .row > div:nth-child(1) .stat-item,
  .stats-counter-bar .row > div:nth-child(2) .stat-item { border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 12px; }
  .stats-counter-bar .row > div:nth-child(3) .stat-item,
  .stats-counter-bar .row > div:nth-child(4) .stat-item { padding-top: 12px; }
}

/* ---------- 10. SECTION TITLES ---------- */
@media (max-width: 575.98px) {
  .section-title { padding-bottom: 9px; margin-bottom: 18px; }
  .section-title::after { width: 48px; height: 3px; }
  .text-center .section-title::after,
  .section-title.text-center::after { left: 50%; transform: translateX(-50%); }
}

/* ---------- 11. UNIVERSAL CARDS ---------- */
.card-custom { border-radius: 14px; }
@media (max-width: 575.98px) {
  .card-custom { border-radius: 12px; }
  .card-custom.p-4,
  .card-custom.p-lg-5,
  .president-card-refined,
  .bank-digital-card { padding: 16px !important; }
  .president-card-refined { border-left-width: 5px; }
  .card-custom .card-body,
  .card-custom .p-4 { padding: 14px !important; }
  .card-custom:hover { transform: none; }
}

/* ---------- 12. HERO / MASTER CAROUSEL ---------- */
.sbrd-image-text-carousel .carousel-item { min-height: auto; }

@media (max-width: 991.98px) {
  .sbrd-image-text-carousel { border-radius: 18px; }
  .slider-slide-content { padding: 28px 20px !important; text-align: center; }
  .slider-slide-content .d-flex.flex-wrap.gap-3 { justify-content: center; }
  .slider-slide-content .d-inline-flex.px-3 { font-size: 0.72rem !important; }
  .sbrd-image-text-carousel .carousel-control-prev,
  .sbrd-image-text-carousel .carousel-control-next {
    width: 40px; height: 40px; margin: 0 8px;
  }
  .slider-visual-art-card { max-width: 360px; margin: 0 auto; }
  .slider-icon-hero { font-size: 3rem; }
}
@media (max-width: 575.98px) {
  .sbrd-image-text-carousel { border-radius: 14px; border-width: 1.5px; }
  .slider-slide-content { padding: 22px 14px !important; }
  .sbrd-image-text-carousel .carousel-control-prev,
  .sbrd-image-text-carousel .carousel-control-next {
    width: 34px; height: 34px; margin: 0 4px;
  }
  .sbrd-image-text-carousel .carousel-indicators { margin-bottom: 0.5rem; }
  .sbrd-image-text-carousel .carousel-indicators [data-bs-target] { width: 22px; height: 5px; }
  .sbrd-image-text-carousel .carousel-indicators .active { width: 38px; }
  .slider-slide-content .btn { width: 100%; justify-content: center; font-size: 0.85rem; }
  .slider-slide-content .d-flex.flex-wrap.gap-3 { flex-direction: column; gap: 0.5rem !important; }
  .slider-slide-content .d-flex.flex-wrap.gap-3 > * { width: 100%; }
}

/* ---------- 13. FESTIVAL BANNER ---------- */
.festival-vector-banner { padding: clamp(18px, 3.5vw, 38px); border-radius: clamp(14px, 1.5vw, 22px); }
.festival-badge-ribbon { font-size: 0.72rem; padding: 4px 13px; }

@media (max-width: 767.98px) {
  .festival-vector-banner .badge,
  .festival-vector-banner .badge.bg-success { font-size: 0.7rem !important; padding: 4px 10px !important; }
  .festival-vector-banner .display-3 { font-size: 2.6rem; }
  .festival-vector-banner h4 { font-size: 1.15rem; }
  .festival-vector-banner .btn { width: 100%; justify-content: center; }
  .festival-vector-banner .d-flex.flex-wrap.gap-3 { flex-direction: column; }
  .festival-vector-banner .d-flex.flex-wrap.gap-3 > * { width: 100%; }
  .festival-vector-banner .row.g-3.mb-4 > div { margin-bottom: 0 !important; }
}

/* ---------- 14. PRESIDENT CARD ---------- */
@media (max-width: 767.98px) {
  .president-avatar-badge { width: 100px; height: 100px; }
  .president-avatar-badge .fs-1 { font-size: 1.9rem !important; }
  .president-avatar-badge .badge { font-size: 0.58rem !important; padding: 2px 6px !important; }
  .president-card-refined { padding: 20px !important; }
  .president-card-refined .d-flex.flex-wrap.align-items-center.justify-content-between { flex-direction: column; align-items: stretch !important; }
  .president-card-refined .d-flex.flex-wrap.align-items-center.justify-content-between > * { width: 100%; text-align: center; }
  .president-card-refined .btn { width: 100%; }
}

/* ---------- 15. BANK CARD & TABLES ---------- */
.bank-digital-card { padding: clamp(18px, 3vw, 30px); }
.bank-digital-card .bank-table th,
.bank-digital-card .bank-table td { font-size: 0.85rem; vertical-align: middle; }

@media (max-width: 767.98px) {
  .bank-digital-card .bank-table th { width: 42%; font-size: 0.78rem; }
  .bank-digital-card .bank-table td { font-size: 0.82rem; word-break: break-word; }
  .bank-digital-card .bank-table td .fs-5 { font-size: 1rem !important; }
  .copy-btn-interactive { padding: 2px 6px; font-size: 0.7rem; }
}

/* Universal responsive tables */
.table-responsive,
.table-responsive-sm {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
@media (max-width: 767.98px) {
  .table { font-size: 0.82rem; }
  .table th, .table td { padding: 8px 6px; vertical-align: middle; }
  .table .badge { font-size: 0.65rem; padding: 4px 8px; }
  .table .fw-bold { font-size: 0.85rem; }
  .table .text-muted.small { font-size: 0.72rem; }
}

/* ---------- 16. QR CODE & FEE TABLE ---------- */
@media (max-width: 575.98px) {
  .qr-code-box { padding: 12px; }
  .qr-code-box svg { width: 130px !important; height: 130px !important; }
}

/* ---------- 17. AWARDS PAGE ---------- */
@media (max-width: 767.98px) {
  .award-specific-block textarea { font-size: 0.85rem; }
  .award-specific-block { padding: 14px !important; }
  .form-check.p-3 { padding: 10px 12px !important; }
  .form-check.p-3 .form-check-input { margin-top: 5px; }
  .form-check.p-3 .form-check-label { font-size: 0.83rem; }
}
@media (max-width: 575.98px) {
  #sbrdAwardForm .btn-lg,
  #sbrdMembershipForm .btn-lg,
  #sbrdMembershipForm .btn-success.btn-lg { width: 100%; justify-content: center; font-size: 0.95rem; }
  #sbrdAwardForm .d-flex.justify-content-between { flex-direction: column; align-items: stretch !important; gap: 10px; }
  #sbrdAwardForm .d-flex.justify-content-between > * { width: 100%; text-align: center; }
}

/* ---------- 18. ELECTION WIZARD ---------- */
@media (max-width: 767.98px) {
  .step-wizard { flex-direction: column; gap: 14px; }
  .step-item { flex-direction: row !important; align-items: center; gap: 10px; width: 100%; }
  .step-circle { width: 34px; height: 34px; flex-shrink: 0; }
  .step-label { font-size: 0.8rem; text-align: left !important; }
  .ballot-card { padding: 12px; margin-bottom: 6px; }
  .ballot-card .form-check-label { font-size: 0.85rem; }
  .ballot-card .text-muted.small { font-size: 0.72rem !important; }
}
@media (max-width: 575.98px) {
  .ballot-card .form-check { padding-left: 1.5em; }
  .ballot-card { padding: 10px; }
  #step-confirm-card .card { padding: 16px !important; }
  #step-confirm-card .table td,
  #step-confirm-card .table th { font-size: 0.78rem; }
}

/* ---------- 19. FORMS ---------- */
@media (max-width: 575.98px) {
  .form-label { font-size: 0.82rem; }
  .form-control, .form-select { font-size: 0.88rem; }
  .form-control-sm, .form-select-sm { font-size: 0.82rem; }
  textarea.form-control { min-height: 90px; }
  .input-group > .form-control,
  .input-group > .form-select { font-size: 0.85rem; }
}

/* ---------- 20. GALLERY ---------- */
@media (max-width: 575.98px) {
  .filter-btn { font-size: 0.78rem !important; padding: 6px 12px !important; }
  .gallery-card-item .card-custom > div:first-child { min-height: 160px !important; padding: 20px 14px !important; }
  .gallery-card-item .display-4,
  .gallery-card-item .display-3 { font-size: 2.5rem !important; }
  .gallery-card-item h5 { font-size: 1rem; }
}

/* ---------- 21. FOOTER ---------- */
.site-footer { padding-top: clamp(32px, 5vw, 60px); }
.footer-heading { font-size: clamp(1rem, 0.8vw + 0.7rem, 1.15rem); }
.footer-links a { font-size: 0.88rem; }

@media (max-width: 991.98px) {
  .site-footer .row.g-4 > div { margin-bottom: 12px; }
  .site-footer .row.g-4 > div:last-child { margin-bottom: 0; }
}
@media (max-width: 767.98px) {
  .site-footer { text-align: center; }
  .footer-heading::after { left: 50%; transform: translateX(-50%); }
  .footer-links a { justify-content: center; }
  .footer-social-icon { margin: 0 4px 8px; }
  .site-footer .d-flex.mb-3 { justify-content: center; }
  .site-footer .border-top.border-secondary { text-align: center; }
  .site-footer iframe { height: 200px !important; }
  .footer-bottom .container-fluid { flex-direction: column; text-align: center; }
}
@media (max-width: 575.98px) {
  .site-footer .container-fluid.px-lg-5 { padding-left: 14px; padding-right: 14px; }
  .footer-bottom { font-size: 0.78rem; padding: 16px 0; }
  .site-footer .rounded.overflow-hidden { height: 180px !important; }
}

/* ---------- 22. BACK TO TOP BUTTON ---------- */
@media (max-width: 575.98px) {
  #backToTopBtn { bottom: 16px; right: 16px; width: 42px; height: 42px; font-size: 1.15rem; }
}

/* ---------- 23. PRELOADER ---------- */
@media (max-width: 575.98px) {
  .preloader-emblem-wrap { width: 110px; height: 110px; }
  .preloader-logo { width: 70px; height: 70px; }
  .preloader-bar-wrap { width: 150px; }
  #sbrdPreloader .fs-5 { font-size: 1rem !important; }
  #sbrdPreloader .small { font-size: 0.72rem !important; text-align: center; padding: 0 20px; }
}

/* ---------- 24. BREADCRUMB BANNER HEADERS ---------- */
@media (max-width: 767.98px) {
  main > .bg-success.py-4,
  body > .bg-success.py-4 { padding: 18px 0 !important; }
  main > .bg-success.py-4 h1,
  body > .bg-success.py-4 h1 { font-size: 1.25rem !important; }
  main > .bg-success.py-4 p,
  body > .bg-success.py-4 p { font-size: 0.82rem !important; }
  .breadcrumb { font-size: 0.8rem; justify-content: center !important; }
}

/* ---------- 25. STICKY SIDEBARS ---------- */
@media (max-width: 991.98px) {
  .sticky-top,
  .card-custom.p-3.sticky-top { position: static !important; }
}

/* ---------- 26. INTERACTIVE SCIENCE VISUALIZER ---------- */
@media (max-width: 767.98px) {
  .dimension-pill { font-size: 0.78rem !important; padding: 6px 12px !important; }
  .anime-science-canvas-wrap { min-height: 260px !important; padding: 14px !important; }
  .anime-svg-stage { max-height: 210px; }
  .anime-metric-val { font-size: 1.15rem !important; }
  #animeTelemetryCard { padding: 18px !important; }
  #animeTelemetryCard h4 { font-size: 1.05rem; }
  #animeTelemetryCard p { font-size: 0.82rem !important; }
}
@media (max-width: 575.98px) {
  .dimension-pill { font-size: 0.72rem !important; padding: 5px 10px !important; width: 100%; text-align: left; }
  #animeDimensionPills { flex-direction: column; }
  .anime-science-canvas-wrap { min-height: 230px !important; }
}

/* ---------- 27. CALLOUT BUTTONS THAT OVERFLOW ---------- */
@media (max-width: 575.98px) {
  .d-flex.gap-3 > .btn,
  .d-flex.gap-2 > .btn { flex: 1 1 auto; }
  .card-custom .d-flex.gap-3 { flex-wrap: wrap; }
  .card-custom .d-flex.gap-3 > .btn { width: 100%; justify-content: center; }
}

/* ---------- 28. ACCESSIBILITY: FOCUS & MOTION ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 3px solid var(--secondary-gold);
  outline-offset: 2px;
}

/* ---------- 29. LANDSCAPE PHONES ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-refined { padding: 24px 0 !important; }
  .hero-botanical-stage,
  .hero-nexus-container { width: 200px; height: 200px; }
  .sbrd-master-header { padding: 8px 0 !important; }
  .sbrd-logo-main { max-height: 50px; }
}

/* ---------- 30. ULTRA-SMALL (≤360px) ---------- */
@media (max-width: 360px) {
  .container-fluid.px-lg-5 { padding-left: 10px; padding-right: 10px; }
  .card-custom.p-4,
  .card-custom.p-lg-5 { padding: 13px !important; }
  .btn-lg { font-size: 0.86rem; padding: 9px 14px; }
  .stat-number { font-size: 1.3rem; }
  .stat-label { font-size: 0.65rem; letter-spacing: 0; }
  .header-badge-tag { font-size: 0.6rem; padding: 2px 8px; }
  .top-accessibility-bar .small { font-size: 0.65rem; }
  .form-resizer-btn { font-size: 0.65rem !important; }
}

/* ---------- 31. LARGE DESKTOP / 4K ---------- */
@media (min-width: 1600px) {
  .container-fluid.px-lg-5 { padding-left: 4rem; padding-right: 4rem; }
  .hero-refined .container-fluid { max-width: 1600px; margin: 0 auto; }
  body { font-size: 1.05rem; }
}

/* ---------- 32. ENSURE STICKY NAVBAR DOESN'T OVERLAP ---------- */
html { scroll-padding-top: 90px; }

/* ---------- 33. PREVENT BUTTON OVERFLOW IN TABLES ---------- */
@media (max-width: 767.98px) {
  .table-responsive .btn { font-size: 0.72rem; padding: 4px 8px; white-space: nowrap; }
  .table-responsive .btn i { font-size: 0.8rem; }
}

/* ---------- 34. ACCESSIBILITY HIGH-CONTRAST OVERRIDES ---------- */
body.high-contrast .btn,
body.high-contrast .card,
body.high-contrast .form-control {
  outline-color: #ffff00 !important;
}

/* ==========================================================================
   MOBILE HORIZONTAL OVERFLOW — FINAL FIX
   Root cause: position:fixed containers + animated absolute children + 
   SVG overflow:visible + reveal transforms. overflow-x:hidden cannot 
   contain position:fixed descendants on mobile. Use clip + contain.
   ========================================================================== */

/* 1. Use overflow-x: clip (not hidden) — clip does NOT create a scroll
      container and reliably clips even fixed descendants on modern browsers. */
html, body {
  overflow-x: hidden;   /* legacy fallback */
  overflow-x: clip;     /* modern reliable clip */
  width: 100%;
  max-width: 100vw;
}

/* 2. FIX #1 — the fixed background with animated absolute children.
      `contain: paint` forces the browser to clip descendants at this
      element's paint boundary, regardless of position:fixed + transform
      quirks on mobile Safari / Chrome Android. */
.pale-digital-bg {
  overflow: hidden !important;
  overflow: clip !important;
  contain: paint !important;
  width: 100vw;
  max-width: 100vw;
  left: 0 !important;
  right: auto !important;
}

/* Also clamp the animated glow blobs so they cannot exceed viewport by design */
.ambient-glow-1 { max-width: 100vw; }
.ambient-glow-2 { max-width: 100vw; }

/* 3. FIX #2 — hero background SVGs. Already overflow:hidden on .hero-refined,
      but add `contain: paint` to make clipping bulletproof during compositing. */
.hero-refined {
  contain: paint;
  width: 100%;
  max-width: 100vw;
}

/* 4. FIX #3 — anime.js botanical stage leaks leaf tips when leaves rotate.
      .botanical-canopy-svg has overflow:visible, so rotated leaves escape.
      Add horizontal padding AND clip on the stage. */
.hero-botanical-stage,
.hero-nexus-container {
  overflow: hidden;
  contain: paint;
}

/* Give leaves room to swing without ever reaching the edges */
.botanical-canopy-svg {
  /* preserve current visible behavior but clip strictly at the stage edge */
  overflow: clip;
}

/* 5. FIX #4 — kill the horizontal slide on scroll-reveal at ALL sizes.
      The Y-only slide reads identically to users; the X component is
      what causes the persistent overflow before elements reveal. */
.scroll-reveal.reveal-left,
.scroll-reveal.reveal-right {
  transform: translateY(30px) !important;
}
.scroll-reveal.reveal-left.is-visible,
.scroll-reveal.reveal-right.is-visible {
  transform: translateY(0) !important;
}

/* 6. FIX #5 — the marquee ticker. Even though .ticker-wrap has overflow:hidden,
      on some Android browsers an animating inline-block child with 
      translateX(±100%) briefly expands the parent's scrollWidth. Force clip. */
.ticker-wrap {
  overflow: hidden !important;
  overflow: clip !important;
  contain: paint;
  width: 100%;
  max-width: 100vw;
}

/* 7. FIX #6 — preloader is fixed; ensure it cannot bleed. */
#sbrdPreloader {
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
}

/* 8. Belt & suspenders — clip every top-level layout wrapper. */
.sbrd-master-header,
.top-accessibility-bar,
.main-navbar,
main#main-content,
.site-footer,
.stats-counter-bar,
.sbrd-image-text-carousel,
.festival-vector-banner,
.bank-digital-card,
.president-card-refined {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

/* 9. Small but necessary: any absolute decorative element inside these
      wrappers can still poke out if the parent doesn't establish a 
      containing block. Force it. */
.sbrd-master-header,
.hero-refined,
.stats-counter-bar,
.festival-vector-banner,
.bank-digital-card,
.sbrd-image-text-carousel {
  position: relative;
}

/* 10. FINAL SAFETY — kill any accidental wide element. */
img, svg, video, iframe, canvas, table {
  max-width: 100%;
}


/* 1. Give the carousel inner a consistent height */
.sbrd-image-text-carousel .carousel-inner {
  min-height: 420px;        /* adjust to your design */
}

/* 2. Make every slide stretch to that height */
.sbrd-image-text-carousel .carousel-item {
  height: 420px;            /* match min-height above */
  min-height: 420px;
}

/* 3. Let the inner content fill and center vertically */
.sbrd-image-text-carousel .slider-slide-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* vertical centering */
}

/* 4. Optional: keep the row centered inside the slide */
.sbrd-image-text-carousel .slider-slide-content > .row {
  width: 100%;
  margin: 0;
}

/* 5. Responsive: allow more height on smaller screens */
@media (max-width: 991.98px) {
  .sbrd-image-text-carousel .carousel-inner,
  .sbrd-image-text-carousel .carousel-item {
    height: auto;
    min-height: 480px;
  }
}

@media (max-width: 575.98px) {
  .sbrd-image-text-carousel .carousel-inner,
  .sbrd-image-text-carousel .carousel-item {
    min-height: 560px;
  }
}

/* Bank rows (table replacement) */
.bank-rows {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.bank-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-col-label {
  flex: 0 0 38%;
  max-width: 38%;
  font-weight: 700;
  color: #0f172a;           /* same text-dark look as before */
  font-size: 0.9rem;
}

.bank-col-value {
  flex: 1 1 auto;
  color: #ffffff;           /* same text-white look as before */
  min-width: 0;
}

/* Responsive: stack on small screens */
@media (max-width: 575.98px) {
  .bank-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .bank-col-label,
  .bank-col-value {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.bank-rows { display: flex; flex-direction: column; width: 100%; margin: 0; }
.bank-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.bank-row:last-child { border-bottom: none; }
.bank-col-label {
  flex: 0 0 38%; max-width: 38%;
  font-weight: 700;
  color: #e2e8f0;     /* ensure contrast ≥ 4.5:1 on dark bg */
  font-size: 0.9rem;
  margin: 0;
}
.bank-col-value {
  flex: 1 1 auto;
  color: #ffffff;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
}
.copy-btn-interactive:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .bank-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .bank-col-label, .bank-col-value { flex: 1 1 100%; max-width: 100%; }
}

/* ===== President photo frame ===== */
.president-photo-frame {
  width: 170px;
  height: 200px;
  border-radius: 16px;
  border: 3px solid #10b981;
  background: #f1f5f9;
  overflow: hidden;
  display: block;
  box-shadow: 0 6px 20px -8px rgba(15, 81, 50, 0.5);
}
.president-photo {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ===== Member thumbnail (grid card) ===== */
.member-thumb-wrap {
  width: 108px; height: 144px;
  border-radius: 12px;
  overflow: hidden;
  border:1px solid #e2e8f0;
  background: #f1f5f9;
}
.member-thumb {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ===== Member thumbnail (table row) ===== */
.member-table-thumb {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #86efac;
  background: #f1f5f9;
  display: inline-block;
}

.min-w-0 { min-width: 0; }

@media (max-width: 575.98px) {
  .president-photo-frame { width: 140px; height: 170px; }
  .member-thumb-wrap { width: 64px; height: 64px; }
  .member-table-thumb { width: 48px; height: 48px; }
}

@media print {
  .no-print, .breadcrumb, header, footer, nav { display: none !important; }
  .card-custom { box-shadow: none !important; border: 1px solid #ccc !important; }
}

.president-avatar-badge {
  width: 200px;
  height: 240px;
  border-radius: 10%;          /* 50% = circle, 12px = rounded square */
  overflow: hidden;
  border: 3px solid #10b981;
  background: #f1f5f9;
  display: block;
  box-shadow: 0 6px 18px -8px rgba(15, 81, 50, 0.45);
}

.president-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 575.98px) {
  .president-avatar-badge {
    width: 110px;
    height: 110px;
  }
}

/* Hide Scientific Papers & Articles / Featured Scientific Articles section on homepage */
#featured-scientific-articles,
.featured-scientific-articles {
  display: none !important;
}

/* Hide Latest News & Announcements section on homepage */
#home-latest-news,
.home-latest-news {
  display: none !important;
}


#event-alert-section {
  background: linear-gradient(135deg, var(--secondary-yellow, #ffc107) 0%, var(--secondary-gold, #f59e0b) 100%) !important;
  color: var(--text-dark, #1e293b) !important;
}

#event-alert-section .alert {
  background: transparent !important;
}

#event-alert-section .h4,
#event-alert-section .h3,
#event-alert-section strong {
  color: var(--primary-dark, #052e1a) !important;
}

#event-alert-section .small {
  color: #78350f !important;
}

#event-alert-section .bi-clock-fill,
#event-alert-section .bi-geo-alt-fill {
  color: var(--primary-green, #0f5132);
}

#event-alert-section .btn-dark {
  background-color: var(--primary-green, #0f5132) !important;
  border-color: var(--primary-green, #0f5132) !important;
  color: #ffffff !important;
}
#event-alert-section .btn-dark:hover,
#event-alert-section .btn-dark:focus,
#event-alert-section .btn-dark:active {
  background-color: var(--primary-dark, #052e1a) !important;
  border-color: var(--primary-dark, #052e1a) !important;
  color: var(--secondary-yellow, #ffc107) !important;
}

#event-alert-section .btn-outline-dark {
  color: var(--primary-dark, #052e1a) !important;
  border-color: var(--primary-dark, #052e1a) !important;
}
#event-alert-section .btn-outline-dark:hover,
#event-alert-section .btn-outline-dark:focus,
#event-alert-section .btn-outline-dark:active {
  background-color: var(--primary-green, #0f5132) !important;
  border-color: var(--primary-green, #0f5132) !important;
  color: #ffffff !important;
}