/**
 * Sri Adavimatha Official Website Stylesheet
 * Modernized Theme: Sacred Saffron, Regal Gold & Warm Ivory
 * Responsive, Mobile-First Design System
 */

/* -------------------------------------------------------------
 * 1. CSS Custom Properties / Design Tokens
 * ----------------------------------------------------------- */
:root {
  /* Brand Colors */
  --primary: #c2410c;         /* Deep Divine Saffron */
  --primary-light: #ea580c;   /* Bright Saffron */
  --primary-dark: #9a3412;    /* Dark Saffron/Terracotta */
  --primary-subtle: #ffedd5;  /* Soft Warm Saffron Tint */

  --gold: #d97706;            /* Sacred Warm Gold */
  --gold-light: #f59e0b;      /* Bright Gold */
  --gold-dark: #b45309;       /* Deep Antique Gold */
  --gold-subtle: #fef3c7;     /* Pale Golden Glow */

  --maroon: #881337;          /* Rich Sacred Maroon */
  --maroon-dark: #4c0519;

  /* Neutrals */
  --bg-body: #fcfaf6;         /* Warm Ivory/Cream background */
  --bg-surface: #ffffff;      /* Pure Card Surface */
  --bg-subtle: #f7f3eb;       /* Soft Sand Tint */
  --border-light: #f1e6d6;    /* Warm subtle border */
  --border-medium: #e4d3bd;

  --text-main: #292524;       /* Deep Charcoal Ash */
  --text-muted: #6b635c;      /* Muted Warm Stone */
  --text-light: #948c82;
  --text-inverse: #ffffff;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #c2410c 0%, #ea580c 50%, #d97706 100%);
  --grad-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --grad-hero: linear-gradient(180deg, rgba(28, 25, 23, 0.45) 0%, rgba(28, 25, 23, 0.85) 100%);
  --grad-card: linear-gradient(180deg, #ffffff 0%, #fdfaf5 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(136, 19, 55, 0.04), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(194, 65, 12, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 36px rgba(194, 65, 12, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-gold: 0 8px 25px rgba(217, 119, 6, 0.25);

  /* Layout & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------
 * 2. Base Typography & Global Resets
 * ----------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans Kannada', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Tiro Kannada', 'Outfit', 'Noto Sans Kannada', serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

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

/* -------------------------------------------------------------
 * 3. Top Notification / Info Bar
 * ----------------------------------------------------------- */
#topbar {
  background: #1c1917;
  color: #d6d3d1;
  font-size: 13.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  transition: all var(--transition-fast);
}

#topbar .contact-info a {
  color: #e7e5e4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
  transition: color var(--transition-fast);
}

#topbar .contact-info a:hover {
  color: var(--gold-light);
}

#topbar .contact-info i {
  color: var(--gold-light);
  font-size: 14px;
}

#topbar .badge-temple {
  background: rgba(217, 119, 6, 0.2);
  color: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

#topbar .social-links a {
  color: #a8a29e;
  font-size: 14px;
  margin-left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

#topbar .social-links a:hover {
  color: #ffffff;
  background: var(--primary);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * 4. Main Glassmorphic Header & Navigation
 * ----------------------------------------------------------- */
#header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 997;
  transition: all var(--transition-normal);
  border-bottom: 2px solid var(--border-light);
}

#header.header-scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(194, 65, 12, 0.08);
}

#header .container {
  flex-wrap: nowrap !important;
  gap: 12px;
}

#header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

#header .logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  min-width: 0;
  text-decoration: none;
}

#header .logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.3);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

#header .logo a:hover img {
  transform: rotate(5deg) scale(1.05);
}

#header .logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

#header .logo-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  font-family: 'Tiro Kannada', serif;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#header .logo-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop Navbar */
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4px;
}

.navbar li {
  position: relative;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 15px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: var(--primary);
  background: var(--primary-subtle);
}

.navbar a.btn-nav-highlight {
  background: var(--grad-primary);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
  margin-left: 8px;
}

.navbar a.btn-nav-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.35);
}

/* Mobile Navigation Header Actions & Toggle */
.mobile-header-actions {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: var(--shadow-sm);
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus,
.mobile-nav-toggle:active {
  background: var(--bg-warm);
  color: var(--primary);
  border-color: var(--primary);
  outline: none;
}

.lang-switcher-header {
  display: none;
}

@media (max-width: 991px) {
  #header {
    padding: 10px 0;
  }

  #header .container {
    gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
  }

  #header .logo img {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  #header .logo-title {
    font-size: 18px;
  }

  #header .logo-subtitle {
    font-size: 10.5px;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 24px;
  }

  .lang-switcher-header {
    display: inline-flex;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.3);
    padding: 2px;
  }

  .lang-switcher-header .lang-btn {
    color: var(--text-muted);
    padding: 4px 10px;
    font-size: 12.5px;
  }

  .lang-switcher-header .lang-btn.active {
    color: #ffffff;
    background: var(--grad-primary);
  }

  .navbar ul {
    display: none !important;
  }
}

@media (max-width: 576px) {
  #header {
    padding: 8px 0;
  }

  #header .container {
    gap: 6px;
    padding-left: 12px;
    padding-right: 12px;
  }

  #header .logo a {
    gap: 8px;
  }

  #header .logo img {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  #header .logo-title {
    font-size: 16.5px;
  }

  #header .logo-subtitle {
    font-size: 10px;
  }

  .mobile-header-actions {
    gap: 6px;
  }

  .lang-switcher-header .lang-btn {
    padding: 4px 8px;
    font-size: 12px;
  }

  .mobile-nav-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  #header .logo-subtitle {
    display: none;
  }

  #header .logo-title {
    font-size: 15px;
  }

  #header .logo img {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .lang-switcher-header .lang-btn {
    padding: 3px 6px;
    font-size: 11px;
  }

  .mobile-nav-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 20px;
  }
}

/* Mobile Nav Backdrop (Attached to body) */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 12, 10, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Nav Drawer (Attached to body - fully immune to ancestor styles) */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 99999;
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  will-change: transform;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

/* Drawer Header */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.drawer-brand img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.drawer-brand-title {
  font-family: 'Tiro Kannada', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.drawer-brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.mobile-drawer-close {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.mobile-drawer-close:hover,
.mobile-drawer-close:active {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* Drawer Language Switcher Bar */
.mobile-drawer-lang {
  padding: 12px 18px;
  background: #fdfaf6;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.drawer-lang-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-lang-label i {
  color: var(--primary);
  font-size: 13px;
}

.mobile-drawer-lang .lang-switcher-pill {
  width: 100%;
  display: flex;
  background: #ffffff;
  border: 1.5px solid rgba(217, 119, 6, 0.35);
  padding: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mobile-drawer-lang .lang-btn {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  font-size: 13.5px;
  border-radius: var(--radius-full);
}

/* Drawer Body Navigation */
.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-drawer-nav li {
  margin: 0;
  padding: 0;
}

.mobile-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.mobile-drawer-nav a i {
  font-size: 18px;
  color: var(--primary);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.mobile-drawer-nav a:hover,
.mobile-drawer-nav a:active {
  background: var(--bg-warm);
  color: var(--primary);
  border-color: rgba(217, 119, 6, 0.2);
}

.mobile-drawer-nav a.active {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(245, 158, 11, 0.18));
  color: var(--primary-dark);
  font-weight: 700;
  border-color: rgba(217, 119, 6, 0.3);
}

.mobile-drawer-nav a.active i {
  color: var(--primary);
  transform: scale(1.15);
}

/* Drawer Footer */
.mobile-drawer-footer {
  padding: 14px 16px;
  background: var(--bg-warm);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.btn-drawer-dasoha {
  background: var(--grad-primary);
  color: #ffffff !important;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.28);
  border: none;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14.5px;
  transition: all var(--transition-fast);
}

.btn-drawer-dasoha:hover,
.btn-drawer-dasoha:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.38);
}

/* -------------------------------------------------------------
 * 5. Modern Hero Carousel & Slides
 * ----------------------------------------------------------- */
#hero {
  width: 100%;
  min-height: 82vh;
  position: relative;
  background: #1c1917;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  min-height: 82vh;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  transform: scale(1.03);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide-1 {
  background-image: linear-gradient(rgba(20, 16, 14, 0.55), rgba(20, 16, 14, 0.75)), url('../img/portfolio/mahamane1a.jpg');
}

.hero-slide-2 {
  background-image: linear-gradient(rgba(20, 16, 14, 0.55), rgba(20, 16, 14, 0.75)), url('../img/portfolio/Gaddige1.jpg');
}

.hero-slide-3 {
  background-image: linear-gradient(rgba(20, 16, 14, 0.55), rgba(20, 16, 14, 0.75)), url('../img/about.jpg');
}

.hero-slide-4 {
  background-image: linear-gradient(rgba(20, 16, 14, 0.55), rgba(20, 16, 14, 0.75)), url('../img/portfolio/school.jpg');
}

.hero-content-box {
  background: rgba(28, 25, 23, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 820px;
  margin: 0 auto;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.3);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title span {
  color: var(--gold-light);
}

.hero-text {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.85;
  color: #e7e5e4;
  margin-bottom: 24px;
  font-family: 'Tiro Kannada', serif;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary-custom {
  background: var(--grad-primary);
  color: #ffffff !important;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(194, 65, 12, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(194, 65, 12, 0.6);
  color: #ffffff;
}

.btn-outline-gold {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1.5px solid var(--gold-light);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-outline-gold:hover {
  background: var(--gold-light);
  color: #1c1917 !important;
  transform: translateY(-2px);
}

/* Hero Controls & Dots */
.hero-controls {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
}

.hero-btn-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
}

.hero-btn-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.08);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.hero-dot.active {
  background: var(--gold-light);
  width: 32px;
  border-radius: var(--radius-full);
}

/* -------------------------------------------------------------
 * 6. Quick Highlights & Stat Badges Strip
 * ----------------------------------------------------------- */
.highlights-strip {
  background: #ffffff;
  box-shadow: var(--shadow-md);
  margin-top: -45px;
  position: relative;
  z-index: 20;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 24px 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-right: 1px solid var(--border-light);
  transition: transform var(--transition-fast);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  transform: translateY(-3px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(194, 65, 12, 0.1);
}

.stat-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
  font-family: 'Outfit', sans-serif;
}

.stat-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
  font-weight: 500;
}

@media (max-width: 767px) {
  .highlights-strip {
    margin-top: 15px;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 16px 8px;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
}

/* -------------------------------------------------------------
 * 7. Section Titles & Sacred Decorative Accents
 * ----------------------------------------------------------- */
section {
  padding: 70px 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-subtle);
  color: var(--gold-dark);
  font-size: 13.5px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-main);
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px auto 0;
}

.section-divider span {
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.section-divider i {
  color: var(--primary);
  font-size: 16px;
}

.section-subtitle {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* -------------------------------------------------------------
 * 8. Sacred Vachana & Devotional Quote Cards
 * ----------------------------------------------------------- */
.vachana-card {
  background: linear-gradient(135deg, #fffbf2 0%, #fff8e7 100%);
  border: 1.5px solid #f3d4a2;
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  box-shadow: var(--shadow-sm);
  margin: 30px 0;
  overflow: hidden;
}

.vachana-card::before {
  content: "❝";
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 90px;
  color: rgba(217, 119, 6, 0.12);
  line-height: 1;
  font-family: serif;
}

.vachana-content {
  position: relative;
  z-index: 2;
  font-family: 'Tiro Kannada', serif;
  font-size: 1.18rem;
  line-height: 2;
  color: var(--primary-dark);
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.vachana-author {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* -------------------------------------------------------------
 * 9. Content Cards & Pillars of Seva
 * ----------------------------------------------------------- */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 22px;
  transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon-wrap {
  background: var(--grad-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--primary);
}

.feature-link:hover {
  gap: 10px;
}

/* -------------------------------------------------------------
 * 10. Guru Parampara / Lineage Cards
 * ----------------------------------------------------------- */
.guru-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
}

.guru-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.guru-img-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #f3ece2;
}

.guru-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.guru-card:hover .guru-img-wrap img {
  transform: scale(1.05);
}

.guru-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(28, 25, 23, 0.85);
  color: var(--gold-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.guru-body {
  padding: 24px;
}

.guru-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.guru-role {
  font-size: 13.5px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.guru-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* -------------------------------------------------------------
 * 11. Interactive Gallery & Lightbox
 * ----------------------------------------------------------- */
.gallery-filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
  padding: 9px 22px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000000;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: all var(--transition-normal);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), opacity var(--transition-normal);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(20, 16, 14, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  transform: translateY(10px);
  transition: transform var(--transition-normal);
}

.gallery-item-cat {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 500;
  transform: translateY(10px);
  transition: transform var(--transition-normal) 0.05s;
}

.gallery-item:hover .gallery-item-title,
.gallery-item:hover .gallery-item-cat {
  transform: translateY(0);
}

.gallery-zoom-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform var(--transition-fast);
}

.gallery-item:hover .gallery-zoom-icon {
  transform: scale(1.1);
  background: var(--primary);
}

/* Lightbox Modal */
.custom-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 10, 9, 0.94);
  backdrop-filter: blur(8px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 20px;
}

.custom-lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  color: #ffffff;
  font-size: 16px;
  margin-top: 14px;
  text-align: center;
  font-weight: 600;
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  color: #ffffff;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.lightbox-close-btn:hover {
  color: var(--gold-light);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* -------------------------------------------------------------
 * 12. Breadcrumbs & Banner Hero for Inner Pages
 * ----------------------------------------------------------- */
.page-hero-banner {
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.6) 0%, rgba(28, 25, 23, 0.85) 100%), url('../img/portfolio/mahamane1a.jpg') center/cover;
  padding: 80px 0 60px;
  color: #ffffff;
  position: relative;
  text-align: center;
}

.page-hero-banner h1 {
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.breadcrumbs-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #d6d3d1;
}

.breadcrumbs-nav a {
  color: var(--gold-light);
  font-weight: 600;
}

.breadcrumbs-nav a:hover {
  color: #ffffff;
}

.breadcrumbs-nav i {
  font-size: 11px;
  color: #a8a29e;
}

/* -------------------------------------------------------------
 * 13. Institutions & Social Services Rich Layout
 * ----------------------------------------------------------- */
.institution-hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 40px;
  margin-bottom: 40px;
}

.badge-tag {
  display: inline-block;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.seva-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 35px;
  transition: transform var(--transition-normal);
}

.seva-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

/* -------------------------------------------------------------
 * 14. Contact Page & Interactive Components
 * ----------------------------------------------------------- */
.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  transition: all var(--transition-fast);
}

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.contact-form-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-control-custom {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: all var(--transition-fast);
  background: #fdfaf6;
  margin-bottom: 16px;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.1);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-top: 20px;
}

/* -------------------------------------------------------------
 * 15. Modernized Footer
 * ----------------------------------------------------------- */
#footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 60px 0 0;
  border-top: 4px solid var(--primary);
  font-size: 14.5px;
}

#footer h4, #footer h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

#footer h4::after, #footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

#footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-links li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#footer .footer-links a {
  color: #a8a29e;
  transition: color var(--transition-fast);
}

#footer .footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

#footer .footer-contact p {
  color: #a8a29e;
  line-height: 1.8;
}

#footer .footer-contact strong {
  color: var(--gold-light);
}

#footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  margin-right: 10px;
  font-size: 16px;
  transition: all var(--transition-fast);
}

#footer .footer-social a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  background: #141210;
  padding: 24px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13.5px;
  color: #78716c;
}

.footer-bottom span {
  color: var(--gold-light);
  font-weight: 600;
}

/* -------------------------------------------------------------
 * 16. Back to Top Button
 * ----------------------------------------------------------- */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  background: var(--grad-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.4);
  color: #ffffff;
}

.back-to-top i {
  font-size: 22px;
  line-height: 0;
}

.back-to-top:hover {
  transform: translateY(-4px);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.6);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* -------------------------------------------------------------
 * 17. Responsive Utilities
 * ----------------------------------------------------------- */
@media (max-width: 768px) {
  #hero {
    min-height: 70vh;
  }
  .hero-slider-wrapper {
    min-height: 70vh;
  }
  .hero-content-box {
    padding: 24px 18px;
  }
  .vachana-card {
    padding: 24px 16px;
  }
  .vachana-content {
    font-size: 1.05rem;
    line-height: 1.8;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------
 * 18. Language Switcher (Kannada / English)
 * ----------------------------------------------------------- */
/* Default is Kannada: when html/body is lang-kn or default, hide .lang-en */
html[data-lang="kn"] .lang-en,
body.lang-kn .lang-en,
body:not(.lang-en) .lang-en {
  display: none !important;
}

/* When English is selected: hide .lang-kn */
html[data-lang="en"] .lang-kn,
body.lang-en .lang-kn {
  display: none !important;
}

/* Show correct language elements when active */
html[data-lang="en"] .lang-en,
body.lang-en .lang-en {
  display: block;
}
html[data-lang="en"] span.lang-en,
body.lang-en span.lang-en,
html[data-lang="en"] a.lang-en,
body.lang-en a.lang-en,
html[data-lang="en"] strong.lang-en,
body.lang-en strong.lang-en,
html[data-lang="en"] small.lang-en,
body.lang-en small.lang-en {
  display: inline;
}
html[data-lang="en"] div.lang-en.d-flex,
body.lang-en div.lang-en.d-flex {
  display: flex !important;
}

/* Switcher UI Pill */
.lang-switcher-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(28, 25, 23, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  user-select: none;
}

#topbar .lang-switcher-pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(245, 158, 11, 0.45);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: #a8a29e;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}

#topbar .lang-btn {
  color: #d6d3d1;
}

#topbar .lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: var(--grad-primary);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(194, 65, 12, 0.4);
}
