@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* font-family: "Segoe UI", sans-serif; */
  font-family: 'Poppins', sans-serif;
}

/* Color Variables */
:root {
  --navy: #102a43;
  --light-blue: #dceefb;
  --teal: #2cb1bc;
  --white: #ffffff;
  --text-dark: #243b53;
}

/* Top Bar */
.top-bar {
  background: var(--navy);
  color: var(--white);
  padding: 8px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.top-bar-jubilee {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.top-bar-jubilee img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(44, 177, 188, 0.3);
}

.top-bar-jubilee img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(44, 177, 188, 0.5);
}

.top-bar-left {
  display: flex;
  gap: 30px;
  flex: 1;
}

/* Navbar */
/* Branding Section */
.branding-section {
  background: var(--navy);
  color: var(--white);
  padding: 0 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--white);
  position: relative;
  z-index: 999;
  margin-top: 0;
}

.branding-logo-left {
  display: flex;
  align-items: center;
}

.branding-logo-left img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.branding-logo-left img:hover {
  transform: scale(1.05);
}

.branding-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}

.branding-center h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 45px;
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.branding-center p {
  font-size: 14px;
  margin: 4px 0 0 0;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.branding-jubilee {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.branding-jubilee img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.branding-jubilee img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Navbar */
.navbar {
  background: var(--navy);
  color: var(--white);
  padding: 4px 40px 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 3px solid var(--teal);
  position: relative;
  z-index: 1000;
  gap: 40px;
  transition: opacity 0.3s ease;
  overflow: visible;
}

.navbar.visible {
  display: flex;
  opacity: 1;
}

#nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: visible;
}

#nav-menu a {
  color: var(--white);
  margin-left: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

#nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

#nav-menu a:hover {
  color: var(--teal);
}

#nav-menu a:hover::after {
  transform: scaleX(1);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  gap: 6px;
  margin-left: auto;
}

.navbar-social-icons {
  display: none;
}

.navbar-social-icons a {
  color: var(--white);
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(44, 177, 188, 0.2);
  margin-right: 8px;
}

.navbar-social-icons a:hover {
  background-color: var(--teal);
  transform: scale(1.1);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--navy);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  border-radius: 5px;
  top: 100%;
  left: 0;
  overflow: visible;
}

.dropdown-content a {
  color: var(--white);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  margin-left: 0;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.dropdown-content a:first-child {
  border-radius: 5px 5px 0 0;
}

.dropdown-content a:last-child {
  border-radius: 0 0 5px 5px;
}

.dropdown-content a:hover {
  background-color: rgba(44, 177, 188, 0.2);
  color: var(--teal);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  padding: 0 60px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Slideshow Container */
.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide:hover img {
  filter: brightness(1.6) contrast(1.2) saturate(1.25);
  transform: scale(1.02);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transition:
    filter 0.4s ease,
    transform 0.4s ease;
}

.slide.active {
  opacity: 1;
}

.slide.active:hover img {
  filter: brightness(1.6) contrast(1.2) saturate(1.25);
  transform: scale(1.02);
}

.slide.active img {
  animation: zoomEffect 15s ease-out;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
  animation: slideInUp 0.8s ease-out 1s both;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.dot.active {
  background-color: #17a2b8;
  border-color: #17a2b8;
  box-shadow: 0 0 8px rgba(23, 162, 184, 0.6);
  transform: scale(1.15);
}

.fade {
  animation: fade 1.5s ease-in-out;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomEffect {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1);
  }
}

.hero-content {
  color: var(--white);
  max-width: 650px;
  position: relative;
  z-index: 2;
  animation: slideInLeft 0.8s ease-out;
}

.hero h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 35px;
  margin-bottom: 12px;
  animation: slideInDown 0.8s ease-out 0.2s both;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 16px;
  margin-bottom: 25px;
  animation: slideInUp 0.8s ease-out 0.4s both;
  opacity: 0.98;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero p.affiliation {
  font-size: 12px;
  margin-bottom: 14px;
  animation: slideInUp 0.8s ease-out 0.3s both;
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: block;
  padding-bottom: 14px;
  position: relative;
}

.hero p.affiliation::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.3) 100%);
  animation: slideInUp 0.8s ease-out 0.3s both;
}

.hero p.tagline {
  font-size: 16px;
  margin-bottom: 28px;
  animation: slideInUp 0.8s ease-out 0.5s both;
  font-weight: 600;
  opacity: 1;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  min-height: 24px;
  transition: opacity 0.5s ease;
  font-style: italic;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  padding: 14px 32px;
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
  font-weight: 600;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.8s ease-out 0.6s both;
  font-size: 15px;
  letter-spacing: 0.4px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(23, 162, 184, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), #1a9fa7);
  padding: 15px 40px;
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(44, 177, 188, 0.4);
}

/* Sections */
section {
  padding: 80px 40px;
}

.section-subtitle {
  color: var(--teal);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 40px;
  display: block;
}

/* About Section */
.about {
  background: linear-gradient(135deg, #f8fbff 0%, #f0f8fc 100%);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(44, 177, 188, 0.08);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(30px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-in-animation {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Staggered animation for items */
.feature-item:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-item:nth-child(4) {
  animation-delay: 0.4s;
}

.stat-box:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-box:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-box:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-box:nth-child(4) {
  animation-delay: 0.4s;
}

.about-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-content h2,
.academics h2,
.gallery h2 {
  color: var(--navy);
  font-size: 42px;
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.about-main {
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 177, 188, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-item > * {
  position: relative;
  z-index: 1;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(44, 177, 188, 0.2);
  border-color: var(--teal);
}

.feature-item:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
}

.feature-item h4 {
  color: var(--navy);
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-item p {
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
}

/* Statistics Section */
.stats-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3f5a 100%);
  color: var(--white);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.stats-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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.stats-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.stats-container h2 {
  color: var(--white);
  font-size: 42px;
  margin-bottom: 60px;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), #1aa89a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-box:hover {
  background: rgba(44, 177, 188, 0.2);
  transform: translateY(-8px);
  border-color: rgba(44, 177, 188, 0.5);
}

.stat-box:hover::before {
  transform: scaleX(1);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 10px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.stat-box:hover .stat-number {
  color: #fff;
  text-shadow: 0 0 20px rgba(44, 177, 188, 0.6);
}

.stat-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 15px;
}

.stat-bar {
  width: 60%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.stat-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: shimmer 2s infinite;
  opacity: 0;
}

.stat-box:hover .stat-bar {
  background: rgba(44, 177, 188, 0.4);
}

.stat-box:hover .stat-bar::after {
  opacity: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Academics Section */
.academics {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f5fb 100%);
  padding: 60px 40px;
  position: relative;
}

.academics-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.academics h2 {
  text-align: center;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin-top: 50px;
}

.card {
  background: var(--white);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), #1aa89a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(44, 177, 188, 0.25);
  border-color: var(--teal);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 20px;
}

.card h3 {
  color: var(--navy);
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 700;
}

.card p {
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-link {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.card-link:hover {
  color: var(--navy);
  transform: translateX(5px);
}

/* Gallery */
.gallery {
  background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.gallery::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(44, 177, 188, 0.08);
  border-radius: 50%;
}

.gallery-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.gallery h2 {
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.gallery-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
}

.gallery-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 45px rgba(44, 177, 188, 0.25);
  border-color: var(--teal);
}

.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
  background: #f0f0f0;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 177, 188, 0.85) 0%,
    rgba(16, 42, 67, 0.75) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-btn {
  background: var(--white);
  color: var(--teal);
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.gallery-btn:hover {
  background: var(--teal);
  color: var(--white);
  transform: scale(1.05);
}

.gallery-card h4 {
  padding: 20px 15px 10px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.gallery-card p {
  padding: 0 15px 15px;
  color: var(--text-dark);
  font-size: 14px;
  margin: 0;
}

.view-all-gallery {
  text-align: center;
}

/* Achievement Section */
.achievement-section {
  background: linear-gradient(135deg, #fff5e6 0%, #fff9f0 50%, #e6f7fb 100%);
  padding: 60px 40px;
  border-top: 5px solid var(--teal);
}

.achievement-container {
  max-width: 1200px;
  margin: 0 auto;
}

.achievement-header {
  text-align: center;
  margin-bottom: 50px;
}

.achievement-header h2 {
  color: var(--navy);
  font-size: 42px;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.achievement-subtitle {
  color: var(--teal);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.achievement-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.achievement-message {
  background: var(--white);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(44, 177, 188, 0.15);
  border-left: 6px solid var(--teal);
}

.achievement-message h3 {
  color: var(--navy);
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 700;
}

.winner-info {
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.achievement-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
}

.award-item {
  background: linear-gradient(135deg, var(--teal), #1aa89a);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(44, 177, 188, 0.3);
  transition: transform 0.3s ease;
}

.award-item:hover {
  transform: translateY(-3px);
}

.achievement-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.achievement-photo {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  background: white;
}

.achievement-photo:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(44, 177, 188, 0.3);
}

.achievement-photo img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.achievement-photo:hover img {
  transform: scale(1.05);
}

/* Responsive Achievement Section */
@media (max-width: 768px) {
  .achievement-section {
    padding: 40px 20px;
  }

  .achievement-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .achievement-header h2 {
    font-size: 32px;
  }

  .achievement-message {
    padding: 25px;
  }

  .achievement-message h3 {
    font-size: 24px;
  }

  .achievement-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievement-photo img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .achievement-section {
    padding: 30px 15px;
  }

  .achievement-header h2 {
    font-size: 24px;
  }

  .achievement-content {
    gap: 20px;
  }

  .achievement-message {
    padding: 20px;
  }

  .achievement-message h3 {
    font-size: 20px;
  }

  .winner-info {
    font-size: 14px;
  }

  .achievement-gallery {
    grid-template-columns: 1fr;
  }

  .achievement-photo img {
    height: 200px;
  }

  .achievement-awards {
    flex-direction: column;
  }

  .award-item {
    width: 100%;
    text-align: center;
  }

  /* Responsive Home Sections */
  section {
    padding: 50px 20px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-content h2,
  .academics h2,
  .gallery h2,
  .stats-container h2 {
    font-size: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 16px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .gallery-image-wrapper {
    height: 200px;
  }

  .feature-item {
    padding: 25px;
  }

  .card {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 15px;
  }

  .about-content h2,
  .academics h2,
  .gallery h2,
  .stats-container h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .about-main {
    font-size: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 14px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .card-icon {
    font-size: 36px;
  }

  .card h3 {
    font-size: 20px;
  }

  .feature-icon {
    font-size: 36px;
  }

  .feature-item h4 {
    font-size: 18px;
  }

  .gallery-image-wrapper {
    height: 180px;
  }

  .btn-primary {
    padding: 12px 30px;
    font-size: 14px;
  }
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: row;
    padding: 6px 15px;
    font-size: 12px;
    gap: 10px;
  }

  .top-bar-left {
    gap: 15px;
    flex: 1;
  }

  .top-bar-jubilee {
    width: 45px;
    height: 45px;
  }

  .top-bar-jubilee img {
    width: 42px;
    height: 42px;
  }

  .branding-section {
    padding: 16px 20px;
  }

  .branding-logo-left {
    gap: 8px;
  }

  .branding-logo-left img {
    width: 70px;
    height: 70px;
    object-fit: contain;
  }

  .branding-center h1 {
    font-size: 32px;
  }

  .branding-center p {
    font-size: 14px;
  }

  .branding-jubilee img {
    width: 85px;
    height: 85px;
    object-fit: contain;
  }

  .navbar {
    padding: 15px 20px;
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    max-height: none;
    visibility: visible;
    opacity: 1;
  }

  .hamburger {
    display: flex;
  }

  .navbar-social-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 10px;
  }

  nav,
  #nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 5px solid var(--white);
    z-index: 999;
    align-items: flex-start;
    width: 100%;
    display: flex;
  }

  nav.active,
  #nav-menu.active {
    max-height: 1000px;
  }

  nav a {
    margin-left: 18px;
    font-size: 14px;
  }

  #nav-menu a {
    margin-left: 0;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
  }

  nav a:first-child {
    padding-top: 10px;
  }

  nav a:last-child {
    border-bottom: none;
  }

  #nav-menu a:first-child {
    padding-top: 10px;
  }

  #nav-menu a:last-child {
    border-bottom: none;
  }

  .dropdown {
    display: block;
    width: 100%;
  }

  .dropdown > a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
  }

  .dropdown > a::after {
    content: "▼";
    position: absolute;
    right: 20px;
    font-size: 10px;
    transition: transform 0.3s ease;
  }

  .dropdown > a.dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .dropdown-content {
    position: static;
    display: none;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    min-width: 100%;
    z-index: 1;
    border-radius: 0;
    top: auto;
    left: auto;
  }

  .dropdown-content.active {
    display: block;
  }

  #nav-menu .dropdown-content {
    position: static;
    display: none;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    min-width: 100%;
    z-index: 1;
    border-radius: 0;
    top: auto;
    left: auto;
  }

  #nav-menu .dropdown-content.active {
    display: block;
  }

  .dropdown-content a {
    padding: 12px 20px 12px 40px;
    margin-left: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown-content a:first-child {
    border-radius: 0;
  }

  .dropdown-content a:last-child {
    border-radius: 0;
    border-bottom: none;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .hero {
    padding: 0 20px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  /* Responsive section padding for tablets */
  .about,
  .academics,
  .gallery {
    padding: 50px 20px;
  }

  .stats-section {
    padding: 50px 20px;
  }

  .achievement-section {
    padding: 50px 20px;
  }

  .alumni-showcase {
    padding: 50px 20px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 14px 15px;
  }

  .branding-logo-left img {
    width: 60px;
    height: 60px;
    object-fit: contain;
  }

  .branding-center h1 {
    font-size: 24px;
  }

  .branding-center p {
    font-size: 12px;
  }

  .branding-jubilee img {
    width: 70px;
    height: 70px;
    object-fit: contain;
  }

  #nav-menu a {
    margin-left: 16px;
    font-size: 13px;
  }

  .dropdown > a {
    padding: 12px 15px;
  }

  .dropdown-content a {
    padding: 10px 15px 10px 35px;
  }
}

/* Ultra Small Mobile (320px) */
@media (max-width: 380px) {
  .navbar {
    padding: 12px 10px;
  }

  .branding-logo-left {
    gap: 5px;
    flex-shrink: 0;
  }

  .branding-logo-left img {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }

  .branding-center h1 {
    font-size: 18px;
  }

  .branding-center p {
    font-size: 11px;
  }

  .branding-jubilee img {
    width: 60px;
    height: 60px;
    object-fit: contain;
  }
    
  }

  .hamburger span {
    width: 20px;
    height: 2.5px;
  }

  nav a,
  #nav-menu a {
    padding: 12px 30px;
    font-size: 14px;
  }

  .dropdown > a {
    padding: 12px 15px;
    font-size: 14px;
  }

  .dropdown-content a {
    padding: 10px 15px 10px 30px;
    font-size: 13px;
  }
}

/* Footer */
footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 15px;
}

/* Gallery Page Specific Styles */
.gallery-wrapper {
  max-width: 100% !important;
  width: 100%;
  padding: 0;
}

.gallery-container {
  max-width: 100% !important;
  width: 100%;
  margin: 0;
  padding: 0 40px;
}

.category-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: 20px !important;
  margin: 50px auto !important;
  max-width: 1200px !important;
  padding: 0 20px !important;
}

.category-card {
  flex: 1 1 calc(25% - 20px);
  min-width: 200px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .category-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .category-card {
    flex: 1 1 calc(50% - 20px);
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .category-card {
    flex: 1 1 100%;
    min-width: auto;
  }
}

/* Alumni Showcase Section */
.alumni-showcase {
  background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 40px;
}

.alumni-showcase::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(44, 177, 188, 0.08);
  border-radius: 50%;
}

.alumni-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.alumni-showcase h2 {
  text-align: center;
  color: var(--navy);
  font-size: 40px;
  margin-bottom: 15px;
  font-weight: 800;
}

.alumni-showcase .section-subtitle {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 50px;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  margin-bottom: 40px;
}

.alumni-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
}

.alumni-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 45px rgba(44, 177, 188, 0.25);
  border-color: var(--teal);
}

.alumni-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
}

.alumni-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.alumni-card:hover img {
  transform: scale(1.08);
}

.alumni-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 177, 188, 0.85) 0%,
    rgba(16, 42, 67, 0.75) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.alumni-card:hover .alumni-overlay {
  opacity: 1;
}

.alumni-overlay p {
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
}

.alumni-card h4 {
  padding: 20px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.alumni-designation {
  padding: 0 20px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}

.alumni-year {
  padding: 0 20px 20px 20px;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.3px;
}

/* Special styling for alumnus4 (second card) - portrait orientation fix */
.alumni-card:nth-child(2) img {
  object-fit: contain;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.alumni-cta {
  text-align: center;
  padding-top: 20px;
}

.alumni-cta .btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 14px 35px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.alumni-cta .btn:hover {
  background: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(44, 177, 188, 0.3);
}

/* Responsive Design Updates for Header and Hero */
@media (max-width: 1024px) {
  .hero {
    padding: 0 40px;
  }
  
  .hero h2 {
    font-size: 42px;
  }
  
  .navbar {
    gap: 25px;
  }
  
  #nav-menu a {
    font-size: 13px;
  }
  
  .slider-dots {
    bottom: 25px;
    gap: 10px;
  }
  
  .dot {
    width: 11px;
    height: 11px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 6px 20px;
    font-size: 11px;
    flex-direction: column;
    gap: 6px;
  }
  
  .branding-section {
    padding: 12px 20px;
  }
  
  .branding-logo-left img {
    width: 70px;
    height: 70px;
  }
  
  .branding-center h1 {
    font-size: 28px;
  }
  
  .branding-center p {
    font-size: 12px;
  }
  
  .branding-jubilee img {
    width: 65px;
    height: 65px;
  }
  
  .navbar {
    padding: 12px 20px;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  #nav-menu {
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  #nav-menu a {
    font-size: 12px;
    padding: 6px 0;
  }
  
  .hero {
    height: 65vh;
    padding: 0 20px;
  }
  
  .hero h2 {
    font-size: 30px;
    margin-bottom: 12px;
  }
  
  .hero p {
    font-size: 13px;
    margin-bottom: 18px;
  }
  
  .hero p.affiliation {
    font-size: 11px;
    margin-bottom: 11px;
  }
  
  .hero p.tagline {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .btn {
    padding: 12px 28px;
    font-size: 14px;
  }
  
  .slider-dots {
    bottom: 20px;
    gap: 9px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 4px 12px;
    font-size: 10px;
  }
  
  .branding-section {
    padding: 10px 15px;
  }
  
  .branding-logo-left img {
    width: 60px;
    height: 60px;
  }
  
  .branding-center h1 {
    font-size: 20px;
  }
  
  .branding-center p {
    font-size: 11px;
  }
  
  .branding-jubilee img {
    width: 55px;
    height: 55px;
  }
  
  .navbar {
    padding: 10px 15px;
    gap: 8px;
  }
  
  #nav-menu a {
    font-size: 11px;
    padding: 4px 0;
  }
  
  .hero {
    height: 55vh;
    padding: 0 15px;
  }
  
  .hero h2 {
    font-size: 24px;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
  }
  
  .hero p {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .hero p.affiliation {
    font-size: 10px;
    margin-bottom: 8px;
  }
  
  .hero p.tagline {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .btn {
    padding: 11px 24px;
    font-size: 13px;
  }
  
  .slider-dots {
    bottom: 15px;
    gap: 8px;
  }
  
  .dot {
    width: 9px;
    height: 9px;
  }

  .alumni-card h4 {
    font-size: 15px;
    padding: 15px 15px 10px 15px;
  }

  .alumni-designation {
    font-size: 13px;
    padding: 0 15px;
    margin-bottom: 6px;
  }

  .alumni-year {
    font-size: 11px;
    padding: 0 15px 15px 15px;
  }
}
