/* ============================================================
   IISER NAVBAR GLASS (keep design, improve menu visibility)
============================================================ */
.iiser-navbar-glass {
  position: fixed;
  /* ✅ FIXED */
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  background: rgb(204 1 1 / 20%) !important;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);

  transition: all 0.25s ease;
}

/* ============================================================
   Menu Links (normal state)
============================================================ */
.iiser-navbar-glass .navbar-nav .nav-link {
  color: rgba(15, 15, 15, 0.92) !important;
  /* dark for visibility */
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  border-radius: 8px;
}

/* ============================================================
   Hover Behaviour (common for both scrolled & non-scrolled)
============================================================ */
.iiser-navbar-glass .navbar-nav .nav-link:hover,
.iiser-navbar-glass .navbar-nav .nav-link:focus {
  color: #ffffff !important;
  background: #a30000 !important;
  border-radius: 8px;
}

/* ============================================================
   Scrolled State (background + shadow only)
============================================================ */
.iiser-navbar-glass--scrolled {
  background: rgba(204, 0, 0, 0.22) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

/* Optional: link base color a bit sharper in scrolled state */
.iiser-navbar-glass.iiser-navbar-glass--scrolled .navbar-nav .nav-link {
  color: rgba(10, 10, 10, 0.95) !important;
}

/* ============================================================
   IMPORTANT: Force hover behaviour EVEN when scrolled
   (prevents Bootstrap override)
============================================================ */
.iiser-navbar-glass.iiser-navbar-glass--scrolled .navbar-nav .nav-link:hover,
.iiser-navbar-glass.iiser-navbar-glass--scrolled .navbar-nav .nav-link:focus {
  color: #ffffff !important;
  background: #a30000 !important;
}

/* ============================================================
   Dropdown hover matches navbar hover behaviour
============================================================ */
.iiser-navbar-glass .dropdown-menu .dropdown-item:hover {
  color: #ffffff !important;
  background: #a30000 !important;
  border-radius: 6px;
}

.iiser-navbar-glass .dropdown-menu .dropdown-item:focus {
  color: #ffffff !important;
  background: #bd5151ec !important;
  border-radius: 6px;
}

/* ============================================================
   Remove/override old dropdown hover rule if it exists elsewhere
============================================================ */
.iiser-navbar-glass .dropdown-menu a:hover {
  color: #ffffff !important;
}

/* ============================================================
   IISER Professional Table Design (Custom / No conflict)
============================================================ */
.iiser-pro-table-wrap {
  padding: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* table base */
.iiser-pro-table {
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
}

/* header (optional if you add thead) */
.iiser-pro-table thead th {
  background: rgba(163, 0, 0, 0.10);
  color: #4a0000;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 14px 16px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* td styles */
.iiser-pro-table td,
.iiser-pro-table th {
  padding: 14px 16px !important;
  vertical-align: middle !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  font-size: 15px;
}

/* first column: event name stronger */
.iiser-pro-table tbody td:first-child {
  font-weight: 700;
  color: rgba(20, 20, 20, 0.92);
}

/* second column: date highlight */
.iiser-pro-table tbody td:nth-child(2) {
  font-weight: 700;
  color: #a30000;
}

/* zebra striping (better contrast) */
.iiser-pro-table tbody tr:nth-child(odd) td {
  background: rgba(163, 0, 0, 0.04);
}

.iiser-pro-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.90);
}

/* row hover highlight */
.iiser-pro-table tbody tr:hover td {
  background: rgba(163, 0, 0, 0.09);
  transition: 0.2s ease;
}

/* remove double border look */
.iiser-pro-table.table-bordered> :not(caption)>*>* {
  border-width: 1px !important;
}

/* responsive scrolling on mobile */
.iiser-pro-table-wrap {
  overflow-x: auto;
}


.btn-alumni {
  color: #fff;
  background: #a30000;
  border: 1px solid #a30000;
  transition: all 0.2s ease;
  margin-top: 20px !important;
}

.btn-alumni:hover,
.btn-alumni:focus {
  color: #a30000;
  background: #ffffff;
  border: 1px solid #a30000;
}


/* ============================================================
   IISER Brochure Buttons (Custom)
============================================================ */
.iiser-brochure-section {
  text-align: center;
  padding: 18px 10px;
}

.iiser-brochure-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 18px;
  color: rgba(10, 10, 10, 0.92);
}

.iiser-brochure-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
  /* important for responsiveness */
}

/* download button */
.iiser-brochure-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: min(420px, 46%);
  padding: 14px 18px;

  background: rgba(255, 255, 255, 0.60);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;

  font-size: 16px;
  font-weight: 700;
  color: #a30000;
  text-decoration: none !important;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: all 0.22s ease;
}

/* icon */
.iiser-brochure-btn i {
  font-size: 18px;
}

/* hover */
.iiser-brochure-btn:hover {
  transform: translateY(-2px);
  background: #a30000;
  color: #ffffff;
  border-color: rgba(163, 0, 0, 0.55);
  box-shadow: 0 14px 30px rgba(163, 0, 0, 0.22);
}

/* pdf badge */
.iiser-brochure-chip {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;

  background: rgba(163, 0, 0, 0.14);
  color: #a30000;
  border: 1px solid rgba(163, 0, 0, 0.20);

  transition: all 0.22s ease;
}

.iiser-brochure-btn:hover .iiser-brochure-chip {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.text-glow-iiser {
  text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 42px rgba(255, 48, 93, 0.623), 0 0 82px rgb(196, 110, 153), 0 0 92px rgb(197, 57, 57);
  color: red;
  font-size: 20px;
  background-color: #fbb117;
  height: 50px;
  width: 800px;
  text-align: center;
}


.program-list {
        text-align: center; /* remove if you want left-aligned */
    }

    .program-item {
        display: block;
        color: #a30000;
        font-weight: 700;
        line-height: 1.6;
        margin-bottom: 6px;
    }

    .badge-new-btn {
        display: inline-block;
        margin-left: 6px;
        padding: 2px 8px;
        font-size: 11px;
        font-weight: 700;
        color: #fff;
        background: linear-gradient(90deg, #ff9800, #ff5722);
        border-radius: 12px;
        vertical-align: middle;
        white-space: nowrap;
			  animation: pulse 1.8s infinite;
    }


    .iat-apply-btn {
      padding: 10px 28px;
    font-size: 16px;
    font-weight: 600;

    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #8b0000;
    color: #8b0000;
    background: transparent;
}

.iat-apply-btn:hover {
    background: #8b0000;
    color: #ffffff;
}

/* ===============================
   FULL PAGE DARK OVERLAY
=============================== */

/* ================================
   DARK OVERLAY
================================ */
.cta-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  z-index: 9998;
  pointer-events: auto;
}

.cta-overlay.active {
  background: radial-gradient(circle at var(--x) var(--y),
      transparent 120px,
      rgba(0, 0, 0, 0.75) 140px);
}

/* ================================
   HIGHLIGHTED BUTTON
================================ */
.cta-highlight {
  position: relative;
  z-index: 10002 !important;

  /* create new stacking context */
  isolation: isolate;

  /* ensure full original rendering */
  background-clip: padding-box;
}

.iat-apply-btn.cta-highlight {
  background: #cc0000;
  /* same as hover */
  color: #fff;
  border-color: #cc0000;
}

.cta-highlight {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}


/* ================================
   TOOLTIP BOX
================================ */
.cta-tooltip {
  position: absolute;
  background: #ffffff;
  padding: 15px 18px;
  border-radius: 6px;
  max-width: 300px;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 10002;
  animation: fadeInUp 0.3s ease;
}

/* Arrow */
.cta-tooltip::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 20px;
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
}

/* Close button */
.cta-close {
  position: absolute;
  top: 5px;
  right: 8px;
  cursor: pointer;
  font-size: 18px;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   FINAL APPLY NOW BUTTON – MORPH + POP + SHINE
========================================== */

/* ==========================================
   CTA WRAPPER (3D Perspective)
========================================== */
.cta-wrapper {
  position: relative;
  z-index: 10002;
  perspective: 1000px;
}

/* ==========================================
   MAIN BUTTON
========================================== */
.cta-animated {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #e10600;
  color: #ffffff;
  cursor: pointer;
  overflow: hidden;

  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;

  /* FIXED */
  min-width: 280px;
  max-width: 100%;
  height: auto;                  /* allow height to grow */
  padding: 14px 28px;
  border-radius: 10px;

  white-space: normal;           /* allow wrapping */
  text-align: center;
  line-height: 1.4;

  transform-style: preserve-3d;
  backface-visibility: visible;

  animation:
    morphButton 0.9s ease forwards,
    popEffect 0.35s ease 0.9s forwards,
    spin3D 1.2s ease 1.3s forwards,
    rotatePopLoop 6s ease 4s infinite;
}



/* ==========================================
   MORPH
========================================== */
@keyframes morphButton {
  0% {
    width: 60px;
    height: 60px;
    border-radius: 50%;
  }

  60% {
    width: 320px;
    height: auto;
    border-radius: 20px;
  }

  100% {
    width: auto;
    height: auto;
    padding: 14px 28px;
    border-radius: 10px;
  }
}

/* ==========================================
   POP
========================================== */
@keyframes popEffect {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* ==========================================
   SAFE 3D SPIN (No Vanish)
========================================== */
@keyframes spin3D {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

/* ==========================================
   SHINE
========================================== */
.cta-animated::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.9),
      transparent);
  transform: skewX(-25deg);
  animation: shineMove 2.5s ease-in-out 1.5s infinite;
}

@keyframes shineMove {
  0% {
    left: -120%;
  }

  100% {
    left: 140%;
  }
}

/* ==========================================
   GLOW PULSE
========================================== */
.cta-animated::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 12px;
  border: 3px solid rgba(255, 0, 0, 0.6);
  animation: glowPulse 2.5s ease-in-out 1.5s infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.25);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.cta-text {
  color: white;
  display: inline-block;
  transform-style: preserve-3d;
  animation: textCounterRotate 6s ease 4s infinite;
}

@keyframes textCounterRotate {

  0% {
    transform: rotateX(0deg);
  }

  20% {
    transform: rotateX(180deg);
  }

  40% {
    transform: rotateX(360deg);
  }

  50% {
    transform: rotateX(360deg);
  }

  100% {
    transform: rotateX(360deg);
  }
}

/* ==========================================
   CONTINUOUS ROTATE + POP LOOP
========================================== */

@keyframes rotatePopLoop {

  /* Idle state */
  0% {
    transform: rotateX(0deg) scale(1);
  }

  /* Start flip upward */
  20% {
    transform: rotateX(-180deg) scale(1);
  }

  /* Full 360 flip */
  40% {
    transform: rotateX(-360deg) scale(1);
  }

  /* Pop after flip */
  50% {
    transform: rotateX(-360deg) scale(1.08);
  }

  /* Settle */
  60% {
    transform: rotateX(-360deg) scale(1);
  }

  /* Idle */
  100% {
    transform: rotateX(-360deg) scale(1);
  }
}
    