/* ============================================================
   ব্লুমিং ফ্লাওয়ার ইন্টারন্যাশনাল কলেজ
   Design System & Complete Styles
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Noto+Sans+Bengali:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
  /* Typography */
  --font-primary: 'Montserrat', 'Noto Sans Bengali', sans-serif;
  --font-bangla: 'Noto Sans Bengali', 'SolaimanLipiNormal', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.03125rem;
  --font-size-lg: 1.0625rem;
  --font-size-xl: 1.125rem;
  --font-size-2xl: 1.25rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 5rem;

  /* Spacing */
  --space-1: 0.1875rem;
  --space-2: 0.25rem;
  --space-3: 0.3125rem;
  --space-4: 0.4375rem;
  --space-5: 0.5625rem;
  --space-6: 0.625rem;
  --space-7: 0.75rem;
  --space-8: 0.875rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Motion */
  --motion-instant: 150ms;
  --motion-fast: 300ms;
  --motion-normal: 500ms;
  --motion-slow: 800ms;
  --motion-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Layout */
  --max-width: 1320px;
  --sidebar-width: 280px;
  --header-height: 56px;
  --nav-height: 48px;

  /* ============================================================
     LIGHT THEME (Default) SEMANTIC COLORS
     ============================================================ */
  --color-primary: #1c69b5;
  --color-primary-dark: #14508a;
  --color-primary-light: #e6f9fd;
  --color-secondary: #0a5e2a;
  --color-secondary-light: #28a745;
  --color-accent-gold: #d4a843;
  --color-accent-orange: #ff6b35;

  /* Surfaces */
  --color-surface-base: #f0f2f5;
  --color-surface-muted: #e2e8f0;
  --color-surface-raised: #e6f9fd;
  --color-surface-card: #ffffff;
  --color-surface-dark: #0d1b2a;
  --color-surface-section: #f0f4f8;

  /* Text */
  --color-text-primary: #1a1a2e;
  --color-text-secondary: #555555;
  --color-text-tertiary: #333333;
  --color-text-inverse: #ffffff;
  --color-text-muted: #8892a0;

  /* Borders */
  --color-border: #dee2e6;
  --color-border-light: #e9ecef;
  --color-border-focus: #1c69b5;

  /* Gradients */
  --gradient-header: linear-gradient(135deg, #0a5e2a 0%, #0d7a36 30%, #1c69b5 100%);
  --gradient-hero: linear-gradient(135deg, #0d1b2a 0%, #1c69b5 100%);
  --gradient-section: linear-gradient(135deg, #f8f9fa 0%, #e6f9fd 100%);
  --gradient-footer: linear-gradient(135deg, #0d1b2a 0%, #1a1a2e 50%, #0d1b2a 100%);
  --gradient-gold: linear-gradient(135deg, #d4a843 0%, #f0c75e 50%, #d4a843 100%);
  --gradient-hero-overlay: linear-gradient(135deg, rgba(10, 94, 42, 0.85) 0%, rgba(28, 105, 181, 0.75) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 15px 50px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(28, 105, 181, 0.3);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.1);

  /* Dots */
  --bg-dot-color: #d3dbdb;
  --nav-bg: linear-gradient(180deg, #1a5276 0%, #1c69b5 100%);
  --nav-blur: none;
  --nav-border: none;
}

/* ============================================================
   DARK THEME SEMANTIC COLORS
   ============================================================ */
[data-theme="dark"] {
  /* Colors — Primary Palette */
  --color-primary: #4f8ff7;
  --color-primary-dark: #3b82f6;
  --color-primary-light: #1e293b;
  --color-secondary: #2fb05c;
  --color-secondary-light: #22c55e;
  --color-accent-gold: #e2b442;
  --color-accent-orange: #f97316;

  /* Surfaces */
  --color-surface-base: #070b13;
  --color-surface-muted: #161f33;
  --color-surface-raised: #141d31;
  --color-surface-card: #0f1524;
  --color-surface-dark: #070b13;
  --color-surface-section: #0b0f1a;

  /* Text */
  --color-text-primary: #cbd5e1; /* soft off-white */
  --color-text-secondary: #94a3b8; /* muted grey */
  --color-text-tertiary: #94a3b8;
  --color-text-inverse: #070b13;
  --color-text-muted: #64748b;

  /* Borders */
  --color-border: #161f33;
  --color-border-light: #1f2b46;
  --color-border-focus: #4f8ff7;

  /* Gradients */
  --gradient-header: linear-gradient(135deg, #0d2c1b 0%, #0e243a 50%, #12193b 100%);
  --gradient-hero: linear-gradient(135deg, hsl(222, 47%, 4%) 0%, hsl(215, 80%, 20%) 100%);
  --gradient-section: linear-gradient(135deg, hsl(222, 47%, 4%) 0%, hsl(222, 40%, 10%) 100%);
  --gradient-footer: linear-gradient(135deg, hsl(222, 47%, 2%) 0%, hsl(222, 47%, 6%) 50%, hsl(222, 47%, 2%) 100%);
  --gradient-gold: linear-gradient(135deg, #e2b442 0%, #f5d06e 50%, #e2b442 100%);
  --gradient-hero-overlay: linear-gradient(135deg, rgba(7, 11, 19, 0.85) 0%, rgba(15, 21, 36, 0.9) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 25px rgba(79, 143, 247, 0.15);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.05);

  /* Dots */
  --bg-dot-color: #1e293b;
  --nav-bg: rgba(15, 21, 36, 0.85);
  --nav-blur: blur(12px);
  --nav-border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-bangla);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-surface-base);
  background-image: radial-gradient(var(--bg-dot-color) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.site-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  background-color: var(--color-surface-card);
  box-shadow: var(--shadow-xl);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   THEME SWITCHER CONTROLS & SMOOTH TRANSITION
   ============================================================ */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all var(--motion-fast) var(--motion-ease);
  padding: 0;
  box-sizing: border-box;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: none !important;
}


a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--motion-fast) var(--motion-ease);
}

a:hover {
  color: var(--color-primary-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

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

button:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-bangla);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-gap {
  padding: var(--space-3xl) 0;
}

/* ============================================================
   TOP INFO BAR
   ============================================================ */
.top-bar {
  background: var(--gradient-header);
  color: #ffffff;
  padding: 12px 0;
  position: relative;
  z-index: 100;
}

[data-theme="dark"] .top-bar {
  border-bottom: 1px solid var(--color-border-light);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar__logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.top-bar__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* allow flex shrink for text truncation */
}


.top-bar__title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.top-bar__subtitle {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  font-weight: 400;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar__badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background var(--motion-fast) var(--motion-ease);
}

.top-bar__badge:hover {
  background: rgba(255, 255, 255, 0.25);
}

.top-bar__badge--gold {
  background: var(--gradient-gold);
  color: #1a1a2e;
  border: none;
  font-weight: 700;
}

.top-bar__links {
  display: flex;
  gap: 8px;
}

.top-bar__link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  transition: all var(--motion-fast) var(--motion-ease);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar__link:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  background-color: #1a5276;
  background-image: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--shadow-md);
  transition: background var(--motion-fast) var(--motion-ease), border var(--motion-fast) var(--motion-ease);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}

.nav-menu__item {
  position: relative;
}

.nav-menu__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: all var(--motion-fast) var(--motion-ease);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav-menu__link:hover,
.nav-menu__link--active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-bottom-color: var(--color-accent-gold);
}

.nav-menu__link .arrow {
  font-size: 10px;
  transition: transform var(--motion-fast) var(--motion-ease);
}

.nav-menu__item:hover .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-surface-card);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--motion-fast) var(--motion-ease);
  z-index: 100;
  border-top: 3px solid var(--color-accent-gold);
}

.nav-menu__item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__link {
  display: block;
  padding: 10px 20px;
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--motion-instant) var(--motion-ease);
  border-left: 3px solid transparent;
}

.nav-dropdown__link:hover {
  background: var(--color-surface-raised);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all var(--motion-fast) var(--motion-ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   MARQUEE / TICKER
   ============================================================ */
.ticker {
  background: linear-gradient(90deg, #0d7a36, #28a745);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}

.ticker__label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #c0392b;
  color: #ffffff;
  padding: 10px 20px;
  font-weight: 700;
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  z-index: 2;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
}

.ticker__label::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.15), transparent);
}

.ticker__content {
  display: flex;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
  padding-left: 180px;
}

.ticker__item {
  color: #ffffff;
  font-weight: 600;
  font-size: var(--font-size-sm);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker__item::before {
  content: '★';
  color: var(--color-accent-gold);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker:hover .ticker__content {
  animation-play-state: paused;
}

/* ============================================================
   HERO / BANNER SECTION
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-surface-dark);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: -1;
}

.hero__overlay {
  position: relative;
  min-height: 420px;
  background: var(--gradient-hero-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  width: 100%;
}

/* Animated Gradient Orbs for Hero */
.gradient-orb {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: var(--radius-full);
  filter: blur(100px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--motion-slow) var(--motion-ease);
}

[data-theme="dark"] .gradient-orb {
  opacity: 0.18;
}

.orb-primary {
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: orbFloatPrimary 22s infinite alternate ease-in-out;
}

.orb-secondary {
  background: radial-gradient(circle, var(--color-secondary-light) 0%, transparent 70%);
  bottom: -15%;
  right: -5%;
  animation: orbFloatSecondary 28s infinite alternate ease-in-out;
}

@keyframes orbFloatPrimary {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(60px, 40px) scale(1.1);
  }

  100% {
    transform: translate(-30px, -50px) scale(0.95);
  }
}

@keyframes orbFloatSecondary {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-50px, 30px) scale(0.9);
  }

  100% {
    transform: translate(40px, -40px) scale(1.08);
  }
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: var(--space-xl) var(--space-xl);
  animation: fadeInUp 1s var(--motion-ease);
}

.hero__content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.hero__content p {
  font-size: var(--font-size-xl);
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  font-family: var(--font-primary);
  color: var(--color-accent-gold);
  display: block;
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  margin-top: 4px;
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-primary);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-accent-gold);
}

.section-header__icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.section-header__text {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

/* Green variant */
.section-header--green {
  border-bottom-color: var(--color-secondary-light);
}

.section-header--green::after {
  background: var(--color-secondary);
}

.section-header--green .section-header__icon {
  background: var(--color-secondary-light);
}

/* Centered variant */
.section-title-center {
  text-align: center;
  margin-bottom: 40px;
}

.section-title-center h2 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-text-primary);
  position: relative;
  display: inline-block;
}

.section-title-center h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-gold);
  margin: 12px auto 0;
  border-radius: var(--radius-full);
}

.section-title-center p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  margin-top: 8px;
}

/* ============================================================
   MAIN CONTENT LAYOUT (with sidebar)
   ============================================================ */
.content-area {
  padding: var(--space-2xl) 0;
  background: var(--gradient-section);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

/* ============================================================
   NOTICE / NEWS CARD
   ============================================================ */
.notice-card {
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  transition: box-shadow var(--motion-fast) var(--motion-ease);
}

.notice-card:hover {
  box-shadow: var(--shadow-md);
}

.notice-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.notice-card__body {
  padding: 20px;
}

.notice-card__date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: 8px;
  background: var(--color-surface-section);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.notice-card__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
}

.notice-card__title a {
  color: var(--color-text-primary);
}

.notice-card__title a:hover {
  color: var(--color-primary);
}

.notice-card__text {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

.notice-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--motion-fast) var(--motion-ease);
}

.notice-card__more:hover {
  gap: 10px;
}

/* ============================================================
   MESSAGE CARDS (Chairman / Headteacher)
   ============================================================ */
.message-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.message-card {
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--motion-fast) var(--motion-ease);
}

.message-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.message-card__header {
  padding: 14px 20px;
  color: #ffffff;
  font-weight: 700;
  font-size: var(--font-size-base);
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-card__header--chairman {
  background: linear-gradient(135deg, #0a5e2a, #28a745);
}

.message-card__header--headteacher {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.message-card__body {
  padding: 20px;
  display: flex;
  gap: 16px;
}

.message-card__photo {
  width: 90px;
  height: 100px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.message-card__content {
  flex: 1;
}

.message-card__name {
  font-weight: 700;
  font-size: var(--font-size-base);
  margin-bottom: 4px;
}

.message-card__designation {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.message-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.message-card__toggle-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--font-size-xs);
  padding: 4px 0;
  margin-top: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--motion-fast) var(--motion-ease);
}

.message-card__toggle-btn:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ============================================================
   HISTORY CARD SECTION
   ============================================================ */
.history-card {
  display: flex;
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  border: 1px solid var(--color-border-light);
}

.history-card__image {
  width: 42%;
  object-fit: cover;
  min-height: 250px;
}

.history-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.history-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: justify;
}

.history-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
  font-size: var(--font-size-xs);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--motion-fast) var(--motion-ease);
  width: fit-content;
  text-decoration: none;
}

.history-card__btn:hover {
  background: #bae6fd;
  color: #0369a1;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .history-card {
    flex-direction: column;
  }

  .history-card__image {
    width: 100%;
    height: 200px;
  }
}

/* ============================================================
   HISTORY DETAILS SECTION (ABOUT PAGE)
   ============================================================ */
.history-details__paragraph {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.history-details__target-card {
  background: var(--gradient-section);
  border-left: 4px solid var(--color-accent-gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-card);
}

.history-details__target-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.history-details__target-quote {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  font-style: italic;
}

.history-details__features-section {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 30px;
  box-shadow: var(--shadow-card);
}

.history-details__features-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-border-light);
  padding-bottom: 10px;
}

.history-details__features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .history-details__features-grid {
    grid-template-columns: 1fr;
  }
}

.history-details__feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.history-details__feature-item span {
  color: var(--color-secondary);
  font-weight: bold;
}

/* ============================================================
   MESSAGE DETAIL SECTION
   ============================================================ */
.message-detail__card {
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
  margin-bottom: 30px;
}

.message-detail__header {
  padding: 18px 24px;
  color: #ffffff;
  font-weight: 700;
  font-size: var(--font-size-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-detail__header--chairman {
  background: linear-gradient(135deg, #0a5e2a, #28a745);
}

.message-detail__header--headteacher {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.message-detail__body {
  padding: 30px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .message-detail__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .message-detail__sidebar {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.message-detail__sidebar {
  border-right: 1px solid var(--color-border-light);
  padding-right: 24px;
}

@media (max-width: 768px) {
  .message-detail__sidebar {
    border-right: none;
    border-bottom: 1px solid var(--color-border-light);
    padding-right: 0;
    padding-bottom: 24px;
  }
}

.message-detail__photo {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 3px solid var(--color-border);
  margin-bottom: 16px;
}

.message-detail__info {
  margin-top: 10px;
}

.message-detail__name {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.message-detail__designation {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.message-detail__divider {
  height: 2px;
  background: var(--gradient-gold);
  width: 60px;
  margin: 12px 0;
}

@media (max-width: 768px) {
  .message-detail__divider {
    margin: 12px auto;
  }
}

.message-detail__inst {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.message-detail__content {
  position: relative;
}

.message-detail__quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: var(--color-border-light);
  position: absolute;
  top: -20px;
  left: -10px;
  user-select: none;
  z-index: 0;
  font-family: serif;
}

.message-detail__text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  position: relative;
  z-index: 1;
  text-align: justify;
}

/* ============================================================
   INFO TABLE SECTIONS
   ============================================================ */
.info-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

#results-stats-info {
  grid-column: span 2;
  margin-top: 20px;
}

#scholarship-achievers {
  grid-column: span 2;
  margin-top: 24px;
}

.info-table-card {
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.info-table-card__header {
  padding: 12px 20px;
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-table-card__header--blue {
  background: var(--color-primary);
}

.info-table-card__header--green {
  background: var(--color-secondary-light);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th {
  padding: 10px 16px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--color-border-light);
  color: var(--color-text-primary);
}

.info-table td {
  padding: 10px 16px;
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table td:first-child {
  font-weight: 600;
  color: var(--color-text-tertiary);
  width: 130px;
}

.info-table td:last-child {
  color: var(--color-text-secondary);
}

.info-table tr:nth-child(even) {
  background: var(--color-surface-section);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.sidebar-card__header {
  padding: 12px 16px;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card__header--orange {
  background: linear-gradient(135deg, #e67e22, #f39c12);
}

.sidebar-card__header--red {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.sidebar-card__header--teal {
  background: linear-gradient(135deg, #16a085, #1abc9c);
}

.sidebar-card__body {
  padding: 14px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-xs);
  transition: all var(--motion-instant) var(--motion-ease);
}

.sidebar-link:hover {
  background: var(--color-surface-raised);
  color: var(--color-primary);
  transform: translateX(3px);
}

.sidebar-link::before {
  content: '›';
  font-weight: 700;
  color: var(--color-primary);
  font-size: 16px;
}

.sidebar-link--notice {
  border-bottom: 1px solid var(--color-border-light);
  border-radius: 0;
}

.sidebar-link--notice:last-child {
  border-bottom: none;
}

/* Sidebar Image */
.sidebar-card__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* ============================================================
   TEACHERS SECTION
   ============================================================ */
.teachers-section {
  padding: var(--space-3xl) 0;
  background: var(--color-surface-card);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.teacher-card {
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all var(--motion-fast) var(--motion-ease);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.teacher-card__photo-wrapper {
  display: none !important;
}

.teacher-card__info {
  padding: 24px 18px;
}

.teacher-card__name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.teacher-card__designation {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.teacher-card__subject {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  background: var(--color-surface-raised);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* ============================================================
   INFORMATION BOX
   ============================================================ */
.info-box {
  background: var(--gradient-hero);
  padding: var(--space-3xl) 0;
  color: #ffffff;
}

.info-box .section-title-center h2 {
  color: #ffffff;
}

.info-box .section-title-center p {
  color: rgba(255, 255, 255, 0.85);
}

.info-box__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.info-box__item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--motion-fast) var(--motion-ease);
}

.info-box__item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.info-box__icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.info-box__label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 6px;
}

.info-box__value {
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.gallery-section {
  padding: var(--space-3xl) 0;
  background: var(--color-surface-section);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-normal) var(--motion-ease);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--motion-fast) var(--motion-ease);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__caption {
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
  animation: fadeIn var(--motion-fast) var(--motion-ease);
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 36px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--motion-fast) var(--motion-ease);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================================
   VIDEO GALLERY
   ============================================================ */
.video-section {
  padding: var(--space-3xl) 0;
  background: var(--color-surface-dark);
}

.video-section .section-title-center h2 {
  color: #ffffff;
}

.video-section .section-title-center p {
  color: var(--color-text-muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--motion-fast) var(--motion-ease);
}

.video-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.video-card__wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card__wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.video-card__play {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-primary);
  transition: all var(--motion-fast) var(--motion-ease);
  box-shadow: var(--shadow-lg);
}

.video-card:hover .video-card__play {
  transform: scale(1.1);
  background: #ffffff;
}

.video-card__info {
  padding: 14px 16px;
  color: #ffffff;
}

.video-card__title {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gradient-footer);
  color: #ffffff;
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  padding-bottom: var(--space-2xl);
}

.footer-col__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent-gold);
  display: inline-block;
  color: #ffffff;
}

.footer-col__text {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  line-height: 1.8;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  transition: all var(--motion-fast) var(--motion-ease);
}

.footer-link:hover {
  color: var(--color-accent-gold);
  transform: translateX(5px);
}

.footer-link::before {
  content: '→';
  color: var(--color-accent-gold);
  font-size: 12px;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
}

.footer-contact__icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social__link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  transition: all var(--motion-fast) var(--motion-ease);
}

.footer-social__link:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: var(--font-size-xs);
  opacity: 0.7;
}

.footer-bottom a {
  color: var(--color-accent-gold);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-bangla);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--motion-fast) var(--motion-ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(28, 105, 181, 0.3);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 105, 181, 0.4);
  color: #ffffff;
}

.btn--secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn--gold {
  background: var(--gradient-gold);
  color: #1a1a2e;
  font-weight: 700;
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 67, 0.4);
}

/* ============================================================
   NOTICE BOARD PAGE
   ============================================================ */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-item {
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--motion-fast) var(--motion-ease);
  border-left: 4px solid var(--color-primary);
}

.notice-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.notice-item__date-box {
  min-width: 70px;
  text-align: center;
  background: var(--color-surface-raised);
  padding: 10px;
  border-radius: var(--radius-sm);
}

.notice-item__day {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.notice-item__month {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  font-weight: 600;
}

.notice-item__content h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 4px;
}

.notice-item__content p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.notice-item__badge {
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

.notice-item__badge--academic {
  background: #e3f2fd;
  color: #1565c0;
}

.notice-item__badge--exam {
  background: #fce4ec;
  color: #c62828;
}

.notice-item__badge--event {
  background: #e8f5e9;
  color: #2e7d32;
}

.notice-item__badge--admin {
  background: #fff3e0;
  color: #e65100;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-tertiary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-bangla);
  font-size: var(--font-size-sm);
  transition: border-color var(--motion-fast) var(--motion-ease);
  background: var(--color-surface-section);
  color: var(--color-text-primary);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(28, 105, 181, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info-card {
  background: var(--gradient-hero);
  border-radius: var(--radius-md);
  padding: 32px;
  color: #ffffff;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item__icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-item__label {
  font-size: var(--font-size-xs);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-item__value {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-top: 3px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 20px;
  height: 250px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* ============================================================
   RESULTS PAGE
   ============================================================ */
.results-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  background: var(--color-surface-card);
  color: var(--color-text-tertiary);
  border: 2px solid var(--color-border);
  transition: all var(--motion-fast) var(--motion-ease);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn--active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.not-found-card {
  text-align: center;
  padding: 40px 24px;
  width: 100%;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-card);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-card);
  margin: 20px 0;
}

.not-found-card h3 {
  color: var(--color-text-primary);
  margin-bottom: 8px;
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.not-found-card p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.result-table-wrapper {
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.result-table {
  width: 100%;
  border-collapse: collapse;
}

.result-table thead {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.result-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.result-table td {
  padding: 12px 16px;
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.result-table tbody tr:hover {
  background: var(--color-surface-raised);
}

.result-table tbody tr:nth-child(even) {
  background: var(--color-surface-section);
}

.grade-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.grade-badge--a-plus {
  background: #d4edda;
  color: #155724;
}

.grade-badge--a {
  background: #cce5ff;
  color: #004085;
}

.grade-badge--a-minus {
  background: #fff3cd;
  color: #856404;
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: var(--gradient-hero);
  padding: var(--space-3xl) 0;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,224C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>');
  background-size: cover;
  background-position: bottom;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.page-header p {
  font-size: var(--font-size-lg);
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: var(--font-size-sm);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: #ffffff;
}

.breadcrumb span {
  opacity: 0.5;
}

/* ============================================================
   ABOUT PAGE — TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--color-accent-gold);
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  z-index: 1;
}

.timeline-item__year {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.timeline-item__text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  background: var(--color-surface-card);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   STATS COUNTERS
   ============================================================ */
.stats-section {
  padding: var(--space-3xl) 0;
  background: var(--gradient-hero);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.stat-card {
  text-align: center;
  color: #ffffff;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--motion-fast) var(--motion-ease);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.stat-card__icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.stat-card__number {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  font-family: var(--font-primary);
  color: var(--color-accent-gold);
  display: block;
  line-height: 1;
}

.stat-card__label {
  font-size: var(--font-size-sm);
  opacity: 0.85;
  margin-top: 8px;
  display: block;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--motion-slow) var(--motion-ease);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 {
  transition-delay: 100ms;
}

.animate-on-scroll.delay-2 {
  transition-delay: 200ms;
}

.animate-on-scroll.delay-3 {
  transition-delay: 300ms;
}

.animate-on-scroll.delay-4 {
  transition-delay: 400ms;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--motion-fast) var(--motion-ease);
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .info-tables {
    grid-template-columns: 1fr;
  }

  #results-stats-info,
  #scholarship-achievers {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    text-align: center;
  }

  .top-bar__right {
    justify-content: center;
  }

  .main-nav .container {
    position: relative;
    padding: 8px 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 52px;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    z-index: 1001;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a5276, #1c69b5);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu__link {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: flex-start;
    border-left: 4px solid transparent;
  }

  .nav-menu__link--active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: var(--color-accent-gold);
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border-top: none;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0;
  }

  .nav-dropdown.mobile-open {
    display: block;
  }

  .nav-dropdown__link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 32px;
    border-left: none;
  }

  .nav-dropdown__link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
  }

  .hero {
    height: auto;
  }

  .hero__overlay {
    min-height: auto;
    padding: var(--space-2xl) 0;
  }

  .hero__stats {
    gap: 20px;
  }

  .hero__stat-number {
    font-size: var(--font-size-2xl);
  }

  .message-grid {
    grid-template-columns: 1fr;
  }

  .info-tables {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .top-bar__title {
    font-size: var(--font-size-lg);
  }

  .section-title-center h2 {
    font-size: var(--font-size-2xl);
  }

  .teachers-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
    width: 100%;
    max-width: 400px;
    margin: 24px auto 0 auto;
  }

  .info-box__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {

  .main-nav,
  .back-to-top,
  .ticker,
  .video-section,
  .footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .shadow-card,
  .shadow-md,
  .shadow-lg {
    box-shadow: none;
  }
}

/* ============================================================
   NOTICE MODAL
   ============================================================ */
.notice-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.notice-modal.active {
  opacity: 1;
  visibility: visible;
}

.notice-modal-container {
  background: var(--color-surface-card, #fff);
  border-radius: var(--radius-md, 12px);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg, 0 10px 30px rgba(0, 0, 0, 0.15));
  border: 1px solid var(--color-border, #eee);
  position: relative;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.notice-modal.active .notice-modal-container {
  transform: scale(1);
}

.notice-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-surface-raised, #f0f0f0);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-text-secondary, #555);
  transition: all 0.2s ease;
  z-index: 10;
}

.notice-modal__close:hover {
  background: var(--color-primary, #1c69b5);
  color: #fff;
  transform: rotate(90deg);
}

.notice-modal__header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid var(--color-border-light, #eee);
  padding-right: 60px;
}

.notice-modal__badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.notice-modal__title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--color-text-primary, #333);
  line-height: 1.4;
}

.notice-modal__meta {
  font-size: var(--font-size-xs, 0.85rem);
  color: var(--color-text-tertiary, #777);
  margin-top: 6px;
}

.notice-modal__body {
  padding: 30px;
  font-size: var(--font-size-base, 1rem);
  color: var(--color-text-secondary, #444);
  line-height: 1.8;
  overflow-y: auto;
}

.notice-modal__content-text {
  white-space: pre-line;
  margin-bottom: 24px;
}

.notice-modal__attachment {
  border-top: 2px dashed var(--color-border, #eee);
  padding-top: 24px;
  margin-top: 24px;
}

.notice-modal__attachment-title {
  font-weight: 700;
  font-size: var(--font-size-sm, 0.9rem);
  color: var(--color-text-primary, #333);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-modal__iframe-wrapper {
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  border: 1px solid var(--color-border, #ccc);
  background: #fdfefe;
  margin-bottom: 16px;
}

.notice-modal__pdf-iframe {
  width: 100%;
  height: 480px;
  border: none;
}



/* ============================================================
   MANAGING COMMITTEE TABLE
   ============================================================ */
.committee-table-wrapper {
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  margin-bottom: 30px;
  width: 100%;
  overflow-x: auto;
}

.committee-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-bangla);
  text-align: center;
}

.committee-table thead {
  background-color: #dbeafe;
  /* Soft blue background */
}

.committee-table th {
  padding: 16px 20px;
  color: #1e3a8a;
  /* Deep navy text */
  font-weight: 700;
  font-size: var(--font-size-base);
  border-bottom: 2px solid #bfdbfe;
  text-align: center;
}

.committee-table td {
  padding: 14px 20px;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border-light);
  text-align: center;
  vertical-align: middle;
}

.committee-table tbody tr:last-child td {
  border-bottom: none;
}

/* Align first column (Name with image) left-aligned for a premium dashboard look */
.committee-table th:first-child {
  text-align: left;
  padding-left: 36px;
}

.committee-table td:first-child {
  text-align: left;
  padding-left: 20px;
}

.committee-table__member {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  padding-left: 16px;
}

.committee-table__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform var(--motion-fast, 300ms) var(--motion-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.committee-table tbody tr:hover .committee-table__avatar {
  transform: scale(1.1);
}

.committee-table__name {
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Vertical lines as in the user's reference image */
.committee-table th:not(:last-child),
.committee-table td:not(:last-child) {
  border-right: 1px solid #dee2e6;
}

.committee-table tbody tr:hover {
  background-color: #f1f5f9;
}

.committee-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

/* ============================================================
   TEACHERS TABLE/LIST FORMAT
   ============================================================ */
.teachers-table-wrapper {
  background: var(--color-surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  margin-bottom: 40px;
  width: 100%;
  overflow-x: auto;
}

.teachers-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-bangla);
  text-align: left;
}

@media (min-width: 769px) {
  .teachers-table {
    min-width: 800px;
  }
}

.teachers-table thead {
  background-color: var(--color-primary-light);
}

.teachers-table th {
  padding: 16px 20px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--font-size-base);
  border-bottom: 2px solid var(--color-border-light);
  text-align: left;
}

.teachers-table td {
  padding: 14px 20px;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
  vertical-align: middle;
}

.teachers-table tbody tr:last-child td {
  border-bottom: none;
}

@media (min-width: 769px) {
  .teachers-table th:not(:last-child),
  .teachers-table td:not(:last-child) {
    border-right: 1px solid var(--color-border-light);
  }
}

.teachers-table__teacher {
  display: flex;
  align-items: center;
  gap: 16px;
}

.teachers-table__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-surface-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--motion-fast, 300ms) var(--motion-ease);
}

.teachers-table tbody tr:hover .teachers-table__avatar {
  transform: scale(1.1);
}

.teachers-table__name {
  font-weight: 600;
  color: var(--color-text-primary);
}

.teachers-table tbody tr:hover {
  background-color: var(--color-surface-base);
}

.teachers-table tbody tr:nth-child(even) {
  background-color: var(--color-surface-section);
}

.teachers-table__badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--color-surface-muted);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* Mobile responsive stacked card layout */
@media (max-width: 768px) {
  .teachers-table-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 24px;
  }

  .teachers-table thead {
    display: none;
  }

  .teachers-table,
  .teachers-table tbody,
  .teachers-table tr,
  .teachers-table td {
    display: block;
    width: 100%;
  }

  .teachers-table tr {
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
  }

  .teachers-table tbody tr:hover {
    background-color: var(--color-surface-card);
  }

  .teachers-table tbody tr:nth-child(even) {
    background-color: var(--color-surface-card);
  }

  .teachers-table td {
    border-bottom: none;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-align: right;
  }

  .teachers-table td:not(:last-child) {
    border-bottom: 1px dashed var(--color-border-light);
  }

  .teachers-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-primary);
    text-align: left;
    white-space: nowrap;
  }

  .teachers-table__name {
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
  }
}

/* ============================================================
   DARK MODE BUTTONS & BADGES OVERRIDES (DARK TYPE COLORS)
   ============================================================ */
[data-theme="dark"] .btn--primary {
  background: #1e3a8a; /* Deep Navy Blue */
  color: #e2e8f0; /* Soft off-white */
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.35);
}

[data-theme="dark"] .btn--primary:hover {
  background: #1e40af; /* Slightly lighter navy blue on hover */
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.45);
  color: #e2e8f0;
}

[data-theme="dark"] .btn--outline {
  color: #93c5fd; /* Lighter blue for high text readability */
  border-color: #1e40af; /* Deep blue border */
  background: transparent;
}

[data-theme="dark"] .btn--outline:hover {
  background: #1e3a8a;
  color: #e2e8f0;
  border-color: #1e3a8a;
}

[data-theme="dark"] .btn--gold {
  background: linear-gradient(135deg, #78350f 0%, #92400e 50%, #78350f 100%); /* Deep Bronze/Amber */
  color: #e2e8f0;
}

[data-theme="dark"] .btn--gold:hover {
  box-shadow: 0 6px 20px rgba(146, 64, 14, 0.35);
}

[data-theme="dark"] .top-bar__badge--gold {
  background: linear-gradient(135deg, #78350f 0%, #92400e 50%, #78350f 100%); /* Deep Bronze/Amber */
  color: #e2e8f0;
  border: none;
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn--active {
  background: #1e3a8a; /* Deep Navy Blue */
  color: #e2e8f0;
  border-color: #1e3a8a;
}

/* Dark theme notice badges overrides (Using rich deep background colors with light text) */
[data-theme="dark"] .notice-item__badge--academic {
  background: #172554;
  color: #93c5fd;
}

[data-theme="dark"] .notice-item__badge--exam {
  background: #450a0a;
  color: #fca5a5;
}

[data-theme="dark"] .notice-item__badge--event {
  background: #022c22;
  color: #86efac;
}

[data-theme="dark"] .notice-item__badge--admin {
  background: #422006;
  color: #fed7aa;
}

/* Dark theme card headers and ticker overrides */
[data-theme="dark"] .message-card__header--chairman,
[data-theme="dark"] .message-detail__header--chairman {
  background: linear-gradient(135deg, #064e3b, #0d5e3a) !important;
}

[data-theme="dark"] .message-card__header--headteacher,
[data-theme="dark"] .message-detail__header--headteacher {
  background: linear-gradient(135deg, #3b0764, #581c87) !important;
}

[data-theme="dark"] .sidebar-card__header {
  background: #172554 !important;
}

[data-theme="dark"] .sidebar-card__header--orange {
  background: linear-gradient(135deg, #7c2d12, #9a3412) !important;
}

[data-theme="dark"] .sidebar-card__header--red {
  background: linear-gradient(135deg, #7f1d1d, #991b1b) !important;
}

[data-theme="dark"] .sidebar-card__header--teal {
  background: linear-gradient(135deg, #115e59, #0f766e) !important;
}

[data-theme="dark"] .info-table-card__header--blue {
  background: #172554 !important;
}

[data-theme="dark"] .info-table-card__header--green {
  background: #064e3b !important;
}

/* Overriding inline gradients in dark mode */
[data-theme="dark"] .info-table-card__header[style*="#14b8a6"] {
  background: linear-gradient(135deg, #115e59, #0f766e) !important;
}

[data-theme="dark"] .info-table-card__header--blue[style*="var(--color-primary)"] {
  background: linear-gradient(135deg, #172554, #1e3a8a) !important;
}

[data-theme="dark"] #sidebar-admission-trust {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9)) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] #sidebar-admission-trust .sidebar-card__header {
  background: linear-gradient(135deg, #115e59, #0f766e) !important;
}

/* Ticker overrides in dark mode */
[data-theme="dark"] .ticker {
  background: linear-gradient(90deg, #064e3b, #065f46) !important;
}

[data-theme="dark"] .ticker__label {
  background: #7f1d1d !important;
}

[data-theme="dark"] .main-nav {
  background-color: rgba(15, 21, 36, 0.85) !important;
  background-image: none !important;
}

/* Hardcoded white text overrides in dark theme for softer reading */
[data-theme="dark"] .message-card__header,
[data-theme="dark"] .message-detail__header,
[data-theme="dark"] .sidebar-card__header,
[data-theme="dark"] .info-table-card__header,
[data-theme="dark"] .ticker__label,
[data-theme="dark"] .top-bar__link,
[data-theme="dark"] .nav-menu__link,
[data-theme="dark"] .theme-toggle-btn {
  color: #e2e8f0 !important;
}

/* Dark theme scholarship achievers badge overrides */
[data-theme="dark"] span[style*="background: #fee2e2"],
[data-theme="dark"] span[style*="background:#fee2e2"] {
  background: #450a0a !important;
  color: #fca5a5 !important;
}

[data-theme="dark"] span[style*="background: #e0f2fe"],
[data-theme="dark"] span[style*="background:#e0f2fe"] {
  background: #172554 !important;
  color: #93c5fd !important;
}

/* ============================================================
   RESPONSIVE — hide top-bar header logout below 500px
   (mobile users can still log out via the sidebar button)
   ============================================================ */
@media (max-width: 499px) {
  #header-logout-btn {
    display: none !important;
  }
}

/* ============================================================
   SWEETALERT2 — DARK MODE OVERRIDES
   Applies to all Swal modals site-wide when dark theme is active
   ============================================================ */
[data-theme="dark"] .swal2-popup {
  background: #1e2a3a !important;
  color: #d0d8e4 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .swal2-title {
  color: #e8edf5 !important;
}

[data-theme="dark"] .swal2-html-container,
[data-theme="dark"] .swal2-content {
  color: #a0aec0 !important;
}

/* ---- Icon colours ---- */
/* Question */
[data-theme="dark"] .swal2-icon.swal2-question {
  border-color: #4a90d9 !important;
  color: #4a90d9 !important;
}
[data-theme="dark"] .swal2-icon.swal2-question .swal2-icon-content {
  color: #4a90d9 !important;
}

/* Warning */
[data-theme="dark"] .swal2-icon.swal2-warning {
  border-color: #d97706 !important;
  color: #d97706 !important;
}
[data-theme="dark"] .swal2-icon.swal2-warning .swal2-icon-content {
  color: #d97706 !important;
}

/* Error */
[data-theme="dark"] .swal2-icon.swal2-error {
  border-color: #e53e3e !important;
}
[data-theme="dark"] .swal2-icon.swal2-error .swal2-x-mark-line-left,
[data-theme="dark"] .swal2-icon.swal2-error .swal2-x-mark-line-right {
  background-color: #e53e3e !important;
}

/* Success */
[data-theme="dark"] .swal2-icon.swal2-success {
  border-color: #38a169 !important;
  color: #38a169 !important;
}
[data-theme="dark"] .swal2-icon.swal2-success [class^="swal2-success-line"] {
  background-color: #38a169 !important;
}
[data-theme="dark"] .swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(56, 161, 105, 0.3) !important;
}

/* Info */
[data-theme="dark"] .swal2-icon.swal2-info {
  border-color: #4a90d9 !important;
  color: #4a90d9 !important;
}

/* ---- Input (used in prompt dialogs) ---- */
[data-theme="dark"] .swal2-input,
[data-theme="dark"] .swal2-textarea,
[data-theme="dark"] .swal2-select {
  background: #253347 !important;
  color: #d0d8e4 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
[data-theme="dark"] .swal2-input:focus,
[data-theme="dark"] .swal2-textarea:focus {
  border-color: #4a90d9 !important;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.2) !important;
}

/* ---- Close button ---- */
[data-theme="dark"] .swal2-close {
  color: #a0aec0 !important;
}
[data-theme="dark"] .swal2-close:hover {
  color: #e8edf5 !important;
}

/* ---- Footer (validation messages) ---- */
[data-theme="dark"] .swal2-validation-message {
  background: #253347 !important;
  color: #fc8181 !important;
}

/* ---- Backdrop tint ---- */
[data-theme="dark"] .swal2-container.swal2-backdrop-show,
[data-theme="dark"] .swal2-container.swal2-noanimation {
  background: rgba(0, 0, 0, 0.7) !important;
}