/* =========================================
   SRI SRI MAA ANNAPURNA
   MODERN PREMIUM BRANDING SYSTEM
========================================= */

/* ===== Custom Fonts ===== */
@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/Merriweather_120pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/Merriweather_120pt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/Merriweather_120pt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/Merriweather_120pt-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

/* ===== Root Variables ===== */
:root {
  --brand-primary: #9b5a24;
  --brand-primary-dark: #6f3814;
  --brand-secondary: #4b2412;
  --brand-accent: #d7a63d;
  --brand-accent-soft: #f4dfb3;
  --brand-white: #fff;
  --brand-dark: #000;
  

  --brand-bg: #f7f1ea;
  --brand-surface: rgba(255, 250, 244, 0.88);
  --brand-surface-solid: #fffaf5;
  --brand-border: rgba(110, 60, 24, 0.12);

  --brand-text: #2f241b;
  --brand-text-soft: #766453;
  --brand-text-light: #fffdf9;

  --success-soft: #edf7ed;
  --warning-soft: #fff3df;

  --shadow-xs: 0 4px 12px rgba(54, 28, 10, 0.05);
  --shadow-sm: 0 10px 30px rgba(50, 24, 7, 0.08);
  --shadow-md: 0 16px 45px rgba(44, 22, 8, 0.12);
  --shadow-lg: 0 20px 60px rgba(36, 18, 6, 0.18);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --transition: all 0.3s ease;
}

/* ===== Base Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Merriweather', serif;
  background-color: var(--brand-bg);
  color: var(--brand-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--brand-text-soft);
  font-weight: 400;
}

small {
  line-height: 1.4;
}

/* ===== Links ===== */
a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-primary-dark);
  text-decoration: none;
}

/* ===== Images ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   BOOTSTRAP BUTTON OVERRIDES
========================================= */

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #fff;
}

.btn-brand {
  background-color: var(--brand-secondary);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-brand:hover {
  background-color: var(--brand-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* =========================================
   FORM BRANDING
========================================= */

.form-control,
.form-select {
  border-radius: var(--radius-md);
  padding: 0.82rem 1rem;
  border: 1px solid rgba(110, 60, 24, 0.14);
  background: #fff;
  font-family: 'Merriweather', serif;
  color: var(--brand-text);
  box-shadow: none;
}

.form-control::placeholder,
.form-select::placeholder {
  color: #9b8d7f;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(155, 90, 36, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(155, 90, 36, 0.16);
}

/* =========================================
   BACKGROUND & TEXT UTILITIES
========================================= */

.bg-brand-primary {
  background-color: var(--brand-primary) !important;
  color: #fff !important;
}

.bg-brand-secondary {
  background-color: var(--brand-secondary) !important;
  color: #fff !important;
}

.bg-brand-light {
  background-color: var(--brand-bg) !important;
}

.text-brand-primary {
  color: var(--brand-primary) !important;
}

.text-brand-secondary {
  color: var(--brand-secondary) !important;
}

.text-brand-accent {
  color: var(--brand-accent) !important;
}

.text-brand-soft {
  color: var(--brand-text-soft) !important;
}

/* =========================================
   CARD ENHANCEMENT
========================================= */

.card {
  border: 1px solid rgba(110, 60, 24, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.card.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

/* =========================================
   MODERN TOP BAR
========================================= */

.top-bar {
  background: linear-gradient(90deg, #4b2412 0%, #6a3417 100%);
  position: relative;
  z-index: 1055;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-contact,
.topbar-actions,
.social-icons {
  display: flex;
  align-items: center;
}

.topbar-link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  white-space: nowrap;
}

.topbar-link i {
  font-size: 0.95rem;
  opacity: 0.95;
}

.topbar-link:hover {
  color: #fff0c8;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-2px);
  background: #fff;
  color: var(--brand-secondary);
}

.btn-topbar-outline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-topbar-outline {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: transparent;
}

.btn-topbar-outline:hover {
  background: #fff;
  color: var(--brand-secondary);
}

/* =========================================
   PREMIUM NAVBAR
========================================= */

.navbar-premium {
  background: var(--brand-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--brand-border);
  transition: var(--transition);
  box-shadow: none;
}

.navbar-premium.navbar-scrolled {
  background: rgba(255, 255, 255);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  gap: 0.2rem;
}

.navbar-logo {
  height: 88px;
  width: 88px;
  object-fit: contain;
}

.brand-text h5 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-secondary);
  line-height: 1.12;
}

.brand-text small {
  display: block;
  color: #89684e;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  margin-top: 0.22rem;
}

.navbar-nav .nav-link {
  color: var(--brand-text);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.78rem 1rem !important;
  border-radius: var(--radius-pill);
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--brand-primary-dark);
  background: rgba(155, 90, 36, 0.08);
}

.navbar-nav .dropdown-toggle::after {
  vertical-align: middle;
  margin-left: 0.4rem;
}

/* =========================================
   DROPDOWN MENU - DARK PROFESSIONAL
========================================= */

.premium-dropdown {
  min-width: 260px;
  padding: 0.7rem;
  margin-top: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(75, 36, 18, 0.98) 0%,
      rgba(58, 26, 12, 0.98) 100%
    );
  box-shadow:
    0 18px 40px rgba(16, 8, 4, 0.28),
    0 6px 18px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.premium-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  border-radius: 14px;
  padding: 0.82rem 1rem;
  font-weight: 600;
  font-size: 0.94rem;
  color: rgba(255, 248, 240, 0.92);
  background: transparent;
  transition: all 0.28s ease;
}

.premium-dropdown .dropdown-item:hover,
.premium-dropdown .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(4px);
}

.premium-dropdown .dropdown-item:active {
  background: rgba(215, 166, 61, 0.16);
  color: #ffffff;
}

.premium-dropdown .dropdown-item.active,
.premium-dropdown .dropdown-item:active {
  background: rgba(215, 166, 61, 0.16);
  color: #fff;
}

.premium-dropdown .dropdown-divider {
  margin: 0.45rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================
   DONATE BUTTON
========================================= */

.btn-donate-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a45a23 0%, #783612 100%);
  color: #fff;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  transition: var(--transition);
  border: none;
}

.btn-donate-premium:hover,
.btn-donate-premium:focus {
  transform: translateY(-2px);
  color: #fff;
}

/* =========================================
   MODERN TOGGLER
========================================= */

.premium-toggler {
  border: none;
  box-shadow: none !important;
  padding: 0;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: transparent;
}

.premium-toggler:focus {
  outline: none;
}

.premium-toggler span {
  width: 28px;
  height: 2.5px;
  background: var(--brand-secondary);
  border-radius: 20px;
  transition: var(--transition);
}

/* =========================================
   MOBILE OFFCANVAS
========================================= */

.premium-offcanvas {
  background: linear-gradient(180deg, #4b2412 0%, #6e3415 100%);
  width: 340px !important;
  border: none;
  color: #fff;
}

.offcanvas-header {
  padding: 1.4rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.offcanvas-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem;
}

.mobile-contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-contact-card a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  word-break: break-word;
}

.mobile-contact-card a:last-child {
  margin-bottom: 0;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-list li {
  margin-bottom: 0.45rem;
}

.mobile-nav-list a,
.mobile-collapse-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1rem;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  transition: var(--transition);
}

.mobile-nav-list a span,
.mobile-collapse-btn span {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-nav-list a:hover,
.mobile-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-submenu {
  list-style: none;
  padding-left: 0.8rem;
  margin-top: 0.45rem;
  margin-bottom: 0.6rem;
}

.mobile-submenu li a {
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  border-radius: 14px;
}

.mobile-submenu li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.mobile-bottom-area {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-language-mobile {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 14px;
  padding: 1rem;
  font-weight: 600;
}

.btn-donate-mobile {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 16px;
  background: #fff;
  color: var(--brand-secondary);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.btn-donate-mobile:hover {
  background: #ffe9bf;
  color: var(--brand-secondary);
}



/* =========================================
   ACCESSIBILITY + STATES
========================================= */

a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.mobile-collapse-btn:focus-visible {
  outline: 2px solid rgba(215, 166, 61, 0.95);
  outline-offset: 3px;
  box-shadow: none;
}

::selection {
  background: rgba(215, 166, 61, 0.24);
  color: var(--brand-secondary);
}

/* =========================================
   SUBTLE ANIMATION
========================================= */

.fade-up {
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1199.98px) {
  .navbar-logo {
    height: 60px;
    width: 60px;
  }

  .brand-text h5 {
    font-size: 0.98rem;
  }

  .brand-text small {
    font-size: 0.68rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-premium {
    padding: 0.85rem 0;
  }

  .navbar-logo {
    height: 56px;
    width: 56px;
  }

  .brand-text h5 {
    font-size: 0.93rem;
  }

  .brand-text small {
    font-size: 0.65rem;
  }
}

@media (max-width: 767.98px) {
  .premium-offcanvas {
    width: 100% !important;
  }

  .offcanvas-header {
    padding: 1.2rem 1rem;
  }

  .mobile-contact-card {
    border-radius: 18px;
  }
}

@media (max-width: 575.98px) {
  .navbar-premium {
    padding: 0.78rem 0;
  }

  .navbar-brand {
    max-width: calc(100% - 60px);
  }

  .navbar-logo {
    height: 50px;
    width: 50px;
    border-radius: 14px;
  }

  .brand-text {
    max-width: 170px;
  }

  .brand-text h5 {
    font-size: 0.86rem;
  }

  .brand-text small {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
  }

  .premium-toggler {
    width: 44px;
    height: 44px;
  }

  .mobile-nav-list a,
  .mobile-collapse-btn {
    padding: 0.95rem 0.9rem;
  }

  .btn-donate-mobile {
    padding: 0.95rem;
  }
}

/* ===================== HERO SECTION ===================== */
.hero-premium {
  position: relative;
  min-height: 100vh;
  /* Base background color using your branded brown */
  background: #4b2412; 
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-premium-bg {
  position: absolute;
  inset: 0;
  /* Ensure the path to your image is correct */
  background: url('../img/webs/hero-bg.webp') no-repeat;
  background-position: right center;
  background-size: cover;
  z-index: -2;
  transform: scale(1.04);
  animation: heroZoom 20s ease-in-out infinite alternate;

  /* THE MIDDLE MESH: Seamlessly fades the image out before it hits the text */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 15%, black 65%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 15%, black 65%, black 100%);
}

.hero-premium-overlay {
  position: absolute;
  inset: 0;
  /* Deep gradient to ensure text readability on the left */
  background: linear-gradient(
    90deg,
    rgba(75, 36, 18, 1) 0%,      /* Solid brown on far left */
    rgba(75, 36, 18, 0.8) 40%,    /* Soften as we reach the center */
    rgba(75, 36, 18, 0) 75%       /* Fully clear to show the Mandir */
  );
  z-index: -1;
}

.hero-premium-shell {
  position: relative;
  z-index: 5;
}

.hero-premium-content {
  padding: 4rem 0;
}

/* ===================== TYPOGRAPHY ===================== */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  color: var(--brand-accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-eyebrow span {
  width: 34px;
  height: 2px;
  background: var(--brand-accent);
}

.hero-heading {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--brand-white, #ffffff);
}

/* Gold Highlights */
.hero-heading span {
  color: var(--brand-accent, #d7a63d); 
  display: inline;
}

.hero-description {
  max-width: 550px;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* ===================== BUTTONS ===================== */
.hero-buttons {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #a45a23 0%, #783612 100%);
  color: #fff !important;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-btn-link {
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.hero-btn-link:hover {
  background: #fff;
  color: #4b2412 !important;
}

/* ===================== SCROLL INDICATOR ===================== */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 10;
}

.hero-scroll-indicator span {
  width: 28px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  position: relative;
}

/* Animated Scroll Wheel */
.hero-scroll-indicator span::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--brand-accent, #d7a63d);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 0; top: 8px; }
  30% { opacity: 1; }
  100% { opacity: 0; top: 28px; }
}

/* ===================== ANIMATIONS ===================== */
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.12); }
}

.hero-reveal, .reveal-text {
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
  .hero-premium-bg {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.5; /* Fade image more for mobile readability */
  }
  .hero-premium-overlay {
    background: linear-gradient(
      to bottom,
      rgba(31, 15, 8, 0.95) 0%,
      rgba(31, 15, 8, 0.75) 100%
    ); 
  }
  .hero-heading { font-size: 2.8rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; padding-bottom:50px; }
  .hero-btn-primary, .hero-btn-link { text-align: center; justify-content: center; }
}

/* ================================================================
   1. GLOBAL UTILITIES & SECTION HEADERS
   ================================================================ */
.py-80 { 
  padding: 80px 0; 
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: #d7a63d; /* Branded Gold */
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.section-header h2 span {
  color: #d7a63d;
}

/* ================================================================
   2. IMPACT COUNTERS (STATS SECTION)
   ================================================================ */
.stats-section {
  background: #4b2412; /* Branded Brown */
  color: white;
  position: relative;
  overflow: hidden;
}

/* Subtle background texture for the stats */
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove border on the last item and on mobile */
.col-md-3:last-child .stat-card {
  border-right: none;
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #d7a63d;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  opacity: 0.9;
  font-size: 0.8rem;
  color: #fff;
}

/* ================================================================
   3. SEVA CARDS (MODERN SAAS STYLE)
   ================================================================ */
.seva-card {
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.seva-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(75, 36, 18, 0.12);
  border-color: #d7a63d;
}

/* Active/Primary Card Variation */
.seva-card.active {
  background: #4b2412;
  color: white;
  border-color: #4b2412;
}

.seva-card.active .seva-icon {
  background: rgba(215, 166, 61, 0.15);
}

.seva-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.seva-icon {
  width: 70px;
  height: 70px;
  background: #fdf8ef;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #d7a63d;
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.seva-card:hover .seva-icon {
  transform: scale(1.1) rotate(-5deg);
}

.link-arrow {
  text-decoration: none;
  font-weight: 700;
  color: #d7a63d;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto; /* Pushes link to bottom of card */
  transition: gap 0.3s ease;
}

.link-arrow:hover {
  gap: 15px;
  color: #d7a63d;
}

/* ================================================================
   4. CORE PURPOSE (SPLIT LAYOUT & IMAGE STACK)
   ================================================================ */
.purpose-image-stack {
  position: relative;
  padding-right: 40px;
  padding-bottom: 40px;
}

.img-main {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  object-fit: cover;
  height: 500px;
}

.experience-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #d7a63d;
  color: #4b2412;
  padding: 25px 35px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(215, 166, 61, 0.3);
  animation: float 4s ease-in-out infinite;
}

.experience-badge strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.experience-badge span {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
}

.check-list i {
  color: #d7a63d;
  font-size: 1.3rem;
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* ================================================================
   5. RESPONSIVE ADJUSTMENTS
   ================================================================ */
@media (max-width: 991px) {
  .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .purpose-image-stack {
    margin-bottom: 50px;
    padding-right: 0;
  }
  
  .img-main {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .stat-number { font-size: 2.8rem; }
  .seva-card { padding: 35px 25px; }
  .py-80 { padding: 60px 0; }
}
/* ===================== PREMIUM FOOTER ===================== */

.footer-premium {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #1b0d06 0%,
            #120803 100%
        );

    padding: 0 0 30px;

    color: #fff;
}

/* ===================== REGISTRATION STRIP ===================== */

.footer-registration-strip {
    position: relative;

    padding: 24px 0;

    background:
        linear-gradient(
            135deg,
            rgba(215,166,61,0.12),
            rgba(215,166,61,0.04)
        );

    border-bottom: 1px solid rgba(215,166,61,0.15);
}

.registration-content {
    text-align: center;
}

.registration-line {
    margin-bottom: 10px;

    color: rgba(255,255,255,0.92);

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.7;
}

.registration-line.small {
    color: rgba(255,255,255,0.70);

    font-size: 0.92rem;
    font-weight: 500;
}

.registration-line span {
    margin: 0 12px;
    opacity: 0.4;
}

.registration-office {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 10px;

    color: #d7a63d;

    font-size: 1.05rem;
    font-weight: 800;
}

.registration-office i {
    font-size: 1rem;
}

/* ===================== FOOTER GRID ===================== */

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 50px;

    padding: 80px 0 60px;
}

/* ===================== LOGO ===================== */

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;

    text-decoration: none;

    margin-bottom: 24px;
}

.footer-logo img {
    height: 65px;
    width: auto;

    object-fit: contain;
}

.footer-logo span {
    display: block;

    color: #fff;

    font-size: 1.3rem;
    font-weight: 800;

    letter-spacing: -0.5px;
}

.footer-logo small {
    display: block;

    margin-top: 4px;

    color: rgba(255,255,255,0.60);

    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.47em;
}

/* ===================== TAGLINE ===================== */

.footer-tagline {
    margin-bottom: 28px;

    color: rgba(255,255,255,0.68);

    font-size: 0.97rem;
    line-height: 1.9;
}

/* ===================== FOOTER TITLE ===================== */

.footer-title {
    margin-bottom: 26px;

    color: #d7a63d;

    font-size: 0.85rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.4px;
}

/* ===================== LINKS ===================== */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    position: relative;

    color: rgba(255,255,255,0.68);

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 500;

    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 6px;
}

/* ===================== SOCIALS ===================== */

.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: rgba(255,255,255,0.06);

    color: #fff;

    text-decoration: none;

    transition: all 0.3s ease;
}

.footer-socials a:hover {
    transform: translateY(-4px);

    background: #d7a63d;

    color: #120803;
}

/* ===================== CONTACT ===================== */

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-contact-item i {
    color: #d7a63d;
    font-size: 1rem;
    margin-top: 4px;
}

.footer-contact-item span {
    color: rgba(255,255,255,0.70);

    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===================== FOOTER BOTTOM ===================== */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-top: 30px;

    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-copyright {
    color: rgba(255,255,255,0.45);

    font-size: 0.85rem;
    line-height: 1.7;
}

/* ===================== FOOTER CREDIT ===================== */

.footer-credit {
    color: rgba(255,255,255,0.55);

    font-size: 0.85rem;
    font-weight: 500;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.68);

    text-decoration: none;

    font-weight: 700;

    transition: all 0.3s ease;
}

.footer-credit a:hover {
    color: #fff;
}

/* ===================== LEGAL ===================== */

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255,255,255,0.45);

    text-decoration: none;

    font-size: 0.85rem;

    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: #fff;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1199px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 767px) {

    /* Registration Strip */
    .footer-registration-strip {
        padding: 22px 0;
    }

    .registration-content {
        text-align: center;
    }

    .registration-line {
        display: block;

        margin-bottom: 12px;

        font-size: 0.90rem;
        line-height: 1.9;
    }

    .registration-line.small {
        padding: 0 10px;

        font-size: 0.82rem;
        line-height: 1.8;
    }

    .registration-office {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 10px;

        padding: 0 12px;

        font-size: 0.90rem;
        line-height: 1.8;

        text-align: left;
    }

    .registration-office i {
        margin-top: 5px;
        flex-shrink: 0;
    }

    /* Footer Grid */
    .footer-grid {
        grid-template-columns: 1fr;

        gap: 40px;

        padding: 60px 0 50px;
    }

    .footer-col,
    .footer-col-brand {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-tagline {
        max-width: 500px;
        margin-inline: auto;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact-list {
        align-items: center;
    }

    .footer-contact-item {
        justify-content: center;
        text-align: left;

        max-width: 320px;
    }

    /* Footer Bottom */
    .footer-bottom {
        flex-direction: column;

        gap: 16px;

        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {

    .footer-registration-strip {
        padding: 20px 0;
    }

    .registration-line {
        font-size: 0.84rem;
        line-height: 1.8;
    }

    .registration-line.small {
        font-size: 0.76rem;
        line-height: 1.8;
    }

    .registration-office {
        font-size: 0.82rem;
        line-height: 1.8;
    }

    .footer-grid {
        gap: 35px;
    }

    .footer-logo {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo img {
        height: 58px;
    }

    .footer-logo span {
        font-size: 1.1rem;
    }

    .footer-contact-item {
        max-width: 100%;
    }

    .footer-copyright,
    .footer-credit,
    .footer-legal a {
        font-size: 0.80rem;
        line-height: 1.7;
    }
}

#help-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #a45a23 0%, #783612 100%);
  color: #fff;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

#help-chat i {
  font-size: 1.3rem;
}

#help-chat:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-3px);
  animation: none; /* stop pulse on hover */
}

/* Mobile: only show icon */
@media (max-width: 767px) {
  #help-chat {
    padding: 12px;
    border-radius: 50%;
    justify-content: center;
    width: 50px;
    height: 50px;
  }
  #help-chat .help-text {
    display: none;
  }
}

/* Pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}
/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================
   TEAM PAGE HERO
========================================= */


.team-page-hero {
    position: relative;
    top: -25px;
    min-height: 55vh;
    padding: 20px 0 20px;

    display: flex;
    align-items: center;

    overflow: hidden;
    isolation: isolate;

    background: #4b2412;
}

/* =========================================
   HERO BACKGROUND IMAGE
========================================= */

.team-page-hero-bg {
    position: absolute;
    inset: 0;

    background: url('../img/webs/hero-bg.webp') no-repeat;
    background-position: center center;
    background-size: cover;

    z-index: -2;

    opacity: 0.9;

    transform: scale(1.04);

    animation: heroZoom 20s ease-in-out infinite alternate;
}

/* =========================================
   HERO OVERLAY
========================================= */
.team-page-hero-overlay {
    position: absolute;
    inset: 0;

    z-index: -1;

    background: linear-gradient(
        90deg,
        rgba(18, 8, 3, 0.98) 0%,
        rgba(35, 16, 6, 0.92) 28%,
        rgba(55, 25, 10, 0.82) 52%,
        rgba(75, 36, 18, 0.58) 75%,
        rgba(75, 36, 18, 0.30) 100%
    );
}

/* =========================================
   HERO CONTENT WRAPPER
========================================= */

.team-page-hero .container {
    position: relative;
    z-index: 5;
}

.min-vh-75 {
    min-height: 75vh;
}

/* =========================================
   HERO CONTENT
========================================= */

.team-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 22px;
    margin-bottom: 28px;

    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(255,255,255,0.10);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: var(--brand-accent-soft);

    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.team-page-title {
    margin-bottom: 24px;

    color: var(--brand-white);

    font-size: clamp(2.7rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.team-page-title span {
    color: var(--brand-accent);
}

.team-page-subtitle {
    max-width: 760px;
    margin: auto;

    color: rgba(255,255,255,0.82);

    font-size: 1.08rem;
    line-height: 1.9;
}

/* =========================================
   HERO ANIMATION
========================================= */

@keyframes heroZoom {

    0% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1.12);
    }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {

    .team-page-hero {
        min-height: auto;
        padding: 110px 0 90px;
    }

    .min-vh-75 {
        min-height: auto;
    }

    .team-page-title {
        font-size: 3rem;
    }

    .team-page-hero-bg {
        background-position: center center;
    }
}

@media (max-width: 576px) {

    .team-page-hero {
        padding: 95px 0 75px;
    }

    .team-page-title {
        font-size: 2.3rem;
    }

    .team-page-subtitle {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .team-page-badge {
        padding: 9px 18px;

        font-size: 0.85rem;
    }

    .team-page-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(75, 36, 18, 0.88) 0%,
            rgba(75, 36, 18, 0.68) 100%
        );
    }
}

/* =========================================
   COMMON SPACING
========================================= */

.py-80 {
    padding: 80px 0;
}

/* =========================================
   SECTION HEADER
========================================= */

.section-header {
    margin-bottom: 55px;
}

.section-header .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: rgba(155, 90, 36, 0.10);

    color: var(--brand-primary);

    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-secondary);
}

.section-header h2 span {
    color: var(--brand-primary);
}

/* =========================================
   COMMITTEE SECTION
========================================= */

.committee-section {
    position: relative;
    background: var(--brand-bg);
    overflow: hidden;
}

.committee-section::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -120px;
    width: 420px;
    height: 420px;

    background: radial-gradient(
        rgba(215, 166, 61, 0.10),
        transparent 70%
    );

    z-index: 0;
}

.committee-section .container {
    position: relative;
    z-index: 2;
}

/* =========================================
   TABLE WRAPPER
========================================= */

.committee-table-wrapper {
    overflow: hidden;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    background: var(--brand-surface-solid);
    box-shadow: var(--shadow-md);
}

/* =========================================
   TABLE
========================================= */

.committee-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.committee-table thead {
    background: linear-gradient(
        135deg,
        var(--brand-primary),
        var(--brand-primary-dark)
    );
}

.committee-table thead th {
    padding: 22px 18px;
    border-right: 1px solid rgba(255,255,255,0.08);

    color: var(--brand-white);

    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;

    vertical-align: middle;
}

.committee-table thead th:last-child {
    border-right: none;
}

.committee-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.committee-table tbody tr:hover {
    background: rgba(155, 90, 36, 0.03);
}

.committee-table tbody td {
    padding: 22px 18px;
    border-right: 1px solid rgba(0,0,0,0.05);
    vertical-align: middle;
}

.committee-table tbody td:last-child {
    border-right: none;
}

/* =========================================
   HIGHLIGHT ROW
========================================= */

.highlight-row {
    background: linear-gradient(
        90deg,
        rgba(215, 166, 61, 0.06),
        rgba(215, 166, 61, 0.01)
    );
}

/* =========================================
   SERIAL COLUMN
========================================= */

.sl-col {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-primary);
}

/* =========================================
   MEMBER PHOTO
========================================= */

.member-photo {
    width: 90px;
    height: 90px;
    margin: auto;
    overflow: hidden;
    border-radius: 50%;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   MEMBER DETAILS
========================================= */

.member-details h4 {
    margin-bottom: 14px;

    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.5;

    color: var(--brand-secondary);
}

.member-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-contact p {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 0;

    font-size: 0.92rem;
    line-height: 1.6;

    color: var(--brand-text-soft);

    word-break: break-word;
}

.member-contact i {
    color: var(--brand-primary);
}

/* =========================================
   ADDRESS & RELATION
========================================= */

.relation-col,
.address-col {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--brand-text-soft);
}

.address-col {
    min-width: 260px;
}

/* =========================================
   DESIGNATION BADGE
========================================= */

.designation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: var(--radius-pill);

    background: rgba(155, 90, 36, 0.10);
    color: var(--brand-primary);

    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.featured-badge {
    background: var(--brand-accent);
    color: var(--brand-white);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {

    .team-page-hero {
        min-height: auto;
        padding: 110px 0 90px;
    }

    .team-page-title {
        font-size: 3rem;
    }

    .committee-table thead th,
    .committee-table tbody td {
        padding: 18px 14px;
    }

    .member-photo {
        width: 75px;
        height: 75px;
    }

    .member-details h4 {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {

    .py-80 {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 45px;
    }

    .committee-table {
        min-width: 1050px;
    }

    .committee-table-wrapper {
        border-radius: var(--radius-lg);
    }

    .team-page-hero-bg {
        background-position: center right;
    }
}