/* =====================================================
       GLOBAL & ORIGINAL STYLES PRESERVED
    ===================================================== */
    .btn-rvm { margin-top: 15px; background: #e52d3c; color: #fff; border-radius: 0; padding: 13px 25px; font-weight: 700; transition: .3s; }
    .btn-rvm i { margin-left: 10px; transition: .3s; }
    .btn-rvm:hover { background: #bd1f2d; color: #fff; }
    .btn-rvm:hover i { transform: translateX(5px); }

    :root {
      --rvm-blue: #264fa2;
      --rvm-blue-dark: #132a5c;
      --rvm-blue-soft: #edf4ff;
      --rvm-red: #d3242a;
      --rvm-red-dark: #ad1c21;
      --rvm-red-soft: #fef2f2;
      --rvm-green: #018149;
      --rvm-green-dark: #016238;
      --rvm-green-soft: #f0fbf5;

      --font-school: 'Cinzel', serif;
      --font-editorial: 'Playfair Display', serif;
      --font-sans: 'Plus Jakarta Sans', sans-serif;

      --bg-page: #f8fafc;
      --card-bg: #ffffff;
      --text-heading: #091326;
      --text-body: #475569;
      --text-muted: #64748b;
      --border-subtle: #e2e8f0;

      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 22px;
      
      --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
      --shadow-card: 0 14px 35px -6px rgba(15, 23, 42, 0.07);
      --shadow-float: 0 24px 50px -10px rgba(38, 79, 162, 0.15);
      --ease: cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* =====================================================
       ANIMATION ENGINE (NEW CSS)
    ===================================================== */
    .rvm-anim-fade-up {
      opacity: 0;
      transform: translateY(35px);
      transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: opacity, transform;
    }
    .rvm-anim-fade-up.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .rvm-anim-fade-left {
      opacity: 0;
      transform: translateX(-45px);
      transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: opacity, transform;
    }
    .rvm-anim-fade-left.is-visible {
      opacity: 1;
      transform: translateX(0);
    }

    .rvm-anim-fade-right {
      opacity: 0;
      transform: translateX(45px);
      transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: opacity, transform;
    }
    .rvm-anim-fade-right.is-visible {
      opacity: 1;
      transform: translateX(0);
    }

    .rvm-anim-zoom {
      opacity: 0;
      transform: scale(0.88);
      transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: opacity, transform;
    }
    .rvm-anim-zoom.is-visible {
      opacity: 1;
      transform: scale(1);
    }

    .delay-1 { transition-delay: 0.15s; }
    .delay-2 { transition-delay: 0.3s; }
    .delay-3 { transition-delay: 0.45s; }

    /* Slider Ken-Burns Smooth Zoom Transition */
    /* .slider-container {
      position: relative;
      overflow: hidden;
      width: 100%;
    }
    .slider {
      display: flex;
      transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .slide {
      min-width: 100%;
      overflow: hidden;
    }
    .slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transform: scale(1);
      transition: transform 5.5s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .slide.zoom img {
      transform: scale(1.08);
    } */
      /* =====================================================
   HERO SLIDER & KEN-BURNS ZOOM (10-20% RANGE)
===================================================== */
.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(420px, 68vh, 680px);
  background: #091326;
}

.slider {
  display: flex;
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.slide-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Subtle dark gradient overlay so text is always legible */
.slide-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
  background: linear-gradient(
    to bottom,
    rgba(19, 42, 92, 0.45) 0%,
    rgba(9, 19, 38, 0.72) 100%
  );
}
.slide:has(.slide-overlay) .slide-img-wrap::after {
  opacity: 1;
}

/* Base Image Scale */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* 12% Smooth Zoom on Active Slide (within 10-20% constraint) */
.slide.active img {
  transform: scale(1.12);
}

/* =====================================================
   SLIDE OVERLAY & ALIGNMENT MODES
===================================================== */
.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 8%;
  pointer-events: none; /* Allows click-through to arrows */
}

.slide-content {
  max-width: 680px;
  pointer-events: auto;
}

/* Left Alignment */
.slide-overlay.align-left {
  justify-content: flex-start;
  text-align: left;
}

/* Center Alignment */
.slide-overlay.align-center {
  justify-content: center;
  text-align: center;
}
.slide-overlay.align-center .slide-actions {
  justify-content: center;
}

/* Right Alignment */
.slide-overlay.align-right {
  justify-content: flex-end;
  text-align: right;
}
.slide-overlay.align-right .slide-actions {
  justify-content: flex-end;
}

/* Content Elements Styling */
.slide-badge {
  display: inline-block;
  background: rgba(237, 52, 69, 0.9);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.slide-title {
  color: #ffffff;
  font-family: var(--font-school, 'Montserrat', sans-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 12px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.slide-desc {
  color: #e2e8f0;
  font-size: clamp(0.92rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.slide-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-slider {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-slider.primary {
  background: var(--rvm-red, #d3242a);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(211, 36, 42, 0.4);
}
.btn-slider.primary:hover {
  background: #bd1f2d;
  color: #ffffff;
  transform: translateY(-2px);
}
.btn-slider.outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-slider.outline:hover {
  background: #ffffff;
  color: var(--rvm-blue-dark, #132a5c);
}

/* =====================================================
   CONTENT ENTRANCE ANIMATION (STAGGERED FADE-UP)
===================================================== */
.slide .slide-badge,
.slide .slide-title,
.slide .slide-desc,
.slide .slide-actions {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fire staggered reveal when slide gets .active class */
.slide.active .slide-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}
.slide.active .slide-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}
.slide.active .slide-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.65s;
}
.slide.active .slide-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.85s;
}

/* =====================================================
   SLIDER ARROWS & DOTS
===================================================== */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, transform 0.3s ease;
}
.slider-btn:hover {
  background: var(--rvm-red, #d3242a);
  transform: translateY(-50%) scale(1.1);
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-dot.active {
  width: 28px;
  border-radius: 12px;
  background: #ffffff;
}

@media (max-width: 768px) {
  .slide-overlay { padding: 0 20px; }
  .slider-btn { display: none; } /* Clean look on mobile */
  .slide-title { font-size: 1.5rem; }
  .slide-desc { font-size: 0.86rem; margin-bottom: 16px; }
}
    /* ---------------- BRAND HEADER ---------------- */
    /* Ensure the full header row aligns children in the vertical center */
.brand-header {
  background: #ffffff;
  padding: 18px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center; /* Vertically centers the identity block and the accreditation block */
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

/* Vertically centers the logo image with the text column */
.brand-identity {
  display: flex;
  align-items: center; /* Vertically centers the logo and .brand-text */
  gap: 18px;
}

.brand-logo-img {
  height: 76px;
  width: auto;
  object-fit: contain;
  display: block; /* Removes inline bottom spacing quirks */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

/* Remove default vertical push from headings/paragraphs */
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-text h1 {
  font-family: var(--font-school, 'Montserrat', sans-serif);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--rvm-blue, #264fa2);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0; /* Clear default browser margins */
}

.brand-text .tagline {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--rvm-red, #d3242a);
  margin: 3px 0 0 0;
  line-height: 1.3;
}

.brand-text .trust-badge {
  font-size: 0.77rem;
  color: var(--text-muted, #64748b);
  margin: 2px 0 0 0;
  line-height: 1.3;
}

/* Accreditation Block Vertically Centered */
.header-accreditation {
  display: flex;
  align-items: center; /* Vertically centers the icon and accreditation details */
  gap: 14px;
  background: var(--rvm-blue-soft, #edf4ff);
  padding: 5px 10px;
  border-radius: var(--radius-sm, 8px);
  border-left: 4px solid var(--rvm-blue, #264fa2);
  max-width: 440px;
}

    /* =====================================================
   FIXED NAVBAR & DROPDOWN STYLES
===================================================== */
.nav-bar {
  background: var(--rvm-blue);
  position: sticky;
  top: 0;
  z-index: 99; /* Ensure it stays above hero slider and floating elements */
  box-shadow: 0 4px 16px rgba(19, 42, 92, 0.18);
  overflow: visible !important; /* Critical: prevent clipping */
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6%;
  height: 52px;
  position: relative;
  overflow: visible !important;
}

.menu-links {
  display: flex;
  list-style: none;
  height: 100%;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.25s ease;
  opacity: 0.94;
}

.nav-item:hover > .nav-link {
  background: rgba(0, 0, 0, 0.14);
  opacity: 1;
}

/* Dropdown Container */
.nav-bar .dropdown-menu {
  display: block !important; /* Overrides Bootstrap's display: none */
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border-radius: 0 0 var(--radius-sm, 8px) var(--radius-sm, 8px);
  box-shadow: 0 16px 36px rgba(11, 21, 40, 0.18);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-top: 3px solid var(--rvm-green, #018149);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s;
  z-index: 99;
}

/* Invisible hover bridge to prevent menu from disappearing on mouse movement */
.nav-bar .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

/* Dropdown Reveal on Hover */
.nav-item:hover > .dropdown-menu,
.nav-bar .dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dropdown Links */
.nav-bar .dropdown-menu li {
  width: 100%;
  display: block;
}

.nav-bar .dropdown-menu li a {
  color: var(--text-heading, #091326) !important;
  text-decoration: none;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: padding-left 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-bar .dropdown-menu li a:hover {
  background: var(--rvm-blue-soft, #edf4ff);
  color: var(--rvm-blue, #264fa2) !important;
  padding-left: 15px;
}

    .btn-donate-nav {
      background: var(--rvm-green);
      color: #ffffff !important;
      font-weight: 700;
      font-size: 0.84rem;
      padding: 8px 20px;
      border-radius: 30px;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      box-shadow: 0 3px 10px rgba(1, 129, 73, 0.3);
      transition: background 0.25s ease, transform 0.25s ease;
    }

    .btn-donate-nav:hover {
      background: var(--rvm-green-dark);
      transform: translateY(-2px);
    }

    /* =====================================================
       FOUNDER SECTION ANIMATIONS
    ===================================================== */
    .founder-section { padding: 90px 0; overflow: hidden; position: relative; }
    .founder-layout {
      display: grid;
      grid-template-columns: 1fr 380px 1fr;
      align-items: center;
      max-width: 1150px;
      margin: auto;
    }

    .founder-side { position: relative; z-index: 2; }
    .left-side { padding-right: 45px; }
    .right-side { padding-left: 45px; }

    .feature-card {
      text-align: center;
      margin-bottom: 60px;
      transition: transform 0.35s ease;
    }
    .feature-card:hover {
      transform: translateY(-5px);
    }
    .feature-card:last-child { margin-bottom: 0; }
    .feature-icon {
      width: 75px; height: 75px;
      margin: 0 auto 20px;
      border-radius: 50%;
      display: flex;
      justify-content: center; align-items: center;
      color: #ed3445;
      font-size: 30px;
      background: #fff;
      box-shadow: 0 5px 20px rgba(0,0,0,.12);
      transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .feature-card:hover .feature-icon {
      transform: translateY(-8px) rotate(8deg) scale(1.08);
      box-shadow: 0 14px 30px rgba(237, 52, 69, 0.25);
      background: #fff0f1;
    }
    .feature-card h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
    .feature-card p { font-size: 15px; line-height: 1.7; color: #555; }
    .quote-text { font-style: italic; }
    .feature-card h5 { color: #ed3445; font-weight: 700; margin-top: 10px; }

    /* Founder Center Piece with Ambient Pulse Aura */
    .founder-photo { position: relative; text-align: center; z-index: 3; }

    .founder-pulse-ring {
      position: absolute;
      top: -12px;
      left: 50%;
      transform: translateX(-50%);
      width: 374px;
      height: 374px;
      border-radius: 50%;
      border: 2px dashed rgba(237, 52, 69, 0.35);
      animation: rotateRing 26s linear infinite;
      pointer-events: none;
    }

    @keyframes rotateRing {
      0% { transform: translateX(-50%) rotate(0deg); }
      100% { transform: translateX(-50%) rotate(360deg); }
    }

    .photo-circle {
      width: 350px; height: 350px;
      margin: auto;
      border-radius: 50%;
      background: linear-gradient(145deg, #f5f5f5, #fff);
      display: flex; align-items: flex-end; justify-content: center;
      overflow: hidden;
      box-shadow: 0 20px 50px rgba(0,0,0,.15);
      transition: transform 0.4s ease, box-shadow 0.4s ease;
    }
    .photo-circle img {
      height: 100%; width: auto; object-fit: contain;
      transition: transform .7s ease;
    }
    .founder-photo:hover .photo-circle {
      transform: scale(1.03);
      box-shadow: 0 25px 60px rgba(237, 52, 69, 0.22);
    }
    .founder-photo:hover img { transform: scale(1.06); }

    .photo-caption {
      margin-top: -25px;
      position: relative; z-index: 5;
      display: inline-flex;
      flex-direction: column;
      background: #ed3445; color: #fff;
      padding: 12px 30px;
      box-shadow: 0 8px 20px rgba(0,0,0,.18);
      transition: transform 0.3s ease;
    }
    .founder-photo:hover .photo-caption {
      transform: translateY(-3px);
    }
    .photo-caption strong { font-size: 20px; }
    .photo-caption span { font-size: 12px; }

    /* Content Cards Hover Transitions */
    .instructor-partner-content, .instructor-content {
      padding: 50px;
      transition: transform 0.4s ease;
    }
    .bg-img.cover-background {
      transition: transform 0.8s ease;
    }
    .row.g-0:hover .cover-background {
      transform: scale(1.02);
    }

    /* Blinking Button */
    .blink { opacity: 0.3; }

    .rs-toolbar {
  background: var(--rvm-blue-dark, #132a5c);
  padding: 6px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rs-toolbar marquee {
  display: block;
  line-height: 1.6;
  font-size: 0.84rem;
}

.rs-toolbar-right {
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar-item {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.toolbar-item i {
  color: #facc15; /* subtle accent yellow */
  font-size: 0.8rem;
}

.toolbar-item:hover {
  color: #ffffff;
  opacity: 1;
  text-decoration: underline;
}
/* =====================================================
   RVM MODERN MODAL DESIGN
===================================================== */
.rvm-modal-modern .modal-dialog {
  max-width: 560px;
  margin: 1.75rem auto;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

/* Smooth zoom-in entrance transition */
.rvm-modal-modern.fade .modal-dialog {
  transform: scale(0.92) translateY(20px);
  opacity: 0;
}
.rvm-modal-modern.show .modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.rvm-modal-modern .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 25px 60px -12px rgba(19, 42, 92, 0.3),
              0 0 0 1px rgba(226, 232, 240, 0.8);
  position: relative;
}

/* Floating Circular Close Button */
.rvm-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rvm-modal-close:hover {
  background: #d3242a;
  color: #ffffff;
  transform: rotate(90deg) scale(1.08);
}

/* Modal Header */
.rvm-modal-modern .modal-header {
  background: linear-gradient(135deg, #132a5c 0%, #264fa2 100%);
  padding: 24px 28px 20px;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.rvm-modal-modern .header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #facc15; /* Warm gold */
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.rvm-modal-modern .modal-title {
  color: #ffffff;
  font-family: var(--font-school, 'Montserrat', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
}

.rvm-modal-modern .modal-subtitle {
  color: #cbd5e1;
  font-size: 0.8rem;
  margin: 4px 0 0;
  font-weight: 500;
}

/* Modal Body */
.rvm-modal-modern .modal-body {
  padding: 28px;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.65;
  max-height: 70vh;
  overflow-y: auto;
}

/* Dynamic Content Enhancements */
.rvm-modal-modern .modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.rvm-modal-modern .modal-body h1,
.rvm-modal-modern .modal-body h2,
.rvm-modal-modern .modal-body h3,
.rvm-modal-modern .modal-body h4 {
  color: #091326;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Modal Footer */
.rvm-modal-modern .modal-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 12px 28px;
  display: flex;
  justify-content: center;
}

.rvm-modal-modern .footer-trust-tag {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rvm-modal-modern .footer-trust-tag i {
  color: #018149; /* RVM Green */
}

/* Scrollbar styling for long notices */
.rvm-modal-modern .modal-body::-webkit-scrollbar {
  width: 6px;
}
.rvm-modal-modern .modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.rvm-modal-modern .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

/* Outer column acts as the strict clipping frame */
.banner-image-col {
  position: relative;
  overflow: hidden !important; /* Clips any child scaling */
  min-height: 420px;
  padding: 0;
}

/* Inner zoom container holds the background image */
.banner-image-zoom-box {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Zoom stays strictly inside its own container */
.banner-image-col:hover .banner-image-zoom-box {
  transform: scale(1.08); /* 8% zoom */
}

/* =====================================================
   VIDEO THEATER & SIDEBAR PLAYLIST
===================================================== */
.main-player-frame {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #000;
}

.main-video-details {
  border-color: var(--border-subtle, #e2e8f0) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

/* Playlist scroll container locked to match the player height */
.playlist-scroll-container {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual Playlist Item */
.playlist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--border-subtle, #e2e8f0);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.playlist-item:hover {
  background: var(--rvm-blue-soft, #edf4ff);
  border-color: #cbd5e1;
  transform: translateX(4px);
}

/* Active State */
.playlist-item.active {
  background: #fef2f2; /* soft red accent */
  border-color: var(--rvm-red, #d3242a);
  box-shadow: 0 4px 14px rgba(211, 36, 42, 0.12);
}

.playlist-item .playing-label {
  display: none;
  font-size: 0.72rem;
  margin-top: 4px;
}

.playlist-item.active .playing-label {
  display: block;
}

/* Thumbnail wrapper */
.playlist-item .thumb-wrap {
  position: relative;
  width: 120px;
  min-width: 120px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.playlist-item .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.playlist-item:hover .thumb-img {
  transform: scale(1.08);
}

.playlist-item .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.playlist-item:hover .play-badge,
.playlist-item.active .play-badge {
  background: var(--rvm-red, #d3242a);
  transform: translate(-50%, -50%) scale(1.15);
}

/* Thumb Text Details */
.playlist-item .thumb-info {
  flex: 1;
  min-width: 0;
}

.playlist-item .thumb-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-heading, #091326);
  line-height: 1.35;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item.active .thumb-title {
  color: var(--rvm-red, #d3242a);
}

/* Custom Scrollbar */
.playlist-scroll-container::-webkit-scrollbar {
  width: 6px;
}
.playlist-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
.playlist-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.playlist-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* =====================================================
   HOSTEL SECTION - FIXED BACKGROUND (PARALLAX EFFECT)
===================================================== */
.hostel-bg-overlay {
  position: relative;
  background-image: 
    linear-gradient(
      135deg, 
      rgba(19, 42, 92, 0.45) 0%, 
      rgba(38, 79, 162, 0.30) 100%
    ),
    url('uploads/1719456589379780.jpg');
  background-attachment: fixed !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  
  /* padding: 90px 0; */
  overflow: hidden;
}

/* Ensure text and headings stay prominent against the fixed image */
.hostel-bg-overlay h2,
.hostel-bg-overlay span {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hostel-tag {
  display: inline-block;
  background: rgba(19, 42, 92, 0.75);
  backdrop-filter: blur(8px);
  color: #facc15;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hostel-cta-btn {
  border-radius: 30px;
  padding: 13px 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hostel-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(211, 36, 42, 0.5) !important;
}

.rs-footer .footer-share ul li a{
    font-size: 20px;
}
/* =====================================================
   SYNCHRONIZED FADE-IN-UP & ZOOM ENTRANCE ENGINE
===================================================== */
.rvm-anim-fade-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.rvm-anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }

/* Combined Fade-In-Up + Zoom Entrance for the Center Piece */
.rvm-anim-fade-up-zoom {
  opacity: 0;
  transform: translateY(45px) scale(0.85);
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.rvm-anim-fade-up-zoom.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =====================================================
   FOUNDER PORTRAIT ZOOM STYLES
===================================================== */
.founder-photo {
  position: relative;
  text-align: center;
  z-index: 3;
}

.photo-circle {
  width: 350px;
  height: 350px;
  margin: auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5f5f5, #ffffff);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden; /* Clips the zoomed image cleanly within the circle */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Base image scale and entrance transition */
.photo-circle img.zoom-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Image zooms to full scale when in view */
.rvm-anim-fade-up-zoom.is-visible .photo-circle img.zoom-img {
  transform: scale(1);
}

/* Extra interactive zoom when hovered */
.founder-photo:hover .photo-circle {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(237, 52, 69, 0.25);
}

.founder-photo:hover .photo-circle img.zoom-img {
  transform: scale(1.12); /* 12% smooth zoom */
}
/* Fallback for iOS Safari / Mobile (prevents viewport zoom glitches) */
@media (max-width: 991px) {
  .hostel-bg-overlay {
    background-attachment: scroll !important;
  }
}

@media (max-width: 991px) {
  .playlist-scroll-container {
    max-height: 380px;
  }
}

@media (max-width: 767px) {
  .rs-toolbar-right {
    margin-top: 6px;
    gap: 10px;
  }
  .toolbar-item {
    font-size: 0.76rem;
  }
}

    /* =====================================================
       RESPONSIVE
    ===================================================== */
    @media (max-width: 1199px) {
      .founder-layout { grid-template-columns: 1fr 320px 1fr; }
      .photo-circle { width: 300px; height: 300px; }
      .founder-pulse-ring { width: 324px; height: 324px; }
      .left-side { padding-right: 25px; }
      .right-side { padding-left: 25px; }
    }
    @media (max-width: 991px) {
      .founder-layout { display: flex; flex-direction: column; }
      .founder-photo { order: 1; margin: 20px 0 50px; }
      .left-side { order: 2; padding: 0; }
      .right-side { order: 3; padding: 0; }
      .feature-card { max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 50px; }
      .instructor-partner-content, .instructor-content { padding: 35px 20px; }
    }
    @media (max-width: 575px) {
      .founder-section { padding: 60px 15px; }
      .photo-circle { width: 280px; height: 280px; }
      .founder-pulse-ring { width: 300px; height: 300px; }
    }