/* ============================================================
   VARAM TRUST – Global Stylesheet
   Colors: Dark Brown #3B1A00 | Gold #C9952A | Cream #FBF5EC
   ============================================================ */

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

/* ---- CSS Variables ---- */
:root {
  --brown-dark:   #3B1A00;
  --brown-mid:    #5C2D00;
  --brown-light:  #7A4010;
  --gold:         #C9952A;
  --gold-light:   #E8BF6A;
  --gold-pale:    #F5E8C8;
  --cream:        #FBF5EC;
  --white:        #FFFFFF;
  --text-dark:    #2C1A06;
  --text-muted:   #7A6550;
  --border:       #E0C99A;
  --shadow:       0 8px 32px rgba(59,26,0,0.13);
  --shadow-sm:    0 2px 12px rgba(59,26,0,0.09);
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   all 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  color: var(--brown-dark);
  font-weight: 700;
  line-height: 1.25;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brown-dark); }

img { max-width: 100%; height: auto; }

/* ---- Utility Classes ---- */
.text-gold    { color: var(--gold) !important; }
.text-brown   { color: var(--brown-dark) !important; }
.bg-cream     { background-color: var(--cream) !important; }

/* ---- Training Section Background ---- */
.training-bg-section {
  position: relative;
  background-color: var(--cream);
  overflow: hidden;
}
.training-bg-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/bg-1.jpg') center / cover no-repeat;
  opacity: 0.1;
  z-index: 0;
}
.training-bg-section > .container {
  position: relative;
  z-index: 1;
}
.bg-brown     { background-color: var(--brown-dark) !important; }
.bg-gold      { background-color: var(--gold) !important; }
.border-gold  { border-color: var(--gold) !important; }

.section-pad  { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

/* ---- Section Heading ---- */
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--brown-dark);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.gold-divider {
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  margin: 12px auto 20px;
}
.gold-divider.left { margin-left: 0; }

/* ---- Buttons ---- */
/* ---- Orange Donate Button ---- */
.btn-donate-orange {
  background: linear-gradient(135deg, #FF6B00, #E04800) !important;
  color: var(--white) !important;
  border: none;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 16px rgba(255,107,0,0.45);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-donate-orange:hover {
  background: linear-gradient(135deg, #E04800, #B83A00) !important;
  box-shadow: 0 6px 24px rgba(255,107,0,0.55);
  transform: translateY(-2px);
  color: var(--white) !important;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #A8771C);
  color: var(--white) !important;
  border: none;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 16px rgba(201,149,42,0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #A8771C, var(--brown-dark));
  box-shadow: 0 6px 24px rgba(201,149,42,0.55);
  transform: translateY(-2px);
  color: var(--white) !important;
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold) !important;
  border: 2px solid var(--gold);
  padding: 11px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white) !important;
  box-shadow: 0 4px 16px rgba(201,149,42,0.4);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 11px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--brown-dark) !important;
  border-color: var(--white);
}

/* ---- Navbar ---- */
.navbar-varam {
  background: #fff;
  padding: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1050;
}
.navbar-varam.scrolled {
  background: #fff;
  backdrop-filter: blur(8px);
}
.navbar-varam .navbar-brand {
  padding: 8px 0;
}
.navbar-varam .navbar-brand img {
  height: 100px;
  width: auto;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
}
.navbar-varam .nav-link {
  color: #402413 !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 1.1rem 0.85rem !important;
  letter-spacing: 0.3px;
  position: relative;
  transition: var(--transition);
}
.navbar-varam .nav-link:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  bottom: 0.6rem;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--transition);
}
.navbar-varam .nav-link:hover,
.navbar-varam .nav-link.active {
  color: #9b5f06 !important;
}
.navbar-varam .nav-link:not(.dropdown-toggle):hover::after,
.navbar-varam .nav-link:not(.dropdown-toggle).active::after {
  transform: scaleX(1);
}
.navbar-varam .dropdown-menu {
  background: #2a0f00;
  border: none;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  min-width: 230px;
  margin-top: 0 !important;
  padding: 8px 0 12px;
  animation: dropFadeIn 0.22s ease;
}
@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Hover open on desktop */
@media (min-width: 992px) {
  .navbar-varam .dropdown:hover > .dropdown-menu {
    display: block;
  }
  .navbar-varam .dropdown-toggle::after {
    transition: transform 0.25s ease;
  }
  .navbar-varam .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}
.navbar-varam .dropdown-item {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.navbar-varam .dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.navbar-varam .dropdown-item:hover,
.navbar-varam .dropdown-item:focus {
  background: rgba(201,149,42,0.12);
  color: var(--gold-light);
  border-left-color: var(--gold);
  padding-left: 1.6rem;
}
.navbar-varam .dropdown-item:hover i {
  color: var(--gold-light);
}
.navbar-toggler {
  border: 1.5px solid var(--gold);
  padding: 6px 10px;
  border-radius: 8px;
}
.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%2880%2C30%2C0%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-varam .btn-donate {
  background: linear-gradient(135deg, #FF6B00, #E04800);
  color: var(--white) !important;
  border: none;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  margin-left: 8px;
  box-shadow: 0 3px 12px rgba(255,107,0,0.45);
  transition: var(--transition);
}
.navbar-varam .btn-donate:hover {
  background: linear-gradient(135deg, #E04800, #B83A00);
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(255,107,0,0.55);
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 50%, #8B4513 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9952A' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,149,42,0.25) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,149,42,0.15) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  border-radius: 50%;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,149,42,0.2);
  border: 1px solid rgba(201,149,42,0.4);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--white);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-title .highlight { color: var(--gold-light); }
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin-bottom: 2.2rem;
  line-height: 1.8;
}
.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
}
.hero-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-logo-wrap img {
  max-width: 420px;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
  animation: floatLogo 4s ease-in-out infinite;
}
@keyframes floatLogo {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-14px); }
}
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}
.scroll-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 1.6s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---- Hero Slider ---- */
/* Override hero-title size inside slider to fit 600px */
#heroSlider .hero-title {
  font-size: clamp(1.75rem, 2.8vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
#heroSlider .hero-subtitle {
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1.6rem;
  max-width: 520px;
}
#heroSlider .hero-badge {
  margin-bottom: 1rem;
}
/* Decorative icon panel (right column) */
.hero-deco-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-deco-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201,149,42,0.35);
  border-radius: 16px;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: var(--transition);
}
.hero-deco-card:hover {
  background: rgba(201,149,42,0.18);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.hero-deco-card i {
  font-size: 1.7rem;
  color: var(--gold-light);
}
.hero-deco-card span {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.88);
}
#heroSlider {
  position: relative;
}
#heroSlider .carousel-item {
  height: 600px;
  position: relative;
  overflow: hidden;
}
/* Slide backgrounds – gradient overlay on top of slider-1.jpg (image shows at ~0.4 opacity) */
.slide-bg-1 {
  background:
    linear-gradient(135deg, rgba(59,26,0,0.62) 0%, rgba(107,48,16,0.62) 50%, rgba(139,69,19,0.62) 100%),
    url('../images/slider-1.jpg') center/cover no-repeat;
}
.slide-bg-2 {
  background:
    linear-gradient(135deg, rgba(28,58,32,0.62) 0%, rgba(46,90,48,0.62) 55%, rgba(61,107,32,0.62) 100%),
    url('../images/slider-3.jpg') center/cover no-repeat;
}
.slide-bg-3 {
  background:
    linear-gradient(135deg, rgba(26,21,48,0.62) 0%, rgba(42,32,80,0.62) 55%, rgba(58,40,112,0.62) 100%),
    url('../images/slider-2.jpg') center/cover no-repeat;
}
/* Slide content wrapper */
.hero-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 600px;
  padding: 2.5rem 0;
  width: 100%;
}
/* Custom dot indicators */
.hero-indicators {
  bottom: 18px;
  gap: 6px;
  margin: 0;
}
.hero-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border-top: none;
  border-bottom: none;
  opacity: 1;
  transition: all 0.35s ease;
}
.hero-indicators .active {
  background: var(--gold);
  width: 30px;
  border-radius: 5px;
}
/* Arrow controls */
.hero-prev,
.hero-next {
  width: auto;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  opacity: 1;
  bottom: auto;
}
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(201,149,42,0.6);
  border-radius: 50%;
  background: rgba(0,0,0,0.28);
  color: var(--gold-light);
  font-size: 1.1rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.hero-prev:hover .hero-arrow,
.hero-next:hover .hero-arrow {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: scale(1.08);
}
/* Slide transition */
#heroSlider .carousel-item {
  transition: transform 0.65s ease-in-out;
}

/* ---- Cards ---- */
.card-varam {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
}
.card-varam:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.card-icon-box {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--gold-pale), var(--cream));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.card-varam:hover .card-icon-box {
  background: linear-gradient(135deg, var(--gold), #A8771C);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(201,149,42,0.4);
}
.card-varam .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 0.6rem;
}
.card-varam .card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Stats Strip ---- */
.stats-strip {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9952A' fill-opacity='0.06' fill-rule='evenodd'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E");
}
.stat-item { text-align: center; position: relative; z-index: 1; }
.stat-item .counter {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}
.stat-item .stat-suffix {
  color: var(--gold);
  font-size: 2rem;
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 8px;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  background: rgba(201,149,42,0.3);
  height: 80px;
  margin: auto;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  position: relative;
}
.testimonial-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.testimonial-card .quote-icon {
  font-size: 3rem;
  color: var(--gold-pale);
  line-height: 1;
  font-family: Georgia, serif;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}
.testimonial-card .quote-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
  margin-top: 1.5rem;
}
.testimonial-card .reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.2rem;
}
.reviewer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--brown-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 600; color: var(--brown-dark); font-size: 0.95rem; }
.reviewer-role { font-size: 0.8rem; color: var(--text-muted); }
.stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; }

/* ---- Page Banner (inner pages) ---- */
.page-banner {
  background:
    linear-gradient(135deg, rgba(59,26,0,0.82) 0%, rgba(92,45,0,0.82) 60%, rgba(139,69,19,0.82) 100%),
    url('../images/slider-1.jpg') center / cover no-repeat;
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9952A' fill-opacity='0.06' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}
.page-banner .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-banner .breadcrumb-item a { color: var(--gold-light); }
.page-banner .breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: var(--gold); }
.page-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-top: 0.8rem;
}

/* ---- Gallery Carousel ---- */
.gallery-carousel-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 0 16px;
}
.gallery-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  padding: 0 60px;
}
.gc-slide {
  flex: 0 0 calc(33.333% - 12px);
  min-width: calc(33.333% - 12px);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gc-slide:hover { transform: scale(1.03); box-shadow: 0 10px 36px rgba(0,0,0,0.55); }
.gc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.gc-slide:hover img { transform: scale(1.07); }

/* Arrows */
.gc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(201,149,42,0.55);
  background: rgba(0,0,0,0.45);
  color: var(--gold-light);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
  z-index: 10;
}
.gc-arrow:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.gc-arrow-prev { left: 10px; }
.gc-arrow-next { right: 10px; }

/* Dots */
.gc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.gc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}
.gc-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
}

/* Responsive */
@media (max-width: 991px) {
  .gc-slide { flex: 0 0 calc(50% - 8px); min-width: calc(50% - 8px); }
}
@media (max-width: 575px) {
  .gc-slide { flex: 0 0 calc(100% - 8px); min-width: calc(100% - 8px); }
  .gallery-carousel-track { padding: 0 40px; }
}

/* ---- Course Tag Pills ---- */
.course-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.86rem;
  color: var(--brown-dark);
  font-weight: 500;
  transition: var(--transition);
  margin: 4px;
}
.course-pill:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.course-pill i { color: var(--gold); font-size: 0.8rem; }
.course-pill:hover i { color: var(--white); }

/* ---- Gallery ---- */
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--cream);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow); }
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream), var(--gold-pale));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold);
  font-size: 2.5rem;
}
.gallery-placeholder span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
}
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(59,26,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  font-size: 1.5rem;
}
.gallery-item:hover .overlay { opacity: 1; }

/* ---- Contact Section ---- */
.contact-info-card {
  background: var(--brown-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  height: 100%;
}
.contact-info-card h4 { color: var(--gold-light); margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}
.contact-item-icon {
  width: 42px;
  height: 42px;
  background: rgba(201,149,42,0.2);
  border: 1px solid rgba(201,149,42,0.35);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; color: var(--gold-light); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-item-text span,
.contact-item-text a { color: rgba(255,255,255,0.82); font-size: 0.92rem; }
.contact-item-text a:hover { color: var(--gold-light); }

.form-varam .form-control,
.form-varam .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
}
.form-varam .form-control:focus,
.form-varam .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,149,42,0.18);
  outline: none;
}
.form-varam label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brown-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---- Footer ---- */
.footer-main {
  background: #fbf5ec;
  padding: 30px 0 0;
  border-top: 3px solid var(--gold);
}
.footer-brand img {
  height: 80px;
  margin-bottom: 1.2rem;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
}
.footer-brand p {
  color: #5a3a18;
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 290px;
}
.footer-reg {
  color: var(--gold) !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.footer-heading {
  font-family: 'Playfair Display', serif;
  color: var(--brown-dark);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 12px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: #6b3f12;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.footer-links a::before {
  content: '›';
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}
.footer-contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}
.footer-contact-item i {
  color: var(--gold);
  margin-top: 3px;
  min-width: 18px;
  font-size: 1rem;
}
.footer-contact-item span {
  color: #5a3a18;
  font-size: 0.88rem;
  line-height: 1.7;
}
.footer-contact-item span a {
  color: #5a3a18;
  text-decoration: none;
  transition: var(--transition);
}
.footer-contact-item span a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 1.5rem; }
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(201,149,42,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(201,149,42,0.12);
}
.social-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(201,149,42,0.35);
}
.footer-bottom {
  background: var(--brown-dark);
  padding: 20px 0;
  margin-top: 56px;
  border-top: 2px solid rgba(201,149,42,0.3);
}
.footer-bottom p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin: 0; }
.footer-bottom a { color: var(--gold); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---- Values Grid ---- */
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.value-card:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.value-card:hover h5,
.value-card:hover p { color: var(--white) !important; }
.value-card:hover .value-icon { background: rgba(201,149,42,0.25); color: var(--gold-light); }
.value-icon {
  width: 70px;
  height: 70px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0 auto 1.2rem;
  transition: var(--transition);
}
.value-card h5 { color: var(--brown-dark); font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; transition: var(--transition); }
.value-card p { color: var(--text-muted); font-size: 0.85rem; margin: 0; transition: var(--transition); }

/* ---- Back to Top ---- */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--gold), #A8771C);
  color: var(--white);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(201,149,42,0.5);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  z-index: 999;
}
#backToTop:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(201,149,42,0.6); }
#backToTop.show { display: flex; }

/* ---- Accordion ---- */
.accordion-varam .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.accordion-varam .accordion-button {
  background: var(--cream);
  color: var(--brown-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius) !important;
}
.accordion-varam .accordion-button:not(.collapsed) {
  background: var(--brown-dark);
  color: var(--gold-light);
  box-shadow: none;
}
.accordion-varam .accordion-button::after { filter: invert(0); }
.accordion-varam .accordion-button:not(.collapsed)::after { filter: invert(1); }

/* ---- AOS Fallback: show content if AOS JS fails to initialise ---- */
body:not(.aos-initialized) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}


/* ============================================================
   RESPONSIVE - MOBILE NAVBAR
   ============================================================ */

@media (max-width: 991px) {
  /* Navbar brand logo smaller on mobile */
  .navbar-varam .navbar-brand img {
    height: 64px;
  }

  /* Collapsed menu container styling */
  .navbar-varam .navbar-collapse {
    background: #fff8f0;
    border-top: 2px solid rgba(201,149,42,0.25);
    border-radius: 0 0 12px 12px;
    padding: 0.5rem 0 1rem;
    margin-top: 6px;
    box-shadow: 0 8px 24px rgba(80,30,0,0.12);
  }

  /* Tighter padding per nav link on mobile */
  .navbar-varam .nav-link {
    padding: 0.55rem 1.2rem !important;
    border-radius: 6px;
    margin: 2px 8px;
  }

  /* Hide the gold underline on mobile (not needed in stacked menu) */
  .navbar-varam .nav-link:not(.dropdown-toggle)::after {
    display: none;
  }
  /* Bootstrap dropdown caret: inline next to text, not pushed to right edge */
  .navbar-varam .dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }
  .navbar-varam .dropdown-toggle::after {
    margin-left: 2px;
    vertical-align: 0.15em;
  }

  /* Active / hover highlight on mobile */
  .navbar-varam .nav-link:hover,
  .navbar-varam .nav-link.active {
    background: rgba(201,149,42,0.1);
    color: #9b5f06 !important;
  }

  /* Dropdown menu: inline within collapsed menu, dark background */
  .navbar-varam .dropdown-menu {
    background: rgba(42,15,0,0.96);
    border-top: 2px solid var(--gold);
    border-radius: 8px;
    box-shadow: none;
    margin: 4px 8px 4px 16px !important;
    min-width: calc(100% - 24px);
    padding: 6px 0 10px;
    animation: none;
  }

  /* Ensure Bootstrap .show class displays dropdown on tap */
  .navbar-varam .dropdown-menu.show {
    display: block !important;
  }

  /* Donate Now button: full-width at bottom of mobile menu */
  .navbar-varam .btn-donate {
    display: block;
    width: calc(100% - 16px);
    margin: 10px 8px 4px;
    text-align: center;
  }

  /* Hero logo and stats adjustments */
  .hero-logo-wrap { margin-top: 2rem; }
  .hero-logo-wrap img { max-width: 260px; }
  .hero-stats { gap: 1.5rem; }
  .stat-divider { display: none; }
  .hero-prev, .hero-next { display: none; }
  .hero-indicators { bottom: 20px; }
  .hero-slide-content { padding: 3.5rem 0 4.5rem; min-height: 82vh; }
}

@media (max-width: 767px) {
  .section-pad { padding: 60px 0; }
  .hero-section { min-height: 80vh; }
  .hero-stats { gap: 1.2rem; }
  .stats-strip .row > div { margin-bottom: 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .page-banner { min-height: 220px; }
  .page-banner-title { font-size: 2rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8rem; }
}
