/* Font Awesome Icons */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");

/* Professional College Website Styles with 3D Effects */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container{
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

:root {
  --primary-color: #1e3a8a; /* Dark Blue */
  --secondary-color: #3b82f6; /* Lighter Blue */
  --accent-color: #e74c3c; /* Red for buttons/highlights */
  --text-color: #333;
  --light-text-color: #fff;
  --background-light: #f5f7fa;
  --background-dark: #c3cfe2;
  --glass-light: rgba(255, 255, 255, 0.95);
  --glass-dark: rgba(255, 255, 255, 0.1);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(
    135deg,
    var(--background-light) 0%,
    var(--background-dark) 100%
  );
  background-attachment: fixed;
  background-size: cover; /* Ensure background covers the entire body */
  min-height: 100vh; /* Ensure body takes at least full viewport height */
  overflow-x: hidden;
}

/* Overlay for when menu is open - FIXED */
body.nav-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9997;
  pointer-events: none; /* Allow clicks on overlay to close menu */
}

/* Header Styles - Professional with Glassmorphism */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1020; /* Increased z-index */
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.site-header.scrolled-down {
  transform: translateY(-100%);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
  gap: 20px;
}

.header-logo-left img {
  height: 90px;
  width: auto;
  transition: all 0.4s ease;
  transform: translateZ(0);
}

.header-logo-left img:hover {
  transform: scale(1.05) rotateY(5deg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.header-logo-right {
  display: block;
  transform: translateZ(0);
}

.header-logo-right img {
  height: 90px;
  width: auto;
  transition: all 0.4s ease;
  transform: translateZ(0);
}

.header-logo-right img:hover {
  transform: scale(1.05) rotateY(-5deg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.header-center-identity h1 {
  font-size: 2.2rem;
  color: #1e3a8a;
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 700;
  letter-spacing: 1px;
}

.header-center-identity p {
  font-size: 1.1rem;
  color: #3b82f6;
  text-align: center;
  font-weight: 500;
}

/* Navigation Styles - Professional with 3D Effects */
.main-navigation {
  /* Desktop styles */
  display: block; /* Ensure it's visible on desktop */
  width: auto; /* Allow it to take natural width */
  position: static; /* Reset position for desktop */
  z-index: auto; /* Reset z-index for desktop */
  visibility: visible; /* Ensure visible on desktop */
  opacity: 1; /* Ensure visible on desktop */
  transform: translateX(0); /* Reset transform for desktop */
  transition: none; /* No transition on desktop */
}

.main-navigation ul {
  list-style: none;
  display: flex; /* Ensure horizontal layout for desktop */
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  padding: 15px 0;
  border-radius: 50px;
  margin: 20px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateZ(0);
}

.main-navigation li {
  margin: 0 20px;
  position: relative;
}

.main-navigation a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  transition: all 0.4s ease;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform, opacity;
  /* keep full-width touch targets on mobile */
  -webkit-font-smoothing: antialiased;
}

.main-navigation a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0; /* keep anchored */
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%); /* GPU-friendly */
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

.main-navigation a:hover::before {
  transform: translateX(100%); /* slide via transform not left */
}

/* ensure hover lift uses translate3d for GPU */
@media (hover: hover) {
  .main-navigation a:hover,
  .main-navigation a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translate3d(0, -3px, 0) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  }
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none; /* Hidden by default */
  font-size: 1.5rem;
  cursor: pointer;
  color: #1e3a8a;
  z-index: 9999; /* Highest z-index */
  position: fixed; /* Stays in place */
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 1);
}

/* Hero Section with 3D Effects */
.hero-section {
  position: relative;
  height: 70vh;
  overflow: hidden;
  /* background handled by slideshow */
  transform: translateZ(0);
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Below hero-content */
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  text-align: center;
  color: #fff;
  z-index: 2;
  max-width: 800px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-20px);
  }
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(45deg, #fff, #f0f8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  }
  to {
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.8),
      0 0 40px rgba(255, 255, 255, 0.6);
  }
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

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

/* Buttons with 3D Effects */
.btn {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  border: 2px solid #e74c3c;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #667eea;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

/* Main Content Sections with 3D Effects */
.section {
  padding: 80px 0;
  position: relative;
  transform: translateZ(0);
}

.section h2 {
  font-size: 3rem;
  color: #1e3a8a;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  font-weight: 700;
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #1e3a8a);
  border-radius: 2px;
}

/* Vision Mission Section */
.vision-mission p {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: #555;
  font-style: italic;
}

/* Features Section - 3D Card Design */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
  max-width: 1000px; /* Added for better control */
  margin-left: auto;
  margin-right: auto;
}

.feature-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.5s ease;
  transform: translateZ(0);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.feature-item:hover::before {
  left: 100%;
}

.feature-item:hover {
  transform: translateY(-15px) rotateY(5deg) scale(1.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.feature-item i {
  font-size: 4rem;
  color: #3b82f6;
  margin-bottom: 25px;
  transition: all 0.4s ease;
}

.feature-item:hover i {
  color: #1e3a8a;
  transform: scale(1.1) rotate(10deg);
}

.feature-item h3 {
  font-size: 1.6rem;
  color: #1e3a8a;
  margin-bottom: 20px;
  font-weight: 600;
}

.feature-item p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Courses Section Styles */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.course-card {
  background: var(--glass-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

.course-card h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.course-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.course-card ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  flex-grow: 1; /* Allows cards to stretch to equal height */
}

.course-card li {
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.course-card li::before {
  content: "\f058"; /* Font Awesome check-circle icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 0.9em;
}

/* Admissions Section Styles */
.admissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.admission-card {
  background: var(--glass-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.admission-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

.admission-card h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.admission-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.admission-card p {
  color: var(--text-color);
  margin-bottom: 15px;
  flex-grow: 1;
}

.admission-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.admission-card li {
  color: var(--text-color);
  font-size: 1.05rem;
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.admission-card li::before {
  content: "\f00c"; /* Font Awesome check icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 0.9em;
}

.admission-card .btn {
  margin-top: auto; /* Push button to bottom */
  align-self: flex-start;
}

.people-grid {
  /* New block for people-grid directly */
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Strict 3-column layout */
  gap: 30px;
  margin-top: 40px;
  max-width: 960px; /* To maintain a good width for 3 columns */
  margin-left: auto;
  margin-right: auto;
}

.people-grid .person {
  text-align: center;
  padding: 20px;
  background: var(--glass-light);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.people-grid .person:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.people-grid .person img {
  width: 150px; /* Fixed width */
  height: 150px; /* Fixed height */
  object-fit: cover; /* Crop to cover area */
  border-radius: 50%; /* Circular images */
  margin-bottom: 15px;
  border: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.people-grid .person img:hover {
  transform: scale(1.08) rotate(3deg);
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.principal-founder-row {
  display: flex;
  justify-content: center;
  gap: 30px; /* Space between the two persons */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  margin-bottom: 30px; /* Space below this row */
}

/* Specific styling for people-grid in About Us section */
.about-people-section .people-grid {
  display: flex; /* Make it a flex container */
  flex-direction: column; /* Stack its main children vertically */
  align-items: center; /* Center the principal-founder-row */
  gap: 30px; /* Maintain consistent spacing */
  max-width: 960px; /* Constrain its width */
  margin: 40px auto; /* Center it */
}

/* Ensure the principal-founder-row within this context behaves as expected */
.about-people-section .principal-founder-row {
  width: 100%; /* Take full width of its new flex parent */
  display: flex; /* Explicitly ensure it's flex */
  justify-content: center; /* Center its children */
  gap: 30px; /* Space between the two persons */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  margin-bottom: 0; /* Remove redundant margin if parent flex handles spacing */
}

/* Explicitly size the person items within this row */
.about-people-section .principal-founder-row .person {
  flex-basis: 45%; /* Allow two items to comfortably fit side-by-side with gap */
  max-width: 45%; /* Ensure they don't grow too much */
  /* Other person styles (padding, background, etc.) remain */
}

/* Media query for smaller screens to ensure stacking within the principal-founder-row */
@media (max-width: 650px) {
  .about-people-section .principal-founder-row .person {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* News and Events Section */
.staggered-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.news-feed,
.events-feed {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateZ(0);
  transition: all 0.4s ease;
}

.news-feed:hover,
.events-feed:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.news-feed h3,
.events-feed h3 {
  font-size: 2rem;
  color: #1e3a8a;
  margin-bottom: 30px;
  font-weight: 600;
}

.news-item,
.event-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.news-item:hover,
.event-item:hover {
  transform: translateX(10px);
}

.news-item:last-child,
.event-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-item h4,
.event-item h4 {
  font-size: 1.3rem;
  color: #1e3a8a;
  margin-bottom: 8px;
  font-weight: 600;
}

.date {
  color: #3b82f6;
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.read-more {
  display: inline-block;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  margin-top: 25px;
  position: relative;
}

.read-more::after {
  content: "→";
  margin-left: 8px;
  transition: margin-left 0.3s ease;
}

.read-more:hover {
  color: #1e3a8a;
  transform: translateX(5px);
}

.read-more:hover::after {
  width: 100%;
}

/* Testimonials Section */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.testimonial-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.5s ease;
  transform: translateZ(0);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.testimonial-item::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 4rem;
  color: rgba(59, 130, 246, 0.2);
  font-family: Georgia, serif;
}

.testimonial-item:hover {
  transform: translateY(-15px) rotateX(5deg) scale(1.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.testimonial-item p {
  font-style: italic;
  margin-bottom: 25px;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  ); /* Responsive columns */
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px; /* Adjusted max-width for better use of space */
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(
      3,
      1fr
    ); /* Enforce 3 columns on larger screens */
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr); /* 1 column on small screens */
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: translateZ(0); /* For smoother animation */
  aspect-ratio: 16/9; /* Maintain aspect ratio */
  background-color: var(--background-dark); /* Fallback */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-item .gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--light-text-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  text-align: center;
}

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

.gallery-item .gallery-overlay h4 {
  color: var(--light-text-color);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.gallery-item .gallery-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--background-light);
  color: var(--secondary-color);
  font-size: 2rem;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.gallery-placeholder i {
  font-size: 3rem;
  margin-bottom: 10px;
}

.gallery-item:hover .gallery-placeholder {
  transform: scale(0.95);
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.author {
  font-weight: 700;
  color: #1e3a8a;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* Call to Action Section */
.call-to-action-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 100px 60px;
  border-radius: 30px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.call-to-action-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
  animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(60px) translateY(60px);
  }
}

.call-to-action-section h2 {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.call-to-action-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Footer - Professional Design with 3D Effects */
.site-footer,
.new-site-footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 50%, #1e293b 100%);
  color: #fff;
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  perspective: 1000px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(
      45deg,
      rgba(59, 130, 246, 0.05) 0%,
      transparent 50%,
      rgba(16, 185, 129, 0.05) 100%
    );
  z-index: 1;
}

.footer-content,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
  transform: translateZ(0);
}

.footer-section {
  position: relative;
}

.footer-section h4 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 2px;
}

.footer-section.about-us h4::before {
  content: "\f19c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #3b82f6;
  font-size: 1.3em;
}

.footer-section.quick-links h4::before {
  content: "\f0c1";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #3b82f6;
  font-size: 1.3em;
}

.footer-section.contact-info h4::before {
  content: "\f095";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #3b82f6;
  font-size: 1.3em;
}

.footer-section.social-media h4::before {
  content: "\f1e0";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #3b82f6;
  font-size: 1.3em;
}

.footer-section p,
.footer-section li {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.footer-section li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

.footer-section li::before {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 0.9em;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-section a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.footer-section a:hover::after {
  width: 100%;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: #3b82f6;
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.social-links a:hover::before {
  width: 100%;
  height: 100%;
}

.social-links a:hover {
  border-color: var(--secondary-color);
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.social-links a i {
  position: relative;
  z-index: 2;
  font-size: 1.3em;
  transition: color 0.3s ease;
}

.social-links a:hover i {
  color: #fff;
}

.footer-bottom {
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-main {
    flex-direction: row; /* Changed to row for horizontal alignment */
    justify-content: space-between; /* Distribute items */
    align-items: center; /* Vertically align */
    padding: 15px 20px; /* Adjusted padding for mobile header */
    gap: 10px; /* Smaller gap for mobile */
  }

  .header-center-identity {
    flex-grow: 1; /* Allow it to take available space */
    text-align: center; /* Ensure text is centered within its space */
    margin: 0; /* Remove top/bottom margin */
  }
  .header-center-identity h1 {
    font-size: 1.5rem; /* Smaller font size for mobile */
    margin-bottom: 0;
  }
  .header-center-identity p {
    font-size: 0.9rem; /* Even smaller tagline */
    display: none; /* Potentially hide tagline on very small screens if space is critical */
  }

  .main-navigation {
    /* The entire nav element */
    position: fixed; /* Fixed position for mobile slide-in */
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 80px 20px 20px;
    margin: 0;
    border-radius: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transform: translateX(100%); /* Start off-screen */
    transition:
      transform 0.4s ease-out,
      visibility 0s linear 0.4s,
      opacity 0.4s ease-out;
    z-index: 9998; /* Below toggle, above overlay */
    visibility: hidden; /* Hide the nav by default */
    opacity: 0;
    overflow-y: auto;
  }

  .main-navigation.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0); /* Slide in */
    transition:
      transform 0.4s ease-out,
      visibility 0s linear 0s,
      opacity 0.4s ease-out;
  }

  .main-navigation ul {
    /* The ul inside the nav element */
    list-style: none;
    display: flex; /* Changed from default block to flex for column layout */
    flex-direction: column; /* Stack links vertically */
    justify-content: flex-start; /* Align items to the start */
    padding: 0;
    margin: 0;
  }

  .main-navigation li {
    margin: 10px 0;
  }

  .main-navigation a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 15px 25px;
    transition: all 0.4s ease;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    display: block; /* Make links full width for better touch targets */
    text-align: left;
    will-change: transform, opacity;
    /* keep full-width touch targets on mobile */
    -webkit-font-smoothing: antialiased;
  }

  .main-navigation a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0; /* keep anchored */
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent
    );
    transform: translateX(-100%); /* GPU-friendly */
    transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
    will-change: transform;
    pointer-events: none;
    z-index: 0;
  }

  .main-navigation a:hover::before {
    transform: translateX(100%); /* slide via transform not left */
  }

  .main-navigation a:hover,
  .main-navigation a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translate3d(0, -3px, 0) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  }

  .mobile-nav-toggle {
    display: block; /* Always visible on mobile after HTML change */
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e3a8a;
    z-index: 9999; /* Highest z-index */
    position: fixed; /* Stays in place */
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
  }

  .mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 1);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section h2 {
    font-size: 2.2rem;
  }

  .staggered-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .call-to-action-section {
    padding: 60px 30px;
  }

  .call-to-action-section h2 {
    font-size: 2rem;
  }

  .header-logo-right {
    /* Hides DDU logo on mobile */
    display: none !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section {
    padding: 50px 0;
  }

  .section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .feature-item,
  .testimonial-item {
    padding: 25px 20px;
  }
}


/* Facilities Section Styles */
.facilities-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.facility {
  background: var(--glass-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.facility:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

.facility h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  padding-left: 50px; /* Space for icon */
  display: flex;
  align-items: center;
}

.facility h3::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  font-size: 1.5em;
  line-height: 1;
}

/* Specific icons for facilities - you'll need to define content: for each */
.facility:nth-child(1) h3::before {
  content: "\f19d";
} /* Graduation Cap for Quality Education */
.facility:nth-child(2) h3::before {
  content: "\f206";
} /* Bus for Bus Facility */
.facility:nth-child(3) h3::before {
  content: "\f02d";
} /* Book for Library */
.facility:nth-child(4) h3::before {
  content: "\f1e3";
} /* Running for Sports */
.facility:nth-child(5) h3::before {
  content: "\f0c0";
} /* Users for NSS */
.facility:nth-child(6) h3::before {
  content: "\f006";
} /* Star for Awards */
.facility:nth-child(7) h3::before {
  content: "\f02d";
} /* Book for Textbooks */
.facility:nth-child(8) h3::before {
  content: "\f51e";
} /* Dollar sign for Scholarships */
.facility:nth-child(9) h3::before {
  content: "\f0f8";
} /* Hospital for Hostel (placeholder, consider a bed/building) */
.facility:nth-child(10) h3::before {
  content: "\f1ad";
} /* Building for Study Center */

.facility p {
  color: var(--text-color);
  margin-bottom: 0;
  flex-grow: 1;
}

/* Contact Section Styles */
.contact-info-details {
  background: var(--glass-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.contact-info-details p {
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 15px;
  position: relative;
  padding-left: 40px; /* Space for icon */
  display: flex;
  align-items: center;
}

.contact-info-details p:last-child {
  margin-bottom: 0;
}

.contact-info-details p strong {
  color: var(--primary-color);
  margin-right: 5px;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-info-details p::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  font-size: 1.2em;
  line-height: 1;
}

.contact-info-details p:nth-of-type(1)::before {
  content: "\f041";
} /* Map-marker for Address */
.contact-info-details p:nth-of-type(2)::before {
  content: "\f0e0";
} /* Envelope for Email */
.contact-info-details p:nth-of-type(3)::before {
  content: "\f095";
} /* Phone for Phone */
.contact-info-details p:nth-of-type(4)::before {
  content: "\f0ac";
} /* Globe for Website */

.contact-info-details a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-details a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.map-container iframe {
  border-radius: 20px; /* Match container border-radius */
  display: block; /* Remove extra space below iframe */
}

/* Contact Form Styles (Placeholder - if implemented later) */
.contact-form {
  background: var(--glass-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-color);
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

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

.contact-form button[type="submit"] {
  @extend .btn-primary; /* Inherit styles from btn-primary */
  width: auto;
  cursor: pointer;
  border: none;
  padding: 15px 40px;
  font-size: 1rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#admission-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.department-section {
  margin-bottom: 40px;
}

.department-section h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
}

/* Improve hover performance for nav links to avoid flicker */
.main-navigation ul,
.main-navigation a,
.main-navigation a::before {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* replace left-based animation with transform for GPU compositing */
.main-navigation a {
  will-change: transform, opacity;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  /* keep full-width touch targets on mobile */
  -webkit-font-smoothing: antialiased;
}

.main-navigation a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0; /* keep anchored */
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%); /* GPU-friendly */
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

.main-navigation a:hover::before {
  transform: translateX(100%); /* slide via transform not left */
}

/* ensure hover lift uses translate3d for GPU */
@media (hover: hover) {
  .main-navigation a:hover,
  .main-navigation a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translate3d(0, -3px, 0) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  }
}

/* Notice Section Styles */
.notice-container {
  margin-top: 20px;
}

.notice-item {
  background: #f9f9f9;
  border-left: 5px solid var(--primary-color);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 0 5px 5px 0;
}

.notice-item h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.notice-item .notice-date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 10px;
}

/* Events Section Styles */
.events-container {
  margin-top: 20px;
}

.event-item {
  background: #f9f9f9;
  border-left: 5px solid var(--accent-color);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 0 5px 5px 0;
}

.event-item h4 {
  color: var(--accent-color);
  margin-bottom: 5px;
}

