/* ==========================================================================
   NSEG KHERLI - Custom Premium Stylesheet
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Color Palette */
  --primary-navy: #0a123c;
  --primary-light: #162464;
  --accent-yellow: #f6be00;
  --accent-light: #fff2cc;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --footer-bg: #060b24;
  --white: #ffffff;
  
  /* Fonts */
  --font-headings: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(10, 18, 60, 0.05);
  --shadow-lg: 0 20px 40px rgba(10, 18, 60, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px 0 rgba(10, 18, 60, 0.06);
  
  /* Transition */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   General & Reset
   ========================================================================== */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary-navy);
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-navy);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-yellow);
}

/* ==========================================================================
   Custom Cursor (Desktop Only)
   ========================================================================== */
.cursor-dot-container,
.cursor-follower-container {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100000;
  will-change: transform;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-follower-container {
  z-index: 99999;
}

.cursor-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-yellow);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  flex-shrink: 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary-navy);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: transparent;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.25s ease, 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  flex-shrink: 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Hover States */
.cursor-dot.hover {
  transform: scale(0.6);
  background-color: var(--primary-navy);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.cursor-follower.hover {
  transform: scale(1.5);
  background-color: rgba(246, 190, 0, 0.15);
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 
              0 0 15px rgba(246, 190, 0, 0.5), 
              inset 0 0 8px rgba(246, 190, 0, 0.3);
}

@media (min-width: 992px) and (pointer: fine) {
  body {
    cursor: default;
  }
  
  a, button, [role="button"], 
  input[type="submit"], input[type="button"], select, textarea,
  .nav-link, .btn, .card-interactive, .gallery-card, 
  .form-control, .accordion-button, .dropdown-item, 
  .social-icons a, .carousel-control-prev, .carousel-control-next, 
  .back-to-top, .lightbox-close, .lightbox-prev, .lightbox-next,
  .quick-action-grid-btn, .dashboard-card, .sidebar-menu-link, .nav-profile-menu {
    cursor: pointer;
  }
  
  .cursor-dot-container,
  .cursor-follower-container {
    display: none !important;
  }
}


/* ==========================================================================
   Preloader Animation
   ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-navy);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader .loader-logo {
  width: 120px;
  animation: pulseLogo 2s infinite ease-in-out;
}

#preloader .loader-bar {
  width: 150px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 25px;
  position: relative;
  overflow: hidden;
}

#preloader .loader-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50%;
  background: var(--accent-yellow);
  animation: loaderProgress 1.5s infinite ease-in-out;
  border-radius: 3px;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes loaderProgress {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* ==========================================================================
   Top Header & Navigation
   ========================================================================== */
.top-bar {
  background-color: var(--primary-navy);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
  font-weight: 400;
  border-bottom: 2px solid var(--accent-yellow);
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
  color: var(--accent-yellow);
}

.top-bar .social-icons a {
  margin-left: 12px;
  font-size: 14px;
}

.pulse-badge {
  background-color: var(--accent-yellow);
  color: var(--primary-navy);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  letter-spacing: 0.5px;
  animation: pulseBadge 1.8s infinite alternate;
  display: inline-block;
}

@keyframes pulseBadge {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(246, 190, 0, 0.4); }
  100% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(246, 190, 0, 0); }
}

/* Navbar styles */
.navbar {
  padding: 12px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  z-index: 999;
}

.navbar.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  background: rgba(10, 18, 60, 0.95);
  border-bottom: 2px solid var(--accent-yellow);
}

.navbar.sticky-nav .nav-link {
  color: var(--white);
}

.navbar.sticky-nav .navbar-brand .brand-title {
  color: var(--white);
}

.navbar.sticky-nav .navbar-brand .brand-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  height: 60px;
  width: auto;
  transition: var(--transition-smooth);
}

.navbar.sticky-nav .navbar-brand img {
  height: 48px;
}

.brand-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 18px;
  margin: 0;
  color: var(--primary-navy);
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  margin: 0;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Nav Links & Hover Effects */
.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--primary-navy);
  padding: 8px 16px !important;
  font-size: 15px;
  position: relative;
  transition: var(--transition-fast);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--accent-yellow);
  transform: scaleX(0);
  transition: var(--transition-fast);
  transform-origin: right;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  color: var(--accent-yellow) !important;
}

/* Animated Dropdown */
.dropdown-menu {
  border: none;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 15px 10px;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

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

.dropdown-item {
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: var(--accent-light);
  color: var(--primary-navy);
  padding-left: 20px;
}

/* Mega Menu Setup */
.mega-menu {
  position: static !important;
}

.mega-menu-content {
  width: 100%;
  left: 0;
  right: 0;
  padding: 30px;
  border-radius: 0 0 20px 20px;
  background: var(--white);
  border-top: 4px solid var(--accent-yellow);
}

/* Ripple & CTA Buttons */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-primary-custom {
  background-color: var(--primary-navy);
  color: var(--white);
  border: 2px solid var(--primary-navy);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
  background-color: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(246, 190, 0, 0.3);
}

.btn-outline-custom {
  border: 2px solid var(--accent-yellow);
  color: var(--accent-yellow);
  background: transparent;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  transition: var(--transition-smooth);
}

.btn-outline-custom:hover {
  background-color: var(--accent-yellow);
  color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(246, 190, 0, 0.3);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-slider {
  height: calc(100vh - 120px);
  min-height: 550px;
  position: relative;
  background-color: var(--primary-navy);
}

.carousel-item {
  height: calc(100vh - 120px);
  min-height: 550px;
}

.carousel-img-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(1.15) contrast(1.1); /* Brighten and add natural contrast */
}

.carousel-item.active .carousel-img-container img {
  transform: scale(1.1); /* Ken Burns Zoom Effect */
}

/* Dark overlay on hero images (within 40-50% requirement for high readability) */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 18, 60, 0.45);
  z-index: 2;
}

/* Static caption overlay that sits above the sliding images */
.carousel-caption-custom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center; /* Vertically centered */
  z-index: 3;
  color: var(--white);
  padding: 20px 0;
  background: transparent;
  pointer-events: none; /* Let click events pass through to indicators and navigation controls */
}

/* Semi-transparent dark glass container for text area readability */
.hero-text-box {
  background: rgba(6, 11, 36, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 40px;
  border-radius: 24px;
  max-width: 720px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border-left: 4px solid var(--accent-yellow);
  pointer-events: auto; /* Re-enable pointer events for clicks on CTA buttons */
}

.hero-title {
  color: #ffffff !important;
  font-size: 34px; /* Mobile default */
  font-weight: 800 !important; /* Extra Bold */
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important; /* subtle text shadow requirement */
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.3s;
}

.hero-subtitle {
  color: #f5f5f5 !important; /* light white */
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
  display: inline-block;
  border-left: 3px solid var(--accent-yellow); /* visual structure line */
  padding-left: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.1s;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin-bottom: 35px;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.5s;
}

.hero-btns {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.7s;
}

/* Animate the elements when the carousel active class is set or when page loads with active slider state */
.carousel-item.active .hero-title,
.carousel-item.active .hero-subtitle,
.carousel-item.active .hero-desc,
.carousel-item.active .hero-btns,
.hero-slider-active .hero-title,
.hero-slider-active .hero-subtitle,
.hero-slider-active .hero-desc,
.hero-slider-active .hero-btns {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure Carousel navigation dots and controls are clickable on top of the caption overlay */
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
  z-index: 5 !important;
}

/* Custom Premium Hero Buttons */
.hero-btn-primary {
  background-color: #f4c430 !important; /* Golden Yellow CTA */
  border: 2px solid #f4c430 !important;
  color: var(--primary-navy) !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}

.hero-btn-primary:hover {
  background-color: var(--primary-navy) !important;
  border-color: var(--primary-navy) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 18, 60, 0.3);
}

.hero-btn-secondary {
  background-color: #ffffff !important; /* Secondary White background */
  border: 2px solid var(--primary-navy) !important; /* Navy border */
  color: var(--primary-navy) !important; /* Navy text */
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.hero-btn-secondary:hover {
  background-color: var(--primary-navy) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 18, 60, 0.15);
}

/* Responsive Media Queries for Mobile/Tablet Readability */
@media (max-width: 991.98px) {
  .carousel-caption-custom .text-start {
    text-align: center !important;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-text-box {
    margin: 0 auto;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    border-left: none;
    border-bottom: 4px solid var(--accent-yellow);
  }
  .hero-subtitle {
    border-left: none;
    border-bottom: 2px solid var(--accent-yellow);
    padding-left: 0;
    padding-bottom: 4px;
  }
}

@media (max-width: 575.98px) {
  .hero-text-box {
    padding: 20px;
    border-radius: 16px;
    max-width: 100%;
  }
}

/* Enforce Exact Title Font Sizes across devices */
@media (min-width: 768px) {
  .hero-title, .cta-title {
    font-size: 48px !important;
  }
}

@media (min-width: 992px) {
  .hero-title, .cta-title {
    font-size: 64px !important;
  }
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section-padding {
  padding: 90px 0;
}

.bg-white-gradient {
  background: linear-gradient(180deg, var(--white) 0%, #f1f5f9 100%);
}

.bg-navy-gradient {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.section-tag {
  color: var(--accent-yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-yellow);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-title.text-start::after {
  margin: 15px 0 0 0;
}

/* ==========================================================================
   Premium Cards (Why Choose Us, Academics, Facilities)
   ========================================================================== */
.premium-card {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 35px 25px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(246, 190, 0, 0.05) 0%, rgba(10, 18, 60, 0.02) 100%);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(246, 190, 0, 0.3);
}

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

.premium-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background-color: var(--accent-light);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 25px;
  transition: var(--transition-smooth);
}

.premium-card:hover .card-icon {
  background-color: var(--primary-navy);
  color: var(--accent-yellow);
  transform: rotateY(180deg);
}

.premium-card .card-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.premium-card .card-text {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Card Hover Accent Border */
.premium-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-yellow);
  transform: scaleX(0);
  transition: var(--transition-smooth);
  transform-origin: center;
}

.premium-card:hover::after {
  transform: scaleX(1);
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--white);
  padding: 30px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Welcome & Leadership Messages
   ========================================================================== */
.welcome-img-box {
  position: relative;
  padding: 20px;
}

.welcome-img-box img {
  border-radius: 25px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* Premium smooth transition */
}

.welcome-img-box:hover img {
  transform: scale(1.04); /* Subtle zoom-on-hover */
}

.welcome-img-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 80%;
  border-radius: 25px;
  border: 8px solid var(--accent-yellow);
  z-index: 1;
  transform: translate(-10px, -10px);
}

.welcome-img-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80%;
  height: 80%;
  background: var(--primary-navy);
  border-radius: 25px;
  z-index: 0;
  transform: translate(10px, 10px);
}

.message-card {
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--white);
  transition: var(--transition-smooth);
}

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

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

.message-img-wrapper img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.message-card:hover .message-img-wrapper img {
  transform: scale(1.05);
}

.message-card .text-justify {
  text-align: justify;
}

.message-title-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: var(--accent-yellow);
  color: var(--primary-navy);
  font-weight: 700;
  padding: 4px 15px;
  border-radius: 30px;
  font-size: 13px;
  text-transform: uppercase;
}

/* ==========================================================================
   Animated Statistics Counters
   ========================================================================== */
.counter-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.counter-box {
  text-align: center;
  padding: 20px;
}

.counter-box .counter-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-yellow);
  font-family: var(--font-body);
  display: inline-block;
  line-height: 1;
}

.counter-box .counter-label {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-top: 10px;
}

/* ==========================================================================
   Masonry Gallery & Lightbox
   ========================================================================== */
.gallery-filter-buttons {
  margin-bottom: 40px;
}

.gallery-filter-buttons .btn {
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 30px;
  margin: 5px;
  border: 2px solid var(--primary-navy);
  color: var(--primary-navy);
}

.gallery-filter-buttons .btn:hover,
.gallery-filter-buttons .btn.active {
  background-color: var(--primary-navy);
  color: var(--white);
}

/* Masonry Columns */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
}

.gallery-item {
  padding: 10px;
  width: 100%;
}

@media (min-width: 576px) {
  .gallery-item {
    width: 50%;
  }
}

@media (min-width: 992px) {
  .gallery-item {
    width: 33.333%;
  }
}

.gallery-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 280px;
  transition: var(--transition-smooth);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 18, 60, 0.8);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: var(--transition-smooth);
}

.gallery-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

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

.gallery-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-yellow);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 15px;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-icon {
  transform: translateY(0);
}

.gallery-title {
  color: var(--white);
  font-family: var(--font-headings);
  font-size: 18px;
  font-weight: 600;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-title {
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 11, 36, 0.95);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

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

.lightbox-content {
  max-width: 85%;
  max-height: 80%;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* ==========================================================================
   Timeline (Upcoming Events)
   ========================================================================== */
.timeline-container {
  position: relative;
  padding: 20px 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: rgba(10, 18, 60, 0.15);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-item::after {
  content: '';
  display: table;
  clear: both;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent-yellow);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--primary-navy);
  transform: translateX(-50%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-marker {
  background-color: var(--primary-navy);
  box-shadow: 0 0 0 4px var(--accent-yellow);
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 25px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary-navy);
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-content {
  float: right;
  border-top-color: var(--accent-yellow);
}

.timeline-item:nth-child(odd) .timeline-content {
  float: left;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-date {
  font-weight: 700;
  color: var(--accent-yellow);
  font-size: 14px;
  margin-bottom: 8px;
}

.timeline-item:nth-child(even) .timeline-date {
  color: var(--primary-navy);
}

@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }
  .timeline-marker {
    left: 20px;
  }
  .timeline-content {
    width: calc(100% - 50px);
    float: right !important;
  }
}

/* ==========================================================================
   Admission Open Banner / Call To Action
   ========================================================================== */
.cta-section {
  position: relative;
  overflow: hidden;
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 75px 0;
  border-top: 4px solid var(--accent-yellow);
}

/* Semi-transparent dark glass container for cta text area readability */
.cta-glass-card {
  background: rgba(10, 18, 60, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.cta-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-family: var(--font-headings);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
  margin-bottom: 20px;
  font-size: 34px; /* Mobile default */
  line-height: 1.2;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(246, 190, 0, 0.08);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Testimonial Carousel
   ========================================================================== */
.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  margin-top: 30px;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 15px;
  left: 30px;
  font-family: var(--font-headings);
  font-size: 120px;
  line-height: 1;
  color: rgba(10, 18, 60, 0.06);
}

.testimonial-text {
  font-size: 18px;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-yellow);
}

.testimonial-name {
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
  font-size: 16px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  font-size: 15px;
  border-top: 5px solid var(--accent-yellow);
}

footer h5 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-yellow);
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

footer a:hover {
  color: var(--accent-yellow);
  padding-left: 5px;
}

footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  margin-right: 8px;
  transition: var(--transition-fast);
}

footer .social-icons a:hover {
  background: var(--accent-yellow);
  color: var(--primary-navy);
  transform: translateY(-3px);
  padding-left: 0;
}

footer .contact-info li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

footer .contact-info i {
  color: var(--accent-yellow);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 50px;
  padding-top: 25px;
  font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-navy);
  border: 2px solid var(--accent-yellow);
  border-radius: 50%;
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-yellow);
  color: var(--primary-navy);
  transform: translateY(-5px);
}

/* ==========================================================================
   Scroll Reveal Animation Utility
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Sub-pages Specific Layouts (About, Academics, Contact, Careers)
   ========================================================================== */
.sub-page-hero {
  background: linear-gradient(135deg, rgba(10, 18, 60, 0.85) 0%, rgba(10, 18, 60, 0.95) 100%), url('../images/campus_hero.jpg');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  color: var(--white);
  border-bottom: 4px solid var(--accent-yellow);
}

.sub-page-hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin: 0;
}

.sub-page-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 10px 0 0 0;
}

.sub-page-hero .breadcrumb-item,
.sub-page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.sub-page-hero .breadcrumb-item.active {
  color: var(--accent-yellow);
}

.sub-page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* Admission Table */
.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
}

.custom-table th {
  background-color: var(--primary-navy);
  color: var(--white);
  font-weight: 600;
  padding: 15px;
  border: none;
}

.custom-table td {
  background-color: var(--white);
  padding: 15px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 14.5px;
}

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

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

/* Contact Cards Info */
.contact-info-card {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  height: 100%;
  border-left: 5px solid var(--primary-navy);
  transition: var(--transition-smooth);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--accent-yellow);
}

.contact-info-card .info-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: var(--accent-light);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

/* Map Wrapper */
.map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
}

/* Form Styles */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary-navy);
  opacity: 0.8;
}

.form-control {
  border-radius: 10px;
  border: 2px solid #e2e8f0;
}

.form-control:focus {
  border-color: var(--primary-navy);
  box-shadow: none;
}

/* Vacancy Cards */
.vacancy-card {
  background: var(--white);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-smooth);
}

.vacancy-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 18, 60, 0.15);
}

.vacancy-badge {
  background-color: var(--accent-light);
  color: var(--primary-navy);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 12.5px;
  display: inline-block;
  margin-bottom: 12px;
}

/* ==========================================================================
   Premium Login Dropdown
   ========================================================================== */
.login-dropdown-menu {
  width: 320px;
  background: var(--white);
  border-radius: 18px !important;
  box-shadow: 0 15px 35px rgba(10, 18, 60, 0.15) !important;
  border: 1px solid rgba(10, 18, 60, 0.05) !important;
  padding: 15px !important;
  margin-top: 10px !important;
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
}

/* Open states */
.nav-item.dropdown:hover .login-dropdown-menu,
.nav-item.dropdown.show .login-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.login-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 15px;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  transition: all 0.25s ease !important;
  margin-bottom: 8px;
  color: var(--text-dark) !important;
  background: transparent;
  box-shadow: none;
}

.login-dropdown-item:last-child {
  margin-bottom: 0;
}

/* Hover effects */
.login-dropdown-item:hover {
  background-color: var(--bg-light) !important;
  transform: translateX(4px) translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 18, 60, 0.06) !important;
  padding-left: 16px !important;
}

/* Custom premium icons inside dropdown items */
.login-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.25s ease;
}

/* Specific icon colors */
.principal-icon {
  background-color: rgba(10, 18, 60, 0.05);
  color: var(--primary-navy);
}
.teacher-icon {
  background-color: rgba(246, 190, 0, 0.1);
  color: #c48c00;
}
.student-icon {
  background-color: rgba(22, 36, 100, 0.05);
  color: var(--primary-light);
}

.login-dropdown-item:hover .login-item-icon {
  transform: scale(1.08);
}
.login-dropdown-item:hover .principal-icon {
  background-color: var(--primary-navy);
  color: var(--white);
}
.login-dropdown-item:hover .teacher-icon {
  background-color: var(--accent-yellow);
  color: var(--primary-navy);
}
.login-dropdown-item:hover .student-icon {
  background-color: var(--primary-light);
  color: var(--white);
}

.login-item-content {
  display: flex;
  flex-direction: column;
}

.login-item-title {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.2;
}

.login-item-subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Button style overrides for outline */
.btn-outline-custom {
  color: var(--primary-navy) !important;
  border-color: rgba(10, 18, 60, 0.2) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 30px !important;
  transition: var(--transition-fast) !important;
}

.btn-outline-custom:hover,
.btn-outline-custom:focus,
.btn-outline-custom:active,
.show > .btn-outline-custom {
  background-color: var(--primary-navy) !important;
  border-color: var(--primary-navy) !important;
  color: var(--white) !important;
}

/* Mobile responsive style */
@media (max-width: 991.98px) {
  .login-dropdown-menu {
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 10px 0 !important;
    margin-top: 5px !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .nav-item.dropdown.show .login-dropdown-menu {
    display: block !important;
  }
  .login-dropdown-item {
    padding: 10px 12px !important;
  }
}

/* ==========================================================================
   Mobile/Tablet Hamburger Menu & Sidebar Styling
   ========================================================================== */
.mobile-menu-toggle {
  background: none;
  border: none;
  width: 30px;
  height: 22px;
  display: none; /* Hidden on desktop by default */
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
  z-index: 1000003;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-navy);
  border-radius: 3px;
  transition: var(--transition-fast);
}

/* Sidebar structure */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -300px; /* Positioned off-screen on the left */
  width: 300px;
  height: 100%;
  background: var(--white) !important;
  box-shadow: 5px 0 25px rgba(10, 18, 60, 0.15) !important;
  z-index: 1000005 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: left 0.3s ease-in-out !important;
  overflow-y: auto !important;
}

.mobile-sidebar.active {
  left: 0 !important; /* Slide in to left edge of screen */
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 18, 60, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000004;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(10, 18, 60, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-light);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand img {
  height: 42px;
}

.sidebar-brand .brand-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.sidebar-brand .brand-subtitle {
  font-size: 8.5px;
  color: var(--accent-yellow);
  font-weight: 700;
  letter-spacing: 1px;
}

.sidebar-close-btn {
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.sidebar-close-btn:hover {
  color: var(--primary-navy);
  transform: scale(1.1) rotate(90deg);
}

.sidebar-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  margin-bottom: 8px;
}

.sidebar-link {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-navy);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.sidebar-link:hover, 
.sidebar-link.active {
  color: var(--primary-navy);
  background-color: var(--accent-light);
  padding-left: 16px;
}

/* Submenu dropdown */
.sidebar-submenu {
  list-style: none;
  padding-left: 15px;
  margin-top: 5px;
  display: none;
  border-left: 2px solid var(--accent-yellow);
}

.sidebar-submenu.open {
  display: block;
}

.sidebar-sublink {
  display: block;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.sidebar-sublink:hover {
  color: var(--primary-navy);
  background-color: rgba(10, 18, 60, 0.04);
  padding-left: 16px;
}

.sidebar-footer {
  margin-top: 40px;
}

/* ==========================================================================
   Responsive Breakpoints & Layout Optimization
   ========================================================================== */

/* Target Mobile & Tablet Breakpoints (1024px and below) */
@media (max-width: 1024.98px) {
  /* Prevent horizontal layout overflow */
  html, body {
    width: 100% !important;
    overflow-x: hidden !important;
  }
  
  section, footer, header {
    width: 100% !important;
    overflow: hidden !important; /* Force all outer containers to wrap overflow */
  }

  .navbar-expand-lg .navbar-collapse,
  .navbar .navbar-collapse,
  .navbar-collapse {
    display: none !important; /* Hide desktop nav links */
  }

  .navbar .mobile-menu-toggle,
  .mobile-menu-toggle {
    display: flex !important; /* Show premium hamburger toggler */
  }

  .top-bar {
    display: none !important; /* Hide secondary utility strip */
  }

  .navbar {
    top: 0 !important; /* Align nav bar to absolute top of page */
    padding: 12px 0;
  }

  .navbar-brand img {
    height: 40px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 9px;
  }
  
  .hero-text-box {
    max-width: 100% !important; /* Make sure text container fits device screen */
    width: 100% !important;
  }
}

/* Tablet Viewport (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .container {
    max-width: 720px;
  }

  .hero-title {
    font-size: 38px !important;
  }

  .hero-text-box {
    max-width: 100% !important;
  }

  .counter-item {
    margin-bottom: 25px;
  }
}

/* Mobile Viewport (320px - 767px) */
@media (max-width: 767.98px) {
  .section-padding {
    padding: 50px 0;
  }
  
  /* Hero section adjustments */
  .hero-title {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .hero-subtitle {
    font-size: 12px !important;
    margin-bottom: 12px;
  }

  .carousel-caption-custom {
    padding: 40px 15px;
  }

  .hero-text-box {
    padding: 20px !important;
    border-radius: 15px !important;
  }

  .hero-btns {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* Prevent horizontal grid overflow */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .col-12, .col-md-6, .col-lg-4, .col-lg-3, .col-sm-6 {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* General Grid Layout adjustments */
  .col-md-6, .col-lg-4, .col-lg-3, .col-sm-6 {
    width: 100% !important; /* Force layout cards into full-width stacking */
  }
  
  /* Statistics stack vertically */
  .counter-section .col-md-3,
  .counter-section .col-sm-6,
  .counter-section .col-lg-3,
  .counter-section .col-6 {
    width: 100% !important;
    margin-bottom: 30px;
  }

  .counter-section .row > div:last-child {
    margin-bottom: 0;
  }
  
  /* Center headers and CTA alignments */
  .text-md-start, .text-lg-start {
    text-align: center !important;
  }

  .section-title {
    font-size: 24px;
    text-align: center;
  }

  .section-subtitle {
    text-align: center;
  }

  .cta-section {
    text-align: center;
    padding: 50px 0;
  }

  .cta-glass-card {
    padding: 30px 20px;
  }

  .cta-btns {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 12px;
  }

  .cta-btns .btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* Responsive Gallery */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  /* Footer responsive alignment */
  footer {
    text-align: center;
    padding: 50px 0 20px 0;
  }

  footer .social-icons {
    justify-content: center;
    margin-bottom: 20px;
  }

  footer h5 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 16px;
  }

  footer ul {
    margin-bottom: 20px;
  }

  footer .contact-info li {
    justify-content: center;
  }

  .footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
  }

  .footer-bottom .text-md-end {
    text-align: center !important;
    margin-top: 10px;
  }
}

/* ==========================================================================
   Premium Hover Animations for Social Media Icons
   ========================================================================== */
/* Header Top Utility Bar Social Icons */
.top-bar .social-icons a {
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.top-bar .social-icons a:hover {
  color: var(--accent-yellow) !important;
  transform: scale(1.3) translateY(-1px);
  filter: drop-shadow(0 0 5px rgba(246, 190, 0, 0.85));
}

/* Footer Social Icons */
footer .social-icons a {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

footer .social-icons a:hover {
  background: var(--accent-yellow) !important;
  color: var(--primary-navy) !important;
  transform: scale(1.2) translateY(-4px) !important;
  box-shadow: 0 0 15px rgba(246, 190, 0, 0.7) !important;
}

/* Footer Credit Link & Animated Heart */
.footer-heart {
  color: #ff3b3b;
  display: inline-block;
  animation: pulseHeart 1s infinite alternate cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulseHeart {
  0% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 4px rgba(255, 59, 59, 0.7));
  }
}

.footer-credit-link {
  color: #38bdf8; /* sky blue */
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-credit-link:hover {
  color: #00d2ff; /* brighter blue */
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  transform: translateY(-1px);
}





