/* ==== TOP BAR ==== */
.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  animation: fadeDown 1s ease;
}

.top-bar img {
  height: 55px;
  filter: drop-shadow(0 0 10px rgba(0, 140, 255, 0.3));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.top-bar img:hover {
  transform: scale(1.18) rotate(4deg);
  filter: drop-shadow(0 0 18px rgba(0, 140, 255, 0.6));
}

/* ==== NAVBAR ==== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(150%);
  text-align: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 25px rgba(0,0,0,0.05);
  z-index: 1000;
  animation: fadeDown 1.2s ease;
}

.navbar .nav-links {
  list-style: none;
  display: inline-flex;
  gap: 40px;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s ease;
  position: relative;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #007aff, #00c2b7);
  transition: width 0.35s ease;
}

.navbar a:hover {
  color: #d07826;
}

.navbar a:hover::after {
  width: 100%;
}

.navbar .has-dropdown{
  position: relative;
}

.navbar .has-dropdown > .dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/*Submenu  Panel*/
.navbar .dropdown {
  position: absolute;
  top: 115%;
  left: 0;
  min-width: 260px;
  padding: 12px;
  background: #ffffff; /* solid white background */
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  list-style: none;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 999;
}

/* Dropdown links */
.navbar .dropdown li a {
  display: block;
  padding: 10px 15px;
  color: #0d1b4c; /* dark blue text */
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 6px;
}

/* Hover effect */
.navbar .dropdown li a:hover {
  background: #0d1b4c;  /* dark blue hover bg */
  color: #ffffff;       /* white text on hover */
  transform: translateX(6px);
}


.navbar .dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #780b0b;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.navbar .dropdown li a:hover,
.navbar .dropdown li a:focus {
  background: rgba(0,255,224,0.12);
  color: #000000;
  transform: translateX(3px);
}

/* show on hover (desktops) */
@media (hover:hover) {
  .navbar .has-dropdown:hover > .dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

/* keyboard focus support */
.navbar .has-dropdown:focus-within > .dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* open state (mobile via JS) */
.navbar .has-dropdown.open > .dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* tweak for small screens: make submenu full-width under link */
@media (max-width: 900px) {
  .navbar .dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    border-radius: 10px;
    transform: none;
    opacity: 1;           /* visible when .open is added */
    pointer-events: auto; /* controlled by .open */
    display: none;        /* hide by default on mobile */
  }
  .navbar .has-dropdown.open > .dropdown {
    display: block;
  }
}


/* ================================
   Institutional Advisory Committee
==================================*/

.committee-section {
  padding: 80px 10%;
  background: radial-gradient(circle at top left, #0a0a0f, #141820, #1c1f2b);
  color: #eaeaea;
  text-align: center;
  overflow: hidden;
}

.committee-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #fff;
  letter-spacing: 1px;
  position: relative;
  animation: glowTitle 2s infinite alternate;
}

.committee-title span {
  color: #00f7ff;
  text-shadow: 0 0 12px rgba(0, 247, 255, 0.9), 0 0 24px rgba(0, 247, 255, 0.6);
}

/* ==== GRID ==== */
.committee-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* ==== COMMITTEE CARD ==== */
.committee-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px) saturate(160%);
  border-radius: 16px;
  padding: 30px 20px;
  max-width: 260px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.05);
  transition: all 0.35s ease;

  /* Entry Animation */
  opacity: 0;
  transform: translateX(-100px) scale(0.95);
  animation: slideFade 1s ease forwards;
}

/* Sequential delays for each card */
.committee-card:nth-child(1) { animation-delay: 0.2s; }
.committee-card:nth-child(2) { animation-delay: 0.4s; }
.committee-card:nth-child(3) { animation-delay: 0.6s; }
.committee-card:nth-child(4) { animation-delay: 0.8s; }
.committee-card:nth-child(5) { animation-delay: 1s; }
.committee-card:nth-child(6) { animation-delay: 1.2s; }
.committee-card:nth-child(7) { animation-delay: 1.4s; }
.committee-card:nth-child(8) { animation-delay: 1.6s; }
.committee-card:nth-child(9) { animation-delay: 1.8s; }

.committee-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.8), 0 0 60px rgba(0, 255, 255, 0.4);
  border-color: rgba(0, 255, 255, 1);
}

/* ==== CARD IMAGE ==== */
.committee-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid rgba(0, 255, 255, 0.5);
  transition: 0.4s ease;
  animation: pulseGlow 3s infinite ease-in-out, floatImg 5s ease-in-out infinite;
}

.committee-card:hover img {
  border-color: #00f7ff;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.4);
  transform: rotate(3deg) scale(1.05);
}

/* ==== CARD TEXT ==== */
.committee-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 10px 0 8px;
  color: #ffffff;
  animation: textFade 3s ease-in-out infinite alternate;
}

.committee-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #cccccc;
  margin: 0;
}

/* ==== ANIMATIONS ==== */
@keyframes slideFade {
  0% { opacity: 0; transform: translateX(-100px) scale(0.95); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes glowTitle {
  0% { text-shadow: 0 0 8px #00f7ff, 0 0 15px #00f7ff; }
  100% { text-shadow: 0 0 20px #00f7ff, 0 0 40px #00f7ff; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(0,255,255,0.6); }
  50% { box-shadow: 0 0 25px rgba(0,255,255,1); }
}

@keyframes floatImg {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes textFade {
  from { opacity: 0.7; letter-spacing: 0px; }
  to { opacity: 1; letter-spacing: 2px; }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .committee-title {
    font-size: 2rem;
  }

  .committee-card {
    max-width: 100%;
    padding: 20px 15px;
  }

  .committee-card img {
    width: 100px;
    height: 100px;
  }
}

/* ==== PARTNERS ==== */
.partners {
  text-align: center;
  padding: 80px 20px;
  background: #fafafa;
  animation: fadeUp 1.2s ease;
}

.partners h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #111;
  font-weight: bold;
  text-shadow: 0 0 12px rgba(0,140,255,0.2);
}

.partners h2 span {
  color: #00c2b7;
}

.partners-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 70px;
}

.partners-logos img {
  height: 45px;
  filter: grayscale(100%) brightness(0.6);
  transition: 0.4s;
}

.partners-logos img:hover {
  filter: grayscale(0) brightness(1);
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(0,140,255,0.4);
  border-radius: 8px;
}

/* ====== Footer ====== */
.footer {
  background: rgb(2, 23, 40);
  color: #ffffff;
  text-align: center;
  padding: 20px 15px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.footer-nav li a {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer-nav li a:hover {
  color: #007aff;
}

.footer-logo img {
  width: 95px;
  height: auto;
}

.footer-logo p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: bold;
}

.footer-contact p {
  margin: 0;
  font-size: 11px;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgb(255, 253, 253);
  margin-top: 10px;
  padding-top: 6px;
  font-size: 10px;
  color: #ffffff;
}

/* ================================
   GLOBAL RESPONSIVENESS FIXES
================================= */
img {
  max-width: 100%;
  height: auto;
}

/* Tablet adjustments */
@media (max-width: 992px) {
  .navbar .nav-links {
    gap: 25px;
  }
  .committee-title {
    font-size: 2.2rem;
  }
  .partners-logos {
    gap: 40px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  /* Navbar goes vertical */
  .navbar .nav-links {
    flex-direction: column;
    gap: 15px;
    margin-top: 12px;
  }
  .navbar {
    padding: 12px;
  }

  /* Committee cards */
  .committee-card {
    max-width: 100%;
  }

  /* Partners */
  .partners h2 {
    font-size: 1.6rem;
  }
  .partners-logos img {
    height: 35px;
  }

  /* Footer stacked */
  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .top-bar {
    flex-direction: column;
    gap: 15px;
  }
  .top-bar img {
    height: 40px;
  }

  .navbar a {
    font-size: 0.9rem;
  }

  .committee-title {
    font-size: 1.5rem;
  }

  .partners h2 {
    font-size: 1.4rem;
  }
  .partners-logos {
    gap: 20px;
  }

  .footer-logo img {
    width: 70px;
  }
  .footer-contact p {
    font-size: 10px;
  }
}
