/* ==========================================================================
   acikuet.org - ACI Student Chapter KUET Official Stylesheet
   Design: Boxy Sharp 4-Corner Architectural Style, Pure White Background
   Typography: Merriweather (Headings) + Inter (Body)
   Features: Hero Photo Background with Dark Film, Scroll Transitions,
             Moderator Card, Split Footer, and ReinforCE 1.0 Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700&display=swap');

:root {
  /* Typography Variables */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Merriweather', Georgia, serif;

  /* ==========================================================================
     Palette #80: Pervious Concrete Stormwater Sponge (Urban Drainage Lab)
     Brand Architecture: Permeable Eco-Green + Stormwater Blue + Deep Botanical Pine
     ========================================================================== */
  --brand-primary: #15803D;        /* Permeable Eco-Green (Buttons, Key CTA, Accents) */
  --brand-primary-hover: #166534;  /* Deep Forest Hover */
  --brand-accent: #0284C7;         /* Stormwater Filtration Cyan/Blue (Secondary Actions, Links, Badges) */
  --brand-accent-hover: #0369A1;   /* Deep Blue Hover */
  --brand-dark: #052E16;           /* Deep Botanical Pine (Headings, Title Typography) */
  --brand-surface: #FFFFFF;        /* Crisp White Cards & Surfaces */
  --brand-bg: #F0FDF4;            /* Palette #80 Soft Mint Mist Canvas */

  /* System Brand Colors */
  --nav-blue: #052E16;            /* Deep Botanical Pine Header Elements */
  --nav-blue-dark: #021B0D;       /* Midnight Pine */
  --accent-green-dot: #15803D;    /* Eco-Green */
  
  --satin-green: #052E16;         /* Primary Deep Pine */
  --satin-mid: #15803D;           /* Eco-Green Primary */
  --satin-tint: #F0FDF4;          /* Softest Mint Canvas */
  --satin-border: #86efac;

  /* Background & Surface System */
  --bg-cream: #F0FDF4;            /* Palette #80 Canvas Tint */
  --bg-white: #FFFFFF;            /* Pure Crisp White Surface */
  --bg-subtle: #F0FDF4;           /* Alternating Mint Rhythm */
  --bg-main: #FFFFFF;             /* Pure Crisp White Content Stage */
  --card-bg: #FFFFFF;             /* Pure Crisp White Cards */
  --border-light: #e2e8f0;        /* Clean Architectural Hairline Border */
  --border-accent: #86efac;       /* Subtle Mint Border */
  --stripe-green: #15803D;        /* Eco-Green Accent Stripe */
  
  /* Badges & Tags */
  --badge-green-bg: #dcfce7;       /* Fresh Mint Badge Background */
  --badge-green-text: #15803D;     /* Eco-Green Badge Text */
  --badge-accent-bg: #e0f2fe;      /* Stormwater Light Blue Badge */
  --badge-accent-text: #0284C7;    /* Stormwater Blue Badge Text */

  /* High Contrast Deep Architectural Typography */
  --text-dark: #052E16;           /* Deep Botanical Pine (Rich Contrast) */
  --text-body: #1F2937;           /* Ultra-Readable Slate Body */
  --text-muted: #4B5563;          /* Balanced Muted Text */
  --text-white: #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(5, 46, 22, 0.05);
  --shadow-md: 0 4px 14px rgba(5, 46, 22, 0.07);
  --shadow-lg: 0 10px 25px rgba(5, 46, 22, 0.09);
  --shadow-xl: 0 20px 35px rgba(5, 46, 22, 0.13);

  /* Boxy Sharp 4-Corner Architectural Geometry (No Rounded Bubbles/Pills) */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-full: 0px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --brand-primary: #22c55e;
  --brand-primary-hover: #4ade80;
  --brand-accent: #38bdf8;
  --brand-dark: #f0fdf4;
  --brand-surface: #0a2318;
  --brand-bg: #03140d;

  --nav-blue: #03140d;
  --nav-blue-dark: #020c07;
  --satin-green: #22c55e;
  --satin-mid: #16a34a;
  --satin-tint: #072012;
  --satin-border: #14532d;

  --bg-cream: #072012;
  --bg-white: #0a2318;
  --bg-subtle: #03140d;
  --card-bg: #0d2e20;
  --border-light: #164e33;

  --text-dark: #f0fdf4;
  --text-body: #d1fae5;
  --text-muted: #86efac;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* Strict 4-Corner Boxy Architectural Geometry */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: #ffffff;
  color: #111827;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Headings with Merriweather Serif */
h1, h2, h3, h4, h5, h6,
.page-banner-title,
.hero-photo-motto,
.section-title,
.leader-card h4,
.moderator-name,
.cuet-page-title,
.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-dark);
}

p, span, li, a, label, button, input, textarea, select {
  font-family: var(--font-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Top Ribbon Bar: Solid Pure Black, Edge-to-Edge Full Width
   ========================================================================== */

.top-thin-bar {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

.top-thin-container {
  width: 100%;
  padding: 0 2.5rem; /* Flush to far left and far right edges */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-thin-left {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
  font-size: 0.86rem;
}

.top-thin-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-thin-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.84rem;
  transition: var(--transition);
}

.top-thin-item:hover {
  color: #4ade80;
}

.top-thin-item i {
  color: #22c55e;
  font-size: 0.85rem;
}

.top-thin-item.top-thin-highlight {
  color: #4ade80;
  font-weight: 700;
}

.top-thin-item.top-thin-highlight:hover {
  color: #86efac;
}

.top-thin-divider {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
}

/* ==========================================================================
   Main Sticky Navbar: Prominent Crisp White Section (Extra Large Logo)
   ========================================================================== */

.main-header {
  position: sticky;
  top: calc(34px + env(safe-area-inset-top, 0px));
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid var(--border-light);
  box-shadow: 0 4px 18px rgba(22, 101, 52, 0.04);
  transition: background-color 0.25s ease, border-color 0.25s ease;
  width: 100%;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

[data-theme="dark"] .main-header {
  background: #0b1728;
  border-bottom-color: #1e293b;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.navbar-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 max(2rem, env(safe-area-inset-left));
  padding-right: max(2rem, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  min-height: 96px; /* Balanced, prominent white banner with equal top/bottom space */
  width: 100%;
  gap: 1.5rem;
}

/* Brand on Far Left: Official Logo + 3-Step Stacked Typography vertically centered */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-left: 0;
}

.nav-brand-logo-box {
  background: #ffffff !important; /* Solid white background guarantees logo lines & truss stay 100% visible even in dark mode */
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.nav-brand:hover .nav-brand-logo-box {
  border-color: #15803D;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.18);
}

[data-theme="dark"] .nav-brand-logo-box {
  background: #ffffff !important; /* Solid crisp white backing ensures logo lines/truss stay 100% visible in dark mode */
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* Ensure official logo ALWAYS has a clean solid white backing in dark mode across all pages */
[data-theme="dark"] .nav-brand-logo {
  background: #ffffff !important;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.nav-brand-logo-box .nav-brand-logo {
  background: transparent !important;
  box-shadow: none !important;
}

.nav-brand-logo {
  height: 74px; /* 1.4x larger prominent official logo */
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-brand-stacked {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
  gap: 2px;
}

/* 1.4x Brand Typography matching logo height and vertically centered */
.brand-step-1,
.brand-step-2,
.brand-step-3 {
  font-family: var(--font-heading);
  font-size: 1.35rem !important; /* 1.4x enlarged matching brand text */
  font-weight: 800 !important;
  letter-spacing: -0.2px;
  line-height: 1.05 !important;
}

.brand-step-1 {
  color: var(--text-dark);
}

.brand-step-2 {
  color: #15803D; /* ACI Signature Brand Green */
}

.brand-step-3 {
  color: var(--text-dark);
}

[data-theme="dark"] .brand-step-1,
[data-theme="dark"] .brand-step-3 {
  color: #ffffff !important;
}

/* Nav Menu on the Right: 1.4x Larger Font, Shifted Right so Home starts where Panel was */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.55rem; /* Generous spacing fitting single line */
  margin: 0 0 0 auto; /* Shifted to right side */
  padding: 0;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-main);
  font-size: 1.22rem; /* 1.4x larger font as requested */
  font-weight: 700;
  color: #111827 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.60rem; /* Balanced vertical breathing room */
  border-radius: 0 !important;
  background: transparent !important;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, font-weight 0.1s ease;
  white-space: nowrap;
}

/* Bold when clicked/active as requested */
.nav-link.active,
.nav-link:active,
.nav-item:hover > .nav-link {
  font-weight: 800 !important;
  color: #15803D !important;
  border-bottom-color: #15803D !important;
}

[data-theme="dark"] .nav-link {
  color: #f8fafc !important;
}

.nav-link i.dropdown-icon {
  font-size: 0.72rem;
  opacity: 0.65;
  transition: transform 0.25s ease;
}

.nav-item:hover .nav-link i.dropdown-icon,
.nav-item.open .nav-link i.dropdown-icon {
  transform: rotate(180deg);
}

/* Subtle, sophisticated hover without bright green block backgrounds */
.nav-link:hover {
  color: #15803D !important;
  background: transparent !important;
  border-bottom-color: #15803D;
}

[data-theme="dark"] .nav-link:hover {
  color: #86efac !important;
  background: transparent !important;
}

/* Active State: Clean Understated Black/Dark Underline, ZERO Green Background Pill/Box */
.nav-link.active {
  color: var(--text-dark) !important;
  font-weight: 800;
  background: transparent !important;
  border-bottom: 2px solid #000000 !important;
}

[data-theme="dark"] .nav-link.active {
  color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

/* Dropdown Menus: Spacious, Architectural Sharp Boxes */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 280px;
  border-radius: 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid #e5e7eb;
  list-style: none;
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

/* Align rightmost dropdown menus to the right edge so they stay 100% on screen */
.nav-item:last-child .dropdown-menu,
.nav-item:nth-last-child(2) .dropdown-menu {
  left: auto;
  right: 0;
}

[data-theme="dark"] .dropdown-menu {
  background: #0f1d30;
  border-color: #1e293b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.nav-item:hover .dropdown-menu,
.nav-item.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.72rem 1.25rem;
  font-size: 0.92rem; /* Reduced by one size as requested */
  font-weight: 600;
  color: #111827 !important;
  background: transparent;
  border-radius: 0 !important;
  transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  line-height: 1.4;
  text-decoration: none;
  border-left: 2px solid transparent;
}

[data-theme="dark"] .dropdown-item {
  color: #ffffff !important;
}

.dropdown-item i {
  display: none !important; /* Icons removed */
}

/* Dropdown Hover & Active: Clean, Crisp, Neutral Hover - ZERO GREEN COLOR as requested */
.dropdown-item:hover {
  background: #f1f5f9 !important;
  color: var(--text-dark) !important; /* Pure black, NO green */
  border-left-color: var(--text-dark);
  padding-left: 1.45rem;
}

.dropdown-item.active {
  background: #f1f5f9 !important;
  color: var(--text-dark) !important; /* Pure black, NO green */
  border-left-color: var(--text-dark);
  font-weight: 700;
  padding-left: 1.45rem;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border-left-color: #ffffff;
}

/* Nav Actions: Hidden on desktop to ensure only 2 flex items (brand & menu), visible on mobile for toggle */
.nav-actions {
  display: none !important;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

@media (max-width: 1040px) {
  .nav-actions {
    display: flex !important;
  }
}

.nav-actions .btn-reinforce,
.theme-toggle-btn,
#theme-toggle {
  display: none !important;
  visibility: hidden !important;
}

.btn-reinforce {
  background: linear-gradient(135deg, #15803d 0%, #0b2545 100%);
  color: #ffffff !important;
  padding: 0.52rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.28);
  transition: var(--transition);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-reinforce:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.4);
}

[data-theme="dark"] .theme-toggle-btn {
  border-color: #334155;
  color: #f8fafc;
}

.theme-toggle-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #4ade80;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: #0f172a;
  cursor: pointer;
}

[data-theme="dark"] .mobile-menu-toggle {
  color: #ffffff;
}

/* ==========================================================================
   Hero Section with Real Group Photo Background & Dark Filter
   ========================================================================== */

.hero-photo-banner {
  position: relative;
  min-height: calc(100vh - 144px); /* Seamless full-screen view with zero white gap below */
  height: calc(100vh - 144px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff !important;
  background: url('../images/hero-group-photo.webp') center center / cover no-repeat;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-photo-banner {
    min-height: calc(100vh - 112px);
    height: auto;
    padding: 2.5rem 0.5rem;
  }
  .hero-photo-content {
    padding: 2rem 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* High-Grade Dark Film Overlay: Rich vignette so white text pops completely */
.hero-photo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 17, 32, 0.88) 0%,
    rgba(4, 13, 24, 0.82) 40%,
    rgba(0, 5, 12, 0.94) 100%
  );
  z-index: 1;
}

.hero-photo-content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  padding: 5rem 1.5rem;
}

/* Big Motto Front and Center: Pure White & Solid Impact (Typewriter on Load, Single Line) */
.hero-photo-motto {
  font-size: clamp(2.4rem, 5.2vw, 5.2rem) !important;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: #ffffff !important;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.9);
  min-height: 1.15em;
  display: inline-block;
  white-space: nowrap !important;
}

.hero-photo-motto.is-typing::after {
  content: '|';
  color: #86efac;
  animation: blinkMottoCursor 0.65s infinite;
  margin-left: 6px;
  font-weight: 300;
}

@keyframes blinkMottoCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Bottom Text Content: Pops up from bottom with snap impact ("ধপ করে উপরে উঠবে") */
.hero-photo-bottom-wrap {
  opacity: 0;
  transform: translateY(50px);
  transition: transform 0.78s cubic-bezier(0.175, 0.885, 0.32, 1.25), opacity 0.65s ease;
  will-change: transform, opacity;
}

.hero-photo-bottom-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-photo-sub {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 0.5px;
  margin-bottom: 1.85rem;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9);
}

.hero-photo-tagline {
  font-size: 1.25rem;
  color: #ffffff !important;
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.75;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.hero-photo-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-main {
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
  transition: var(--transition);
}

.btn-hero-main:hover {
  background: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   Smooth Scroll Transition Container & Sections
   ========================================================================== */

.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

section {
  padding: 5rem 0;
}

.section-clean-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-accent);
  background: var(--badge-accent-bg) !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  padding: 0.25rem 0.85rem !important;
  border-radius: 0;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Events Header Animations - Tag from right, Title drops from top */
.events-tag-anim {
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.events-title-anim {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.events-desc-anim {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
  will-change: transform, opacity;
}

.events-head-anim:not(.is-visible) .events-tag-anim {
  opacity: 0;
  transform: translateX(80px); /* Comes from the right side */
}

.events-head-anim:not(.is-visible) .events-title-anim {
  opacity: 0;
  transform: translateY(-40px); /* Drops down from top */
}

.events-head-anim:not(.is-visible) .events-desc-anim {
  opacity: 0;
  transform: translateY(20px);
}

.events-head-anim.is-visible .events-tag-anim,
.events-head-anim.is-visible .events-title-anim,
.events-head-anim.is-visible .events-desc-anim {
  opacity: 1;
  transform: none;
}

/* Events Grid: 2 Balanced Columns for Desktop Slide-In */
.events-interactive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .events-interactive-grid {
    grid-template-columns: 1fr;
  }
}

.event-box-link {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 2.25rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  opacity: 1;
  transform: translateX(0);
  will-change: transform, opacity;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

/* Slide-in from Two Sides Animation */
.event-box-link.slide-from-left:not(.is-visible) {
  opacity: 0;
  transform: translateX(-90px);
}

.event-box-link.slide-from-right:not(.is-visible) {
  opacity: 0;
  transform: translateX(90px);
}

.event-box-link.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.event-box-link.is-visible:hover,
.event-box-link.is-visible:focus-visible {
  transform: translateY(-4px);
  border-color: #15803D;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.event-box-link:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Remove all flag/trophy/emoji icons as requested */
.event-box-icon {
  display: none !important;
}

.event-box-link h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.event-box-link p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.65;
  flex-grow: 1;
}

.event-box-action {
  color: #15803D;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.event-box-link:hover .event-box-action {
  color: #15803d;
  transform: translateX(4px);
}

/* ==========================================================================
   Institutional Milestones (Achievements)
   ========================================================================== */

.human-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.human-card:hover {
  transform: translateY(-4px);
  border-color: #15803D;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Remove all AI icons from achievement cards */
.human-card-icon {
  display: none !important;
}

.human-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
}

.human-card p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.65;
}

/* ==========================================================================
   Photo Gallery: Raised Rectangular Boxes
   ========================================================================== */

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.photo-box-raised {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  overflow: hidden;
  height: 260px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.photo-box-raised:hover {
  transform: translateY(-4px);
  border-color: #15803D;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.photo-box-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-box-raised:hover .photo-box-img {
  transform: scale(1.03);
}

.photo-box-caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 1.25rem 1.5rem;
  color: #ffffff;
}

.photo-caption-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.photo-caption-sub {
  font-size: 0.82rem;
  color: #86efac;
}

.photo-box-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
}

/* ==========================================================================
   Moderator Message Section (Prof. Dr. Abu Zakir Morshed)
   ========================================================================== */

.moderator-card-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1fr 280px; /* Message text first on left, photo on right */
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .moderator-card-box {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.moderator-portrait-wrap {
  text-align: center;
}

/* Staggered Animation Sequence for Moderator: 1. Text -> 2. Photo -> 3. Meta below */
.moderator-anim-content {
  opacity: 1;
  transform: none;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.moderator-anim-photo {
  opacity: 1;
  transform: none;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.22s, opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.22s;
  will-change: transform, opacity;
}

.moderator-anim-meta {
  opacity: 1;
  transform: none;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.44s, opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.44s;
  will-change: transform, opacity;
}

.moderator-card-box:not(.is-visible) .moderator-anim-content {
  opacity: 0;
  transform: translateY(25px);
}

.moderator-card-box:not(.is-visible) .moderator-anim-photo {
  opacity: 0;
  transform: scale(0.94);
}

.moderator-card-box:not(.is-visible) .moderator-anim-meta {
  opacity: 0;
  transform: translateY(15px);
}

.moderator-card-box.is-visible .moderator-anim-content,
.moderator-card-box.is-visible .moderator-anim-photo,
.moderator-card-box.is-visible .moderator-anim-meta {
  opacity: 1;
  transform: none;
}

.moderator-card-box.is-visible .moderator-anim-meta {
  opacity: 1;
  transform: translateY(0);
}

.moderator-img {
  width: 220px;
  height: 260px;
  border-radius: 0;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  margin: 0 auto 1.25rem;
  display: block;
}

.moderator-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.moderator-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--satin-mid);
  margin-top: 0.35rem;
}

.moderator-affil {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.moderator-message-content {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-body);
}

.moderator-badge-header {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #15803D;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.moderator-message-content p {
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   President & Secretary Message
   ========================================================================== */

.leaders-message-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.leader-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 2.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.leader-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Real Photo Cutout replacing initials text badge */
.leader-photo-cutout {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid #e5e7eb;
  border-radius: 0 !important;
  display: block;
  flex-shrink: 0;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.leader-initials-badge {
  display: none !important;
}

.leader-card h4 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-dark);
}

.leader-card span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--satin-mid);
}

.leader-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ==========================================================================
   Split Footer: Left Mission & Right 4-Column Directory (media_1794436453240_6ef36c41.jpg)
   ========================================================================== */

.split-footer {
  border-top: 3px solid var(--stripe-green); /* split-footer-top-border */
  background: var(--bg-cream); /* Rich soft institutional light green background #f0fdf4 */
  color: var(--text-dark);
  padding: 4.5rem 0 2rem;
   /* Deep forest green accent stripe */
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.split-footer .container {
  max-width: 1400px;
}

[data-theme="dark"] .split-footer {
  border-top: 3px solid var(--stripe-green); /* split-footer-top-border */
  background: #08121e;
  color: #cbd5e1;
  border-top: 2px solid #1e293b;
}

.split-footer-top {
  display: grid;
  grid-template-columns: 1fr 2.3fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

/* Left Column */
.footer-left-club-intro h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

[data-theme="dark"] .footer-left-club-intro h3 {
  color: #ffffff;
}

.footer-left-club-intro p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .footer-left-club-intro p {
  color: #94a3b8;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #ffffff;
  padding: 0.52rem 1.05rem;
  border-radius: var(--radius-sm);
  color: var(--text-dark) !important;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1.5px solid #d5cebf !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

[data-theme="dark"] .footer-social-link {
  background: #111e30;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

.footer-social-link i {
  color: var(--text-dark) !important;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-social-link:hover {
  background: #000000 !important;
  border-color: var(--text-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.footer-social-link:hover i {
  color: #ffffff !important;
}

/* Right 4 Columns */
.footer-right-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 1.35fr;
  gap: 2rem;
}

.footer-col-title {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.2px;
}

[data-theme="dark"] .footer-col-title {
  color: #ffffff;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list li a {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 700;
  transition: var(--transition);
}

[data-theme="dark"] .footer-links-list li a {
  color: #cbd5e1;
}

.footer-links-list li a:hover {
  color: #15803d;
  padding-left: 4px;
}

[data-theme="dark"] .footer-links-list li a:hover {
  color: #4ade80;
}

.footer-location-block {
  font-size: 0.94rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.7;
}

[data-theme="dark"] .footer-location-block {
  color: #cbd5e1;
}

.footer-location-block i {
  color: var(--text-dark);
  font-size: 1rem;
  margin-right: 0.4rem;
  transform: rotate(-35deg);
}

[data-theme="dark"] .footer-location-block i {
  color: #4ade80;
}

.footer-bottom-legal {
  border-top: 1.5px solid var(--border-light);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--text-dark);
  font-weight: 700;
  width: 100%;
}

.footer-bottom-legal strong {
  color: var(--text-dark);
  font-weight: 900;
}
}

[data-theme="dark"] .footer-bottom-legal {
  border-top-color: #1e293b;
  color: #94a3b8;
}

.footer-bottom-legal p,
.footer-bottom-legal div {
  text-align: center;
  width: 100%;
}

/* ==========================================================================
   ReinforCE 1.0 Competition Cards (For events-national.html)
   ========================================================================== */

.reinforce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.reinforce-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.reinforce-card:hover {
  transform: translateY(-4px);
  border-color: var(--satin-mid);
  box-shadow: var(--shadow-lg);
}

.reinforce-card-header {
  background: #15803D; /* Unified Deep Forest Green */
  color: #ffffff;
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #bbf7d0;
}

.reinforce-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0;
}

.reinforce-card-body {
  padding: 1.75rem;
  flex-grow: 1;
}

.reinforce-card-body p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.reinforce-card-footer {
  padding: 1.25rem 1.75rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.btn-rulebook {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--brand-accent) !important;
  border: 1.5px solid var(--brand-accent);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-rulebook:hover {
  background: var(--brand-accent);
  color: #ffffff !important;
  border-color: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-reg {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  background: var(--brand-primary);
  color: #ffffff !important;
  border: 1.5px solid var(--brand-primary);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.2);
}

.btn-reg:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
}
  justify-content: space-between;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1380px) {
  .nav-link { font-size: 0.90rem; padding: 0.38rem 0.48rem; }
  .nav-brand-logo { height: 48px; }
  .navbar { min-height: 60px; }
}

@media (max-width: 1240px) {
  .nav-brand-logo { height: 44px; }
  .nav-link { font-size: 0.84rem; padding: 0.32rem 0.40rem; }
  .nav-menu { gap: 0.10rem; }
  .navbar { min-height: 58px; }
}

@media (max-width: 1120px) {
  .top-thin-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1.25rem;
    gap: 0.35rem;
  }
  .top-thin-right {
    gap: 0.65rem;
  }
  .nav-brand-logo { height: 42px; }
  .nav-brand-text { font-size: 1.22rem; }
  .hero-photo-motto { font-size: 3.2rem; }
  .hero-photo-sub { font-size: 1.6rem; }
  .moderator-card-box { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .split-footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-right-columns { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .leaders-message-grid { grid-template-columns: 1fr; }
  .contact-badges-grid { grid-template-columns: 1fr 1fr; }
  .navbar-container {
    padding: 0 0.85rem !important;
  }
  .navbar {
    min-height: 72px !important;
    padding: 0.5rem 0 !important;
    gap: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .nav-brand {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-decoration: none !important;
    margin: 0 !important;
  }
  .nav-brand-logo-box {
    padding: 4px 7px !important;
    border-radius: 5px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .nav-brand-logo {
    height: 54px !important; /* 1.4x enlarged official logo on mobile */
    width: auto !important;
    flex-shrink: 0 !important;
    display: block !important;
  }
  .nav-brand-stacked {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.05 !important;
    gap: 1.5px !important;
  }
  .brand-step-1,
  .brand-step-2,
  .brand-step-3 {
    font-family: var(--font-heading) !important;
    font-size: 1.12rem !important; /* 1.4x enlarged brand text on mobile */
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;
    line-height: 1.05 !important;
  }
  /* Mobile Brand Typography: Refined 2-Line Architecture
     Guarantees 'Student Chapter' is 100% visible on Galaxy S23 (360px) & iPhone without truncation */
  .nav-brand-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    line-height: 1.12 !important;
    gap: 1px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .brand-aci,
  .brand-kuet {
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.2px !important;
    color: var(--text-dark) !important;
    display: inline !important;
  }
  .brand-kuet {
    color: var(--brand-primary) !important;
  }
  .brand-sub {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.35px !important;
    color: var(--text-dark) !important;
    text-transform: uppercase !important;
    display: block !important;
    line-height: 1 !important;
  }
  .nav-actions {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    z-index: 1002 !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 1.5px solid #15803D !important;
    background: #ffffff !important;
    color: #15803D !important;
    font-size: 1.4rem !important;
    cursor: pointer !important;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 !important;
  }
  .mobile-menu-toggle:active {
    transform: translate(1px, 1px) !important;
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.15) !important;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 2px solid var(--border-light);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    gap: 0.25rem;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  [data-theme="dark"] .nav-menu {
    background: #0f1d30;
    border-color: #1e293b;
  }
  .nav-menu.active { display: flex !important; }
  .nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .nav-link {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    padding: 0.82rem 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #052E16 !important;
    cursor: pointer !important;
    background: transparent !important;
    border-radius: 4px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    text-decoration: none !important;
  }
  .nav-link:hover,
  .nav-link:active,
  .nav-item.open > .nav-link {
    background: #f0fdf4 !important;
    color: #15803D !important;
    font-weight: 800 !important;
  }
  .nav-link .dropdown-icon {
    font-size: 0.82rem !important;
    margin-left: auto !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease !important;
    color: #64748b !important;
    padding-left: 0.5rem !important;
  }
  .nav-item.open > .nav-link .dropdown-icon {
    transform: rotate(180deg) !important;
    color: #15803D !important;
  }
  /* Mobile Accordion Dropdown Menus: 100% Full-Width Directly Beneath Trigger with Smooth Vertical Accordion */
  .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    width: calc(100% - 0.75rem) !important;
    box-sizing: border-box !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    transform: translateY(-4px) !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 3.5px solid #15803D !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f8fafc !important;
    border-radius: 0 4px 4px 0 !important;
    min-width: 0 !important;
    transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease, margin 0.3s ease, visibility 0.38s !important;
    list-style: none !important;
  }
  .nav-item.open > .dropdown-menu {
    max-height: 550px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    margin: 0.25rem 0 0.5rem 0.75rem !important;
    padding: 0.35rem 0 0.35rem 0.5rem !important;
  }
  .dropdown-item {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.72rem 0.95rem !important;
    font-size: 0.94rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #edf2f7 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    transition: background-color 0.18s ease, color 0.18s ease, padding-left 0.18s ease !important;
  }
  .dropdown-item:last-child {
    border-bottom: none !important;
  }
  .dropdown-item:hover,
  .dropdown-item:active {
    background: #eef7ee !important;
    color: #15803D !important;
    padding-left: 1.25rem !important;
  }

  [data-theme="dark"] .nav-link {
    color: #f1f5f9 !important;
    border-bottom-color: #1e293b !important;
  }
  [data-theme="dark"] .nav-link:hover,
  [data-theme="dark"] .nav-link:active,
  [data-theme="dark"] .nav-item.open > .nav-link {
    background: #1e293b !important;
    color: #4ade80 !important;
  }
  [data-theme="dark"] .dropdown-menu {
    background: #0b1728 !important;
    border-left-color: #22c55e !important;
  }
  [data-theme="dark"] .dropdown-item {
    color: #e2e8f0 !important;
    border-bottom-color: #1e293b !important;
  }
  [data-theme="dark"] .dropdown-item:hover,
  [data-theme="dark"] .dropdown-item:active {
    background: #1e293b !important;
    color: #4ade80 !important;
  }
}

@media (max-width: 640px) {
  .nav-brand-logo-box { padding: 4px 6px !important; }
  .nav-brand-logo { height: 50px !important; } /* 1.4x larger logo on mobile */
  .brand-step-1, .brand-step-2, .brand-step-3 {
    font-size: 1.08rem !important; /* 1.4x larger brand text on mobile */
    font-weight: 800 !important;
    line-height: 1.05 !important;
  }
  .brand-aci, .brand-kuet { font-size: 1.08rem !important; }
  .brand-sub { font-size: 0.78rem !important; letter-spacing: 0.3px !important; }
  .hero-photo-motto {
    font-size: clamp(1.15rem, 4.8vw, 1.45rem) !important;
    letter-spacing: -0.5px !important;
    white-space: nowrap !important;
  }
  .hero-photo-sub { font-size: 0.95rem !important; margin-bottom: 0.85rem !important; }
  .hero-photo-tagline { font-size: 0.88rem !important; line-height: 1.5 !important; padding: 0 0.5rem !important; }
  .footer-right-columns { grid-template-columns: 1fr; }
  .contact-badges-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  /* Extra refinement for Galaxy S23 (360px) and iPhone SE (375px) */
  .hero-photo-motto { font-size: 1.22rem !important; line-height: 1.15 !important; white-space: nowrap !important; }
  .hero-photo-sub { font-size: 0.85rem !important; margin-bottom: 0.75rem !important; }
  .hero-photo-tagline { font-size: 0.80rem !important; line-height: 1.45 !important; }
  .navbar-container { padding: 0 0.65rem !important; }
  .nav-brand { gap: 0.5rem !important; }
  .nav-brand-logo-box { padding: 3px 5px !important; }
  .nav-brand-logo { height: 48px !important; } /* 1.4x larger logo on Galaxy S23 */
  .brand-step-1, .brand-step-2, .brand-step-3 {
    font-size: 1.02rem !important; /* 1.4x larger brand text on Galaxy S23 */
    font-weight: 800 !important;
    line-height: 1.05 !important;
  }
  .mobile-menu-toggle {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.25rem !important;
  }
}

/* ==========================================================================
   Contact Page: Circular Badges Directory (Matching media_1794438021136_29c7250d.png)
   ========================================================================== */

.contact-badges-section {
  background: var(--bg-cream);
  padding: 4.5rem 1.5rem;
  border-bottom: 1.5px solid var(--border-light);
  text-align: center;
  transition: background-color 0.25s ease;
}

[data-theme="dark"] .contact-badges-section {
  background: #091322;
  border-bottom-color: #1e293b;
}

.contact-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.contact-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-badge-circle {
  width: 96px;
  height: 96px;
  border-radius: 50% !important;
  border: 3.5px solid #052E16;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  color: #052E16;
  margin-bottom: 1.25rem;
  background: #ffffff;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(5, 46, 22, 0.08);
}

[data-theme="dark"] .contact-badge-circle {
  background: #111e30;
  border-color: #94a3b8;
  color: #e2e8f0;
}

.contact-badge-circle:hover {
  border-color: var(--text-dark);
  color: var(--text-dark);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-badge-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

[data-theme="dark"] .contact-badge-title {
  color: #ffffff;
}

.contact-badge-val {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 800;
  word-break: break-word;
}

[data-theme="dark"] .contact-badge-val {
  color: #f1f5f9;
}

.contact-badge-val a {
  color: var(--text-dark);
  transition: var(--transition);
}

[data-theme="dark"] .contact-badge-val a {
  color: #f1f5f9;
}

.contact-badge-val a:hover {
  color: #15803d;
}

[data-theme="dark"] .contact-badge-val a:hover {
  color: #4ade80;
}

.contact-location-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

/* Spacious Official Message Desk Form Inputs */
.contact-input-lg {
  width: 100%;
  padding: 1rem 1.35rem;
  font-size: 1.08rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--card-bg);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
  min-height: 56px;
  box-sizing: border-box;
}

.contact-input-lg:focus {
  border-color: #15803d;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
}

.contact-label-lg {
  display: block;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   CUET-Style Executive Committee Cards (Matching media_1794439060854_a1502d22.jpg)
   ========================================================================== */

.cuet-panel-section {
  padding: 4.5rem 0 6rem;
  background: var(--bg-white);
  transition: background-color 0.25s ease;
}

[data-theme="dark"] .cuet-panel-section {
  background: #08121e;
}

.cuet-page-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.5px;
  margin-bottom: 3.5rem;
}

[data-theme="dark"] .cuet-page-title {
  color: #ffffff;
}

.cuet-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cuet-panel-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

[data-theme="dark"] .cuet-panel-card {
  background: #0f1d30;
  border-color: #1e293b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cuet-panel-card:hover {
  transform: translateY(-6px);
  border-color: #15803D;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.cuet-card-top-icons {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.cuet-card-top-icons img {
  height: 24px;
  width: auto;
  opacity: 0.85;
}

.cuet-card-photo-box {
  width: 100%;
  height: 330px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .cuet-card-photo-box {
  background: #0b1523;
}

.cuet-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
  border-radius: 0;
}

.cuet-panel-card:hover .cuet-card-photo {
  transform: scale(1.03);
}

.cuet-card-body {
  padding: 1.25rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

/* Green Designation Badge - Sharp 4-Corner Rectangular with Pure White Fonts */
.cuet-name-badge {
  background: #15803d;
  color: #ffffff !important;
  padding: 0.65rem 1.6rem;
  border-radius: 0;
  margin-top: -38px;
  position: relative;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 230px;
}

.cuet-badge-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ffffff !important; /* Crisp white font as requested */
}

.cuet-badge-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff !important; /* Crisp white font as requested */
  background: rgba(0, 0, 0, 0.18);
  padding: 0.15rem 0.65rem;
  border-radius: 4px;
}

.cuet-card-cohort {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 1.25rem;
  line-height: 1.5;
}

[data-theme="dark"] .cuet-card-cohort {
  color: #94a3b8;
}

/* Social Row at bottom matching CUET golden circle buttons */
.cuet-card-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem 1.4rem;
  border-top: 1px solid #f3f4f6;
  width: 100%;
}

[data-theme="dark"] .cuet-card-socials {
  border-top-color: #1e293b;
}

.cuet-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdf6e7;
  border: 1px solid #f5e4be;
  color: #d97706; /* Golden amber style from CUET reference */
  font-size: 0.95rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

[data-theme="dark"] .cuet-social-btn {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.25);
  color: #fbbf24;
}

.cuet-social-btn:hover {
  background: #000000;
  border-color: var(--text-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .cuet-panel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .cuet-panel-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    gap: 2rem !important;
    box-sizing: border-box !important;
  }
  .cuet-panel-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Sponsors Page - Clean 3-per-Row Grid & Screenshot Matching
   ========================================================================== */
.sponsors-wrapper {
  padding: 3.5rem 0 6rem;
  background: var(--bg-main);
}

.sponsors-gratitude-banner {
  max-width: 950px;
  margin: 0 auto 3rem auto;
  text-align: center;
  padding: 0 1.5rem;
}

.sponsors-gratitude-text {
  font-size: 1.28rem;
  font-weight: 800;
  color: #15803D; /* Institutional Deep Forest Green */
  line-height: 1.65;
  font-style: normal;
  letter-spacing: -0.2px;
}

[data-theme="dark"] .sponsors-gratitude-text {
  color: #4ade80;
}

.sponsors-fest-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.sponsors-fest-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-dark); /* Pure Bold Black */
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.5px;
}

[data-theme="dark"] .sponsors-fest-title {
  color: #ffffff;
}

.sponsors-fest-subtitle {
  font-size: 1.25rem;
  font-weight: 800;
  font-style: italic;
  color: #15803D; /* Institutional Deep Forest Green */
  text-decoration: underline;
  text-underline-offset: 4px;
}

[data-theme="dark"] .sponsors-fest-subtitle {
  color: #4ade80;
}

.sponsors-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  max-width: 1140px;
  margin: 0 auto;
}

.sponsor-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sponsor-box {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .sponsor-box {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.sponsor-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.sponsor-logo-img {
  max-width: 85%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sponsor-name-under {
  margin-top: 1.15rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

[data-theme="dark"] .sponsor-name-under {
  color: #f1f5f9;
}

.sponsor-role-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 0.25rem;
  text-align: center;
}

[data-theme="dark"] .sponsor-role-badge {
  color: #94a3b8;
}

@media (max-width: 900px) {
  .sponsors-grid-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 580px) {
  .sponsors-grid-3col {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .sponsors-fest-title {
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   Page Banner & Global Black Ink Enhancements on Rich Cream Background
   ========================================================================== */
.page-banner {
  background: var(--bg-cream);
  border-bottom: 1.5px solid var(--border-light);
  padding: 3.5rem 0 2.5rem;
}

.page-banner-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-dark) !important;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.page-banner-desc {
  font-size: 1.05rem;
  color: var(--text-dark) !important;
  max-width: 820px;
  line-height: 1.65;
  font-weight: 500;
}

.breadcrumb-nav {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark) !important;
  margin-bottom: 1rem;
}

.breadcrumb-nav a {
  color: var(--text-dark) !important;
}

.breadcrumb-nav span {
  color: #114b2b !important;
  font-weight: 800;
}

/* Palette #80: High contrast deep botanical typography */
body:not([data-theme="dark"]) h1:not(.hero-photo-banner *),
body:not([data-theme="dark"]) h2:not(.hero-photo-banner *),
body:not([data-theme="dark"]) h3:not(.hero-photo-banner *),
body:not([data-theme="dark"]) h4:not(.hero-photo-banner *),
body:not([data-theme="dark"]) h5:not(.hero-photo-banner *),
body:not([data-theme="dark"]) h6:not(.hero-photo-banner *) {
  color: var(--text-dark);
}
body:not([data-theme="dark"]) p:not(.hero-photo-banner *),
body:not([data-theme="dark"]) span:not(.hero-photo-banner *):not(.persistent-top-ribbon *):not(.top-ribbon-inner *):not(.btn-reinforce *):not(.top-thin-bar *):not(.footer-social-link *):not(.section-tag *):not(.badge *):not([class*="badge"] *):not(.p-swatch *),
body:not([data-theme="dark"]) li:not(.hero-photo-banner *),
body:not([data-theme="dark"]) label,
body:not([data-theme="dark"]) td,
body:not([data-theme="dark"]) th {
  color: var(--text-body);
}

/* Hero photo banner text MUST ALWAYS be solid white with high contrast */
.hero-photo-banner,
.hero-photo-banner *,
.hero-photo-banner h1,
.hero-photo-banner h2,
.hero-photo-banner h3,
.hero-photo-banner p,
.hero-photo-banner div,
.hero-photo-banner span,
.hero-photo-content,
.hero-photo-content *,
.hero-photo-motto,
.hero-photo-sub,
.hero-photo-tagline {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.9) !important;
}

/* Moderator Social & Scholar Profiles */
.moderator-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.moderator-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a !important;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.moderator-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.moderator-social-btn:nth-child(1):hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
  color: #ffffff !important;
}

.moderator-social-btn:nth-child(2):hover {
  background: #0a66c2 !important;
  border-color: #0a66c2 !important;
  color: #ffffff !important;
}

.moderator-social-btn:nth-child(3):hover {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

.moderator-social-btn:hover i {
  color: #ffffff !important;
}

/* Nav Item Open via Click */
.nav-item.open .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}


/* ==========================================================================
   Students' Technical Resource Library & About Us Pages Styles
   ========================================================================== */

/* Concrete Mix Calculator */
.mix-calc-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3.5rem;
}

.mix-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mix-calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mix-calc-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
}

.mix-calc-input,
.mix-calc-select {
  padding: 0.85rem 1.15rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #f8fafc;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
}

.mix-calc-input:focus,
.mix-calc-select:focus {
  outline: none;
  border-color: var(--satin-mid);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
}

.mix-result-box {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  padding: 2.25rem 2rem;
  margin-top: 2rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.mix-result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  background: #ffffff !important;
  border: 1px solid #e5e7eb;
}

.mix-result-table th,
.mix-result-table td {
  padding: 0.95rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb !important;
  color: #111827;
  font-weight: 500;
  font-size: 0.92rem;
}

.mix-result-table th {
  background: #f8fafc !important; /* Neutral clean header - zero green */
  color: var(--text-dark) !important;
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 2px solid #e5e7eb !important;
}

/* Code & Standards Directory */
.code-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.code-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 4px 15px rgba(22, 101, 52, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.code-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--satin-mid);
}

.code-badge {
  display: inline-block;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 800;
  background: transparent !important;
  color: #15803D;
  margin-bottom: 0.75rem;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-card h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.code-card p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.code-clauses {
  list-style: none;
  margin-bottom: 1.5rem;
  padding: 0;
}

.code-clauses li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.35rem 0;
  border-bottom: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-clauses li i {
  color: #16a34a;
  font-size: 0.85rem;
}

.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #0b2545;
  color: #ffffff !important;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn-download-pdf:hover {
  background: #15803D;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Software Roadmap Cards */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.software-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 4px 15px rgba(22, 101, 52, 0.04);
  transition: var(--transition);
}

.software-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--satin-mid);
}

.software-icon-wrap {
  display: none !important;
}

.software-card h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.software-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: #15803D;
  margin-bottom: 1rem;
}

.software-topics {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.software-topics li {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.software-topics li i,
.code-clauses li i {
  display: none !important;
}

/* Lab Photo-Journal & Equipment Showcase */
.lab-equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.25rem;
  margin-bottom: 4rem;
}

.lab-equip-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 4px 15px rgba(22, 101, 52, 0.04);
  transition: var(--transition);
}

.lab-equip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.lab-equip-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  background: #e2e8f0;
}

.lab-equip-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.lab-equip-spec {
  font-size: 0.86rem;
  font-weight: 800;
  color: #15803D;
  margin-bottom: 0.75rem;
}

.lab-equip-desc {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.65;
}

/* Alumni Mentorship Cards */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.25rem;
  margin-bottom: 4rem;
}

.alumni-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(22, 101, 52, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.alumni-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--satin-mid);
}

.alumni-avatar {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #bbf7d0;
  margin-bottom: 1.25rem;
  background: #e2e8f0;
}

.alumni-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.alumni-role {
  font-size: 0.95rem;
  font-weight: 800;
  color: #15803D;
  margin-bottom: 0.25rem;
}

.alumni-company {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.15rem;
}

.alumni-bio {
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Membership Perks Grid */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.perk-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 4px 15px rgba(22, 101, 52, 0.04);
  transition: var(--transition);
}

.perk-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--satin-mid);
}

.perk-icon-wrap {
  display: none !important;
}

.perk-card h3 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.perk-card p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.65;
}

/* ==========================================================================
   Website Team Showcase Card (Matching reference media_1794449045667_20d624e2.jpg)
   ========================================================================== */

.webteam-section {
  padding: 4.5rem 1.5rem 6rem;
  background: var(--bg-cream);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

[data-theme="dark"] .webteam-section {
  background: #091322;
}

.webteam-header-center {
  margin-bottom: 2.5rem;
}

.webteam-page-title {
  font-family: 'Plus Jakarta Sans', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #1b5e3a; /* Deep elegant green matching reference title */
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .webteam-page-title {
  color: #4ade80;
}

.webteam-page-subtitle {
  font-family: 'Plus Jakarta Sans', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: #1e293b; /* Deep slate navy matching reference subtitle */
  letter-spacing: -0.2px;
  margin-bottom: 2.5rem;
}

[data-theme="dark"] .webteam-page-subtitle {
  color: #cbd5e1;
}

/* Dual Team Leaders Grid */
.webteam-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.webteam-lead-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.webteam-lead-wrapper .webteam-card-container {
  margin-bottom: 1.5rem;
  width: 100%;
}

.webteam-lead-wrapper .webteam-under-info {
  margin-top: 0;
  width: 100%;
}

@media (max-width: 860px) {
  .webteam-dual-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

/* Outer Card Container */
.webteam-card-container {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 28px;
  padding: 2.25rem 2rem 2.5rem;
  box-shadow: 0 20px 50px rgba(22, 101, 52, 0.08);
  border: 2px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  margin: 0 auto 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .webteam-card-container {
  background: #0f1d30;
  border-color: #1e293b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.webteam-card-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(22, 101, 52, 0.14);
}

/* Watermark code background */
.webteam-code-watermark {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.76rem;
  line-height: 1.55;
  color: rgba(71, 85, 105, 0.16);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  text-align: left;
  overflow: hidden;
}

[data-theme="dark"] .webteam-code-watermark {
  color: rgba(255, 255, 255, 0.08);
}

/* Inner content relative to z-index 2 */
.webteam-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.webteam-card-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.webteam-card-tagline {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88rem;
  font-weight: 900;
  color: #0f172a;
  text-align: left;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .webteam-card-tagline {
  color: #f8fafc;
}

.webteam-card-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Code Syntax Tags */
.webteam-code-bracket {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1d4ed8; /* Blue code tag syntax from reference */
  margin: 0.85rem 0;
  letter-spacing: -0.3px;
}

[data-theme="dark"] .webteam-code-bracket {
  color: #60a5fa;
}

/* Photo Box */
.webteam-photo-box {
  width: 100%;
  max-width: 320px;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.25);
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
  margin: 0 auto;
}

.webteam-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.webteam-card-container:hover .webteam-photo-img {
  transform: scale(1.03);
}

/* Bottom Identity Block */
.webteam-under-info {
  margin-top: 1.5rem;
  text-align: center;
}

.webteam-under-name {
  font-family: 'Plus Jakarta Sans', Georgia, serif;
  font-size: 2.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

[data-theme="dark"] .webteam-under-name {
  color: #ffffff;
}

.webteam-under-role {
  font-size: 1.22rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .webteam-under-role {
  color: #94a3b8;
}

/* Warm Golden / Tan Social Action Buttons from Screenshot */
.webteam-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.webteam-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e5a953; /* Warm golden/tan color exactly matching the screenshot */
  color: #ffffff !important;
  font-size: 1.2rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(229, 169, 83, 0.35);
  text-decoration: none;
}

.webteam-social-btn:hover {
  background: #15803D; /* Institutional green hover */
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.3);
  color: #ffffff !important;
}

/* Pill Badges for direct phone and email */
.webteam-contact-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.webteam-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1.5px solid #d5cebf;
  padding: 0.55rem 1.15rem;
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a !important;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

[data-theme="dark"] .webteam-pill {
  background: #111e30;
  border-color: #334155;
  color: #e2e8f0 !important;
}

.webteam-pill:hover {
  border-color: #15803D;
  color: #15803D !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.15);
}

.webteam-pill i {
  color: #15803D;
}

@media (max-width: 640px) {
  .webteam-page-title {
    font-size: 2.5rem;
  }
  .webteam-page-subtitle {
    font-size: 1.6rem;
  }
  .webteam-card-container {
    padding: 1.5rem 1.25rem 2rem;
    border-radius: 20px;
  }
  .webteam-photo-box {
    height: 280px;
  }
  .webteam-under-name {
    font-size: 1.75rem;
  }
  .webteam-under-role {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Mobile & Cross-Platform (iOS Safari & Android Chrome) Optimization Engine
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}

/* Eliminate 300ms tap delay & touch jank */
a, button, input, select, textarea, [role="button"] {
  touch-action: manipulation;
}

/* Prevent iOS Safari aggressive auto-zoom on form inputs */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Notched iPhones & Android Edge-to-Edge Safe Area Insets */
header.site-header,
nav.main-nav,
footer.site-footer,
.page-header-banner,
.container {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

/* Mobile Responsive Typography & Grid Refinements */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.15rem !important;
    line-height: 1.2 !important;
  }
  .page-header-banner h1 {
    font-size: 2rem !important;
  }
  .page-header-banner p {
    font-size: 0.98rem !important;
  }
  .container {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
  }
  .features-grid,
  .officers-grid,
  .event-cards-grid,
  .webteam-grid {
    grid-template-columns: 1fr !important;
  }
  .nav-menu {
    border-radius: 0 !important;
  }
  .btn-primary, .btn-secondary, .btn-action {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* Overflow safety for mobile devices */
table, pre, code, .cuet-table-responsive {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   ReinforCE 2.0 Live Architectural Countdown Clock
   ========================================================================== */
.reinforce-countdown-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.countdown-box {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 0 !important;
  padding: 1.25rem 1.15rem;
  min-width: 110px;
  text-align: center;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.countdown-box:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px rgba(22, 101, 52, 0.9);
}

.countdown-num {
  font-family: 'Space Mono', monospace, 'Inter', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: #15803D;
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.countdown-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  display: block;
}

@media (max-width: 600px) {
  .reinforce-countdown-wrapper {
    gap: 0.65rem;
  }
  .countdown-box {
    min-width: 78px;
    padding: 0.85rem 0.6rem;
  }
  .countdown-num {
    font-size: 1.7rem;
  }
  .countdown-label {
    font-size: 0.68rem;
    letter-spacing: 1px;
  }
}

/* ==========================================================================
   ACI-KUET Civil Engineering & Building Estimation Portal Styles
   ========================================================================== */
.est-hero-section {
  background: #ffffff;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 2px solid var(--border-light);
}

.est-portal-tag {
  display: inline-block;
  background: #15803D;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.45rem 1.15rem;
  border-radius: 0;
  margin-bottom: 1.25rem;
}

.est-hero-title {
  font-family: 'Merriweather', serif;
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.est-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: #15803D;
  margin-bottom: 1rem;
}

.est-hero-desc {
  font-size: 1.05rem;
  color: #334155;
  max-width: 900px;
  line-height: 1.7;
  font-weight: 500;
}

/* Overview KPI Stat Bar */
.est-kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.est-kpi-card {
  background: #ffffff;
  border: 2px solid #000000;
  padding: 1.5rem 1.25rem;
  border-radius: 0;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.est-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px rgba(22, 101, 52, 0.9);
}

.est-kpi-num {
  font-family: 'Space Mono', monospace, 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #15803D;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.est-kpi-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.est-kpi-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Modular Route Nav Tabs */
.est-nav-bar {
  background: #f8fafc;
  border-bottom: 2px solid #000000;
  position: sticky;
  top: 72px;
  z-index: 100;
  padding: 0;
  backdrop-filter: blur(8px);
}

.est-nav-scroll {
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.est-nav-tab {
  padding: 1.15rem 1.6rem;
  font-size: 0.96rem;
  font-weight: 800;
  color: #334155;
  background: transparent;
  border: none;
  border-right: 1px solid #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.15s ease;
  border-bottom: 3px solid transparent;
}

.est-nav-tab:hover {
  background: #ffffff;
  color: #15803D;
}

.est-nav-tab.active {
  background: #ffffff;
  color: #15803D;
  border-bottom: 3px solid #15803D;
}

/* Phase Workflow Diagram */
.phase-flow-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 3rem 0;
}

.phase-step-card {
  background: #ffffff;
  border: 2px solid #000000;
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.9);
}

@media (max-width: 900px) {
  .phase-step-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.phase-badge {
  background: #15803D;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 0.85rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Document Cards Grid */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

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

.doc-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px rgba(22, 101, 52, 0.9);
}

.doc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.doc-auth-badge {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-size-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.25rem 0.6rem;
  border-radius: 0;
  white-space: nowrap;
}

.doc-item-id {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #15803D;
  margin-bottom: 0.35rem;
}

.doc-title-en {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.doc-title-bn {
  font-size: 0.92rem;
  font-weight: 600;
  color: #15803D;
  margin-bottom: 1rem;
}

.doc-scope-box {
  background: #f8fafc;
  border-left: 3px solid #15803D;
  padding: 0.75rem 0.9rem;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 0.65rem;
}

.doc-rate-box {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
  padding: 0.75rem 0.9rem;
  font-size: 0.86rem;
  color: #14532d;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.doc-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}

.btn-doc-download {
  background: #15803D;
  color: #ffffff;
  border: 2px solid #000000;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.btn-doc-download:hover {
  background: #0f4a24;
  color: #ffffff;
}

.btn-doc-detail {
  background: #ffffff;
  color: var(--text-dark);
  border: 2px solid #000000;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.btn-doc-detail:hover {
  background: #f8fafc;
  border-color: #15803D;
  color: #15803D;
}

/* Modal Connection Tag */
.modal-conn-tag {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.modal-conn-tag:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}

/* Estimator Interactive Layout */
.est-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  background: #f8fafc;
  border: 2px solid #000000;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.est-input-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.est-input-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #000000;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Space Mono', monospace, sans-serif;
  box-sizing: border-box;
}

.est-summary-banner {
  background: #15803D;
  color: #ffffff;
  border: 2px solid #000000;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.9);
}

.est-summary-banner h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #86efac;
  margin-bottom: 0.35rem;
}

.est-summary-banner .big-num {
  font-family: 'Space Mono', monospace;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

/* ==========================================================================
   Suppress Netlify HUD & "Powered by Netlify" Injected Floating Badge
   ========================================================================== */
#nl-badge-frame,
#nl-hud-frame,
iframe[title="Powered by Netlify"],
iframe[title="Netlify"],
iframe[id^="nl-"],
iframe[srcdoc*="Powered by"],
iframe[srcdoc*="Netlify"],
.nl-wrap,
.nl-badge,
.nl-card,
#netlify-cdp-loader,
.netlify-drawer,
[data-netlify-drawer],
.netlify-badge,
#netlify-badge,
[id*="netlify"],
[class*="netlify"],
iframe[src*="netlify"],
a[href*="netlify.com"]:not(.footer-legal-link),
div:has(> a[href*="netlify.com"]),
div[class*="netlify-drawer"],
div[class*="netlify-badge"],
div[id*="netlify-drawer"],
div[id*="netlify-badge"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0) !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
  clip-path: circle(0) !important;
}

/* ==========================================================================
   Mobile-First Responsive Form & Grid System (iOS & Android Native Experience)
   ========================================================================== */
.form-responsive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-box-card {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3.5rem;
  border-radius: 0;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.content-two-col-box {
  background: #ffffff;
  padding: 3.5rem;
  border-radius: 0;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.contact-two-col-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
}

.contact-form-card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 0;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.contact-badges-secondary {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 2.5rem auto 0 auto;
}

@media (max-width: 768px) {
  .form-responsive-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 1.25rem !important;
  }

  .form-box-card {
    padding: 1.5rem 1.15rem !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
  }

  .content-two-col-box {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 1.5rem 1.15rem !important;
  }

  .contact-two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .contact-form-card {
    padding: 1.5rem 1.15rem !important;
    box-shadow: none !important;
  }

  .contact-badges-secondary {
    gap: 2rem !important;
  }

  .form-box-card h3 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }

  .contact-input-lg {
    font-size: 16px !important; /* Prevents iOS Safari viewport zoom */
    padding: 0.85rem 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .btn-reinforce {
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    justify-content: center !important;
    line-height: 1.35 !important;
    padding: 0.95rem 1rem !important;
    width: 100% !important;
    font-size: 0.98rem !important;
  }
}

/* ==========================================================================
   Executive Leaders & Moderator Responsive Layout
   ========================================================================== */
.leader-photo-cutout {
  width: 68px;
  height: 68px;
  min-width: 68px;
  max-width: 68px;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid #15803D;
  border-radius: 0 !important;
  display: block;
  flex-shrink: 0;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .leaders-message-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .leader-card {
    padding: 1.5rem 1.25rem !important;
  }

  .leader-card-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .leader-photo-cutout {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
  }

  .leader-card h4 {
    font-size: 1.05rem !important;
    margin-bottom: 0.2rem !important;
  }

  .leader-card span {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    display: block !important;
  }

  .leader-card h5 {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.65rem !important;
  }

  .leader-card p {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
  }

  /* Moderator Mobile Alignment */
  .moderator-card-box {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    padding: 1.5rem 1.15rem !important;
  }

  .moderator-message-content h2 {
    font-size: 1.45rem !important;
    margin-bottom: 0.85rem !important;
    line-height: 1.3 !important;
  }

  .moderator-message-content p {
    font-size: 0.94rem !important;
    line-height: 1.65 !important;
  }

  .moderator-portrait-wrap {
    text-align: center !important;
  }

  .moderator-img {
    max-width: 170px !important;
    max-height: 220px !important;
    margin: 0 auto 1rem !important;
    display: block !important;
  }
}

/* ==========================================================================
   Certificate Verification Portal Styling
   ========================================================================== */
.verify-box {
  max-width: 720px;
  margin: 0 auto;
  background: #f0fdf4;
  padding: 3.5rem 3rem;
  border-radius: var(--radius-md, 8px);
  border: 2px solid #bbf7d0;
  box-shadow: 0 10px 30px rgba(21, 128, 61, 0.08);
  text-align: center;
}

.verify-input-group {
  display: flex;
  gap: 0.75rem;
  margin: 2.25rem 0 1.25rem;
  align-items: stretch;
}

.verify-input {
  flex: 1;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 0;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: #ffffff;
}

.verify-input:focus {
  border-color: #15803D;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
}

#btn-verify-cert {
  background: #15803D !important;
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  padding: 1rem 2.5rem !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.2s ease !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#btn-verify-cert:hover {
  background: #14532d !important;
  transform: translateY(-1px) !important;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.25) !important;
}

.cert-result-card {
  margin-top: 2rem;
  text-align: left;
}

@media (max-width: 640px) {
  .verify-box {
    padding: 2.25rem 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .verify-input-group {
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .verify-input {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    padding: 0.95rem 1rem !important;
  }
  #btn-verify-cert {
    width: 100% !important;
    padding: 1.15rem 1rem !important;
    font-size: 1.18rem !important;
  }
}

/* ==========================================================================
   Contact Directory: Desktop (Previous Wide Grid) vs Mobile (Ordered 4-Row)
   ========================================================================== */
.contact-directory-desktop {
  display: block;
}

.contact-directory-mobile {
  display: none;
}

@media (max-width: 768px) {
  .contact-directory-desktop {
    display: none !important;
  }
  .contact-directory-mobile {
    display: block !important;
  }
}

.contact-directory-ordered {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.contact-row-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0;
}

.contact-row-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #15803D;
}

.contact-row-card .contact-badge-circle {
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
  width: 68px !important;
  height: 68px !important;
  font-size: 1.75rem !important;
  border-width: 2.5px !important;
  border-radius: 50% !important;
}

.contact-row-duo {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 640px) {
  .contact-row-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 1.5rem 1.15rem !important;
    gap: 1rem !important;
  }
  .contact-row-duo {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  .webteam-photo-box {
    max-width: 230px !important;
    height: 250px !important;
  }
}

/* ==========================================================================
   Kinetic Scroll Animations (2.0s / 2.2s Transitions & Fixed Ribbon)
   ========================================================================== */

/* Persistent Top Ribbon (Permanently sticky at top as page scrolls) */
.persistent-top-ribbon {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(34px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: 0;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  background: #041d0e;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body {
  padding-top: 0 !important;
  margin: 0 !important;
}

.top-ribbon-inner span {
  font-family: var(--font-heading), 'Merriweather', Georgia, serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.75px !important;
  color: #ffffff !important;
  text-transform: none !important;
  display: inline-block !important;
}

/* 1. Events Section: 3-line drop-down header (2.0s duration) */
.events-head-anim {
  opacity: 0;
  transform: translateY(-60px);
  transition: transform 2.0s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.events-head-anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Events 3x2 Grid Rows: Row 1 from Right (2.0s), Row 2 from Left (2.0s) */
.events-rows-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.events-row-top,
.events-row-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.anim-slide-right {
  opacity: 0;
  transform: translateX(150px);
  transition: transform 2.0s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.anim-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.anim-slide-left {
  opacity: 0;
  transform: translateX(-150px);
  transition: transform 2.0s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.anim-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 992px) {
  .events-row-top,
  .events-row-bottom {
    grid-template-columns: 1fr;
  }
}

/* 2. Achievements Section: Zooms from inside out over 2.2s */
.achieve-zoom-anim {
  opacity: 0;
  transform: scale(0.65);
  transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.achieve-zoom-anim.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* 3. Main Media Gallery Section: 3 Photos, Slides up from bottom over 2.0s, Looping Carousel */
.gallery-slide-up {
  opacity: 0;
  transform: translateY(70px);
  transition: transform 2.0s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.gallery-slide-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* High Contrast Enforcements for Event and Achievement Cards */
.event-box-link h3,
.achieve-title-anim,
.human-card h3 {
  color: #0f172a !important;
}

.event-box-link p,
.human-card p {
  color: #334155 !important;
}

.photo-gallery-grid-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
  width: 100%;
}

.gallery-slide-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.gallery-slide-card:hover {
  transform: translateY(-6px);
  border-color: #15803D;
  box-shadow: 0 16px 36px rgba(21, 128, 61, 0.22);
}

.gallery-slide-card.active-featured {
  border: 2.5px solid #15803D !important;
  box-shadow: 0 14px 34px rgba(21, 128, 61, 0.22) !important;
  transform: translateY(-5px);
}

@media (max-width: 1100px) {
  .photo-gallery-grid-four {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .photo-gallery-grid-four {
    position: relative;
    min-height: 270px;
    display: block;
  }
  .photo-gallery-grid-four .gallery-slide-card {
    display: none;
    opacity: 0;
  }
  .photo-gallery-grid-four .gallery-slide-card.active-slide {
    display: block;
    opacity: 1;
    animation: galleryFadeIn 0.5s ease forwards;
  }
  @keyframes galleryFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* 4. Leaders Section: Zooms from inside out over 2.5s */
.leaders-zoom-anim {
  opacity: 0;
  transform: scale(0.65);
  transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.leaders-zoom-anim.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Gallery Carousel Controls & Indicators */
.gallery-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-nav-btn {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1.5px solid #052E16;
  color: #052E16;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
  background: #15803D;
  color: #ffffff;
  border-color: #15803D;
  transform: scale(1.05);
}

.gallery-carousel-dots {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  background: #15803D;
  width: 28px;
}

/* 4. Moderator Section (Box drops with impact, photo and meta appear, text types out) */
.moderator-card-box {
  opacity: 0;
  transform: translateY(-60px) scale(0.96);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
}
.moderator-card-box.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.moderator-anim-photo {
  opacity: 0;
  transform: scale(0.8) rotate(-2deg);
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s, opacity 0.7s ease 0.2s;
}
.moderator-card-box.is-visible .moderator-anim-photo {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.moderator-anim-meta {
  opacity: 0;
  transform: translateY(25px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, opacity 0.6s ease 0.35s;
}
.moderator-card-box.is-visible .moderator-anim-meta {
  opacity: 1;
  transform: translateY(0);
}

/* 5. Executive Voice Cards (Left card from left, right card from right, statement types out) */
.leader-card.anim-leader-left {
  opacity: 0;
  transform: translateX(-120px);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
}
.leader-card.anim-leader-right {
  opacity: 0;
  transform: translateX(120px);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
}
.leader-card.anim-leader-left.is-visible,
.leader-card.anim-leader-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Typewriter Cursor */
.typewriter-cursor {
  display: inline-block;
  width: 2.5px;
  height: 1.15em;
  background-color: #15803D;
  margin-left: 2px;
  vertical-align: -2px;
  animation: blinkTypeCursor 0.75s infinite;
}
@keyframes blinkTypeCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .events-head-anim,
  .event-box-link.anim-left,
  .event-box-link.anim-right,
  .achieve-title-anim,
  .achieve-card-anim,
  .gallery-title-anim,
  .gallery-photo-anim,
  .moderator-card-box,
  .moderator-anim-photo,
  .moderator-anim-meta,
  .leader-card.anim-leader-left,
  .leader-card.anim-leader-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Mobile Animation Safety & Full Backdrop Overlay System
   ========================================================================== */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
}
.nav-backdrop.active {
  display: block;
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow during fly-in animations on mobile */
  .leader-card.anim-leader-left,
  .leader-card.anim-leader-right {
    transform: translateY(25px) !important;
  }
  .leader-card.anim-leader-left.is-visible,
  .leader-card.anim-leader-right.is-visible {
    transform: translateY(0) !important;
  }

  .event-box-link.anim-left,
  .event-box-link.anim-right {
    transform: translateY(25px) !important;
  }
  .event-box-link.anim-left.is-visible,
  .event-box-link.anim-right.is-visible {
    transform: translateY(0) !important;
  }

  .gallery-photo-anim {
    transform: translateY(20px) !important;
  }
  .gallery-photo-anim.is-visible {
    transform: translateY(0) !important;
  }

  /* Ensure card headers never clip horizontally */
  .leader-card-header {
    flex-wrap: wrap !important;
    gap: 0.85rem !important;
  }
  .leader-card-header > div {
    min-width: 0 !important;
    flex: 1 1 200px !important;
    word-break: break-word !important;
  }
}

/* ==========================================================================
   Remians (RDS) Inspired Institutional Top Utility Ribbon
   ========================================================================== */
.top-utility-strip {
  background: #041d0e;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.25);
  padding: 6px 1.5rem;
  font-family: 'Oswald', 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1.8px;
  color: #fbbf24;
  text-transform: uppercase;
  font-weight: 600;
  width: 100%;
  z-index: 1001;
}

.top-utility-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-utility-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.top-utility-badge {
  background: #15803d;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 0;
  letter-spacing: 1px;
}

.top-utility-text {
  color: #fbbf24;
}

.top-utility-meta {
  color: #bbf7d0;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .top-utility-strip {
    padding: 6px 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-align: center;
  }
  .top-utility-container {
    justify-content: center;
  }
  .top-utility-badge {
    display: none !important;
  }
  .top-utility-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    font-size: 0.72rem !important;
    color: #fbbf24 !important;
  }
  .top-utility-meta {
    display: none !important;
  }
}

/* ==========================================================================
   Remians (RDS) Inspired 3D Concrete Wall Architectural Hero Section
   ========================================================================== */
.remians-hero-section {
  position: relative;
  background-color: #081c10;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(21, 128, 61, 0.22) 0%, rgba(3, 15, 8, 0.96) 100%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.45) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(0, 0, 0, 0.45) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.45) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.45) 75%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 70px 70px, 70px 70px, 70px 70px, 70px 70px, 140px 140px, 140px 140px;
  background-position: center center, 0 0, 0 35px, 35px -35px, -35px 0px, 0 0, 0 0;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 2px solid rgba(245, 158, 11, 0.35);
  box-shadow: inset 0 -30px 60px rgba(0, 0, 0, 0.75);
  padding: 4.5rem 1.5rem;
  overflow: hidden;
}

.hero-center-content {
  position: relative;
  z-index: 5;
  max-width: 960px;
  margin: 0 auto;
}

.hero-dept-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(4, 29, 14, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 0.35rem 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  border-radius: 0;
}

/* RDS-style Stacked Centerpiece Typography - High Contrast Gold */
.hero-big-title-stacked,
.remians-hero-section h1.hero-big-title-stacked,
.remians-hero-section h1.hero-big-title-stacked span {
  font-family: 'Playfair Display', 'Merriweather', serif !important;
  font-size: 3.8rem;
  font-weight: 900 !important;
  color: #fbbf24 !important;
  line-height: 1.08;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
  margin-bottom: 1.15rem;
}

.hero-big-title-stacked span {
  display: block;
}

/* Motto Pill: Design. Build. Endure. */
.hero-motto-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 0.45rem 1.5rem;
  margin-bottom: 1.2rem;
  border-radius: 0;
}

.motto-segment {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
}

.motto-dot {
  color: #15803d;
  font-size: 0.9rem;
}

.hero-legacy-tagline,
.remians-hero-section .hero-legacy-tagline {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  letter-spacing: 0.3px;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
  max-width: 820px;
  margin-inline: auto;
}

.hero-est-year,
.remians-hero-section .hero-est-year {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #e2e8f0 !important;
  margin-bottom: 2rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

.hero-action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-remians-center {
  background: #fbbf24;
  color: #052e16 !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  padding: 0.75rem 2rem;
  border-radius: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45), 0 2px 4px rgba(0, 0, 0, 0.5);
  border: 1.5px solid #f59e0b;
  transition: all 0.2s;
}

.btn-remians-center:hover {
  background: #f59e0b;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-remians-outline {
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0.75rem 1.85rem;
  border-radius: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  transition: all 0.2s;
}

.btn-remians-outline:hover {
  background: #ffffff;
  color: #052e16 !important;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Ensure Achievements Card Body Paragraphs Have High Contrast */
.human-card p,
#achieve-grid p {
  color: #1f2937 !important;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Mobile Responsiveness for Remians Hero & Sections */
@media (max-width: 768px) {
  .remians-hero-section {
    min-height: auto;
    padding: 3.5rem 1rem 4rem;
  }
  .hero-big-title-stacked,
  .remians-hero-section h1.hero-big-title-stacked {
    font-size: 2.25rem !important;
    letter-spacing: 1px !important;
    line-height: 1.12 !important;
    margin-bottom: 0.85rem !important;
    color: #fbbf24 !important;
  }
  .hero-dept-badge {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.65rem !important;
    margin-bottom: 1rem !important;
  }
  .hero-motto-pill {
    padding: 0.35rem 1rem !important;
    gap: 0.5rem !important;
    margin-bottom: 0.85rem !important;
  }
  .motto-segment {
    font-size: 0.95rem !important;
    letter-spacing: 1px !important;
  }
  .hero-legacy-tagline,
  .remians-hero-section .hero-legacy-tagline {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
  }
  .hero-est-year,
  .remians-hero-section .hero-est-year {
    font-size: 0.82rem !important;
    margin-bottom: 1.5rem !important;
    color: #e2e8f0 !important;
  }
  .btn-remians-center,
  .btn-remians-outline {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.92rem !important;
  }
  /* Fallback: Ensure section headings are never faint or invisible on mobile */
  .gallery-title-anim,
  .achieve-title-anim,
  .events-title-anim {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   2.5s Cinematic Event Animations & Refined Layout Systems
   ========================================================================== */

@keyframes popFromInsideCircle {
  0% {
    opacity: 0;
    transform: scale(0.35) rotate(-1deg);
    filter: blur(8px);
  }
  60% {
    opacity: 0.95;
    transform: scale(1.03) rotate(0deg);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0px);
  }
}

@keyframes slideInFromRight25 {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft25 {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromBottom25 {
  0% {
    opacity: 0;
    transform: translateY(80px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base animation utility classes */
.anim-pop-inside {
  animation: popFromInsideCircle 2.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-slide-right {
  animation: slideInFromRight25 2.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-slide-left {
  animation: slideInFromLeft25 2.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-slide-bottom {
  animation: slideInFromBottom25 2.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Scroll-triggered Observer classes */
[data-animate] {
  opacity: 0;
  will-change: transform, opacity;
}

[data-animate="pop-inside"].is-animated {
  animation: popFromInsideCircle 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-animate="slide-right"].is-animated {
  animation: slideInFromRight25 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-animate="slide-left"].is-animated {
  animation: slideInFromLeft25 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-animate="slide-bottom"].is-animated {
  animation: slideInFromBottom25 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger delay helpers */
.delay-1 { animation-delay: 0.15s !important; }
.delay-2 { animation-delay: 0.3s !important; }
.delay-3 { animation-delay: 0.45s !important; }

/* Typing Cursor Simulation */
.typing-cursor::after {
  content: '|';
  display: inline-block;
  color: #15803D;
  font-weight: 700;
  animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Specific Event Layouts */
.reinforce-row-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.reinforce-2-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 14px rgba(5, 46, 22, 0.04);
}

.reinforce-2-card-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(22, 101, 52, 0.12);
  border-color: #15803D;
}

.reinforce-2-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.tech-programs-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.tours-grid-9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.seminars-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.inhouse-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

/* Mobile Responsiveness for 2.5s Animations & Grids */
@media (max-width: 992px) {
  .reinforce-row-grid-3,
  .tech-programs-grid-6,
  .tours-grid-9,
  .inhouse-roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reinforce-2-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .reinforce-row-grid-3,
  .reinforce-2-grid-4,
  .tech-programs-grid-6,
  .tours-grid-9,
  .seminars-grid-4,
  .inhouse-roadmap-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  /* Gentle slide transforms on small screens to prevent horizontal overflow */
  @keyframes slideInFromRight25 {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
  }
  @keyframes slideInFromLeft25 {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
  }
  @keyframes slideInFromBottom25 {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
  }
}





