/* ========================================
   THEME VARIABLES (Gold / Red / Black)
   ======================================== */
:root {
  --gold: #d4af37;
  --gold-dark: #bfa14a;
  --red: #c81d25;
  --red-dark: #a4161a;
  --black: #000000;
  --dark: #111111;
  --text: #e9e9e9;
  --text-muted: #cfcfcf;
  --text-dark: #333333;
  --bg: #ffffff;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 0 !important; /* ensure no top spacing */
}

/* ========================================
   NAVBAR OVERRIDES (Gold/Red/Black)
   ======================================== */
.navbar {
  background: var(--black) !important;
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
  margin: 0 !important;      /* remove any global margin */
  top: 0 !important;         /* override any theme top offset */
  position: sticky;          /* stick to top when scrolling */
  z-index: 1200;             /* above content */
}

/* Fix gap created by templatemo sticky wrapper */
.sticky-wrapper {
  position: relative !important;
  top: 0 !important;
  margin-top: 0 !important;
  z-index: 1199 !important;
}

.navbar .navbar-brand {
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 1px;
}

.navbar .navbar-brand:hover {
  color: var(--gold) !important;
}

.navbar .nav-link,
.navbar a {
  color: #efefef !important;
}

.navbar .nav-link:hover,
.navbar a:hover {
  color: var(--gold) !important;
}

/* Dropdown (existing custom classes) */
.dropbtn {
  background: transparent;
  color: #efefef;
  border: none;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dropbtn:hover {
  color: var(--gold);
}

.dropdown-content a {
  color: var(--text-dark) !important;
}

.dropdown-content a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--black) !important;
}

/* Registration button override */
.regbtn.btn-2 {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #ffffff !important;
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 24px;
  padding: 10px 18px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(200, 29, 37, 0.35);
  transition: all 0.25s ease;
}

.regbtn.btn-2:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(200, 29, 37, 0.5);
  border-color: var(--gold);
}

/* ========================================
   HERO SECTION (Black -> Red, Gold titles)
   ======================================== */
.hero-section {
  min-height: 70vh;
  background: radial-gradient(ellipse at top left, #1a1a1a 0%, var(--black) 40%),
              linear-gradient(135deg, rgba(200, 29, 37, 0.85) 0%, rgba(0, 0, 0, 0.9) 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.12) 0, rgba(212, 175, 55, 0) 45%),
    radial-gradient(circle at 80% 30%, rgba(200, 29, 37, 0.18) 0, rgba(200, 29, 37, 0) 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(212, 175, 55, 0.35);
  animation: fadeInUp 0.9s ease;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--text-muted);
  font-weight: 300;
  animation: fadeInUp 1.1s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
  padding: 80px 20px;
  background: var(--bg);
}

/* make alternating sections slightly off-white (but not flat gray) */
.content-section:nth-of-type(even) {
  background: #fbfbfb;
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--black);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 18px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.5);
}

.section-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--dark);
  margin: 30px 0 14px;
  position: relative;
  padding-left: 14px;
}

.section-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 70%;
  background: linear-gradient(180deg, var(--gold), var(--red));
  border-radius: 4px;
}

.section-text {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #4a4a4a;
  line-height: 1.85;
  margin-bottom: 18px;
  text-align: justify;
}

/* Feature List with gold badges */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 26px 0;
}

.feature-list li {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #444;
  padding: 12px 0 12px 42px;
  position: relative;
  line-height: 1.6;
  transition: all 0.25s ease;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 6px 14px rgba(212, 175, 55, 0.35);
}

.feature-list li:hover {
  padding-left: 48px;
  color: var(--black);
}

/* ========================================
   LEADERSHIP SECTIONS (PARALLAX)
   ======================================== */
.parallax-section {
  min-height: 100vh;
  background-attachment: fixed; /* use element-fixed for reliable coverage */
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px 20px;
  background-color: #141414; /* fallback to avoid flat gray if image not loaded yet */
}

/* no pseudo overlay; backgrounds are applied directly to the element */
.parallax-section::before {
  content: none;
}

.parallax2 {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0,0,0,0.8)), url('../img/refbg.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax3 {
  background-image: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.8)), url('../img/1.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax4 {
  background-image: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.8)), url('../img/4.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 50vh;
}

.parallax5 {
  background-image: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.8)), url('../img/5.png');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 50vh;
}

.parallax-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.leader-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.leader-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  border: 4px solid rgba(212, 175, 55, 0.25);
  background: #fff;
}

.leader-image:hover {
  transform: scale(1.045) translateY(-8px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
}

.leader-info {
  color: var(--text);
}

.leader-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.leader-name {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

.leader-description {
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.85;
  margin-bottom: 18px;
  text-align: justify;
  background: rgba(0, 0, 0, 0.35);
  padding: 18px 18px;
  border-radius: 10px;
  border-left: 4px solid var(--gold);
}

/* ========================================
   CALL TO ACTION BUTTON (Red with Gold)
   ======================================== */
.cta-button {
  display: inline-block;
  padding: 16px 36px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border: 2px solid rgba(212, 175, 55, 0.6);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(200, 29, 37, 0.4), 0 0 0 0 rgba(212,175,55,0.0);
  text-decoration: none;
  text-align: center;
  margin-top: 12px;
}

.cta-button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border-color: var(--red);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.45), 0 0 0 4px rgba(212,175,55,0.15);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold), var(--red));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.scroll-to-top.show {
  display: flex;
}

/* ========================================
   PAGE LOADER (Black background, red ring, gold tip)
   ======================================== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 64px;
  height: 64px;
  border: 6px solid rgba(200, 29, 37, 0.25);
  border-top-color: var(--gold);
  border-right-color: rgba(200,29,37,0.6);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   SCROLL PROGRESS BAR (Gold -> Red)
   ======================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  z-index: 2000; /* ensure above navbar */
  transition: width 0.1s ease;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets and below (<= 991px) */
@media (max-width: 991px) {
  .parallax-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .leader-image {
    max-width: 360px;
  }

  .leader-description {
    text-align: left;
  }

  .parallax-section {
    background-attachment: scroll; /* better mobile performance */
    min-height: auto;
    padding: 60px 20px;
  }

  .parallax4,
  .parallax5 {
    min-height: 40vh;
  }
}

/* Mobile devices (<= 768px) */
@media (max-width: 768px) {
  .content-section {
    padding: 60px 15px;
  }

  .hero-section {
    min-height: 60vh;
    padding: 40px 15px;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .parallax-content-wrapper {
    gap: 28px;
  }

  .leader-image {
    max-width: 320px;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1.3rem;
  }
}

/* Small mobile devices (<= 575px) */
@media (max-width: 575px) {
  .content-section {
    padding: 42px 15px;
  }

  .hero-section {
    min-height: 50vh;
    padding: 30px 15px;
  }

  .parallax-section {
    padding: 40px 15px;
  }

  .leader-image {
    max-width: 100%;
  }

  .leader-description {
    padding: 14px;
    text-align: justify;
  }

  .cta-button {
    padding: 14px 26px;
    width: 100%;
    max-width: 320px;
  }

  .feature-list li {
    padding-left: 36px;
  }

  .feature-list li::before {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .parallax4,
  .parallax5 {
    min-height: 30vh;
  }
}

/* Extra small devices (<= 375px) */
@media (max-width: 375px) {
  .hero-section { min-height: 42vh; }
  .section-title::after { width: 70px; }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .scroll-to-top,
  .page-loader,
  .scroll-progress {
    display: none !important;
  }
}
