/* ==========================================================================
   MSE CONSULTANCY - SPECIALIZED CUSTOM COMPONENTS & ANIMATION ENGINE
   (Layout, Spacing, Typography & Design System powered by Tailwind CSS)
   ========================================================================== */

/* Grift Font Definition - Loaded from local grift-black.ttf */
@font-face {
  font-family: 'Grift';
  src: url('../fonts/grift-black.ttf') format('truetype'),
       url('../fonts/Grift-Black.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Poppins Font Definition - Default font loaded from local Poppins-Regular.woff2 */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Inter Definition - loaded from local Inter-Regular.woff2/Inter-Bold.woff2
   (vendored via @fontsource/inter, same self-hosted approach as the
   Poppins/Grift files above — no Google Fonts CDN). */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* "Explore Courses & Career Opportunities" banner heading */
.career-banner-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.career-heading-light {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

/* Main nav links, their dropdown items, and the mobile nav panel. */
.mse-nav-link,
#navMenu .absolute a,
.mobile-nav-link {
  font-family: 'Inter', sans-serif;
}

/* Top-level nav links (HOME, ABOUT US, ALL COURSES...) are bold — dropdown
   and mobile sub-items keep their own lighter weight for hierarchy. */
.mse-nav-link {
  font-weight: 700;
}

.stat-divider-item::before,
.stat-divider-item::after {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  pointer-events: none;
}

/* Stats banner is always a single 4-up row, so dividers are always vertical. */
.stat-divider-item + .stat-divider-item::before {
  content: '';
  top: 10%;
  left: -1px;
  width: 1px;
  height: 80%;
}

@media (min-width: 640px) {
  .stat-divider-item + .stat-divider-item::before {
    left: -17px;
    width: 2px;
  }
}

/* Reusable Stats Gradient Background matching the Connected With count-up banner */
.stats-gradient-bg {
  background: radial-gradient(130% 130% at 85% 15%, #2962ff 0%, #1538BF 38%, #001183 72%, #000a52 100%) !important;
}

.footer-stroke {
  display: block;
  height: 1em;
  flex-shrink: 0;
  color: #001183;
  margin-bottom: -0.22em;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.footer-stroke path {
  vector-effect: non-scaling-stroke;
}

@media (prefers-reduced-motion: reduce) {
  .footer-stroke path { stroke-dashoffset: 0 !important; }
}

/* ==========================================================================
   PRELOADER — the same "#MSE" stroke wordmark glyph and thin hollow-outline
   treatment as the footer's .footer-stroke (crisp hairline, no fill, no
   glow), just staged full-screen and drawn on immediately instead of on
   scroll. Pure CSS keyframes (pathLength="1" makes stroke-dasharray/offset
   a 0-1 range) so it can render and animate before any JS bundle arrives.
   ========================================================================== */
html.mse-preloading {
  overflow: hidden;
}

.mse-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: #ffffff;
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

/* The finished mark holds a beat, then the whole panel swipes up and off
   — a curtain lift revealing the page underneath, not a fade. */
.mse-preloader.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

/* Same em-driven sizing as the footer's giant "#MSE" watermark
   (footer-wordmark.blade.php: height 1em, width 2.947em) at the exact
   same breakpoint font-sizes, so the preloader mark matches it 1:1. */
.mse-preloader__mark {
  height: 1em;
  width: 2.947em;
  font-size: 7.5rem;
  color: #001183;
}

@media (min-width: 640px) {
  .mse-preloader__mark { font-size: 9rem; }
}

@media (min-width: 768px) {
  .mse-preloader__mark { font-size: 22rem; }
}

@media (min-width: 1024px) {
  .mse-preloader__mark { font-size: 30rem; }
}

.mse-preloader__mark path {
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: msePreloaderDraw 1.1s ease forwards;
}

.mse-preloader__mark path:nth-child(1) { animation-delay: 0s; }
.mse-preloader__mark path:nth-child(2) { animation-delay: 0.22s; }
.mse-preloader__mark path:nth-child(3) { animation-delay: 0.44s; }
.mse-preloader__mark path:nth-child(4) { animation-delay: 0.66s; }

.mse-preloader__label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  color: rgba(0, 17, 131, 0.5);
  text-transform: uppercase;
  opacity: 0;
  animation: msePreloaderLabel 0.6s ease 1.3s forwards;
}

@keyframes msePreloaderDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes msePreloaderLabel {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mse-preloader { transition: none; }
  .mse-preloader__mark path,
  .mse-preloader__label {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   COVERFLOW CAROUSEL EDGE FADE
   Coverflow pushes side slides toward the swiper's own edge, and Swiper
   always clips with overflow:hidden — without this, that clip reads as a
   hard, ugly cut straight through a card or video thumbnail (worse once
   blurred). A soft alpha mask fades slides out before the hard edge
   instead, same technique already used for the partners marquee.
   ========================================================================== */
.mse-carousel-fade {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

/* ==========================================================================
   MOBILE NAVIGATION PANEL (Slide-down accordion menu)
   ========================================================================== */
#mobileMenuPanel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
#mobileMenuPanel.active {
  max-height: calc(100dvh - 81px);
  opacity: 1;
  overflow-y: auto;
}
#mobileMenuPanel summary {
  list-style: none;
}
#mobileMenuPanel summary::-webkit-details-marker {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #mobileMenuPanel { transition: none !important; }
}

/* ==========================================================================
   NAVIGATION HOVER ANIMATION (Underline Slide & Glow)
   ========================================================================== */
.mse-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease;
}

.mse-nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #001275 0%, #2563eb 60%, #FAAF00 100%);
  border-radius: 9999px;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mse-nav-link:hover::after,
.mse-nav-link.active::after,
li:hover > .mse-nav-link::after,
.group:hover .mse-nav-link::after {
  width: 100%;
}

/* ==========================================================================
   1. SPECIALIZED LOGIN BUTTON (3D Spinning Border Shine)
   ========================================================================== */
.mse-login-btn {
  border: none;
  border-radius: 50px;
  padding: 3px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  letter-spacing: 0.3px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #4f6bdf 0%, #001183 100%);
  transition: transform 0.15s ease;
  min-width: 80px;
  height: 34px;
}

@media (min-width: 640px) {
  .mse-login-btn {
    font-size: 15px;
    min-width: 110px;
    height: 44px;
  }
}
.mse-login-btn:hover {
  transform: translateY(-1px);
}
.mse-login-btn:active {
  transform: translateY(0);
}

.mse-login-outline {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}
.mse-login-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 80px;
  height: 300px;
  margin: auto;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 100%
  );
  animation: mse-spin 3s linear infinite;
}

.mse-login-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 48px;
  background: #001183;
  color: #ffffff;
  padding: 0 12px;
  gap: 5px;
  pointer-events: none;
  transition: background 0.2s ease;
}
.mse-login-btn:hover .mse-login-text {
  background: #000d6b;
}
.mse-login-btn:active .mse-login-text {
  background: #000a55;
}

@media (min-width: 640px) {
  .mse-login-text {
    padding: 0 24px;
    gap: 10px;
  }
}

.mse-login-icon {
  z-index: 10;
  display: flex;
  align-items: center;
}
.mse-login-icon div,
.mse-login-icon div::before,
.mse-login-icon div::after {
  height: 2px;
  border-radius: 1px;
  background-color: #e0e7ff;
}
.mse-login-icon div::before,
.mse-login-icon div::after {
  content: "";
  position: absolute;
  right: 0;
  transform-origin: center right;
  width: 10px;
  border-radius: 15px;
  transition: all 0.3s ease;
}
.mse-login-icon div {
  position: relative;
  width: 16px;
  box-shadow: -2px 2px 5px #001183;
  transform: scale(0.9);
  background: #e0e7ff;
  animation: mse-swingArrow 1s ease-in-out infinite;
}
.mse-login-icon div::before {
  transform: rotate(44deg);
  top: 1px;
  animation: mse-rotateArrowLine 1s linear infinite;
}
.mse-login-icon div::after {
  bottom: 1px;
  transform: rotate(316deg);
  animation: mse-rotateArrowLine2 1s linear infinite;
}

@keyframes mse-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes mse-swingArrow {
  50% { transform: translateX(4px); }
}
@keyframes mse-rotateArrowLine {
  50% { transform: rotate(30deg); }
  80% { transform: rotate(55deg); }
}
@keyframes mse-rotateArrowLine2 {
  50% { transform: rotate(330deg); }
  80% { transform: rotate(300deg); }
}

/* ==========================================================================
   2. HERO TYPEWRITER & CURSOR ENGINE
   ========================================================================== */
.mse-text-rotate-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  vertical-align: bottom;
}

.mse-text-rotate-stage {
  display: inline-block;
  white-space: pre;
  position: relative;
  min-height: 1.25em;
  font-family: 'Grift', 'Poppins', sans-serif;
  font-weight: 800;
  color: #FFC233;
  background: linear-gradient(135deg, #FFF9EB 0%, #FFC233 45%, #FAAF00 80%, #C28800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(255, 194, 51, 0.35));
}

.mse-rotate-cursor {
  display: inline-block;
  width: 4px;
  height: 0.9em;
  background: linear-gradient(180deg, #FFE7AD, #FFC233);
  margin-left: 5px;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 194, 51, 0.9);
  animation: mseCursorBlink 0.7s infinite alternate;
}

.mse-rotate-cursor.typing {
  animation: none;
  opacity: 1;
}

@keyframes mseCursorBlink {
  0% { opacity: 0.15; transform: scaleY(0.8); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   3. HERO PODA GLOW SEARCH INPUT (Interactive Filter Border)
   ========================================================================== */
/* Search bar — Uiverse poda style */
.mse-hero-search-wrap {
  width: 100%;
  max-width: 580px;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

/* Poda container */
.mse-poda {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

/* Shared layer styles */
.mse-poda-border,
.mse-poda-dark,
.mse-poda-glow {
  max-height: 70px;
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;
  z-index: 0;
  border-radius: 9999px;
  filter: blur(3px);
}

/* Coloured border layer */
.mse-poda-border {
  max-height: 59px;
  border-radius: 9999px;
  filter: blur(0.5px);
}
.mse-poda-border::before {
  content: "";
  z-index: -2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(70deg);
  position: absolute;
  width: 800px; height: 800px;
  background-image: conic-gradient(
    rgba(0,0,0,0),
    #FAAF00 8%,
    #FFC233 16%,
    rgba(0,0,0,0) 24%,
    rgba(0,0,0,0) 50%,
    #FAAF00 58%,
    #FFC233 66%,
    rgba(0,0,0,0) 74%
  );
  filter: brightness(1.6);
  transition: all 2s;
}

/* Dark bg layers (×3) */
.mse-poda-dark {
  max-height: 65px;
}
.mse-poda-dark::before {
  content: "";
  z-index: -2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(82deg);
  position: absolute;
  width: 800px; height: 800px;
  background-image: conic-gradient(
    rgba(0,0,0,0),
    #C28800,
    rgba(0,0,0,0) 12%,
    rgba(0,0,0,0) 50%,
    #FAAF00,
    rgba(0,0,0,0) 62%
  );
  transition: all 2s;
}

/* Outer glow layer — vibrant gold */
.mse-poda-glow {
  overflow: hidden;
  filter: blur(20px);
  opacity: 0.85;
  max-height: 140px;
}
.mse-poda-glow::before {
  content: "";
  z-index: -2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(60deg);
  position: absolute;
  width: 999px; height: 999px;
  background-image: conic-gradient(
    rgba(0,0,0,0),
    #FAAF00 8%,
    #FFC233 16%,
    rgba(0,0,0,0) 28%,
    rgba(0,0,0,0) 50%,
    #FFC233 60%,
    #FAAF00 70%,
    rgba(0,0,0,0) 82%
  );
  transition: all 2s;
}

/* Hover — border layers rotate */
#mse-poda:hover > .mse-poda-dark::before  { transform: translate(-50%, -50%) rotate(-98deg); }
#mse-poda:hover > .mse-poda-glow::before  { transform: translate(-50%, -50%) rotate(-120deg); }
#mse-poda:hover > .mse-poda-border::before{ transform: translate(-50%, -50%) rotate(-110deg); }

/* Focus — layers spin further */
#mse-poda:focus-within > .mse-poda-dark::before  { transform: translate(-50%, -50%) rotate(442deg); transition: all 4s; }
#mse-poda:focus-within > .mse-poda-glow::before  { transform: translate(-50%, -50%) rotate(420deg); transition: all 4s; }
#mse-poda:focus-within > .mse-poda-border::before{ transform: translate(-50%, -50%) rotate(430deg); transition: all 4s; }

/* Inner main container */
.mse-poda-main {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* The actual input */
.mse-poda-input {
  background-color: #ffffff;
  border: none;
  width: 100%;
  height: 56px;
  border-radius: 9999px;
  color: #0f172a;
  padding-inline: 54px 54px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  text-overflow: ellipsis;
}
.mse-poda-input::placeholder {
  color: #94a3b8;
}
.mse-poda-input:focus {
  outline: none;
}

@media (max-width: 480px) {
  .mse-poda-input {
    height: 50px;
    padding-inline: 44px 48px;
    font-size: 0.85rem;
  }
  .mse-poda-search-icon {
    left: 16px;
  }
}

/* Search icon (left) */
.mse-poda-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
}

/* Filter border (spinning conic around filter icon) */
.mse-poda-filter-border {
  height: 42px;
  width: 42px;
  position: absolute;
  overflow: hidden;
  top: 7px;
  right: 7px;
  border-radius: 9999px;
}
.mse-poda-filter-border::before {
  content: "";
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  position: absolute;
  width: 400px; height: 400px;
  background-image: conic-gradient(
    rgba(0,0,0,0),
    #FAAF00,
    rgba(0,0,0,0) 50%,
    rgba(0,0,0,0) 50%,
    #FFC233,
    rgba(0,0,0,0) 100%
  );
  filter: brightness(1.5);
  animation: mse-poda-rotate 4s linear infinite;
}

/* Filter icon (right) */
.mse-poda-filter-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  height: 40px;
  width: 40px;
  isolation: isolate;
  overflow: hidden;
  border-radius: 9999px;
  background: linear-gradient(180deg, #f1f5f9, #ffffff, #f1f5f9);
  border: 1px solid rgba(0, 17, 131, 0.15);
}

@keyframes mse-poda-rotate {
  100% { transform: translate(-50%, -50%) rotate(450deg); }
}

/* ==========================================================================
   4. METALLIC GOLD HERO CTA BUTTON
   ========================================================================== */
.mse-hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap: 0.5rem;
  background: linear-gradient(120deg, #FAAF00, #FFE08A 45%, #FFC233);
  color: #4A3400;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.95rem 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(194, 136, 0, 0.4);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(250, 175, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mse-hero-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 40%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.45) 60%,
    transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: mse-tag-shine 3.4s ease-in-out infinite;
}

.mse-hero-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, #FFE08A, #FAAF00 55%, #FFC233);
  box-shadow: 0 8px 25px rgba(250, 175, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #3b2800;
}
.mse-hero-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(250, 175, 0, 0.35);
}

@keyframes mse-tag-shine {
  0% { left: -60%; }
  45%, 100% { left: 130%; }
}

/* Reusable gold shimmer — same gradient + shine sweep as the hero CTA above,
   without the hero's fixed pill shape/sizing, so it can be layered onto any
   button (e.g. "Apply Now" cards) via ordinary Tailwind layout classes. */
.mse-gold-shimmer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #FAAF00, #FFE08A 45%, #FFC233);
  border: 1px solid rgba(194, 136, 0, 0.4);
  box-shadow: 0 4px 18px rgba(250, 175, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.mse-gold-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 40%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.45) 60%,
    transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: mse-tag-shine 3.4s ease-in-out infinite;
}
.mse-gold-shimmer:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, #FFE08A, #FAAF00 55%, #FFC233);
  box-shadow: 0 8px 25px rgba(250, 175, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
}
.mse-gold-shimmer:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(250, 175, 0, 0.35);
}

/* ==========================================================================
   5. MARQUEE SCROLL KEYFRAME
   ========================================================================== */
@keyframes msePartnersScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   6. MODALS & POPUPS SYSTEM
   ========================================================================== */
.mse-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 19, 41, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.mse-modal.active {
  opacity: 1;
  visibility: visible;
}

.mse-modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 540px;
  padding: 2.25rem;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  max-height: 90vh;
  overflow-y: auto;
}
.mse-modal.active .mse-modal-dialog {
  transform: scale(1) translateY(0);
}

.mse-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1.4rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mse-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Compare Sticky Bottom Drawer */
.compare-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid #2563eb;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.12);
  z-index: 1500;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.compare-drawer.active {
  transform: translateY(0);
}

.compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
}

/* Toast Notification Popup */
.mse-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.mse-toast {
  pointer-events: auto;
  background: #0f172a;
  color: #ffffff;
  padding: 1rem 1.4rem;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  border-left: 4px solid #FAAF00;
  animation: mseToastIn 0.3s ease;
  max-width: 380px;
}
@keyframes mseToastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Trending Courses & State Colleges Swiper Dots */
.courses-swiper-dots .swiper-pagination-bullet,
.states-swiper-dots .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  opacity: 1;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 4px !important;
}
.courses-swiper-dots .swiper-pagination-bullet-active,
.states-swiper-dots .swiper-pagination-bullet-active {
  width: 28px;
  background: #001183;
  border-radius: 9999px;
}

/* Feed Updates Swiper Dots (white — sits on navy #001183 background) */
.feed-reels-dots .swiper-pagination-bullet,
.feed-photos-dots .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 4px !important;
}
.feed-reels-dots .swiper-pagination-bullet-active,
.feed-photos-dots .swiper-pagination-bullet-active {
  width: 28px;
  background: #ffffff;
  border-radius: 9999px;
}

/* Discover Colleges Through Videos - Swiper Coverflow Carousel */
.college-videos-dots .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  opacity: 1;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 4px !important;
}
.college-videos-dots .swiper-pagination-bullet-active {
  width: 28px;
  background: #001183;
  border-radius: 9999px;
}

/* Hollow Watermark #MSE */
.watermark-mse {
  color: transparent !important;
  -webkit-text-stroke: 1.5px rgba(0, 17, 131, 0.18);
  font-family: 'Grift', 'Poppins', sans-serif;
  user-select: none;
  pointer-events: none;
}

/* Course chips keep a solid selected fill, including while hovered. */
.college-stream-pill {
  border: 2px solid #001183;
  background-color: #ffffff;
  color: #001183;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.college-stream-pill:not(.active):hover {
  background-color: #f0f2ff;
}

.college-stream-pill.active {
  background-color: #001183;
  color: #ffffff;
}

.college-stream-pill:focus-visible {
  outline: 2px solid #001183;
  outline-offset: 3px;
}

/* ==========================================================================
   7. CONTENT SCROLL REVEALS — AOS (Animate On Scroll), vendored locally
   (public/js/aos.js + aos.css). Section/card fade+rise is entirely AOS's
   own [data-aos] engine now; this just adds the reduced-motion opt-out
   AOS itself doesn't ship with.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* react-bits BorderGlow mount — stretch to fill whatever size the
   original card/slide already established (BorderGlow itself doesn't
   assume a size, it sizes to its content by default). */
.mse-border-glow-mount,
.mse-border-glow-mount .border-glow-inner,
.mse-border-glow-content {
  width: 100%;
  height: 100%;
}

/* Form submit loading state — a class + cursor/opacity change only, never
   an innerHTML swap, so it's safe on React-rendered buttons (SpecularButton
   owns a live WebGL canvas in its children that innerHTML would destroy). */
button[type="submit"].is-submitting {
  opacity: 0.6;
  cursor: wait;
  pointer-events: none;
}

/* ==========================================================================
   8. MOST TRENDING COURSES — Redesigned Showcase
   ========================================================================== */
.mse-trending-section {
  position: relative;
  background: radial-gradient(130% 90% at 50% 0%, #ffffff 0%, #f6f9fe 50%, #edf4fc 100%);
  overflow: hidden;
  min-height: 850px;
  margin: 0 12px;
  border-radius: 36px;
}

@media (min-width: 768px) {
  .mse-trending-section {
    margin: 0 24px;
    border-radius: 48px;
  }
}

/* Student Characters Left & Right */
.trending-student-left {
  position: absolute !important;
  left: 60px !important;
  right: auto !important;
  top: 150px;
  width: 310px;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.trending-student-right {
  position: absolute !important;
  right: 60px !important;
  left: auto !important;
  top: 100px;
  width: 325px;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 1440px) {
  .trending-student-left {
    left: 100px !important;
    right: auto !important;
    top: 135px;
    width: 335px;
  }
  .trending-student-right {
    right: 100px !important;
    left: auto !important;
    top: 90px;
    width: 350px;
  }
}

.trending-student-left picture,
.trending-student-right picture {
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

@media (max-width: 1140px) {
  .trending-student-left,
  .trending-student-right {
    display: none !important;
  }
}

/* Callout Text & Doodle Arrows for Student Characters */
.trending-callout-badge {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 26;
}

.trending-callout-girl {
  top: 22px;
  right: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trending-callout-boy {
  top: 18px;
  left: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: rotate(-4deg);
}

.trending-callout-text {
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', cursive, sans-serif;
  font-weight: 700;
  font-style: italic;
  color: #1e40af;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.95), 0 0 10px rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 2px 4px rgba(0, 17, 131, 0.12));
}

.trending-doodle-arrow {
  width: 34px;
  height: 40px;
  margin-top: 2px;
  margin-right: 14px;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.95));
}

.trending-doodle-sparkle {
  font-size: 18px;
  line-height: 1;
  color: #001183;
  margin-top: 4px;
  margin-left: 6px;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.95));
}


/* Trending Courses Section Header & Underline */
.trending-courses-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  padding: 0.4rem 1.25rem !important;
  border-radius: 9999px !important;
  background-color: #ebf3ff !important;
  border: 1px solid #d4e4fc !important;
  color: #0056f6 !important;
  box-shadow: 0 2px 8px rgba(0, 86, 246, 0.06) !important;
  margin-bottom: 1rem !important;
  white-space: nowrap !important;
}

.trending-courses-badge svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  color: #0056f6 !important;
}

.trending-courses-badge span {
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: #0056f6 !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}

.trending-courses-keyword {
  position: relative;
  display: inline-block;
  color: #0056f6;
  white-space: nowrap;
}

.trending-courses-swoosh {
  position: absolute;
  left: 0;
  bottom: -0.26em;
  width: 104%;
  height: 0.36em;
  pointer-events: none;
  user-select: none;
  overflow: visible;
}

.trending-course-card {
  position: relative;
  border-radius: 26px;
  background: #ffffff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 295px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14), 0 4px 10px rgba(15, 23, 42, 0.06);
  border: 2px solid #ffffff;
  outline: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  pointer-events: auto;
}

.trending-course-inner {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 18px;
  padding: 20px 14px 16px;
  border: 1px solid transparent;
}

.trending-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.09);
}

.trending-course-card.is-active-stream:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 17, 131, 0.18) !important;
}

.trending-course-card.is-popular {
  border: 2px solid #93c5fd !important;
  box-shadow: 0 16px 42px rgba(0, 17, 131, 0.12);
}

.courses-swiper .swiper-slide-active .trending-course-card {
  box-shadow: 0 22px 50px rgba(0, 17, 131, 0.15);
  border-color: rgba(0, 17, 131, 0.3);
}

.trending-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trending-course-card:hover .trending-icon-circle {
  transform: scale(1.1) rotate(4deg);
}

/* Card Themed Backgrounds — each stream keeps its own colored radial gradient */
.card-theme-orange {
  background: radial-gradient(120% 100% at 20% 0%, #ffd3ad 0%, #fff1e3 35%, #ffffff 75%);
  border-color: #fed7aa;
}
.card-theme-purple {
  background: radial-gradient(120% 100% at 20% 0%, #eecbff 0%, #f6e9ff 35%, #ffffff 75%);
  border-color: #e9d5ff;
}
.card-theme-navy {
  background: radial-gradient(120% 100% at 20% 0%, #cfe3ff 0%, #eaf3ff 35%, #ffffff 75%);
  border-color: #bfdbfe;
}
.card-theme-green {
  background: radial-gradient(120% 100% at 20% 0%, #baf3d0 0%, #e6faed 35%, #ffffff 75%);
  border-color: #bbf7d0;
}
.card-theme-violet {
  background: radial-gradient(120% 100% at 20% 0%, #d8ccff 0%, #ede8ff 35%, #ffffff 75%);
  border-color: #ddd6fe;
}
.card-theme-sky {
  background: radial-gradient(120% 100% at 20% 0%, #b6e4ff 0%, #e5f6ff 35%, #ffffff 75%);
  border-color: #bae6fd;
}
.card-theme-amber {
  background: radial-gradient(120% 100% at 20% 0%, #ffe2a3 0%, #fff6e0 35%, #ffffff 75%);
  border-color: #fde68a;
}
.card-theme-rose {
  background: radial-gradient(120% 100% at 20% 0%, #ffc6d3 0%, #ffe9ee 35%, #ffffff 75%);
  border-color: #fecdd3;
}

/* Course Count Text Colors */
.text-course-orange { color: #ea580c; }
.text-course-purple { color: #7c3aed; }
.text-course-navy { color: #001183; }
.text-course-green { color: #059669; }
.text-course-violet { color: #4f46e5; }
.text-course-sky { color: #0284c7; }
.text-course-amber { color: #d97706; }
.text-course-rose { color: #db2777; }

/* Buttons */
.btn-view-courses {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.875rem;
  color: #ffffff !important;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-view-courses:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Carousel Stream Card Buttons — Default (Pastel/Outline-filled matching reference) */
.btn-course-orange {
  background: #ffedd5;
  color: #ea580c !important;
  box-shadow: none;
}
.btn-course-purple {
  background: #f3e8ff;
  color: #7c3aed !important;
  box-shadow: none;
}
.btn-course-navy {
  background: #eff6ff;
  color: #001183 !important;
  box-shadow: none;
}
.btn-course-green {
  background: #dcfce7;
  color: #059669 !important;
  box-shadow: none;
}
.btn-course-violet {
  background: #ede9fe;
  color: #4f46e5 !important;
  box-shadow: none;
}
.btn-course-sky {
  background: #e0f2fe;
  color: #0284c7 !important;
  box-shadow: none;
}
.btn-course-amber {
  background: #fef3c7;
  color: #d97706 !important;
  box-shadow: none;
}
.btn-course-rose {
  background: #ffe4e6;
  color: #db2777 !important;
  box-shadow: none;
}

/* Active Stream Card Button — Solid filled + prominent active state */
.trending-course-card.is-active-stream {
  border-color: #001183 !important;
  box-shadow: 0 18px 46px rgba(0, 17, 131, 0.14) !important;
}
.trending-course-card.is-active-stream .btn-course-orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
.trending-course-card.is-active-stream .btn-course-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
}
.trending-course-card.is-active-stream .btn-course-navy {
  background: #001183;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 17, 131, 0.45);
}
.trending-course-card.is-active-stream .btn-course-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
.trending-course-card.is-active-stream .btn-course-violet {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.35);
}
.trending-course-card.is-active-stream .btn-course-sky {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.35);
}
.trending-course-card.is-active-stream .btn-course-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}
.trending-course-card.is-active-stream .btn-course-rose {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.35);
}

/* Carousel Navigation Arrows */
.courses-prev-btn,
.courses-next-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  width: 64px !important;
  height: 64px !important;
}

.courses-prev-btn {
  left: 3% !important;
}

.courses-next-btn {
  right: 3% !important;
}

/* Courses Popup Modal */
.courses-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.courses-modal-overlay.hidden {
  display: none;
}

.courses-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 40, 0.6);
  backdrop-filter: blur(4px);
  animation: mseModalFadeIn 0.25s ease;
}

.courses-modal-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 26px;
  animation: mseModalPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.courses-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 16px;
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s ease;
}

.courses-modal-close:hover {
  background: #001183;
  color: #ffffff;
  transform: rotate(90deg);
}

body.courses-modal-open {
  overflow: hidden;
}

@keyframes mseModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mseModalPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 640px) {
  .courses-modal-overlay {
    padding: 12px;
  }
  .courses-modal-container {
    max-height: 94vh;
  }
}

/* Ranked college cards filtered by stream — !important beats the md:grid/md:flex
   responsive display utilities on the same element, which would otherwise win
   over a plain `hidden` class at md+ breakpoints. */
.stream-card-hidden {
  display: none !important;
}

/* Floating Mega Drawer */
.floating-courses-drawer {
  position: relative;
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 48px -12px rgba(0, 17, 131, 0.085), 0 2px 6px rgba(0, 0, 0, 0.02);
  overflow: visible;
  transition: all 0.3s ease;
  padding: 24px 28px;
}

@media (min-width: 1024px) {
  .floating-courses-drawer .w-full.lg\:w-\[240px\],
  .floating-courses-drawer [class*="lg:w-"],
  .floating-courses-drawer [class*="xl:w-"] {
    flex: 0 0 auto;
    min-width: 200px;
  }
}

#drawerCoursesGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1024px) {
  #drawerCoursesGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #drawerCoursesGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  #drawerCoursesGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Drawer Left Section Styling */
#drawerStreamIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 17, 131, 0.15) !important;
}

#drawerStreamTitle {
  margin-bottom: 12px;
  line-height: 1.2;
}

#drawerStreamDesc {
  margin-bottom: 16px;
  line-height: 1.5;
}

#drawerStreamCtaBtn {
  width: 100%;
  justify-content: center;
}

/* Sub-course Pill Item */
.course-pill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e8edf5;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-height: 50px;
}

.course-pill-item:hover {
  background: #f0f7ff;
  border-color: #bfdbfe;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 86, 246, 0.12);
}

.course-pill-item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  font-size: 18px;
}

/* Popular Badge */
.popular-badge {
  position: absolute;
  top: -12px;
  right: 14px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4A3400;
  overflow: hidden;
  background: linear-gradient(120deg, #FAAF00, #FFE08A 45%, #FFC233);
  border: 1px solid rgba(194, 136, 0, 0.4);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.popular-badge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 40%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.45) 60%,
    transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: mse-tag-shine 3.4s ease-in-out infinite;
}

/* View All Courses CTA Button */
.btn-view-all-courses {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 9999px;
  background: #f0f6ff;
  color: #001183;
  border: 1.5px solid #bfdbfe;
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 17, 131, 0.06);
}
.btn-view-all-courses:hover {
  background: #001183;
  color: #ffffff !important;
  border-color: #001183;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 17, 131, 0.25);
}
.btn-view-all-courses:hover svg {
  color: #ffffff;
}
/* ==========================================================================
   VIDEO PLAY BUTTON & PULSE RIPPLE ANIMATION
   (Extracted from error.txt / College Vidya video player template)
   ========================================================================== */

.PlayButton_playbutton__eYrNa {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  font-size: 26px;
  background-color: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: Youtube_pulse__lgg6W 2s infinite;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  line-height: 1;
}

.PlayButton_playbutton__eYrNa svg {
  width: 26px;
  height: 26px;
  margin-left: 3px; /* optical center for play triangle */
  fill: currentColor;
  transition: transform 0.3s ease;
}

/* Hover & Parent Hover States */
.youtube-video-card:hover .PlayButton_playbutton__eYrNa,
.reel-card:hover .PlayButton_playbutton__eYrNa,
.PlayButton_playbutton__eYrNa:hover {
  background-color: #dc2626; /* YouTube brand red */
  border-color: #ffffff;
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.12);
  animation: Youtube_pulse_hover__lgg6W 1.4s infinite;
}

.youtube-video-card:hover .PlayButton_playbutton__eYrNa svg,
.reel-card:hover .PlayButton_playbutton__eYrNa svg,
.PlayButton_playbutton__eYrNa:hover svg {
  transform: scale(1.08);
}

/* Pulse Keyframe Animations */
@keyframes Youtube_pulse__lgg6W {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75);
    -moz-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75);
  }
  70% {
    -webkit-box-shadow: 0 0 0 18px rgba(255, 255, 255, 0);
    -moz-box-shadow: 0 0 0 18px rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    -moz-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes Youtube_pulse_hover__lgg6W {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.85);
    -moz-box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.85);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.85);
  }
  70% {
    -webkit-box-shadow: 0 0 0 22px rgba(220, 38, 38, 0);
    -moz-box-shadow: 0 0 0 22px rgba(220, 38, 38, 0);
    box-shadow: 0 0 0 22px rgba(220, 38, 38, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    -moz-box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.mse-poda-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
