* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #002b5c;
  --gold: #FFD700;
  --white: #ffffff;
  --gray-light: #f2f2f2;
  --gray: #64748b;
  --border: #e2e8f0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--navy);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navigation */
.nav {
  background-color: var(--navy);
  border-bottom: 1px solid var(--border);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  /* center the nav-links */
  align-items: center;
  height: 64px;
  position: relative;
}

/* New header/nav UI */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  background: linear-gradient(180deg, rgba(0, 43, 92, 0.96), rgba(0, 43, 92, 0.9));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  overflow: visible !important;
}

.header-nav .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 1rem;
  overflow: visible !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.brand-text {
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.6px;
}

.main-nav {
  flex: 1;
  overflow: visible !important;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

.nav-links li {
  display: inline-flex;
}

.nav-links a,
.nav-links button.dropbtn {
  color: var(--white);
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  background: transparent;
}

.nav-links a:hover,
.nav-links button.dropbtn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.btn-ghost {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
}

/* Mobile menu (slide-in) */
.mobile-menu {
  position: fixed;
  right: -100%;
  top: 64px;
  width: 320px;
  height: calc(100% - 64px);
  background: linear-gradient(180deg, #fff, #f7fbff);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.12);
  transition: right 260ms ease;
  z-index: 1250;
  padding: 1.2rem;
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  display: block;
  margin-left: auto;
}

.mobile-nav a {
  display: block;
  padding: 10px 8px;
  color: var(--navy);
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }
}


.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}


.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 20px;
  /* pushes menu button to right while links stay centered */
}

/* Dropdown styling */
.dropdown {
  position: relative;
  display: inline-block;
  overflow: visible !important;
}

.dropbtn {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: white;
  min-width: 200px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 43, 92, 0.1);
  padding: 10px 0;
  z-index: 99999;
  animation: dropdownFade 0.2s ease-out;
}

/* Pseudo-element to bridge the gap and prevent hover loss */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
  color: var(--navy);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  transition: 0.2s;
  text-align: center;
}

.dropdown-content a:hover {
  background-color: var(--gray-light);
  color: var(--navy);
}

.dropdown-content.show,
.dropdown:hover .dropdown-content {
  display: block;
}


/* Fullscreen Video */
/* Hero section: full viewport minus nav */
.hero {
  position: relative;
  height: 100vh;
  /* make hero fill the full viewport */
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

/* Dark Overlay */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 0;
}

/* Content Container */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Logo Styling */
.hero-logo {
  width: 150px;
  height: 150px;
  background: #fff;
  border-radius: 50%;
  padding: 15px;
  margin: 0 auto 15px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
  animation: logoGlow 2s infinite alternate;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Title Highlight */
.hero-title {
  font-size: 1 rem;
  font-weight: 800;
  background: linear-gradient(90deg, #FFD700, #FFFFFF, #FFD700);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.9),
    0 0 40px rgba(255, 215, 0, 0.6),
    0 0 60px rgba(255, 255, 255, 0.4);
  animation: glowPulse 2.5s infinite alternate ease-in-out, shine 3s infinite linear;
  margin-bottom: 10px;
}

/* Tagline highlight */
.hero-tagline {
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(255, 215, 0, 0.5);
  animation: glowPulse 2.5s infinite alternate ease-in-out;
  opacity: 1;
}

/* Since text */
.hero-since {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFD700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 1),
    0 0 30px rgba(255, 215, 0, 0.7);
  margin-bottom: 8px;
}

/* Logo glow */
@keyframes logoGlow {
  from {
    transform: scale(1);
    filter: brightness(1);
  }

  to {
    transform: scale(1.05);
    filter: brightness(1.3);
  }
}

/* Text glow pulse */
@keyframes glowPulse {
  from {
    filter: brightness(1);
  }

  to {
    filter: brightness(1.4);
  }
}

/* Shine moving text */
@keyframes shine {
  0% {
    background-position: -200%;
  }

  100% {
    background-position: 200%;
  }
}

/* Extra shine effect */
.hero-title {
  background-size: 200%;
  background-position: 0%;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-tagline {
    font-size: 1.6rem;
  }
}





/* Section Styles */
.section {
  padding: 4rem 1rem;
}

.section-alt {
  background-color: var(--gray-light);
}

.section-container {
  max-width: 56rem;
  margin: 0 auto;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  width: 100%;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.section-title span {
  position: relative;
  display: inline-block;
}

.section-title span::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(255, 215, 0, 0.3) 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.section-text {
  color: var(--gray);
  line-height: 1.8;
}

.section-text p {
  margin-bottom: 1rem;
}

.section-text p:last-child {
  margin-bottom: 0;
}

.text-center {
  text-align: center;
}

/* Mentees Section Styling */
.mentees-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.mentees-column {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 14px;
  border: 2px solid rgba(255, 215, 0, 0.15);
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 43, 92, 0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mentees-column:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 16px 50px rgba(255, 215, 0, 0.12), 0 10px 30px rgba(0, 43, 92, 0.12);
}

.mentees-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mentees-subtitle::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(255, 215, 0, 0.3) 100%);
  border-radius: 2px;
}

.mentees-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mentees-list li {
  padding: 12px 0;
  padding-left: 24px;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
  transition: all 0.2s ease;
}

.mentees-list li:last-child {
  border-bottom: none;
}

.mentees-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

.mentees-list li:hover {
  color: var(--gold);
  padding-left: 28px;
}

/* Responsive: Stack on tablets */
@media (max-width: 768px) {
  .mentees-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem auto;
  }

  .mentees-column {
    padding: 2rem 1.5rem;
  }

  .mentees-subtitle {
    font-size: 1.1rem;
  }
}

/* Responsive: Mobile */
@media (max-width: 480px) {
  .mentees-container {
    gap: 1.5rem;
    margin: 1.5rem auto;
    padding: 0 0.75rem;
  }

  .mentees-column {
    padding: 1.5rem 1rem;
  }

  .mentees-list li {
    padding: 10px 0;
    padding-left: 22px;
    font-size: 0.9rem;
  }

  .mentees-list li::before {
    top: 10px;
  }
}

/* Staff Committee Section */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.staff-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 16px;
  border: 2px solid rgba(255, 215, 0, 0.15);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 43, 92, 0.08);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.staff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(255, 215, 0, 0.3) 100%);
}

.staff-card:hover {
  transform: translateY(-12px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(255, 215, 0, 0.12), 0 12px 30px rgba(0, 43, 92, 0.1);
}

.staff-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.staff-position {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
}

/* Responsive: 3 columns on large tablet */
@media (max-width: 1024px) {
  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* Responsive: 2 columns on tablet */
@media (max-width: 768px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 2rem auto;
  }

  .staff-card {
    padding: 1.5rem 1.2rem;
  }

  .staff-name {
    font-size: 0.95rem;
  }

  .staff-position {
    font-size: 0.85rem;
  }
}

/* Responsive: 1 column on mobile */
@media (max-width: 480px) {
  .staff-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 1.5rem auto;
    padding: 0 0.75rem;
  }

  .staff-card {
    padding: 1.3rem 1rem;
  }

  .staff-name {
    font-size: 0.9rem;
  }

  .staff-position {
    font-size: 0.8rem;
  }
}

/* I&E Faculty Section */
.faculty-category {
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 12px;
  padding: 2rem;
  border: 2px solid rgba(255, 215, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 43, 92, 0.06);
}

.faculty-category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faculty-category-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(255, 215, 0, 0.3) 100%);
  border-radius: 2px;
}

.faculty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.faculty-table thead {
  background: linear-gradient(135deg, rgba(0, 43, 92, 0.08) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.faculty-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.faculty-table td {
  padding: 0.9rem 1rem;
  color: var(--navy);
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
}

.faculty-table tbody tr {
  transition: all 0.2s ease;
}

.faculty-table tbody tr:hover {
  background-color: rgba(255, 215, 0, 0.03);
}

.faculty-table tbody tr:last-child td {
  border-bottom: none;
}

.faculty-table th:first-child,
.faculty-table td:first-child {
  width: 40%;
}

.faculty-table th:nth-child(2),
.faculty-table td:nth-child(2) {
  width: 35%;
}

.faculty-table th:nth-child(3),
.faculty-table td:nth-child(3) {
  width: 25%;
}

/* Responsive Tables */
@media (max-width: 1024px) {
  .faculty-table {
    font-size: 0.85rem;
  }

  .faculty-table th,
  .faculty-table td {
    padding: 0.8rem 0.7rem;
  }
}

@media (max-width: 768px) {
  .faculty-category {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }

  .faculty-category-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
  }

  .faculty-table {
    font-size: 0.8rem;
  }

  .faculty-table th,
  .faculty-table td {
    padding: 0.6rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .faculty-category {
    padding: 1rem 0.75rem;
    margin-bottom: 1.5rem;
  }

  .faculty-category-title {
    font-size: 0.95rem;
  }

  .faculty-table {
    font-size: 0.75rem;
  }

  .faculty-table th,
  .faculty-table td {
    padding: 0.5rem 0.4rem;
  }

  .faculty-table th:first-child,
  .faculty-table td:first-child {
    width: 45%;
  }

  .faculty-table th:nth-child(2),
  .faculty-table td:nth-child(2) {
    width: 35%;
  }

  .faculty-table th:nth-child(3),
  .faculty-table td:nth-child(3) {
    width: 20%;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.achievement-slider {
  position: relative;
  width: 100%;
  max-width: 1000px;
  /* increased width for larger cards */
  margin: 2.5rem auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.slide {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  animation: slideFade 0.6s ease-in-out;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: auto;
  /* keeps aspect ratio */
  max-height: 520px;
  /* larger max height for bigger cards */
  object-fit: cover;
  /* fill card area while preserving aspect */
  border-radius: 12px;
  border: 4px solid var(--gold);
  display: block;
  margin: 0 auto;
}

.slide-text {
  font-size: 1.125rem;
  margin-top: 1rem;
  color: var(--navy);
  font-weight: 700;
}

.slide-text mark {
  background: var(--gold);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: var(--gold);
  border: none;
  padding: 14px 18px;
  /* larger click target */
  font-size: 2rem;
  /* larger chevrons */
  cursor: pointer;
  border-radius: 50%;
  transition: 0.18s;
  z-index: 6;
}

.prev:hover,
.next:hover {
  background: var(--gold);
  color: var(--navy);
}

.prev {
  left: 12px;
}

.next {
  right: 12px;
}

/* ✔ FIXED animation (renamed to avoid duplicate fadeIn) */
@keyframes slideFade {
  from {
    opacity: 0.2;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Recent Events Section */
.events {
  padding: 80px 20px;
  background-color: #f5f5f5;
}

.events .section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #1e3a5f;
  margin-bottom: 50px;
  font-weight: 700;
  letter-spacing: 2px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}

.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ecosystem network styles */
.ecosystem-network {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 520px;
  margin: 2.5rem auto 3rem;
  background: linear-gradient(180deg, rgba(0, 43, 92, 0.03), rgba(255, 255, 255, 0.02));
  border-radius: 14px;
  padding: 1rem;
  overflow: visible;
}

.ecosystem-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ecosystem-svg .connector {
  stroke: rgba(0, 43, 92, 0.12);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.06));
}

/* Differentiate college vs student tie-lines */
.ecosystem-svg .connector.college {
  stroke: var(--navy);
  stroke-width: 3.6;
  opacity: 0.95;
}

.ecosystem-svg .connector.student {
  stroke: #FFD166;
  /* warm gold */
  stroke-width: 3.2;
  stroke-dasharray: 8 8;
  stroke-linecap: round;
  opacity: 0.95;
  transform-origin: 50% 50%;
  animation: dashFlow 6s linear infinite;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -64;
  }
}

.node {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  min-height: 72px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 43, 92, 0.08);
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.22s cubic-bezier(.2, .9, .2, 1), box-shadow 0.22s;
  text-align: center;
}

.node:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 43, 92, 0.14);
}

.node.center {
  width: 200px;
  height: auto;
  padding: 18px;
  background: linear-gradient(135deg, var(--gold), #fff 60%);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 20px 50px rgba(255, 215, 0, 0.12);
}

.node-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.node-sub {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 6px;
  opacity: 0.0;
  transform: translateY(6px);
  transition: opacity 0.22s, transform 0.22s;
}

.node:hover .node-sub,
.node:focus .node-sub {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .ecosystem-network {
    height: 900px;
  }

  .node {
    width: 160px;
  }

  .node.center {
    left: calc(50% - 90px) !important;
    top: calc(45% - 50px) !important;
  }
}

@media (max-width: 520px) {
  .ecosystem-network {
    height: auto;
    padding: 2rem 1rem;
  }

  .ecosystem-svg {
    display: none;
  }

  .node {
    position: relative;
    width: 100%;
    margin: 0.6rem auto;
  }

  .node.center {
    order: -1;
  }
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.event-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-image {
  transform: scale(1.1);
}

.event-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 95, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card:hover .event-overlay {
  opacity: 1;
}

.view-gallery-btn {
  padding: 12px 24px;
  background: #d4af37;
  color: #1e3a5f;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.view-gallery-btn:hover {
  background: white;
  transform: scale(1.05);
}

.event-info {
  padding: 20px;
}

.event-date {
  display: inline-block;
  background: #d4af37;
  color: #1e3a5f;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.event-title {
  color: #1e3a5f;
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.event-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  gap: 20px;
  animation: fadeIn 0.3s ease;
}

.gallery-modal.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-close:hover {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--gold);
}

.gallery-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  gap: 20px;
}

.gallery-slides {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.gallery-main-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: rgba(0, 0, 0, 0.3);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 24px;
  padding: 20px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.gallery-nav:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.gallery-prev {
  left: -60px;
}

.gallery-next {
  right: -60px;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90vw;
  max-height: 100px;
  overflow-y: auto;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: #d4af37;
}

/* Certificates: preserve original aspect ratio in grid thumbnails */
/* Premium certificate grid styling - 5 columns in one row */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 2rem auto;
  align-items: stretch;
}

.cert-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 16px;
  border: 2px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 43, 92, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.cert-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(255, 215, 0, 0.3) 100%);
  z-index: 1;
}

.cert-item:hover {
  transform: translateY(-16px) scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 24px 48px rgba(255, 215, 0, 0.16), 0 16px 32px rgba(0, 43, 92, 0.12);
}

.cert-thumb {
  width: 90%;
  height: auto;
  max-height: 1000px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 43, 92, 0.08));
  transition: filter 0.35s ease;
  position: relative;
  z-index: 2;
}

.cert-item:hover .cert-thumb {
  filter: drop-shadow(0 14px 28px rgba(0, 43, 92, 0.16));
}

/* Responsive: 3 columns on large tablet */
@media (max-width: 1024px) {
  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .cert-item {
    min-height: 240px;
  }

  .activity-links-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .pdf-link {
    min-height: 135px;
  }
}

/* Responsive: 2 columns on tablet */
@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .cert-item {
    min-height: 220px;
  }

  .activity-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Responsive: 1 column on mobile */
@media (max-width: 480px) {
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cert-item {
    min-height: 200px;
    padding: 12px;
  }

  .cert-thumb {
    max-height: 160px;
  }

  .activity-links-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pdf-link {
    min-height: 120px;
    padding: 14px;
  }
}

/* IIC Activity Links - 5 columns grid */
.activity-links-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 2rem auto;
}

/* IIC Activity Links styling */
.pdf-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
  border: 2px solid rgba(255, 215, 0, 0.15);
  border-radius: 14px;
  text-decoration: none;
  color: var(--navy);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 30px rgba(0, 43, 92, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  min-height: 145px;
  position: relative;
  overflow: hidden;
}

.pdf-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.03), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pdf-link:hover {
  transform: translateY(-12px) scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(255, 215, 0, 0.12), 0 12px 30px rgba(0, 43, 92, 0.1);
}

.pdf-link:hover::before {
  opacity: 1;
}


.pdf-link p {
  color: var(--navy);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.3;
}

.pdf-link span {
  display: block;
  margin-top: 4px;
}



.gallery-counter {
  color: white;
  margin-top: 15px;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .events .section-title {
    font-size: 1.8rem;
  }

  .gallery-nav {
    padding: 10px 8px;
    font-size: 18px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .gallery-thumb {
    width: 60px;
    height: 45px;
  }
}


/* Contact Section */
.contact-card {
  background-color: var(--navy);
  color: var(--white);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .incubation-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-person {
  text-align: center;
}

.contact-person h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-person p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.contact-icon:hover {
  transform: scale(1.1);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.incubation-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.incubation-grid {
  display: grid;
  gap: 1.5rem;
}

.incubation-person p {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.incubation-person .contact-icon {
  width: 36px;
  height: 36px;
}

.incubation-person .contact-icon svg {
  width: 16px;
  height: 16px;
}

/* Footer */
.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 3rem 1rem;
}

.footer-container {
  max-width: 72rem;
  margin: 0 auto;
}

/* Footer Grid – 4 columns */
.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    /* brand + 3 sections */
    align-items: start;
  }
}

/* Brand Section */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Circular Logo */
.footer-logo {
  width: 70px;
  height: 70px;
  padding: 10px;
  background-color: var(--white);
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Brand Text */
.footer-brand h2 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
}

/* Headings */
.footer h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Lists */
.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--white);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--gold);
}

/* Address */
.footer-address {
  display: flex;
  gap: 0.5rem;
}

.footer-address svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Mobile View */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
  }


  .footer-logo {
    width: 60px;
    height: 60px;
    padding: 8px;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}


/* Ecosystem Tree Section */
.ecosystem-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 60px;
}

/* Tree Container */
.tree-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Root Node */
.tree-root {
  margin-bottom: 20px;
}

.root-node {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
  color: white;
  padding: 25px 50px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(30, 58, 95, 0.3);
  position: relative;
}

.root-node .node-name {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.root-node .node-date {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 5px;
}

/* Main Connector */
.main-connector {
  width: 4px;
  height: 40px;
  background: linear-gradient(180deg, #1e3a5f, #64748b);
  position: relative;
}

.main-connector::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: #64748b;
  border-radius: 2px;
}

/* Branches Container */
.branches-container {
  display: flex;
  gap: 60px;
  width: 100%;
  max-width: 1000px;
  justify-content: center;
  position: relative;
}

.branches-container::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 25%;
  right: 25%;
  height: 4px;
  background: #64748b;
}

/* Branch Styles */
.branch {
  flex: 1;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.branch::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  width: 4px;
  height: 20px;
  background: #64748b;
}

.branch-header {
  margin-bottom: 20px;
}

.branch-title-node {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

.branch-title-node.student {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

.branch-icon {
  font-size: 1.5rem;
}

.branch-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.branch-connector {
  width: 4px;
  height: 30px;
  background: #94a3b8;
}

/* Branch Items */
.branch-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  position: relative;
  padding-left: 30px;
}

.branch-items::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(180deg, #94a3b8, transparent);
}

/* Tree Item */
.tree-item {
  display: flex;
  align-items: center;
  position: relative;
}

.item-connector {
  width: 20px;
  height: 3px;
  background: #94a3b8;
  margin-right: 10px;
  position: relative;
}

.item-connector::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #64748b;
  border-radius: 50%;
}

/* Item Node */
.item-node {
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #10b981;
  flex: 1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.item-node:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.item-node.student {
  border-left-color: #8b5cf6;
}

.item-node .item-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a5f;
}

.item-node .item-full {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 3px;
}

.item-node .item-date {
  display: inline-block;
  font-size: 0.75rem;
  color: white;
  background: linear-gradient(135deg, #10b981, #059669);
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
}

.item-node.student .item-date {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Responsive Design */
@media (max-width: 768px) {
  .branches-container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .branches-container::before {
    display: none;
  }

  .branch {
    max-width: 100%;
    width: 100%;
  }

  .branch::before {
    display: none;
  }

  .section-title {
    font-size: 2rem;
  }

  .root-node {
    padding: 20px 35px;
  }

  .root-node .node-name {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .ecosystem-section {
    padding: 50px 15px;
  }

  .branch-items {
    padding-left: 20px;
  }

  .item-node {
    padding: 12px 15px;
  }
}

.mou-affiliations {
  background: var(--gray-light, #f5f7fa);
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  z-index: 4;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy, #0A1F44);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 5;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.8rem;
  justify-items: center;
  align-items: center;
  margin-bottom: 3.5rem;
  padding: 0 1rem;
  position: relative;
  z-index: 5;
}

.logo-card {
  background: var(--white, #fff);
  width: 200px;
  height: 140px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  text-decoration: none;
  /* removes underline for <a> */
  cursor: pointer;
  position: relative;
  z-index: 6;
}

.logo-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 6px 20px rgba(203, 161, 53, 0.45);
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* prevents cutting */
  max-width: 130px;
  max-height: 90px;
  position: relative;
  z-index: 6;
}

/* ===== Centered Navigation Fix (as requested earlier) ===== */

.nav-container {
  display: flex;
  justify-content: center;
  /* centers navbar */
  align-items: center;
  height: 64px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  /* center align links */
  align-items: center;
}

/* ===== Optional: prevent logo grid overflow on very small screens ===== */

@media (max-width: 400px) {
  .logo-card {
    width: 120px;
    height: 90px;
    padding: 8px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* ===== Event Card Styling ===== */
.event-card {
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 43, 92, 0.15);
}

.event-card img {
  transition: transform 0.3s ease;
}

.event-card:hover img {
  transform: scale(1.05);
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.report-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.report-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary, #2563eb);
}

.report-card svg {
  margin-bottom: 20px;
  color: var(--primary, #2563eb);
  transition: transform 0.3s ease;
}

.report-card:hover svg {
  transform: scale(1.1);
}

.report-title {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: var(--navy, #1e293b);
  font-weight: 600;
  text-align: center;
}

.report-year {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary, #2563eb);
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Infinite Marquee Styling */
.logo-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 2rem 0;
  position: relative;
  background: transparent;
  width: 100%;
}

/* Gradient Mask overlay for fading the edges */
.logo-marquee-wrapper::before,
.logo-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-marquee {
  display: inline-flex;
  gap: 4rem;
  align-items: center;
  animation: logoMarquee 25s linear infinite;
  padding-left: 4rem;
}

.logo-marquee:hover {
  animation-play-state: paused;
}

.logo-marquee img {
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(10%);
}

.logo-marquee img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

@keyframes logoMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Infinite Marquee Styling */
.logo-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 2rem 0;
  position: relative;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

/* Gradient Mask overlay for fading the edges */
.logo-marquee-wrapper::before,
.logo-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-marquee {
  display: inline-flex;
  gap: 4rem;
  align-items: center;
  animation: logoMarquee 25s linear infinite;
  padding-left: 4rem;
}

.logo-marquee:hover {
  animation-play-state: paused;
}

.logo-marquee img {
  height: 70px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(10%);
}

.logo-marquee img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

@keyframes logoMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


/* ========================================================================= */
/* --- GLOBAL MOBILE RESPONSIVENESS FIXES (Auto-Applied) --- */
/* ========================================================================= */

/* Footer Fixes */
.footer {
  background-color: var(--navy, #002b5c);
  color: var(--white, #ffffff);
  padding: 4rem 1rem 2rem;
  font-family: 'Inter', sans-serif;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: white;
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255,215,0,0.4);
}

.footer-brand h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gold, #FFD700);
}

.footer h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold, #FFD700);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background: var(--gold, #FFD700);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer ul li a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: var(--gold, #FFD700);
}

.footer-address {
  display: flex;
  gap: 1rem;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-address svg {
  width: 24px;
  height: 24px;
  color: var(--gold, #FFD700);
  flex-shrink: 0;
}

.footer-address p {
  margin: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Events Grid Fallback */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Contact Grid Fallback */
.contact-grid, .incubation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Base Responsive Rules */
@media (max-width: 900px) {
  /* IMPORTANT: Override any hardcoded inline grids forcing multiple columns */
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Inline flex properties forcing un-wrappable rows */
  [style*="display:flex"]:not(.nav-inner):not(.nav-actions):not(.brand):not(.logo-marquee):not(.gallery-close):not(.hero-video):not(.slider-container):not(.footer-address),
  [style*="display: flex"]:not(.nav-inner):not(.nav-actions):not(.brand):not(.logo-marquee):not(.gallery-close):not(.hero-video):not(.slider-container):not(.footer-address) {
    flex-wrap: wrap !important;
  }

  /* Structural Adjustments */
  .section, .mou-affiliations {
    padding: 3rem 1rem !important;
  }
  
  .section-container {
    padding: 0 0.5rem !important;
    max-width: 100% !important;
  }
  
  /* Events Grid mobile scale */
  .events-grid, .contact-grid, .incubation-grid {
    grid-template-columns: 1fr !important;
  }
  
  .event-image-container {
    height: 220px !important;
  }

  /* Typography Rescaling */
  .hero-title { font-size: 2.2rem !important; line-height: 1.3 !important; }
  .hero-tagline { font-size: 1.2rem !important; line-height: 1.4 !important; }
  .section-title { font-size: 1.8rem !important; }
  
  /* Media Fit */
  img, video, iframe {
    max-width: 100% !important;
  }

  /* Mobile menu specifics */
  .nav-links { display: none !important; }
  .mobile-toggle { display: inline-flex !important; }

  /* Mentees Grid Override */
  .mentees-container {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1200px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  /* Extra Small Devices */
  .hero-title { font-size: 1.8rem !important; }
  .hero-tagline { font-size: 1.05rem !important; }
  .section-title { font-size: 1.5rem !important; }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: left;
    gap: 2rem !important;
  }
  .footer-brand h2 {
    font-size: 1.15rem !important;
  }
  
  /* Sponsor Grids */
  .logo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .cert-grid {
    grid-template-columns: 1fr !important;
  }
  
  .event-image-container {
    height: 200px !important;
  }

  /* Fix for random padding */
  .section {
    padding: 2.5rem 1rem !important;
  }
  
  /* Padding fix for specific inline divs */
  div[style*="padding:40px"], div[style*="padding: 40px"], div[style*="padding:48px"], div[style*="padding: 48px"] {
    padding: 24px !important;
  }
}

/* IIC Certificate Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.cert-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.cert-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,43,92,0.2);
}

.cert-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.cert-item:hover .cert-thumb {
  filter: brightness(1.08);
}
