/* ==========================================================================
   Rimrunners Academica - Compiled & Optimized Stylesheet (rim.css)
   ========================================================================== */

:root {
  --cyan-glow: #00f2fe;
  --blue-glow: #4facfe;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --glass-surface: rgba(14, 18, 28, 0.65);
  --glass-border: rgba(255, 255, 255, 0.12);
  --ease-cinematic: cubic-bezier(0.19, 1, 0.22, 1);
  
  --bg-midnight: #08090e;
  --bg-surface: #11131b;
  --bg-surface-elevated: #191c27;
  --bg-glass: rgba(17, 19, 27, 0.88);
  
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-secondary: #e2e8f0;
  
  --accent-primary: #ff5a1f;
  --accent-primary-subtle: rgba(255, 90, 31, 0.14);
  --accent-primary-border: rgba(255, 90, 31, 0.45);
  
  --accent-secondary: #f59e0b;
  --accent-secondary-subtle: rgba(245, 158, 11, 0.14);
  --accent-secondary-border: rgba(245, 158, 11, 0.45);

  --accent-gold: #fbbf24;
  --accent-emerald: #10b981;
  --gradient-accent: linear-gradient(135deg, #ff5a1f 0%, #f97316 45%, #f59e0b 100%);
  --gradient-glow: radial-gradient(circle, rgba(255, 90, 31, 0.35) 0%, rgba(245, 158, 11, 0.12) 55%, transparent 70%);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 90, 31, 0.45);
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
       :root {
            --primary-color: #ff6600;
            --secondary-color: #151517;
            --bg-dark: #121214;
            --text-light: #f9fafb;
            --card-bg: #1e1e22;
        }
        body {
            background-color: var(--bg-dark);
            color: var(--text-light);
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
        }
        .header {
            background-color: var(--secondary-color);
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        .navbar-brand {
            font-weight: 700;
            color: var(--text-light) !important;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .navbar-nav .nav-link {
            color: #cbd5e1 !important;
            font-weight: 500;
            transition: color 0.2s;
            padding: 8px 15px !important;
        }
        .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
            color: var(--primary-color) !important;
        }
        
        /* Dropdown Menu Opens on Hover */
        @media all and (min-width: 992px) {
            .navbar .nav-item.dropdown:hover .dropdown-menu {
                display: block;
                margin-top: 0;
            }
        }
        
        .dropdown-menu {
            background-color: var(--secondary-color);
            border: 1px solid rgba(255,255,255,0.1);
        }
        .dropdown-item {
            color: #cbd5e1;
            transition: all 0.2s;
        }
        .dropdown-item:hover, .dropdown-item:focus {
            background-color: var(--card-bg);
            color: var(--primary-color);
        }
        
p, span, li, label, small {
  color: var(--text-secondary) !important;
}

p {
  color: #cbd5e1 !important;
  font-size: 1rem;
  line-height: 1.75;
}

.lead {
  color: #e2e8f0 !important;
  font-size: 1.15rem;
  line-height: 1.75;
  font-weight: 400;
}

.text-muted {
  color: #cbd5e1 !important;
}

.text-secondary {
  color: #e2e8f0 !important;
}

h1, h2, h3, h4, h5, h6, .font-syne, .font-heading {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

a {
  text-decoration: none;
  transition: var(--transition-smooth, all 0.3s ease);
}

/* --- MOBILE OVERFLOW FIXES --- */
@media (max-width: 991px) {
  .bg-ambient-orb {
    max-width: 300px !important;
    max-height: 300px !important;
    filter: blur(80px) !important;
    left: auto !important;
    right: auto !important;
  }
  .orb-1 { top: -50px; right: -20px; }
  .orb-2 { top: 20%; left: -20px; }
  .orb-3 { bottom: 5%; right: -20px; }

  .navbar-eventia {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Header & Navigation Menu
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
  --background-color: rgba(0, 0, 0, 0.8);
}

.navbar-eventia {
  background: rgba(8, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.1));
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar-eventia.scrolled {
  padding: 10px 0;
  background: rgba(8, 9, 14, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.brand-glow {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
}

.brand-glow span {
  background: linear-gradient(135deg, #f97316 0%, #ff5a1f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-link-event {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 8px;
}

.nav-link-event:hover, .nav-link-event.active {
  color: #ffffff !important;
  background: rgba(255, 90, 31, 0.1);
}

/* Desktop Dropdown Hover Engine */
@media (min-width: 992px) {
  .navbar-eventia .dropdown:hover > .dropdown-menu {
      display: block !important;
      margin-top: 0;
  }
}

.dropdown-menu {
  background: #18181b !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  max-height: 420px;
  overflow-y: auto;
}

.dropdown-item {
  color: #bfbfc6 !important;
}

.dropdown-item:hover {
  background: rgba(255, 90, 31, 0.1) !important;
  color: #ffffff !important;
}

/*--------------------------------------------------------------
# Fullscreen Carousel & Slides
--------------------------------------------------------------*/
.fs-carousel-container {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.vertical-owl {
  width: 100% !important;
  max-width: 100vw !important;
  height: 100vh !important;
}

.vertical-owl .owl-stage-outer {
  height: 100% !important;
  overflow: hidden !important;
}

.vertical-owl .owl-stage {
  display: flex !important;
  flex-direction: column !important;
  transform: none !important;
  transition: none !important;
  width: 100vw !important;
  height: 100vh !important;
}

.vertical-owl .owl-item {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100vh) scale(0.96);
  transition: transform 0.95s var(--ease-cinematic), opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}

.vertical-owl .owl-item.active {
  position: absolute !important;
  top: 0;
  left: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 2;
}

/* SLIDE CANVAS & KEN BURNS BACKGROUND */
.slide-canvas {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 6vw;
}

.slide-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  filter: brightness(0.48) contrast(1.12);
  transition: transform 9s ease-out;
  z-index: 0;
}

.owl-item.active .slide-backdrop {
  transform: scale(1);
}

.slide-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(0, 242, 254, 0.12), transparent 55%),
              linear-gradient(90deg, rgba(5, 7, 10, 0.95) 0%, rgba(5, 7, 10, 0.72) 48%, rgba(5, 7, 10, 0.35) 100%);
  z-index: 1;
}

.slide-canvas::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, rgba(5, 7, 10, 0.9), transparent);
  z-index: 1;
  pointer-events: none;
}

/* CONTENT LAYERING & STAGGERED ENTRANCES */
.slide-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.anim-stagger {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.owl-item.active .anim-stagger:nth-child(1) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.owl-item.active .anim-stagger:nth-child(2) { transition-delay: 0.28s; opacity: 1; transform: translateY(0); }
.owl-item.active .anim-stagger:nth-child(3) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }
.owl-item.active .anim-stagger:nth-child(4) { transition-delay: 0.52s; opacity: 1; transform: translateY(0); }
.owl-item.active .anim-stagger:nth-child(5) { transition-delay: 0.64s; opacity: 1; transform: translateY(0); }

/* BADGES & PILLS */
.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-glow);
}

.stat-pill {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
}
.stat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan-glow);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 242, 254, 0.18);
}

/* PORTALS & CARDS */
.portal-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 242, 254, 0.1);
}
.portal-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.portal-frame:hover img {
  transform: scale(1.04);
}
.portal-overlay-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* CARDS & PANELS */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  position: relative;
  transition: var(--transition-smooth);
}
.glass-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(255, 90, 31, 0.22);
}

.bg-ambient-orb {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
}
.orb-1 { top: -100px; right: -80px; background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%); }
.orb-2 { top: 38%; left: -140px; background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%); }
.orb-3 { bottom: 10%; right: -100px; background: radial-gradient(circle, var(--accent-primary) 0%, var(--accent-secondary) 60%, transparent 75%); }

/* PILLAR CARDS */
.pillar-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.pillar-card {
  background-color: var(--bg-surface) !important;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.35s ease-in-out;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-subtle) !important;
}
.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(255, 90, 31, 0.22);
  border-color: var(--border-focus) !important;
}
.pillar-card .pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background-color: var(--accent-primary-subtle);
  border: 1px solid var(--accent-primary-border);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all 0.3s ease;
}
.pillar-card .pillar-icon i {
  font-size: 1.75rem;
  line-height: 1;
}
.pillar-card:hover .pillar-icon {
  background: var(--gradient-accent);
  color: #ffffff;
}

/* ATHLETE & COACH ELEMENTS */
.athlete-card, .coach-card, .course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}
.athlete-card:hover, .coach-card:hover, .course-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(255, 90, 31, 0.28);
}

.athlete-img-wrapper, .coach-img-wrapper {
  position: relative;
  height: 420px;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.athlete-thumb, .coach-thumb {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.athlete-card:hover .athlete-thumb, .coach-card:hover .coach-thumb {
  transform: scale(1.04);
  filter: brightness(0.6);
}

.athlete-default-info, .coach-default-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(8, 9, 14, 0.98) 0%, rgba(8, 9, 14, 0.8) 60%, transparent 100%);
  transition: opacity 0.3s ease;
}
.athlete-card:hover .athlete-default-info, .coach-card:hover .coach-default-info {
  opacity: 0;
  pointer-events: none;
}

.athlete-hover-overlay, .coach-hover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: rgba(11, 15, 25, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--accent-primary-border);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);
}
.athlete-card:hover .athlete-hover-overlay, .coach-card:hover .coach-hover-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* TIMELINE & METRICS */
.journey-timeline {
  position: relative;
  padding-left: 32px;
}
.journey-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}
.timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 90, 31, 0.7);
}

/* PRELOADER */
#page-preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-midnight);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-title {
            background: linear-gradient(rgba(21,21,23,0.9), rgba(21,21,23,0.9)), url('uploads/events/events_6ab171bd777ab3.87793940_1790013885.jpg') center/cover no-repeat;
            padding: 80px 0;
            text-align: center;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .audience-wrapper {
            background-color: var(--card-bg) !important;
            border: 1px solid rgba(255,255,255,0.08);
            padding: 48px;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        }
        .audience-intro h3 {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-light);
            margin-bottom: 15px;
        }
        .audience-intro .tagline-text {
            color: var(--primary-color);
            font-size: 1.05rem;
            font-style: italic;
            margin-bottom: 15px;
        }
        .audience-intro p, .audience-intro div {
            color: #adb5bd;
            line-height: 1.7;
        }
        .audience-intro blockquote {
            border-left: 3px solid var(--primary-color);
            padding-left: 15px;
            margin: 20px 0;
            color: #ced4da;
            font-style: italic;
            background: transparent;
        }
        .audience-intro blockquote cite {
            display: block;
            font-size: 0.85rem;
            color: #868e96;
            margin-top: 5px;
            font-style: normal;
        }
        
        .audience-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 10px;
        }
        
        /* 3D Flip Card Effect */
        .flip-card {
            background-color: transparent;
            perspective: 1000px;
            height: 200px;
        }
        .flip-card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: left;
            transition: transform 0.6s;
            transform-style: preserve-3d;
        }
        .flip-card:hover .flip-card-inner {
            transform: rotateY(180deg);
        }
        .flip-card-front, .flip-card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            background-color: var(--card-bg);
            border: 1px solid rgba(255,255,255,0.08);
            padding: 20px;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow: hidden;
        }
        .flip-card-back {
            transform: rotateY(180deg);
            border-color: var(--primary-color);
            background-color: #18181c;
        }
        .flip-card-front i {
            font-size: 1.8rem;
            color: var(--primary-color);
            margin-bottom: 8px;
            line-height: 1;
        }
        .flip-card-front h5 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-light);
            margin-bottom: 4px;
        }
        .card-tagline {
            font-size: 0.75rem;
            color: var(--primary-color);
            font-style: italic;
            margin-bottom: 0;
        }
        .card-image {
            width: 100%;
            height: 80px;
            object-fit: cover;
            border-radius: 4px;
            margin-bottom: 8px;
        }
        .section-image {
            width: 100%;
            max-height: 250px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 15px;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .flip-card-back p {
            font-size: 0.85rem;
            color: #adb5bd;
            margin-bottom: 0;
            line-height: 1.5;
        }
        .footer {
            background-color: var(--secondary-color);
            border-top: 1px solid rgba(255,255,255,0.1);
            padding: 40px 0;
            text-align: center;
        }