:root {
  --brand: #2E3192;
  --brand-2: #1a1b5e;
  --accent: #ffcc00;
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;

  /* Modern Design Variables */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-brand: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(46, 49, 146, 0.3);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --text: #e5e7eb;
  --muted: #a1a1aa;
  --border: #272a33;

  /* Dark Mode Gradients */
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  --shadow-glow: 0 0 30px rgba(255, 204, 0, 0.2);
}

html,
body {
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip-link:focus {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .5rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: .375rem;
  z-index: 1050
}

.navbar {
  backdrop-filter: saturate(120%) blur(6px)
}

.hero {
  background: linear-gradient(135deg, rgba(46, 49, 146, .9), rgba(26, 27, 94, .85)), url('https://picsum.photos/1920/1080?blur=2&random=2') center/cover no-repeat;
  color: #fff
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .25) 30%, rgba(0, 0, 0, .45))
}

.ticker marquee {
  width: 100%
}

.stat {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: .75rem
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand)
}

.program-card img {
  aspect-ratio: 16/9;
  object-fit: cover
}

/* Global program card image sizing */
.program-card .card-img-top,
.card-modern .card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

/* Mobile optimizations for all program cards */
@media (max-width: 767px) {

  .program-card .card-img-top,
  .card-modern .card-img-top {
    height: 160px;
  }
}

@media (max-width: 575.98px) {

  .program-card,
  .card-modern {
    margin-bottom: 1rem;
  }

  .program-card .card-img-top,
  .card-modern .card-img-top {
    height: 140px;
  }

  .program-card .btn,
  .card-modern .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
  }

  .program-card .card-body,
  .card-modern .card-body {
    padding: 0.75rem;
  }

  .program-card h3.h5,
  .card-modern h3.h5 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
  }

  .program-card p.text-muted,
  .card-modern p.text-muted {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .program-card .d-flex.gap-2,
  .card-modern .d-flex.gap-2 {
    gap: 0.25rem !important;
  }
}


.card {
  border-color: var(--border)
}

.card .stretched-link {
  font-weight: 600
}

footer a:hover {
  text-decoration: underline
}

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(0, 0, 0, .85);
  color: #fff;
  border-radius: .75rem;
  padding: 1rem;
  display: none;
  z-index: 1080
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: none;
  z-index: 1080
}

.cta-fab {
  position: fixed;
  right: 1rem;
  border-radius: 999px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
  z-index: 1080
}

.fab-apply {
  bottom: 5.25rem;
  background: var(--brand)
}

.fab-whatsapp {
  bottom: 1rem;
  background: #25D366
}

.cta-fab:hover {
  opacity: .9
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  margin-left: 2px;
  min-width: 200px;
}

.dropdown-submenu:hover>.dropdown-menu {
  display: block;
}

/* Ensure proper alignment for nested dropdowns */
.dropdown-submenu .dropdown-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Fix alignment for dropdown items with icons */
.dropdown-item i {
  width: 16px;
  text-align: center;
  margin-right: 8px;
}

/* Ensure proper spacing for nested dropdowns */
.dropdown-submenu .dropdown-toggle::after {
  margin-left: auto;
  margin-right: 0;
}

/* Better positioning for nested dropdowns */
.dropdown-submenu>.dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -1px;
  margin-left: 2px;
  min-width: 200px;
  z-index: 1000;
}

/* ========================================
   COMPREHENSIVE DARK MODE SUPPORT
======================================== */

/* Navbar Dark Mode */
[data-theme="dark"] .navbar {
  background: var(--bg) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

[data-theme="dark"] .navbar .navbar-brand,
[data-theme="dark"] .navbar .nav-link,
[data-theme="dark"] .navbar .navbar-toggler {
  color: var(--text) !important;
}

[data-theme="dark"] .navbar .nav-link:hover,
[data-theme="dark"] .navbar .nav-link:focus {
  color: var(--accent) !important;
}

/* Cards Dark Mode */
[data-theme="dark"] .card {
  background: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* Background Colors Dark Mode */
[data-theme="dark"] .bg-light {
  background: var(--bg) !important;
  color: var(--text) !important;
}

[data-theme="dark"] .bg-white {
  background: var(--bg) !important;
  color: var(--text) !important;
}

[data-theme="dark"] .text-muted {
  color: var(--muted) !important;
}

/* Form Elements Dark Mode */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] input,
[data-theme="dark"] textarea {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 0.25rem rgba(46, 49, 146, 0.15) !important;
}

/* Button Dark Mode */
[data-theme="dark"] .btn-light {
  background-color: var(--border) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .btn-light:hover {
  background-color: var(--muted) !important;
  color: var(--text) !important;
  border-color: var(--muted) !important;
}

/* Ensure button text remains visible on hover */
.btn:hover {
  color: white !important;
}

.btn-outline-primary:hover {
  color: white !important;
}

.btn-primary:hover {
  color: white !important;
}

/* Table Dark Mode */
[data-theme="dark"] .table {
  color: var(--text) !important;
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
  border-color: var(--border) !important;
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Modal Dark Mode */
[data-theme="dark"] .modal-content {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: var(--border) !important;
}

/* Breadcrumb Dark Mode */
[data-theme="dark"] .breadcrumb {
  background-color: var(--bg) !important;
}

[data-theme="dark"] .breadcrumb-item a {
  color: var(--brand) !important;
}

[data-theme="dark"] .breadcrumb-item.active {
  color: var(--text) !important;
}

/* Alert Dark Mode */
[data-theme="dark"] .alert {
  border-color: var(--border) !important;
}

[data-theme="dark"] .alert-light {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* List Group Dark Mode */
[data-theme="dark"] .list-group-item {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Pagination Dark Mode */
[data-theme="dark"] .page-item .page-link {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .page-item .page-link:hover {
  background-color: var(--accent) !important;
  color: var(--brand) !important;
  border-color: var(--accent) !important;
}

/* Navbar Toggler Dark Mode */
[data-theme="dark"] .navbar-toggler {
  border-color: var(--border) !important;
}

[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28229, 231, 235, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Theme Toggle Button Styling */
#themeToggle {
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
  transition: all 0.3s ease !important;
}

#themeToggle:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: var(--accent) !important;
  transform: scale(1.05) !important;
}

#themeToggle:focus {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}

/* Bootstrap Border Classes Dark Mode Override */
[data-theme="dark"] .border-bottom {
  border-bottom-color: var(--border) !important;
}

[data-theme="dark"] .border-top {
  border-top-color: var(--border) !important;
}

[data-theme="dark"] .border {
  border-color: var(--border) !important;
}

[data-theme="dark"] .border-start {
  border-left-color: var(--border) !important;
}

[data-theme="dark"] .border-end {
  border-right-color: var(--border) !important;
}

/* Section separators in dark mode */
[data-theme="dark"] .py-5.bg-light.border-bottom,
[data-theme="dark"] .border-bottom {
  border-bottom: 1px solid var(--border) !important;
}

[data-theme="dark"] .py-5.bg-light,
[data-theme="dark"] section.bg-light {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-color: var(--border) !important;
}

/* Ensure smooth transitions for theme changes on specific elements */
body,
.navbar,
.card,
.dropdown-menu,
.btn,
.form-control,
.form-select {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Forms */
.form-control {
  border-color: var(--border)
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .25rem rgba(46, 49, 146, .15)
}

/* Utilities */
.shadow-soft {
  box-shadow: 0 10px 30px rgba(2, 8, 20, .06)
}

.ratio img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* Accessibility focus */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px
}

/* Brand */
.brand-logo {
  height: 90px !important;
  /* Reduced to 90px as requested */
  max-height: none !important;
  width: auto;
  display: inline-block;
  transition: all 0.3s ease;
}

@media (min-width: 992px) {
  .brand-logo {
    height: 90px !important;
    margin-left: 0;
  }
}

.about-logo-wrapper {
  width: 280px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  /* Center horizontally and add bottom margin */
  padding: 35px;
  /* Padding for the white space around logo */
  box-sizing: border-box;
}

.about-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Top bar dropdowns - Simple styling to match navbar */
.bg-primary .dropdown-menu {
  z-index: 1090;
  margin-top: 0.25rem;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  min-width: 160px;
}

.bg-primary .dropdown-menu .dropdown-item {
  color: var(--text);
  font-weight: 400;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
  border: none;
  background: transparent;
  text-decoration: none;
}

.bg-primary .dropdown-menu .dropdown-item:hover,
.bg-primary .dropdown-menu .dropdown-item:focus {
  background-color: #f8f9fa;
  color: var(--brand);
  text-decoration: none;
}

.bg-primary .dropdown-menu .dropdown-item:active {
  background-color: var(--brand);
  color: white;
}

/* Standard alignment for Top Bar */
.bg-primary .container>.d-flex:first-child {
  margin-left: 0;
}

.bg-primary .container>.d-flex:last-child {
  margin-right: 0 !important;
}

/* Mobile view: allow wrapping to 2 lines */
@media (max-width: 768px) {
  .bg-primary .container>.d-flex:first-child {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  .bg-primary .container>.d-flex:last-child {
    margin-right: 0;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Equalize Navbar Spacing: Add space to right of Apply button to match Logo space */
@media (min-width: 992px) {
  .modern-navbar .navbar-nav .nav-item:last-child {
    margin-right: 25px;
  }
}


/* Dark mode support for top bar dropdowns */
[data-theme="dark"] .bg-primary .dropdown-menu {
  background-color: var(--bg);
  border-color: var(--border);
}

[data-theme="dark"] .bg-primary .dropdown-menu .dropdown-item {
  color: var(--text);
}

[data-theme="dark"] .bg-primary .dropdown-menu .dropdown-item:hover,
[data-theme="dark"] .bg-primary .dropdown-menu .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

/* Reduce side space only for Top Bar */
.bg-primary .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}



/* Social icons hover */
.bg-primary .text-white-50:hover {
  color: var(--accent) !important;
  transition: color 0.2s ease
}

/* Top utility bar responsive */
@media (max-width:767px) {
  .bg-primary .container {
    flex-direction: row;
    gap: 0.25rem;
    text-align: center;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .bg-primary .d-flex.gap-3 {
    gap: 0.25rem !important;
    justify-content: center;
    flex-wrap: nowrap;
    font-size: 0.7rem;
  }

  .bg-primary .d-flex.gap-3 a {
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .bg-primary .d-flex.gap-2 {
    gap: 0.25rem !important;
  }

  .bg-primary .d-flex.gap-2 a {
    font-size: 0.75rem;
  }

  .bg-primary .dropdown {
    text-align: center
  }

  .bg-primary .btn-sm {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    white-space: nowrap;
  }

  /* Theme toggle button - make it smaller and properly aligned */
  #themeToggle {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
    margin-left: 0.25rem !important;
    min-width: auto !important;
  }

  #themeToggle i {
    font-size: 0.7rem;
  }
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
  .navbar-brand .brand-logo {
    height: 60px;
    width: auto;
  }

  /* Fix navbar toggle button alignment */
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, .1);
    margin-top: 0;
    align-self: center;
  }

  .navbar-toggler-icon {
    width: 1.25em;
    height: 1.25em;
  }

  /* Ensure navbar container aligns items properly */
  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  /* Reset margin-start auto from desktop to align menu items to left on mobile */
  .navbar-nav.ms-auto {
    margin-left: 0 !important;
    width: 100%;
  }

  .navbar-nav .btn-modern {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
  }
}

/* Announcement ticker spacing */
.ticker {
  margin: 2rem 0
}

/* 🔒 Always keep announcement ticker colors fixed */
.ticker {
  background-color: #2E3192 !important;
  /* your blue background */
}

.ticker .badge {
  background-color: #FFD700 !important;
  /* yellow badge bg */
  color: #000 !important;
  /* black text on badge */
}

.ticker marquee,
.ticker marquee a {
  color: #FFD700 !important;
  /* yellow text always */
  text-decoration: none !important;
}

.ticker marquee a:hover {
  text-decoration: underline !important;
}




/* Image Slider Styling */
.carousel {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1)
}

.carousel-item img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.carousel-caption {
  background: rgba(46, 49, 146, 0.8);
  padding: 2rem;
  border-radius: 1rem;
  bottom: 2rem
}

.carousel-caption h2 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5)
}

.carousel-caption p {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5)
}

.carousel-indicators button {
  background-color: var(--brand);
  border: 2px solid white
}

.carousel-indicators button.active {
  background-color: var(--accent)
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1
}

/* Mobile Carousel Responsive */
@media (max-width: 768px) {
  .carousel-item img {
    height: auto;
    max-height: 60vh;
    object-fit: contain;
  }

  .carousel-caption {
    padding: 1rem;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .carousel-caption h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .carousel-caption .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 576px) {
  .carousel-item img {
    height: auto;
    max-height: 50vh;
  }

  .carousel-caption {
    padding: 0.75rem;
    bottom: 0.5rem;
  }

  .carousel-caption h2 {
    font-size: 1.25rem;
  }

  .carousel-caption p {
    font-size: 0.8rem;
  }
}

/* Override Bootstrap primary colors with our brand colors */
.bg-primary {
  background-color: var(--brand) !important
}

.btn-primary {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  color: white !important
}

.btn-primary:hover {
  background-color: var(--brand-2) !important;
  border-color: var(--brand-2) !important;
  color: white !important
}

.btn-outline-primary {
  color: var(--brand) !important;
  border-color: var(--brand) !important
}

.btn-outline-primary:hover {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  color: white !important
}

.text-primary {
  color: var(--brand) !important
}

.border-primary {
  border-color: var(--brand) !important
}

/* Milestone Cards with Flip Animation - Fixed Dimensions */
.milestone-card {
  position: relative;
  width: 100%;
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.milestone-card-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.milestone-card:hover .milestone-card-inner {
  transform: rotateY(180deg);
}

.milestone-card-front,
.milestone-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
  box-sizing: border-box;
}

.milestone-card-front {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.milestone-card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay, linear-gradient(135deg, rgba(46, 49, 146, 0.9), rgba(26, 27, 94, 0.9)));
  z-index: 1;
  border-radius: 12px;
}

.milestone-card-front>* {
  position: relative;
  z-index: 2;
  color: white;
}

.milestone-card-back {
  background: linear-gradient(135deg, var(--accent), var(--brand));
  transform: rotateY(180deg);
  color: white;
}

.milestone-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.milestone-card .display-6 {
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-size: 2.2rem;
}

.milestone-card .small {
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.milestone-card .stat-number {
  color: var(--accent);
  font-weight: bold;
  font-size: 2.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.milestone-card-back .stat-number {
  color: white;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.milestone-card-back .back-text {
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
  max-width: 90%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .milestone-card {
    height: 240px;
    margin-bottom: 1rem;
  }

  .milestone-card-front,
  .milestone-card-back {
    padding: 1.5rem 1rem;
  }

  .milestone-card .icon {
    font-size: 2rem;
  }

  .milestone-card .display-6 {
    font-size: 1.8rem;
  }

  .milestone-card .stat-number {
    font-size: 1.8rem;
  }

  .milestone-card-back .stat-number {
    font-size: 2.2rem;
  }

  .milestone-card-back .back-text {
    font-size: 0.9rem;
  }
}

.milestone-gradient-1 {
  --overlay: linear-gradient(135deg, rgba(91, 42, 134, .92), rgba(59, 20, 81, .92));
  --bg-image: url('../images/pictures/Slider-01.jpg')
}

.milestone-gradient-2 {
  --overlay: linear-gradient(135deg, rgba(31, 42, 84, .92), rgba(11, 31, 58, .92));
  --bg-image: url('../images/pictures/Slider-02.jpg')
}

.milestone-gradient-3 {
  --overlay: linear-gradient(135deg, rgba(13, 110, 253, .92), rgba(0, 50, 133, .92));
  --bg-image: url('../images/pictures/Slider-03.jpg')
}

.milestone-gradient-4 {
  --overlay: linear-gradient(135deg, rgba(25, 135, 84, .92), rgba(11, 84, 53, .92));
  --bg-image: url('../images/pictures/Slider-04.jpg')
}

.milestone-gradient-5 {
  --overlay: linear-gradient(135deg, rgba(111, 66, 193, .92), rgba(66, 26, 146, .92));
  --bg-image: url('../images/pictures/Slider-05.jpg')
}

.milestone-gradient-6 {
  --overlay: linear-gradient(135deg, rgba(220, 53, 69, .92), rgba(146, 26, 37, .92));
  --bg-image: url('../images/pictures/Slider-06.jpg')
}

.milestone-gradient-7 {
  --overlay: linear-gradient(135deg, rgba(13, 202, 240, .92), rgba(11, 94, 215, .92));
  --bg-image: url('../images/pictures/Slider-07.jpg')
}

.milestone-gradient-8 {
  --overlay: linear-gradient(135deg, rgba(179, 107, 0, .92), rgba(122, 69, 0, .92));
  --bg-image: url('../images/pictures/Slider-08.jpg')
}

/* Campus Popup Styles */
.campus-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.campus-popup-overlay.show {
  display: flex !important;
  animation: fadeIn 0.3s ease-in-out;
}

.campus-popup-content {
  position: relative;
  background: transparent;
  border-radius: 20px;
  padding: 0;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  display: inline-block;
  /* shrink to image width so it stays centered at small sizes */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  animation: popIn 0.4s ease-out forwards;
}

.campus-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  color: #333;
  font-size: 18px;
}

.campus-popup-close:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.campus-popup-image {
  width: auto;
  /* let parent shrink to content */
  max-width: 400px;
  /* change this value to your desired max width */
  height: auto;
  display: block;
}

.campus-popup-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px 20px 0 0;
}

.campus-popup-caption {
  position: absolute;
  bottom: 20px;
  /* Move text to the bottom */
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 15px;
  text-align: center;
  /* Center align */
  background: rgba(0, 0, 0, 0.4);
  /* Optional: semi-transparent background for readability */
  color: #ffffff;
  width: 90%;
  /* So text wraps in smaller screens */
  white-space: normal;
  /* Allow line breaks */
}


.campus-popup-caption h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Dark mode support for popup */
[data-theme="dark"] .campus-popup-content {
  background: #1a1a1a;
  color: #e5e7eb;
}

[data-theme="dark"] .campus-popup-close {
  background: rgba(26, 26, 26, 0.9);
  color: #e5e7eb;
}

[data-theme="dark"] .campus-popup-close:hover {
  background: #2a2a2a;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive design for popup */
@media (max-width: 768px) {
  .campus-popup-content {
    max-width: 95%;
    margin: 20px;
  }

  .campus-popup-caption {
    padding: 20px;
  }

  .campus-popup-caption h3 {
    font-size: 1.2rem;
  }

  .campus-popup-close {
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    font-size: 16px;
  }
}

/* ========================================
   RESOURCES SECTION STYLING
======================================== */

/* Resources Section Background */
.resources-section {
  background-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
}

/* Resource Cards */
.resource-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.resource-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Resource Card Icons */
.resource-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Resource Card Titles */
.resource-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Resource Lists */
.resource-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.resource-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.resource-list li:last-child {
  border-bottom: none;
}

.resource-list li:hover {
  color: var(--accent);
  cursor: pointer;
}

.resource-list li a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.resource-list li a:hover {
  color: var(--accent);
}

/* Resource View All Button */
.resource-view-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.resource-view-btn:hover {
  background: rgba(255, 204, 0, 0.1);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Responsive Design for Resources */
@media (max-width: 1200px) {
  .resource-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .resources-section {
    padding: 2rem 0 !important;
  }

  .resource-card {
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: auto;
  }

  .resource-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .resource-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .resource-list {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .resource-view-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 576px) {

  /* Mobile-specific fixes for navbar toggle button positioning */
  /* Mobile-specific fixes for navbar toggle button positioning */
  .navbar-toggler {
    /* Removed absolute positioning to fix alignment with logo */
    margin-left: auto;
    position: relative;
    /* Ensure z-index works */
    z-index: 1051;
    /* Ensure it's above other elements */
  }

  /* Fix for very small screens (e.g. 347px) to prevent toggle drop */
  @media (max-width: 400px) {
    .navbar-brand .brand-logo {
      height: 70px !important;
      /* User preference */
      max-width: 200px;
      /* Prevent logo from taking too much horizontal space */
      object-fit: contain;
    }

    .navbar .container {
      /* Revert to standard wrapping to allow menu to drop down below logo */
      flex-wrap: wrap !important;
      justify-content: space-between;
    }

    .navbar-brand {
      margin-right: 0;
      flex-shrink: 1;
      /* Allow logo container to shrink if needed */
      min-width: 0;
      /* Allow flex shrink to work below content size */
    }
  }

  .resources-section {
    padding: 1.5rem 0 !important;
  }

  .resource-card {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .resource-icon {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .resource-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .resource-list {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .resource-list li {
    margin-bottom: 0.25rem;
  }

  .resource-view-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Dark Mode Support for Resources */
[data-theme="dark"] .resources-section {
  background: linear-gradient(135deg, var(--brand), #1a1d4a);
}

[data-theme="dark"] .resource-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .resource-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   COMPREHENSIVE DARK MODE FIXES
======================================== */

/* HR Elements and Dropdown Dividers */
[data-theme="dark"] hr,
[data-theme="dark"] .dropdown-divider {
  border-color: var(--border) !important;
  opacity: 1 !important;
}

/* Accordion Dark Mode */
[data-theme="dark"] .accordion-item {
  background-color: var(--bg) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .accordion-button {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}

[data-theme="dark"] .accordion-button::after {
  filter: invert(1) brightness(0.8) !important;
}

[data-theme="dark"] .accordion-body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* List Group Items with Better Border Handling */
[data-theme="dark"] .list-group {
  border-color: var(--border) !important;
}

[data-theme="dark"] .list-group-item:first-child {
  border-top-color: var(--border) !important;
}

[data-theme="dark"] .list-group-item:last-child {
  border-bottom-color: var(--border) !important;
}

/* Section Headers with Borders */
[data-theme="dark"] header.py-5.bg-light {
  background-color: var(--bg) !important;
  border-bottom-color: var(--border) !important;
}

[data-theme="dark"] section.py-5.bg-light {
  background-color: var(--bg) !important;
}

/* Generic Border Utilities */
[data-theme="dark"] .border-light {
  border-color: var(--border) !important;
}

[data-theme="dark"] .border-white {
  border-color: var(--border) !important;
}

/* Text Color Overrides */
[data-theme="dark"] .text-dark {
  color: var(--text) !important;
}

[data-theme="dark"] .text-black {
  color: var(--text) !important;
}

/* Background Color Overrides */
[data-theme="dark"] .bg-body-secondary {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

[data-theme="dark"] .bg-secondary {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text) !important;
}

/* Ensure all separators and lines use theme colors */
[data-theme="dark"] .border-secondary {
  border-color: var(--border) !important;
}

[data-theme="dark"] .border-muted {
  border-color: var(--border) !important;
}

/* Fix any remaining white elements */
[data-theme="dark"] * {
  border-color: var(--border);
}

[data-theme="dark"] *[style*="border"] {
  border-color: var(--border) !important;
}

/* Specific fix for session separators and dividers */
[data-theme="dark"] .py-4.bg-light,
[data-theme="dark"] .py-3.bg-light,
[data-theme="dark"] .bg-light.border-top,
[data-theme="dark"] .bg-light.border-bottom {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-color: var(--border) !important;
}

/* ========================================
   ABOUT UNIVERSITY SECTION STYLING
======================================== */

/* About University Section */
.about-university-section {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.92), rgba(46, 49, 146, 0.85)), url('../images/pictures/Slider-01.jpg') center/cover no-repeat;
  color: white;
  overflow: hidden;
}

.about-university-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(46, 49, 146, 0.75) 30%,
      rgba(26, 27, 94, 0.8) 70%,
      rgba(0, 0, 0, 0.9) 100%);
  z-index: 1;
}

.about-university-content {
  position: relative;
  z-index: 2;
}

.about-university-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  color: white;
}

.about-university-text {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

.about-university-btn {
  background: var(--accent);
  color: var(--brand);
  border: 2px solid var(--accent);
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-university-btn:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
}

.about-university-btn i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.about-university-btn:hover i {
  transform: translateX(5px);
}

/* About University Logo Section */
.about-university-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-university-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3)) brightness(1.15) contrast(1.2);
  background: radial-gradient(ellipse at center,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 30%,
      rgba(255, 255, 255, 0.6) 60%,
      rgba(255, 255, 255, 0.2) 85%,
      transparent 100%);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  padding: 25px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-university-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4)) brightness(1.2) contrast(1.2);
}

/* Text Container with Darker Background */
.about-university-text-container {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.about-university-text-container .about-university-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Design for About University */
@media (max-width: 768px) {
  .about-university-title {
    font-size: 2rem;
  }

  .about-university-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .about-university-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Dark Mode Support for About University */
[data-theme="dark"] .about-university-section {
  background: linear-gradient(135deg, rgba(46, 49, 146, 0.9), rgba(26, 27, 94, 0.95)), url('../images/pictures/Slider-01.jpg') center/cover no-repeat;
}

[data-theme="dark"] .about-university-section::before {
  background: linear-gradient(135deg,
      rgba(11, 18, 32, 0.7) 0%,
      rgba(46, 49, 146, 0.8) 30%,
      rgba(26, 27, 94, 0.85) 70%,
      rgba(11, 18, 32, 0.7) 100%);
}

/* ========================================
   SIMPLE DROPDOWN STYLING
======================================== */

/* Basic Navigation Dropdown Styling */
.navbar .dropdown-menu {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin-top: 0.25rem;
  min-width: 200px;
}

.navbar .dropdown-item {
  color: var(--text);
  font-weight: 400;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
  background: transparent;
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: #f8f9fa;
  color: var(--brand);
  text-decoration: none;
}

.navbar .dropdown-item:active {
  background-color: var(--brand);
  color: white;
}

/* Dark Mode Dropdown Support */
[data-theme="dark"] .navbar .dropdown-menu {
  background-color: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .navbar .dropdown-item {
  color: var(--text);
}

[data-theme="dark"] .navbar .dropdown-item:hover,
[data-theme="dark"] .navbar .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

[data-theme="dark"] .bg-primary .dropdown-menu {
  background-color: var(--bg);
  border-color: var(--border);
}

[data-theme="dark"] .bg-primary .dropdown-item {
  color: var(--text);
}

[data-theme="dark"] .bg-primary .dropdown-item:hover,
[data-theme="dark"] .bg-primary .dropdown-item:focus {
  background-color: var(--accent);
  color: var(--brand);
}

/* Simple Form Select/Dropdown Styling */
select.form-select,
select.form-control {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  padding: 0.375rem 1.75rem 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

select.form-select:focus,
select.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(46, 49, 146, 0.15);
  outline: none;
}

select.form-select option,
select.form-control option {
  background-color: var(--bg);
  color: var(--text);
}

/* Dark mode form select */
[data-theme="dark"] select.form-select,
[data-theme="dark"] select.form-control {
  background-color: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] select.form-select option,
[data-theme="dark"] select.form-control option {
  background-color: var(--bg);
  color: var(--text);
}

/* ========================================
   MODERN NOTICE BOARD STYLING
======================================== */

/* Notice Hero Section */
.notice-hero-section {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.notice-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><polygon fill="%23ffffff" fill-opacity="0.05" points="1000,0 1000,100 0,100"/></svg>') no-repeat;
  background-size: 100% 100%;
  z-index: 1;
}

.notice-hero-content {
  position: relative;
  z-index: 2;
}

.notice-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.notice-hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Notice Stats */
.notice-stats {
  position: relative;
  z-index: 2;
}

.stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search and Filter Controls */
.notice-controls {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  z-index: 2;
  pointer-events: none;
}

.search-input {
  padding-left: 3rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--bg);
  color: var(--text);
}

.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(46, 49, 146, 0.15);
  transform: translateY(-2px);
}

.filter-select {
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(46, 49, 146, 0.15);
  transform: translateY(-2px);
}

/* Notices Grid */
.notices-section {
  background: var(--bg);
  min-height: 60vh;
}

.notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Notice Card */
.notice-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  cursor: pointer;
}

.notice-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--brand);
}

.notice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 1;
}

/* Notice Card Header */
.notice-card-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.notice-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(46, 49, 146, 0.3);
}

.notice-meta {
  flex-grow: 1;
}

.notice-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.notice-badge {
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.notice-badge.urgent {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.notice-badge.important {
  background: linear-gradient(135deg, #fd7e14, #e55a00);
  color: white;
  box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.notice-badge.attachment {
  background: linear-gradient(135deg, #6c757d, #545b62);
  color: white;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.notice-date {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
}

/* Notice Card Body */
.notice-card-body {
  padding: 0 1.5rem 1.5rem;
}

.notice-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice-description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Notice Card Footer */
.notice-card-footer {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.notice-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.notice-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.notice-btn.primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 2px 8px rgba(46, 49, 146, 0.3);
}

.notice-btn.primary:hover {
  background: var(--brand-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 49, 146, 0.4);
  color: white;
}

.notice-btn.secondary {
  background: var(--accent);
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3);
}

.notice-btn.secondary:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
  color: var(--brand);
}

.category-tag {
  background: rgba(46, 49, 146, 0.1);
  color: var(--brand);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--border);
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .notices-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .notice-hero-title {
    font-size: 2rem;
  }

  .notice-hero-subtitle {
    font-size: 1rem;
  }

  .notices-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .notice-card-header {
    padding: 1.25rem 1.25rem 0.75rem;
  }

  .notice-card-body {
    padding: 0 1.25rem 1.25rem;
  }

  .notice-card-footer {
    padding: 0.75rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .notice-actions {
    justify-content: center;
  }

  .category-tag {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .notice-controls .row {
    gap: 1rem;
  }

  .notice-controls .col-md-6,
  .notice-controls .col-md-3 {
    width: 100%;
    max-width: none;
  }

  .notice-card {
    margin: 0 0.5rem;
  }
}

/* Dark Mode Support */
[data-theme="dark"] .notice-hero-section {
  background: linear-gradient(135deg, var(--brand) 0%, #1a1d4a 100%);
}

[data-theme="dark"] .notice-controls {
  background: var(--bg);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .notice-card {
  background: var(--bg);
  border-color: var(--border);
}

[data-theme="dark"] .notice-card:hover {
  border-color: var(--brand);
}

[data-theme="dark"] .notice-card-footer {
  background: rgba(255, 255, 255, 0.02);
  border-top-color: var(--border);
}

[data-theme="dark"] .category-tag {
  background: rgba(46, 49, 146, 0.2);
  color: var(--accent);
}

/* Animation Classes */
.notice-card.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

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

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

/* ========================================
   MODERN DESIGN COMPONENTS
======================================== */

/* Glass Morphism Effects */
.glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-xl);
}

.glass-card {
  background: var(--gradient-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Modern Navbar with Glass Effect */
.modern-navbar {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.modern-navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .modern-navbar {
  background: rgba(11, 18, 32, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .modern-navbar.scrolled {
  background: rgba(11, 18, 32, 0.95);
}

/* Modern Hero Section */
.modern-hero {
  min-height: 100vh;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.6) 100%),
    url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.modern-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      rgba(0, 0, 0, 0.4) 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.2) 100%);
  animation: heroShimmer 8s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: heroTitleSlide 1.2s ease-out;
}

@keyframes heroTitleSlide {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

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

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  animation: heroSubtitleSlide 1.2s ease-out 0.3s both;
}

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

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

/* Modern Buttons */
/* Modern Buttons (center text perfectly) */
.btn-modern {
  display: inline-flex;
  /* enable flexbox */
  align-items: center;
  /* vertical center */
  justify-content: center;
  /* horizontal center */
  text-align: center;

  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  line-height: 1.2;
  /* ensure balanced text height */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-modern-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-modern-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 40px rgba(46, 49, 146, 0.4);
  color: white;
}

.btn-modern.btn-modern-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-glow);
  padding: 6px 16px;
  /* compact size */
  font-size: 0.9rem;
  border-radius: 50px;
  /* 👈 makes corners fully rounded */
}

.btn-modern.btn-modern-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 40px rgba(46, 49, 146, 0.4);
  color: white;
}



.btn-modern-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-modern-outline:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 49, 146, 0.3);
}

/* ---- btn-modern size overrides when used with Bootstrap btn-sm ---- */
.btn-modern.btn-sm,
.btn-modern.btn-modern-primary.btn-sm {
  padding: 0.35rem 1rem !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.4px !important;
  line-height: 1.4 !important;
}

/* ---- Card equal-height with bottom-pinned buttons ---- */
/* Applies to program cards on academics & homepage, and department cards */
.program-card.h-100,
.card-modern.h-100 {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.program-card.h-100 .card-body,
.card-modern.h-100 .card-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

/* The button row is always pushed to the bottom */
.program-card.h-100 .card-body .mt-auto,
.card-modern.h-100 .card-body .mt-auto {
  margin-top: auto !important;
}

/* Modern Cards */
.card-modern {
  border: none;
  border-radius: var(--radius-2xl);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card-modern:hover::before {
  transform: scaleX(1);
}

.card-modern:hover {
  transform: translateY(-12px) rotate(1deg);
  box-shadow: var(--shadow-2xl);
}

.card-modern .card-body {
  padding: var(--space-xl);
}

/* Modern Statistics Cards */
.stat-modern {
  background: var(--gradient-glass);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(46, 49, 146, 0.1), transparent);
  animation: statRotate 4s linear infinite;
}

@keyframes statRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.stat-modern:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-modern-content {
  position: relative;
  z-index: 2;
}

.stat-modern-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-modern-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Mobile responsive styles for stat-modern cards */
@media (max-width: 991px) {
  .stat-modern {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .stat-modern-label {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stat-modern-number {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
  }
}

@media (max-width: 575px) {
  .stat-modern {
    min-height: 120px;
    padding: var(--space-md);
  }

  .stat-modern-label {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }

  .stat-modern-number {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 0.25rem;
  }
}

/* Modern Section Headers */
.section-header-modern {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title-modern {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
}

.section-title-modern::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

.section-subtitle-modern {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Floating Action Buttons - Modern */
.fab-modern {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: white;
  border: none;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.fab-modern:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: var(--shadow-2xl);
}

/* Loading Animations */
.loading-modern {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(46, 49, 146, 0.1);
  border-radius: 50%;
  border-top-color: var(--brand);
  animation: loadingModern 1s linear infinite;
}

@keyframes loadingModern {
  to {
    transform: rotate(360deg);
  }
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Modern Form Elements */
.form-modern {
  position: relative;
}

.form-modern .form-control {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--bg);
}

.form-modern .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.1);
  transform: translateY(-2px);
}

.form-modern .form-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

/* Modern Progress Bar */
.progress-modern {
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(46, 49, 146, 0.1);
  overflow: hidden;
  position: relative;
}

.progress-modern-bar {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  position: relative;
  transition: width 0.6s ease;
}

.progress-modern-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }

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

/* Modern Tooltip */
.tooltip-modern {
  position: relative;
  cursor: help;
}

.tooltip-modern::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.tooltip-modern::after {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--brand);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tooltip-modern:hover::before,
.tooltip-modern:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
  position: relative;
}

.parallax::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

/* Modern Timeline */
.timeline-modern {
  position: relative;
  padding-left: 2rem;
}

.timeline-modern::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-brand);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--brand);
}

.timeline-content {
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Responsive Design for Modern Elements */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .btn-modern {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }

  .card-modern:hover {
    transform: translateY(-8px) rotate(0deg);
  }

  .fab-modern {
    width: 50px;
    height: 50px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .timeline-modern {
    padding-left: 1.5rem;
  }
}

/* 🧱 FINAL FIX — Announcement bar color lock */
[data-theme="dark"] .ticker,
[data-theme="dark"] .ticker *,
[data-theme="light"] .ticker,
[data-theme="light"] .ticker * {
  color: #FFD700 !important;
  /* Always yellow text */
  background-color: #2E3192 !important;
  /* Your blue background */
}

[data-theme="dark"] .ticker .badge,
[data-theme="light"] .ticker .badge {
  background-color: #FFD700 !important;
  color: #000 !important;
  /* black text inside badge */
}

/* ========================================
   LEADERSHIP HIERARCHY STYLES
======================================== */
.leadership-hierarchy {
  position: relative;
  padding: 2rem 0;
}

.hierarchy-level {
  margin-bottom: 3rem;
  position: relative;
}

.hierarchy-level.top-level {
  margin-bottom: 4rem;
}

.hierarchy-level.second-level {
  margin-bottom: 4rem;
}

.hierarchy-level.third-level {
  margin-bottom: 2rem;
}

.hierarchy-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  position: relative;
}

.connector-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--brand), var(--accent));
  border-radius: 1px;
  position: relative;
}

.connector-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.connector-line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 768px) {
  .connector-line {
    height: 40px;
  }
}

@media (max-width: 576px) {
  .hierarchy-level.top-level img {
    width: 90px !important;
    height: 90px !important;
  }

  .hierarchy-level.second-level img {
    width: 80px !important;
    height: 80px !important;
  }

  .hierarchy-level.third-level img {
    width: 60px !important;
    height: 60px !important;
  }

  .connector-line {
    height: 30px;
  }
}

/* Dark Mode Support for Hierarchy */
[data-theme="dark"] .connector-line {
  background: linear-gradient(to bottom, var(--accent), var(--brand));
}

[data-theme="dark"] .connector-line::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}

[data-theme="dark"] .connector-line::after {
  background: var(--brand);
  box-shadow: 0 0 0 2px rgba(46, 49, 146, 0.3);
}


/* Enhanced Hierarchy Styles for Org Chart */
.leadership-hierarchy .hierarchy-level {
  display: flex;
  justify-content: center;
  align-items: center;
}

.leadership-hierarchy .hierarchy-level.top-level .card-modern {
  max-width: 350px;
  margin: 0 auto;
}

.leadership-hierarchy .hierarchy-level.second-level .card-modern,
.leadership-hierarchy .hierarchy-level.third-level .card-modern {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leadership-hierarchy .hierarchy-level.second-level .card-modern:hover,
.leadership-hierarchy .hierarchy-level.third-level .card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.leadership-hierarchy .hierarchy-level.top-level .card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.leadership-hierarchy .card-modern {
  position: relative;
  z-index: 1;
}

.leadership-hierarchy .hierarchy-connector {
  position: relative;
  z-index: 0;
}

/* About Page Animations & Styles */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Modern Stats */
.stat-modern {
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.stat-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-modern-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-modern-label {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Modern Timeline */
.timeline-modern {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

/* About Page Animations & Styles */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Modern Stats */
.stat-modern {
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.stat-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-modern-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-modern-label {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Modern Timeline */
.timeline-modern {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.5rem;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--brand);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

/* ========================================
   MODERN HERO HEADER - RESPONSIVE BACKGROUND IMAGES
======================================== */

/* Base Hero Header Styles */
.modern-hero {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Dark overlay for better text readability */
.modern-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

/* Ensure content appears above overlay */
.modern-hero .container,
.modern-hero .hero-content {
  position: relative;
  z-index: 2;
}

/* Hero content styling */
.hero-content {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Tablet Responsive (768px - 991px) */
@media (max-width: 991px) {
  .modern-hero {
    min-height: 50vh;
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* Mobile Responsive (576px - 767px) */
@media (max-width: 767px) {
  .modern-hero {
    min-height: 40vh;
    background-position: center center;
    background-size: contain;
    /* Show full image on mobile */
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero-content .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .hero-content .d-flex.gap-3 {
    gap: 0.75rem !important;
    flex-wrap: wrap;
  }

  /* Extra spacing for search form on mobile */
  .hero-content form {
    margin-top: 3rem !important;
  }

}

/* Extra Small Mobile (< 576px) */
@media (max-width: 575px) {
  .modern-hero {
    min-height: 35vh;
    background-position: center center;
    background-size: contain;
    /* Show full image on small mobile */
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .hero-content .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    width: 100%;
  }

  .hero-content .d-flex.gap-3 {
    flex-direction: column;
    gap: 0.5rem !important;
  }
}

/* Ensure parallax effect is disabled on mobile for better performance */
@media (max-width: 768px) {
  .modern-hero.parallax {
    background-attachment: scroll !important;
  }
}