:root {
  --primary-dark: #1e293b;
  /* Slate 800 */
  --secondary-dark: #334155;
  /* Slate 700 */
  --accent-teal: #2563eb;
  /* Blue 600 */
  --accent-gold: #f59e0b;
  /* Amber 500 */
  --text-light: #f1f5f9;
  /* Slate 100 */
  --text-muted: #94a3b8;
  /* Slate 400 */
  --card-bg: rgba(30, 41, 59, 0.8);
  --border-color: rgba(37, 99, 235, 0.3);
}

/* Bootstrap Class Overrides */
.text-primary {
  color: var(--accent-teal) !important;
}

.bg-primary {
  background-color: var(--accent-teal) !important;
}

.bg-dark {
  background-color: var(--primary-dark) !important;
}

.text-dark {
  color: var(--text-light) !important;
}

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

.btn-primary:hover {
  background-color: #2c9a94 !important;
  border-color: #2c9a94 !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(56, 178, 172, 0.4);
}

.btn-outline-light {
  border-color: var(--text-light) !important;
  color: var(--text-light) !important;
}

.btn-outline-light:hover {
  background-color: var(--accent-teal) !important;
  border-color: var(--accent-teal) !important;
  color: var(--primary-dark) !important;
}

/* Global Styles */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.6;
}

/* Header & Navigation */
.navbar-floating {
  background: rgba(45, 55, 72, 0.95) !important;
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  padding: 12px 25px;
  width: 92%;
  max-width: 1200px;
  margin: auto;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
  z-index: 1030;
}

.navbar-brand {
  color: var(--accent-teal) !important;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 1.4rem;
}

.nav-link {
  color: var(--text-light) !important;
  transition: all 0.3s ease-in-out;
  font-weight: 500;
  padding: 10px 15px;
}

.nav-link:hover {
  color: var(--accent-teal) !important;
}

.navbar-toggler {
  border: 0 !important;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.toggler-icon {
  width: 30px;
  height: 3px;
  background-color: var(--accent-teal);
  display: block;
  transition: all 0.2s;
}

.middle-bar {
  margin: 5px auto;
}

.navbar-toggler .top-bar {
  transform: rotate(45deg);
  transform-origin: 10% 10%;
}

.navbar-toggler .middle-bar {
  opacity: 0;
  filter: alpha(opacity=0);
}

.navbar-toggler .bottom-bar {
  transform: rotate(-45deg);
  transform-origin: 10% 90%;
}

.navbar-toggler.collapsed .top-bar {
  transform: rotate(0);
}

.navbar-toggler.collapsed .middle-bar {
  opacity: 1;
  filter: alpha(opacity=100);
}

.navbar-toggler.collapsed .bottom-bar {
  transform: rotate(0);
}

.navbar-toggler.collapsed .toggler-icon {
  background-color: var(--text-muted);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-teal);
  transition: all 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* ============================================= */
/* ===== PREMIUM HERO SECTION - EYE-CATCHING ===== */
/* ============================================= */

/* Hero Section Base - Dark Cinematic Feel */
.hero-section {
  position: relative;
  background: #050a15 !important;
  overflow: hidden;
}

/* Animated Gradient Background Overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(56, 178, 172, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  z-index: 1;
  animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* Floating Particles Effect */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(56, 178, 172, 0.4), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(59, 130, 246, 0.3), transparent),
    radial-gradient(1px 1px at 160px 30px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 200px 90px, rgba(139, 92, 246, 0.3), transparent);
  background-size: 200px 100px;
  animation: floatParticles 20s linear infinite;
  z-index: 2;
  pointer-events: none;
}

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

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

/* Reduced min-height to ensure cards are more visible on laptops */
.hero-section .carousel,
.hero-section .hero-img {
  height: 100vh;
  min-height: 600px;
}

.hero-section .carousel-item {
  position: relative;
  height: 100vh;
  min-height: 600px;
}

/* Enhanced Dark Overlay with Gradient */
/* Lighter overlay for better background visibility */
.hero-section .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(5, 10, 21, 0.4) 0%,
      rgba(15, 25, 45, 0.3) 40%,
      rgba(10, 20, 40, 0.35) 100%);
  z-index: 1;
}

.hero-img {
  object-fit: cover;
  object-position: center;
  filter: brightness(1.0) saturate(1.1);
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.carousel-item.active .hero-img {
  transform: scale(1);
}

.transparent-slide {
  opacity: 60%;
  background: linear-gradient(135deg, #050a15, #0f1a2d);
}

/* ===== HERO CAPTION - STUNNING TYPOGRAPHY ===== */
.carousel-caption {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: 42% !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: 90%;
  max-width: 1000px;
  text-align: center !important;
  z-index: 10;
  padding: 0 20px;
}

/* Force white text regardless of theme */
.carousel-caption,
.carousel-caption h1,
.carousel-caption h2,
.carousel-caption p,
.carousel-caption span {
  color: #ffffff !important;
}

/* Hero Heading - Premium Typography */
.carousel-caption h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 40px rgba(0, 0, 0, 0.5),
    0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeSlideUp 1s ease-out;
}

/* Animated Accent Text (text-primary spans) */
.carousel-caption h1 .text-primary,
.carousel-caption .text-primary {
  color: transparent !important;
  background: linear-gradient(135deg, #38b2ac 0%, #4fd1c5 50%, #63e6db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  animation: gradientShift 3s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Hero Paragraph */
.carousel-caption p {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  animation: fadeSlideUp 1s ease-out 0.2s backwards;
}

/* Hero Buttons Container */
.carousel-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 1s ease-out 0.4s backwards;
  width: 100%;
}

/* Premium Button Styles */
.carousel-buttons .btn {
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 60px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Primary Button - Gradient with Glow */
.carousel-buttons .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  border: none;
  color: #ffffff !important;
  box-shadow:
    0 4px 20px rgba(59, 130, 246, 0.4),
    0 0 0 0 rgba(59, 130, 246, 0.4);
}

.carousel-buttons .btn-primary::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.5s ease;
  z-index: -1;
}

.carousel-buttons .btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 8px 30px rgba(59, 130, 246, 0.5),
    0 0 0 4px rgba(59, 130, 246, 0.2);
}

.carousel-buttons .btn-primary:hover::before {
  left: 100%;
}

/* Outline Button - Glass Effect with Animated Border */
.carousel-buttons .btn-outline-light {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  position: relative;
}

.carousel-buttons .btn-outline-light::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #38b2ac, #3b82f6, #8b5cf6, #38b2ac);
  background-size: 300% 300%;
  border-radius: 60px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.carousel-buttons .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  transform: translateY(-4px) scale(1.02);
}

.carousel-buttons .btn-outline-light:hover::before {
  opacity: 1;
}

/* Fade Slide Up Animation */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* ===== CAROUSEL CONTROLS - PREMIUM DESIGN ===== */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 30px;
  opacity: 1;
  z-index: 20;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(56, 178, 172, 0.9);
  border-color: #38b2ac;
  transform: translateY(-50%) scale(1.15);
  box-shadow:
    0 0 30px rgba(56, 178, 172, 0.6),
    0 0 60px rgba(56, 178, 172, 0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 22px;
  height: 22px;
  filter: brightness(1) invert(0);
}

/* Carousel Indicators - Modern Animated Pills */
.hero-section .carousel-indicators {
  bottom: 25%;
  z-index: 20;
  gap: 8px;
}

.hero-section .carousel-indicators button {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  margin: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-section .carousel-indicators button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #38b2ac, #4fd1c5);
  transition: width 4s linear;
}

.hero-section .carousel-indicators button.active {
  width: 60px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(56, 178, 172, 0.5);
}

.hero-section .carousel-indicators button.active::before {
  width: 100%;
}


/* ============================================= */
/* ===== HERO CARDS - GLASSMORPHISM CARDS ===== */
/* ============================================= */

.hero-cards-section {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0 1rem 1.5rem;
  background: linear-gradient(to top, rgba(5, 10, 21, 0.98) 0%, rgba(5, 10, 21, 0.85) 40%, transparent 100%);
}

.hero-cards-section .container-fluid {
  padding-bottom: 0 !important;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.hero-card-wrapper {
  position: relative;
  height: 240px;
  perspective: 1200px;
  margin-top: 15px;
}

.hero-custom-card {
  position: relative;
  height: 100%;
  background: linear-gradient(145deg, rgba(25, 35, 60, 0.85), rgba(15, 25, 45, 0.9));
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 3px solid rgba(59, 130, 246, 0.4);
  border-radius: 16px 16px 4px 4px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-custom-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.hero-custom-card:hover {
  transform: translateY(-18px) scale(1.02);
  background: linear-gradient(145deg, rgba(35, 50, 80, 0.95), rgba(25, 40, 65, 0.95));
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(59, 130, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  border-bottom-color: #3b82f6;
}

.hero-custom-card:hover::before {
  opacity: 1;
}

/* Card Image Background */
.hero-card-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  transition: all 0.8s ease;
  transform: scale(1.1);
  filter: grayscale(100%) contrast(1.2);
}

.hero-custom-card:hover .hero-card-bg-image {
  opacity: 0.4;
  transform: scale(1);
  filter: grayscale(0%) contrast(1.1);
}

/* Card Content Layout */
.hero-card-top-half {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.5s ease;
}

.hero-custom-card:hover .hero-card-top-half {
  transform: translateY(-5px);
}

/* Floating Label */
.hero-card-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 30px;
  margin-bottom: 1rem;
  align-self: flex-start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Specific Label Colors */
.hero-card-label.hero-rigor {
  background: #f59e0b;
  color: #000;
}

.hero-card-label.hero-outcomes {
  background: #14b8a6;
  color: #fff;
}

.hero-card-label.hero-learning {
  background: #8b5cf6;
  color: #fff;
}

.hero-card-label.hero-campus {
  background: #ef4444;
  color: #fff;
}

.hero-custom-card:hover .hero-card-label {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Card Title */
.hero-card-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

.hero-custom-card:hover .hero-card-title {
  color: #60a5fa;
  /* Blue specific highlight on hover */
}

/* Reveal Text on Hover */
.hero-card-bottom-half {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 1.5rem 1.5rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-custom-card:hover .hero-card-bottom-half {
  opacity: 1;
  transform: translateY(0);
}

/* Card Icon Indicator */
.hero-custom-card::after {
  content: '→';
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
  z-index: 2;
}

.hero-custom-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Departments Section */
.Departments {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  padding: 80px 0 40px 0;
}

.Departments h1 {
  color: var(--accent-teal) !important;
  font-weight: 700;
}

.card-dep {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
  height: 100%;
}

.card-dep:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(56, 178, 172, 0.3);
  border-color: var(--accent-teal);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-dep:hover .card-img-top {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.4s ease;
  z-index: 1;
}

.card-dep:hover .image-overlay {
  background: rgba(0, 0, 0, 0.65);
}

.hover-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: white;
  opacity: 0;
  z-index: 2;
  transform: translateY(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-size: 14px;
  line-height: 1.6;
}

.card-dep:hover .hover-text {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 1.5rem;
  text-align: center;
}

.card-body h5 {
  color: var(--text-light) !important;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-body p {
  color: var(--text-muted) !important;
  font-size: 14px;
  margin-bottom: 1rem;
}

.btn-custom {
  background: linear-gradient(90deg, var(--accent-teal), #2c9a94);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(56, 178, 172, 0.4);
  color: white;
}

.card-dep::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-teal), #2c9a94);
  z-index: 3;
}

/* Why Choose Us Section */
.why-choose-section {
  background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
  padding: 80px 20px;
  text-align: center;
}

.why-choose-section h2 {
  color: var(--text-light) !important;
  margin-bottom: 10px;
  font-weight: 700;
}

.why-choose-section p {
  color: var(--text-muted);
  margin-bottom: 60px;
  font-size: 1.1rem;
}

.card-why {
  border: none;
  border-radius: 20px !important;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 280px;
  background-color: var(--card-bg);
  transition: transform 0.5s, box-shadow 0.5s;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.card-why:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 30px 40px rgba(56, 178, 172, 0.3);
  border-color: var(--accent-teal);
}

.card-beside {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-teal), var(--secondary-dark));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  border-radius: 20px;
}

.card-beside img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  margin-bottom: 15px;
  transition: transform 0.5s;
}

.card-beside h5 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s;
  color: white;
}

.card-beside p {
  font-size: 1rem;
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s 0.2s;
  padding: 0 1rem;
}

.card-why:hover .card-beside {
  opacity: 1;
}

.card-why:hover .card-beside img {
  transform: scale(1.05);
}

.card-why:hover .card-beside h5,
.card-why:hover .card-beside p {
  opacity: 1;
  transform: translateY(0);
}

.card-bottom {
  padding: 10px 15px;
  z-index: 3;
  transition: opacity 0.5s;
}

.card-bottom h6 {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text-light) !important;
  margin-bottom: 25px;
}

.card-why:hover .card-bottom {
  opacity: 0;
}

.card-front {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  transition: opacity 0.5s;
  width: 100%;
}

.card-front img {
  width: 180px;
  height: 180px;
  margin-top: 10px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 10px;
}

.card-front p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.card-why:hover .card-front {
  opacity: 0;
}

/* Campus Life Section */
.campus-life {
  background: var(--primary-dark);
  padding: 80px 0;
}

.campus-life .section-title {
  color: var(--text-light) !important;
  font-weight: 700;
  font-size: 45px;
  margin-bottom: 1rem;
}

.campus-cards {
  background: rgba(74, 85, 104, 0.1);
  border-radius: 16px;
  padding: 30px;
  margin-top: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

/* ===== ENHANCED CAMPUS CARDS ===== */
.campus-card {
  background: linear-gradient(145deg, var(--card-bg), rgba(30, 41, 59, 0.95));
  border-radius: 16px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  overflow: hidden;
  position: relative;
}

.campus-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.campus-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.35),
    0 0 35px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
}

.campus-card:hover::before {
  opacity: 1;
}

.campus-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.95);
}

.campus-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.campus-card .p-3 {
  padding: 1.25rem 1.5rem 1.5rem !important;
  position: relative;
  z-index: 2;
}

/* ===== ENHANCED TITLE CAPSULES ===== */
.red-title {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  color: white !important;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.campus-card:hover .red-title {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.campus-card p {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.read-link {
  color: var(--accent-teal) !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-link:hover {
  color: var(--accent-gold) !important;
  text-decoration: underline;
}

/* Principal Message */
.principal-message {
  background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.principal-card {
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease;
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.principal-card:hover {
  transform: translateY(-10px);
}

.profile-side {
  background: linear-gradient(135deg, var(--accent-teal), var(--secondary-dark));
  color: white;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: transparent;
}

.message-side {
  padding: 3rem 2.5rem;
  background: var(--card-bg);
}

.message-side .section-title {
  color: var(--accent-teal) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.message-side .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-teal);
}

.quote-text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-light) !important;
  font-weight: 500;
  margin-bottom: 2rem;
}

.signature {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.principal-name {
  font-weight: 700;
  color: var(--text-light) !important;
  margin-bottom: 0.3rem;
}

.principal-title {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  margin: 0 5px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--accent-teal) !important;
  transform: translateY(-3px);
}


.text-center.p-4 {
  color: var(--text-muted) !important;
  background: rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1399px) {
  .carousel-caption {
    top: 35% !important;
    bottom: auto !important;
  }

  .carousel-caption h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 1199px) {
  .carousel-caption {
    top: 35% !important;
    bottom: auto !important;
  }

  .carousel-caption h1 {
    font-size: 2.2rem;
  }

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

@media (max-width: 991px) {
  .hero-cards-section .col-lg-3 {
    flex: 1 1 50%;
    max-width: 50%;
  }

  .hero-section {
    padding-bottom: 0;
  }

  .hero-section .carousel,
  .hero-section .carousel-item,
  .hero-section .hero-img {
    height: 100vh;
  }

  .hero-cards-section {
    position: relative;
    margin-top: 0;
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
    padding: 2rem 1.5rem;
    min-height: auto;
    display: block;
  }

  .hero-cards-section .container-fluid {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .carousel-caption {
    top: 35% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 90%;
    text-align: center;
  }

  .carousel-caption h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

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

  .carousel-buttons {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem;
    width: 100%;
  }

  .carousel-buttons .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }

  .hero-card-wrapper {
    height: auto;
    margin-bottom: 1.5rem;
    perspective: none;
  }

  .hero-custom-card {
    position: relative;
    height: auto;
    min-height: 200px;
    border-radius: 16px;
    border-bottom: 3px solid rgba(59, 130, 246, 0.4);
    transform: none !important;
  }

  .hero-custom-card:hover {
    height: auto;
    transform: translateY(-8px) !important;
  }

  .hero-card-title {
    font-size: 1.15rem;
  }

  .hero-custom-card .hero-card-bottom-half {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    max-height: none;
    padding: 0 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
  }

  .navbar-floating {
    width: 95%;
    padding: 10px 15px;
  }
}

@media (max-width: 768px) {
  .profile-side {
    padding: 2rem 1.5rem;
  }

  .message-side {
    padding: 2rem 1.5rem;
  }

  .profile-img {
    width: 140px;
    height: 140px;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .campus-life .section-title {
    font-size: 2.5rem !important;
  }

  /* Hero Section - 768px improvements */
  .hero-section .carousel,
  .hero-section .carousel-item,
  .hero-section .hero-img {
    height: 85vh;
    min-height: 550px;
  }

  .carousel-caption {
    top: 40% !important;
    width: 92%;
    text-align: center;
  }

  .carousel-caption h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .carousel-caption p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    margin: 0 auto;
  }

  .carousel-buttons .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    width: auto;
    max-width: none;
  }

  /* Carousel controls */
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (max-width: 575px) {
  .hero-cards-section .col-lg-3 {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .hero-section .carousel,
  .hero-section .carousel-item,
  .hero-section .hero-img {
    height: 100vh;
  }

  .hero-cards-section {
    min-height: auto;
    padding: 1.5rem 1rem;
    display: block;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
  }

  /* Enhanced Mobile Caption with Glassmorphism */
  .carousel-caption {
    bottom: auto !important;
    top: 42% !important;
    transform: translate(-50%, -50%) !important;
    padding: 1.5rem !important;
    width: 92% !important;
    text-align: center;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 60px rgba(59, 130, 246, 0.1);
  }

  .carousel-caption h1 {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
  }

  .carousel-caption h1 .text-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
    font-weight: 800;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.4));
  }

  .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9) !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel-buttons {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem;
    width: 100%;
    margin-top: 0.5rem;
  }

  .carousel-buttons .btn {
    padding: 0.7rem 1.75rem;
    font-size: 0.85rem;
    width: 100%;
    max-width: 220px;
    margin: 0 auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .carousel-buttons .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  }

  .carousel-buttons .btn-primary:active {
    transform: scale(0.98);
  }

  .carousel-buttons .btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
  }

  .carousel-buttons .btn-outline-light:active {
    background: rgba(255, 255, 255, 0.15);
  }

  .hero-card-wrapper {
    height: auto;
    margin-bottom: 1rem;
  }

  .hero-custom-card {
    height: auto;
    min-height: 180px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .hero-custom-card:hover {
    height: auto;
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
  }

  .hero-custom-card .hero-card-top-half {
    padding: 1rem 1rem 0.5rem;
  }

  .hero-card-title {
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 700;
  }

  .hero-card-label {
    font-size: 0.65rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  .hero-custom-card .hero-card-bottom-half {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    max-height: none;
    padding: 0 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
  }

  .footer-section {
    padding: 1.5rem 1rem;
  }

  /* Hide carousel arrows on mobile */
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }

  /* Improved carousel indicators for mobile */
  .carousel-indicators {
    bottom: 15px;
    gap: 6px;
  }

  .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    transition: all 0.3s ease;
  }

  .carousel-indicators button.active {
    width: 24px;
    border-radius: 12px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
  }
}

/* Extra Small Mobile Devices (480px and below) */
@media (max-width: 480px) {

  .hero-section .carousel,
  .hero-section .carousel-item,
  .hero-section .hero-img {
    height: 85vh;
    min-height: 520px;
  }

  .carousel-caption {
    top: 40% !important;
    width: 96% !important;
    padding: 1.25rem !important;
    border-radius: 16px;
  }

  .carousel-caption h1 {
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }

  .carousel-caption p {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .carousel-buttons {
    gap: 0.5rem;
    margin-top: 0.25rem;
  }

  .carousel-buttons .btn {
    padding: 0.55rem 1.25rem;
    font-size: 0.78rem;
    max-width: 180px;
  }

  .hero-cards-section {
    padding: 1rem 0.75rem;
  }

  .hero-card-wrapper {
    margin-bottom: 0.75rem;
  }

  .hero-custom-card {
    min-height: 140px;
    border-radius: 14px;
  }

  .hero-card-top-half {
    padding: 0.75rem;
  }

  .hero-card-title {
    font-size: 0.9rem;
  }

  .hero-card-label {
    font-size: 0.58rem;
    padding: 4px 10px;
  }

  .hero-card-bottom-half {
    font-size: 0.75rem;
    padding: 0 0.75rem 0.75rem;
  }

  /* Refined carousel indicators for extra small screens */
  .carousel-indicators {
    bottom: 12px;
  }

  .carousel-indicators button {
    width: 8px;
    height: 8px;
  }

  .carousel-indicators button.active {
    width: 20px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-teal);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2c9a94;
}

/* Selection Color */
::selection {
  background: var(--accent-teal);
  color: white;
}

::-moz-selection {
  background: var(--accent-teal);
  color: white;
}

/* Staff Section */
.staff-section {
  background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
  padding: 80px 0;
}

.staff-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.staff-section .section-title {
  color: var(--text-light) !important;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.staff-section .section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.staff-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.staff-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-teal), #2c9a94);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.staff-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
  border-color: var(--accent-teal);
}

.staff-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--accent-teal), #2c9a94);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.staff-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.staff-card:hover .staff-avatar::after {
  transform: translateX(100%);
}

.staff-card:hover .staff-avatar {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.staff-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light) !important;
  margin-bottom: 0.5rem;
}

.staff-position {
  font-size: 0.95rem;
  color: var(--accent-teal);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.staff-qualification {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.staff-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Light Theme Staff Card Styles */
[data-theme="light"] .staff-section {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

[data-theme="light"] .staff-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .staff-card:hover {
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
  border-color: var(--accent-teal);
}

[data-theme="light"] .staff-name {
  color: #1e293b !important;
}

[data-theme="light"] .staff-qualification {
  color: #64748b;
}

/* Staff Grid Responsive */
@media (max-width: 768px) {
  .staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .staff-section {
    padding: 60px 0;
  }

  .staff-section .section-title {
    font-size: 2rem;
  }

  .staff-avatar {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }
}

@media (max-width: 575px) {
  .staff-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .staff-card {
    padding: 1.5rem;
  }
}

/* ===== Enhanced Curriculum Section Styles ===== */
.curriculum-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.curriculum-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.curriculum-tab:hover {
  border-color: var(--accent-teal);
  color: var(--text-light);
}

.curriculum-tab.active {
  background: linear-gradient(135deg, var(--accent-teal), #1d4ed8);
  border-color: var(--accent-teal);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.curriculum-tab i {
  font-size: 1.2rem;
}

.curriculum-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.curriculum-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.curriculum-year-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 41, 59, 0.8));
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.year-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-teal), #1d4ed8);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.curriculum-year-header h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.curriculum-year-header p {
  color: var(--text-muted);
  margin: 0;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.curriculum-category {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.curriculum-category:hover {
  border-color: var(--accent-teal);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(30, 41, 59, 0.8));
  border-bottom: 1px solid var(--border-color);
}

.category-header i {
  font-size: 1.5rem;
  color: var(--accent-teal);
}

.category-header h4 {
  margin: 0;
  color: var(--text-light);
  font-size: 1.1rem;
}

.subject-list {
  list-style: none;
  padding: 1rem 1.5rem;
  margin: 0;
}

.subject-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  transition: all 0.2s ease;
}

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

.subject-list li:hover {
  padding-left: 0.5rem;
}

.subject-code {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--accent-teal), #1d4ed8);
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 70px;
  text-align: center;
}

.subject-name {
  color: var(--text-light);
  font-size: 0.95rem;
}

.program-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 41, 59, 0.8));
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

@media (max-width: 992px) {
  .program-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .program-highlights {
    grid-template-columns: 1fr;
  }

  .curriculum-tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  border-color: var(--accent-teal);
  transform: translateY(-3px);
}

.highlight-item i {
  font-size: 2rem;
  color: var(--accent-teal);
}

.highlight-item h5 {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.highlight-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Footer */
.footer {
  background-color: var(--dark-blue);
  color: white;
  padding: 60px 0 30px;
}

.footer h5 {
  color: var(--bright-blue);
  margin-bottom: 20px;
}

.footer a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--bright-blue);
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  color: #94a3b8;
}

/* ===== Contact Page Styles ===== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-teal), #1d4ed8);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.contact-info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
  border-color: var(--accent-teal);
}

.contact-icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
}

.contact-icon-wrapper i {
  font-size: 1.75rem;
  color: white;
}

.contact-info-card:hover .contact-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.contact-info-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

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

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-teal) !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

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

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

.contact-status.open {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.contact-status.open i {
  font-size: 0.5rem;
  animation: pulse 1.5s infinite;
}

/* Social Connect Section */
.social-connect-section {
  text-align: center;
  padding: 2.5rem;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

.social-connect-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.social-links-large {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  color: var(--text-light) !important;
  transition: all 0.3s ease;
}

.social-link-card i {
  font-size: 1.5rem;
  color: var(--accent-teal);
  transition: transform 0.3s ease;
}

.social-link-card span {
  font-size: 0.85rem;
  font-weight: 500;
}

.social-link-card:hover {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  transform: translateY(-5px);
}

.social-link-card:hover i,
.social-link-card:hover span {
  color: white;
}

.social-link-card:hover i {
  transform: scale(1.2);
}

/* Contact Form Section */
.contact-form-section {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 2rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-input::placeholder {
  color: var(--text-muted);
}

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

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Contact Page Responsive */
@media (max-width: 1024px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .social-links-large {
    gap: 0.75rem;
  }

  .social-link-card {
    padding: 1rem 1.5rem;
  }
}

/* Light Theme Contact Page */
[data-theme="light"] .contact-info-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.2);
}

[data-theme="light"] .contact-info-card:hover {
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .contact-info-card h4 {
  color: #0f172a;
}

[data-theme="light"] .contact-info-card p {
  color: #475569;
}

[data-theme="light"] .social-connect-section {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.2);
}

[data-theme="light"] .social-connect-section h3 {
  color: #0f172a;
}

[data-theme="light"] .social-link-card {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
  color: #334155 !important;
}

[data-theme="light"] .contact-form-wrapper {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.2);
}

[data-theme="light"] .form-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ===== Events Section Styles ===== */
.events-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.events-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.event-filter-btn {
  padding: 0.75rem 1.75rem;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.event-filter-btn:hover {
  border-color: var(--accent-teal);
  color: var(--text-light);
}

.event-filter-btn.active {
  background: linear-gradient(135deg, var(--accent-teal), #1d4ed8);
  border-color: var(--accent-teal);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* ===== ENHANCED EVENT CARDS ===== */
.event-card {
  background: linear-gradient(145deg, var(--card-bg), rgba(30, 41, 59, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #059669);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 10;
}

.event-card[data-category="cultural"]::before {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

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

.event-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 50px rgba(16, 185, 129, 0.25),
    0 0 30px rgba(16, 185, 129, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(16, 185, 129, 0.5);
}

.event-card[data-category="cultural"]:hover {
  box-shadow:
    0 25px 50px rgba(139, 92, 246, 0.25),
    0 0 30px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 92, 246, 0.5);
}

.event-card.hidden {
  display: none;
}

/* Event Card Image */
.event-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.9);
}

.event-card:hover .event-img {
  transform: scale(1.08);
  filter: brightness(1);
}

/* Event Card Content (when using images) */
.event-card:has(.event-img) {
  padding-bottom: 1.5rem;
}

.event-card:has(.event-img) .event-title,
.event-card:has(.event-img) .event-desc,
.event-card:has(.event-img) .event-badge {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.event-card:has(.event-img) .event-title {
  margin-top: 1rem;
}

/* Event Card without image - add padding */
.event-card:has(.event-icon) {
  padding: 1.5rem;
}

.event-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.event-icon.cultural {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.event-icon i {
  font-size: 1.25rem;
  color: white;
}

.event-date {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  text-align: center;
  background: rgba(37, 99, 235, 0.15);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-teal);
  line-height: 1;
}

.event-date .month {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.event-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.event-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.event-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

.event-badge.sports {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.event-badge.cultural {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

/* Events Responsive */
@media (max-width: 768px) {
  .events-filter {
    gap: 0.5rem;
  }

  .event-filter-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }

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

/* Light Theme Events */
[data-theme="light"] .events-section {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

[data-theme="light"] .event-filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(100, 116, 139, 0.2);
  color: #475569;
}

[data-theme="light"] .event-filter-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

[data-theme="light"] .event-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.2);
}

[data-theme="light"] .event-card:hover {
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .event-title {
  color: #0f172a;
}

[data-theme="light"] .event-desc {
  color: #475569;
}

[data-theme="light"] .event-date {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

/* ===== Projects Page Styles ===== */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.project-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-filter-btn i {
  font-size: 1rem;
}

.project-filter-btn:hover {
  border-color: var(--accent-teal);
  color: var(--text-light);
}

.project-filter-btn.active {
  background: linear-gradient(135deg, var(--accent-teal), #1d4ed8);
  border-color: var(--accent-teal);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
  border-color: var(--accent-teal);
}

.project-card.hidden {
  display: none;
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.project-duration {
  background: rgba(37, 99, 235, 0.9);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.project-content {
  padding: 1.5rem;
}

.project-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-teal);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.project-category {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-category i {
  color: var(--accent-teal);
}

/* Projects Responsive */
@media (max-width: 768px) {
  .projects-filter {
    gap: 0.5rem;
  }

  .project-filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .project-filter-btn span {
    display: none;
  }

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

/* Light Theme Projects */
[data-theme="light"] .project-filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(100, 116, 139, 0.2);
  color: #475569;
}

[data-theme="light"] .project-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.2);
}

[data-theme="light"] .project-card:hover {
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .project-title {
  color: #0f172a;
}

[data-theme="light"] .project-desc {
  color: #475569;
}

[data-theme="light"] .tech-badge {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

/* ===== Enhanced Programs Page Styles ===== */
/* Vertical Card Layout (image top, content below) */
.card-department {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.card-department::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent-color, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-department:hover::before {
  opacity: 1;
}

.card-department:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
  border-color: var(--card-accent-color, #3b82f6);
}

.card-department .card-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-department .card-img-wrapper::after {
  display: none;
}

.card-department .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-department:hover .card-img {
  transform: scale(1.1);
}

.card-department .card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
}

.card-department .hover-content {
  display: none;
}

.card-department .card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.card-department .flex-between {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem !important;
}

.card-department .badge {
  background: var(--card-accent-color, #3b82f6) !important;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
}

.card-department .badge i {
  margin-right: 0.35rem;
}

.card-department .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.card-department:hover .card-title {
  color: var(--card-accent-color, #3b82f6);
}

.card-department .card-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-department .mt-4 {
  margin-top: 0.75rem !important;
}

.card-department .text-accent {
  color: var(--card-accent-color, #3b82f6) !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-department .small.text-muted {
  font-size: 0.85rem;
}

.card-department .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100% !important;
  padding: 0.75rem 1.25rem;
  margin-top: auto !important;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--card-accent-color, #3b82f6) !important;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.card-department .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Programs Grid - 2 columns with last centered */
.grid-auto-fit {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem !important;
  justify-content: center;
}

.grid-auto-fit .card-department {
  flex: 0 0 calc(50% - 0.75rem);
  max-width: calc(50% - 0.75rem);
}

/* Programs Page Responsive */
@media (max-width: 992px) {
  .grid-auto-fit .card-department {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .card-department {
    flex-direction: column;
    min-height: auto;
  }

  .card-department .card-img-wrapper {
    width: 100%;
    min-width: 100%;
    height: 150px;
  }

  .card-department .card-body {
    padding: 1rem;
  }
}

/* Programs Page Light Theme */
[data-theme="light"] .card-department {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.2);
}

[data-theme="light"] .card-department:hover {
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .card-department .card-title {
  color: #0f172a;
}

[data-theme="light"] .card-department .card-text,
[data-theme="light"] .card-department .small.text-muted {
  color: #475569;
}

/* ===== Developers Page Styles - Stunning Design ===== */
.developers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 1rem 0;
}

/* Developer Card - Glassmorphism with Glow */
.developer-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
}

/* Simple border highlight on hover (no color animation) */
.developer-card::before {
  display: none;
}

.developer-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 50px rgba(59, 130, 246, 0.3),
    0 0 40px rgba(20, 184, 166, 0.2);
}

/* Featured Card Styling */
.developer-card.featured {
  grid-column: span 2;
  display: flex;
  flex-direction: row;
  text-align: left;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(15, 23, 42, 0.95));
}

/* Developer Image with Gradient Ring */
.developer-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.developer-card.featured .developer-image {
  width: 280px;
  min-width: 280px;
  height: 100%;
}

.developer-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 1;
}

.developer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.developer-card:hover .developer-image img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Online Status Badge */
.developer-status {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #0f172a;
  z-index: 2;
  box-shadow: 0 0 10px currentColor;
}

.developer-status.online {
  background: #10b981;
  color: #10b981;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 5px #10b981;
  }

  50% {
    box-shadow: 0 0 20px #10b981, 0 0 30px #10b981;
  }
}

/* Developer Info Section */
.developer-info {
  padding: 1.75rem;
  position: relative;
}

.developer-card.featured .developer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

/* Animated Role Badge */
.developer-role {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* Developer Name with Gradient Text */
.developer-name {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

/* No color change on hover for developer name */

.developer-bio {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Contact Chip with Shimmer Effect */
.developer-contact {
  margin-bottom: 1.25rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(20, 184, 166, 0.2));
  color: #60a5fa;
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-chip::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.5s ease;
}

.contact-chip:hover::before {
  left: 100%;
}

.contact-chip:hover {
  background: linear-gradient(135deg, #3b82f6, #14b8a6);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

/* Skill Tags with Glow */
.developer-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.developer-card.featured .developer-skills {
  justify-content: flex-start;
}

.skill-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: #10b981;
  color: white;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

/* Social Links with Hover Animation */
.developer-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.developer-card.featured .developer-links {
  justify-content: flex-start;
}

.developer-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  color: #60a5fa;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.developer-link:hover {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-color: transparent;
  color: white;
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.developer-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.developer-link:hover i {
  transform: scale(1.2);
}

/* Acknowledgment Card - Premium Design */
.acknowledgment-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 24px;
  padding: 3.5rem;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  overflow: hidden;
}

.acknowledgment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
}

.acknowledgment-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.1);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(1.05);
  }
}

.acknowledgment-icon i {
  font-size: 2.25rem;
  color: white;
}

.acknowledgment-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.acknowledgment-card p {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.acknowledgment-signature {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(239, 68, 68, 0.2);
}

.acknowledgment-signature span {
  color: #ef4444;
  font-weight: 700;
  font-size: 1rem;
}

.acknowledgment-signature .year {
  color: #64748b;
  font-weight: 500;
}

/* Footer Made By Styling */
.footer-credits {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-made-by {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-made-by .fa-heart {
  color: #ef4444;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.developers-link {
  color: #60a5fa;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
}

.developers-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #14b8a6);
  transition: width 0.3s ease;
}

.developers-link:hover::after {
  width: 100%;
}

.developers-link:hover {
  color: #14b8a6;
}

/* Developers Page Responsive */
@media (max-width: 992px) {
  .developer-card.featured {
    grid-column: span 1;
    flex-direction: column;
    text-align: center;
  }

  .developer-card.featured .developer-image {
    width: 100%;
    height: 220px;
  }

  .developer-card.featured .developer-skills,
  .developer-card.featured .developer-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .developers-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .developer-image {
    height: 200px;
  }

  .acknowledgment-card {
    padding: 2rem;
  }
}

/* Light Theme Developers */
[data-theme="light"] .developer-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  border-color: rgba(100, 116, 139, 0.2);
}

[data-theme="light"] .developer-card.featured {
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.95));
}

[data-theme="light"] .developer-name {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .developer-card:hover .developer-name {
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .developer-bio {
  color: #475569;
}

[data-theme="light"] .developer-link {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

[data-theme="light"] .acknowledgment-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .acknowledgment-card h3 {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .acknowledgment-card p {
  color: #475569;
}

/* ===== Project Modal Styles ===== */
.project-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(59, 130, 246, 0.15);
  border: none;
  border-radius: 6px;
  color: var(--accent-teal);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-details-btn:hover {
  background: var(--accent-teal);
  color: white;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.project-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.project-modal-content {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.project-modal.active .project-modal-content {
  transform: scale(1);
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  border: none;
  border-radius: 8px;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-modal-close:hover {
  background: #ef4444;
  color: white;
}

.project-modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.project-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.project-modal-header p {
  color: var(--accent-teal);
  font-weight: 600;
}

.project-modal-body {
  padding: 1.5rem 2rem 2rem;
}

.project-modal-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-members-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.team-member-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.team-member-card:hover {
  border-color: var(--accent-teal);
  background: rgba(59, 130, 246, 0.1);
}

.team-member-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member-avatar i {
  font-size: 1.25rem;
  color: white;
}

.team-member-info {
  flex: 1;
}

.team-member-info h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.team-member-role {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.team-member-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--accent-teal);
  font-weight: 600;
  transition: color 0.3s ease;
}

.team-member-phone:hover {
  color: #60a5fa;
}

/* Light Theme Modal */
[data-theme="light"] .project-modal-content {
  background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .project-modal-header h3 {
  color: #0f172a;
}

[data-theme="light"] .team-member-info h5 {
  color: #0f172a;
}