/* =============================================
   McDan Foundation – Main Stylesheet  v2
   Dark · Gold · White
   ============================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary:        #0a1628;
  --primary-mid:    #0d1f3c;
  --primary-light:  #162d52;
  --secondary:      #c8960c;
  --secondary-light:#f0c040;
  --secondary-pale: #fde68a;
  --dark:           #060e1c;
  --light:          #0f1d35;
  --card-bg:        #111e33;
  --card-border:    #1e2f4a;
  --white:          #ffffff;
  --off-white:      #f0f4ff;
  --gray:           #8899bb;
  --gray-light:     #1e2f4a;
  --text:           #ccd6f6;
  --text-muted:     #8899bb;
  --font-head:      'Playfair Display', serif;
  --font-body:      'Inter', sans-serif;
  --shadow:         0 8px 32px rgba(0,0,0,0.45);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.6);
  --shadow-gold:    0 8px 32px rgba(200,150,12,0.25);
  --radius:         12px;
  --radius-lg:      20px;
  --transition:     all 0.38s cubic-bezier(0.25, 0.8, 0.25, 1);
  --gold-grad:      linear-gradient(135deg, #c8960c 0%, #f0c040 50%, #c8960c 100%);
  --dark-grad:      linear-gradient(160deg, #060e1c 0%, #0a1628 50%, #0d1f3c 100%);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--dark);
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }

/* ---- Page Lock ---- */
.page-wrapper {
  overflow-x: hidden;
  position: relative;
  width: 100%;
  background: var(--dark);
}

/* =============================================
   LOADER
   ============================================= */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: spin 1.4s linear infinite;
}
.loader-ring:nth-child(1) { border-top-color: var(--secondary); border-right-color: var(--secondary); animation-duration: 1.6s; }
.loader-ring:nth-child(2) { inset: 14px; border-bottom-color: rgba(240,192,64,0.4); border-left-color: rgba(240,192,64,0.4); animation-duration: 1.1s; animation-direction: reverse; }
.loader-ring:nth-child(3) { inset: 28px; border-top-color: var(--secondary-light); border-right-color: var(--secondary-light); animation-duration: 0.75s; }

.loader-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  animation: pulse-logo 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(200,150,12,0.6));
}

.loader-text {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  margin-top: 1.5rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUpIn 0.9s ease 0.4s forwards;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-logo { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 18px rgba(200,150,12,0.6)); } 50% { transform: scale(1.08); filter: drop-shadow(0 0 32px rgba(240,192,64,0.9)); } }
@keyframes fadeUpIn { from { opacity:0; transform: translateY(14px); } to { opacity:0.9; transform: translateY(0); } }
@keyframes shimmer { 0%,100% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes floatUp { from { opacity:0; transform: translateY(40px); } to { opacity:1; transform: translateY(0); } }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }
@keyframes pulse-glow { 0%,100%{box-shadow:0 0 0 0 rgba(200,150,12,0.4);} 50%{box-shadow:0 0 0 16px rgba(200,150,12,0);} }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* =============================================
   NAVBAR
   ============================================= */
.navbar-brand img {
  height: 52px;
  object-fit: contain;
}

.mcdan-nav {
  background: rgba(6,14,28,0.96) !important;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200,150,12,0.3);
  padding: 0.6rem 0;
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1050;
}

.mcdan-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  padding: 0.55rem 1rem !important;
  position: relative;
  transition: var(--transition);
}

.mcdan-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--gold-grad);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.mcdan-nav .nav-link:hover::after,
.mcdan-nav .nav-link.active::after { transform: scaleX(1); }

.mcdan-nav .nav-link:hover,
.mcdan-nav .nav-link.active { color: var(--secondary-light) !important; }

.mcdan-nav .dropdown-menu {
  background: #0a1628;
  border: 1px solid rgba(200,150,12,0.3);
  border-radius: var(--radius);
  padding: 0.6rem 0;
  margin-top: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.mcdan-nav .dropdown-item {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  padding: 0.6rem 1.4rem;
  transition: var(--transition);
}

.mcdan-nav .dropdown-item:hover {
  background: rgba(200,150,12,0.15);
  color: var(--secondary-light);
}

.navbar-toggler { border-color: rgba(200,150,12,0.5) !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28240,192,64,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* =============================================
   HERO – HOMEPAGE  (bgimg slider + Three.js)
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

/* bg image slider sitting behind canvas */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  transform: scale(1.06);
  animation: slowZoom 12s ease-in-out infinite alternate;
}
.hero-bg-slide.active { opacity: 1; }
@keyframes slowZoom { from{transform:scale(1.06)} to{transform:scale(1.0)} }

#three-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    160deg,
    rgba(6,14,28,0.88) 0%,
    rgba(6,14,28,0.65) 50%,
    rgba(6,14,28,0.82) 100%
  );
}
/* Bottom fade into dark */
.hero-overlay::after {
  content:'';
  position:absolute;
  bottom:0; left:0; right:0;
  height:180px;
  background: linear-gradient(to top, var(--dark), transparent);
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
}

.hero-content .badge-pill {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary-light);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  animation: floatUp 0.7s ease both;
}
.hero-content .badge-pill::before {
  content:'';
  width:6px; height:6px;
  border-radius:50%;
  background: var(--secondary-light);
  animation: pulse-glow 2s ease infinite;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  animation: floatUp 0.7s ease 0.15s both;
  letter-spacing: -0.5px;
}
.hero-title span {
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(204,214,246,0.85);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 2.2rem;
  animation: floatUp 0.7s ease 0.3s both;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: floatUp 0.7s ease 0.45s both;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  position: relative;
  height: 440px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 9s ease;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6,14,28,0.82) 0%, rgba(6,14,28,0.55) 60%, rgba(6,14,28,0.82) 100%);
}
.page-hero-overlay::after {
  content:'';
  position:absolute;
  bottom:0; left:0; right:0; height:120px;
  background: linear-gradient(to top, var(--dark), transparent);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.page-hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  line-height: 1.15;
}

/* bgimg section slider (used on homepage event section) */
.bg-slider-section {
  position: relative;
  overflow: hidden;
}
.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.bg-slide.active { opacity: 1; }

/* =============================================
   SECTION UTILITIES
   ============================================= */
section { padding: 90px 0; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--secondary);
  opacity: 0.4;
}
.section-label::before { width: 24px; }
.section-label::after  { width: 24px; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}

.section-title.light { color: var(--white); }
.section-title.dark  { color: var(--dark); }

.section-divider {
  width: 56px;
  height: 3px;
  background: var(--gold-grad);
  background-size: 200% auto;
  border-radius: 3px;
  margin: 1rem 0 1.6rem;
  animation: shimmer 3s linear infinite;
}
.section-divider.center { margin-left: auto; margin-right: auto; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary-custom {
  background: var(--gold-grad);
  background-size: 200% auto;
  color: #060e1c;
  font-weight: 700;
  padding: 0.82rem 2.2rem;
  border-radius: 50px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(200,150,12,0.4);
  font-size: 0.92rem;
  letter-spacing: 0.3px;
}
.btn-primary-custom:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(200,150,12,0.55);
  color: #060e1c;
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  padding: 0.82rem 2.2rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition);
  font-size: 0.92rem;
  backdrop-filter: blur(4px);
}
.btn-outline-custom:hover {
  border-color: var(--secondary-light);
  color: var(--secondary-light);
  background: rgba(200,150,12,0.08);
  transform: translateY(-3px);
}

.btn-gold {
  background: var(--gold-grad);
  background-size: 200% auto;
  color: #060e1c;
  font-weight: 700;
  padding: 0.65rem 1.7rem;
  border-radius: 50px;
  border: none;
  font-size: 0.88rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(200,150,12,0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-gold:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,150,12,0.5);
  color: #060e1c;
}

.btn-navy {
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-weight: 600;
  padding: 0.65rem 1.7rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.88rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(4px);
}
.btn-navy:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
  transform: translateY(-2px);
}

/* =============================================
   STATS / COUNTERS
   ============================================= */
.stats-section {
  background: var(--primary-mid);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(200,150,12,0.15);
  border-bottom: 1px solid rgba(200,150,12,0.15);
}
.stats-section::before {
  content:'';
  position:absolute;
  inset:0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(200,150,12,0.07) 0%, transparent 70%);
  pointer-events:none;
}

.stat-item {
  text-align: center;
  color: var(--white);
  padding: 1.5rem 1rem;
}
.stat-item-inner {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,150,12,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem 1rem;
  transition: var(--transition);
}
.stat-item-inner:hover {
  background: rgba(200,150,12,0.08);
  border-color: rgba(200,150,12,0.5);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================================
   CARDS – PROGRAMS
   ============================================= */
.program-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.program-card::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:3px;
  background: var(--gold-grad);
  background-size: 200% auto;
  opacity:0;
  transition: opacity 0.3s ease;
  animation: shimmer 3s linear infinite;
}
.program-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(200,150,12,0.25); border-color: rgba(200,150,12,0.3); }
.program-card:hover::before { opacity:1; }

.program-card-img {
  height: 240px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.7s ease;
}
.program-card:hover .program-card-img { transform: scale(1.07); }

.program-card-img-wrap { overflow: hidden; }

.program-card-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(200,150,12,0.12);
  border: 1px solid rgba(200,150,12,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.4rem;
  color: var(--secondary-light);
  transition: var(--transition);
}
.program-card:hover .program-card-icon {
  background: rgba(200,150,12,0.22);
  border-color: var(--secondary);
}

.program-card h4 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.program-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

/* =============================================
   BLOG CARDS
   ============================================= */
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(200,150,12,0.3); }

.blog-card-img-wrap { overflow: hidden; height: 230px; }
.blog-card-img { width:100%; height:100%; object-fit:cover; transition: transform 0.7s ease; }
.blog-card:hover .blog-card-img { transform: scale(1.07); }

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.6rem;
  display: inline-block;
  background: rgba(200,150,12,0.1);
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(200,150,12,0.2);
}

.blog-card h5 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.blog-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; flex:1; }

.blog-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =============================================
   ABOUT / CEO SECTION
   ============================================= */
.about-section {
  background: var(--primary-mid);
}

.ceo-section {
  background: var(--primary-mid);
  color: var(--white);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.ceo-section::before {
  content:'';
  position:absolute;
  top:-200px; right:-200px;
  width:600px; height:600px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(200,150,12,0.08) 0%, transparent 70%);
  pointer-events:none;
}

.ceo-img-wrap {
  position: relative;
  display: inline-block;
}

.ceo-img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(200,150,12,0.2);
  object-fit: cover;
  aspect-ratio: 3/4;
}

.ceo-badge {
  position: absolute;
  bottom: -1.2rem;
  right: -1.2rem;
  background: var(--gold-grad);
  background-size: 200% auto;
  color: #060e1c;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.9rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(200,150,12,0.4);
  text-align: center;
  animation: shimmer 4s linear infinite;
}

.principle-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.principle-item:last-child { border-bottom: none; }

.principle-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary-light);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(240,192,64,0.6);
}

/* =============================================
   SEARCH BAR
   ============================================= */
.search-wrap {
  position: relative;
  max-width: 520px;
}
.search-wrap input {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--white);
  border-radius: 50px;
  padding: 0.85rem 1.4rem 0.85rem 3.2rem;
  font-size: 0.9rem;
  width: 100%;
  transition: var(--transition);
}
.search-wrap input::placeholder { color: var(--text-muted); }
.search-wrap input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(200,150,12,0.15);
  background: rgba(200,150,12,0.04);
}
.search-wrap .search-icon {
  position: absolute; left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--secondary); font-size: 1rem;
}

/* =============================================
   BLOG POST (full article)
   ============================================= */
.post-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}
.post-content h2, .post-content h3 {
  font-family: var(--font-head);
  color: var(--white);
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}
.post-content p { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.post-content li { margin-bottom: 0.6rem; color: var(--text); }

.post-content blockquote {
  border-left: 3px solid var(--secondary);
  padding: 1.2rem 1.8rem;
  background: rgba(200,150,12,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--secondary-pale);
  margin: 2rem 0;
  font-size: 1.08rem;
}

.post-hero-img {
  width: 100%; max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.post-sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.post-sidebar-card h6 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(200,150,12,0.3);
}

/* =============================================
   PROGRAM PAGE LAYOUT
   ============================================= */
.program-page-hero {
  background: var(--primary);
  padding: 100px 0 60px;
  color: var(--white);
}

.program-icon-lg {
  width: 80px; height: 80px;
  border-radius: 20px;
  background: rgba(200,150,12,0.12);
  border: 1px solid rgba(200,150,12,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--secondary-light);
  margin-bottom: 1.5rem;
}

.initiative-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 1rem;
}
.initiative-item:hover { transform: translateX(8px); border-left-color: var(--secondary-light); box-shadow: var(--shadow-lg); }
.initiative-item h6 { font-weight: 700; color: var(--white); margin-bottom: 0.4rem; }
.initiative-item p  { color: var(--text-muted); font-size:0.88rem; margin:0; }

/* =============================================
   AWARDS PAGE
   ============================================= */
.award-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 2px solid var(--secondary);
  text-align: center;
}
.award-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg), var(--shadow-gold); border-color: var(--secondary); }

.award-icon { font-size: 3rem; color: var(--secondary); margin-bottom: 1rem; display:block; }
.award-card h5 { font-family: var(--font-head); color: var(--white); margin-bottom: 0.5rem; }

.honorees-table th { background: var(--primary-mid); color: var(--secondary-light); font-weight: 600; border-color: var(--card-border); }
.honorees-table td { color: var(--text); background: var(--card-bg); border-color: var(--card-border); }
.honorees-table td, .honorees-table th { padding: 0.9rem 1rem; vertical-align: middle; }

/* =============================================
   ABOUT PAGE
   ============================================= */
.mission-card {
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
  border: 1px solid rgba(200,150,12,0.2);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
}

.vision-card {
  background: linear-gradient(135deg, rgba(200,150,12,0.15), rgba(200,150,12,0.08));
  border: 1px solid rgba(200,150,12,0.35);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
}

.mission-card h4, .vision-card h4 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.mission-card blockquote, .vision-card blockquote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  border: none;
  padding: 0;
  background: none;
  color: var(--text);
}

.team-card {
  text-align: center;
  padding: 1.6rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(200,150,12,0.3); }

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(200,150,12,0.12);
  border: 1px solid rgba(200,150,12,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--secondary-light);
  margin: 0 auto 1rem;
}

/* =============================================
   CHALLENGE PAGE
   ============================================= */
.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
  transition: var(--transition);
}
.step-item:hover { transform: translateX(8px); border-left: 2px solid var(--secondary); box-shadow: var(--shadow-lg); }

.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold-grad);
  background-size: 200% auto;
  color: #060e1c;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: shimmer 4s linear infinite;
}

.step-content h6 { font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
.step-content p  { color: var(--text-muted); font-size:0.88rem; margin:0; }

.prize-highlight {
  background: linear-gradient(135deg, rgba(200,150,12,0.18), rgba(200,150,12,0.06));
  border: 1px solid rgba(200,150,12,0.4);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  position: relative;
  overflow: hidden;
}
.prize-highlight::before {
  content:'';
  position:absolute;
  top:-100px; left:50%;
  transform:translateX(-50%);
  width:400px; height:400px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(200,150,12,0.12), transparent 70%);
  pointer-events:none;
}

.prize-amount {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* =============================================
   PILLAR CARD (dark theme – about page)
   ============================================= */
.pillar-card-dark {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}
.pillar-card-dark:hover { border-color: rgba(200,150,12,0.4); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-card-dark h5 { font-family: var(--font-head); color: #fff; margin-bottom: 0.6rem; font-size: 1rem; }
.pillar-card-dark p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

.pillar-card-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(100,140,220,0.12);
  border: 1px solid rgba(100,140,220,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
  color: #7aabff;
}
.pillar-card-icon.gold {
  background: rgba(200,150,12,0.12);
  border-color: rgba(200,150,12,0.25);
  color: var(--secondary-light);
}

/* =============================================
   CONTACT / INFO
   ============================================= */
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.3rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  transition: var(--transition);
}
.contact-info-item:hover { border-color: rgba(200,150,12,0.35); }

.contact-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(200,150,12,0.12);
  border: 1px solid rgba(200,150,12,0.25);
  color: var(--secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-control-custom {
  background: var(--primary-mid);
  border: 1px solid var(--card-border);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  font-size: 0.9rem;
  transition: var(--transition);
  width: 100%;
}
.form-control-custom::placeholder { color: var(--text-muted); }
.form-control-custom:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(200,150,12,0.12);
  background: rgba(200,150,12,0.05);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #040b16;
  color: rgba(255,255,255,0.75);
  padding: 80px 0 0;
  border-top: 1px solid rgba(200,150,12,0.15);
}

footer .footer-logo { height: 64px; object-fit: contain; margin-bottom: 1.2rem; }
footer p { font-size: 0.875rem; line-height: 1.8; color: rgba(255,255,255,0.6); }

footer h6 {
  color: var(--secondary-light);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(200,150,12,0.2);
}

footer ul li { margin-bottom: 0.65rem; }
footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
footer ul li a::before { content:'›'; color: var(--secondary); font-weight:700; }
footer ul li a:hover { color: var(--secondary-light); padding-left: 4px; }

.footer-divider { border-color: rgba(255,255,255,0.06); margin: 3rem 0 0; }
.footer-bottom { padding: 1.3rem 0; font-size: 0.78rem; color: rgba(255,255,255,0.35); }

.social-icons { display:flex; gap:0.75rem; flex-wrap:wrap; margin-top:1rem; }
.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-icon:hover { background: var(--secondary); border-color: var(--secondary); color: #060e1c; transform: translateY(-4px); box-shadow: 0 6px 20px rgba(200,150,12,0.4); }

/* =============================================
   SCROLL TO TOP
   ============================================= */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 999;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold-grad);
  background-size: 200% auto;
  color: #060e1c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 20px rgba(200,150,12,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
}
#scrollTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollTop:hover { animation: shimmer 1.5s linear infinite; transform: translateY(-3px); box-shadow: 0 8px 28px rgba(200,150,12,0.6); }

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* =============================================
   PARTNERS MARQUEE
   ============================================= */
.partners-section {
  background: var(--primary-mid);
  border-top: 1px solid rgba(200,150,12,0.12);
  border-bottom: 1px solid rgba(200,150,12,0.12);
  padding: 40px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.partner-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.8) contrast(0.7);
  opacity: 0.55;
  transition: var(--transition);
  margin: 0 40px;
  flex-shrink: 0;
}
.partner-logo-img:hover { filter: none; opacity: 1; transform: scale(1.1); }

/* =============================================
   GALLERY / EVENTS SECTION
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 1;
}
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1/2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,14,28,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span { color: var(--white); font-size: 0.8rem; font-weight: 600; }

/* =============================================
   UTILITY / MISC
   ============================================= */
.text-gold  { color: var(--secondary) !important; }
.text-white { color: var(--white) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-dark-card { background: var(--card-bg); }
.bg-section  { background: var(--primary-mid); }

.rounded-custom    { border-radius: var(--radius); }
.rounded-lg-custom { border-radius: var(--radius-lg); }

.img-cover { object-fit:cover; width:100%; height:100%; }

/* Gold text shimmer utility */
.gold-text {
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* Glow border */
.glow-border { box-shadow: 0 0 0 1px rgba(200,150,12,0.3), 0 0 20px rgba(200,150,12,0.1); }

/* Lazy load fade */
img[data-src] { opacity: 0; transition: opacity 0.6s ease; }
img.loaded    { opacity: 1; }

/* Breadcrumb dark */
.breadcrumb-item a { color: rgba(255,255,255,0.55); }
.breadcrumb-item.active { color: var(--secondary-light); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
  section { padding: 70px 0; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); }
  .ceo-img { max-width: 300px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; }
}

@media (max-width: 767.98px) {
  section { padding: 55px 0; }
  .page-hero { height: 320px; }
  .stats-section { padding: 50px 0; }
  .blog-card-img-wrap { height: 200px; }
  .program-card-img { height: 200px; }
  .contact-form-wrap { padding: 1.5rem; }
  footer { padding: 55px 0 0; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 575.98px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn-primary-custom,
  .hero-btns .btn-outline-custom { width: 100%; justify-content: center; }
  .prize-amount { font-size: 3rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

html, body { overflow-x: hidden; overscroll-behavior-x: none; }
