@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Outfit:wght@500;600;700&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  /* Bold & Confident Color Palette */
  --primary: #1E2761;
  /* Deep Navy */
  --primary-light: #2A3680;
  --secondary: #007C92;
  /* Electric Teal Blue */
  --secondary-dark: #006073;
  --accent: #F39C12;
  /* Warm Gold */
  --accent-dark: #D68910;
  --accent-glow: rgba(243, 156, 18, 0.3);

  /* Neutral Palette */
  --bg-base: #F8F9FA;
  /* Crisp Pearl White */
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  /* Slate-900 for ultra-high contrast */
  --text-muted: #334155;
  /* Slate-700 for guaranteed 7:1+ contrast ratio */
  --text-light: #F0F2F5;

  /* Semantic Colors */
  --success: #1E824C;
  /* Deep accessible green */
  --danger: #D92B2B;
  /* Deep accessible red */
  --warning: #B7791F;
  /* Deep accessible amber */

  /* Shadows & Borders (Strong, Disciplined Depth) */
  --shadow-sm: 0 2px 4px rgba(30, 39, 97, 0.1);
  --shadow-md: 0 6px 16px rgba(30, 39, 97, 0.15);
  --shadow-lg: 0 16px 32px rgba(30, 39, 97, 0.2);
  --shadow-accent: 0 4px 12px rgba(243, 156, 18, 0.3);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;

  /* Z-Index Layers */
  --z-nav: 1000;
  --z-modal: 2000;
  --z-loader: 9999;
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --bg-base: #0B0F19;
  --bg-card: #131A2B;
  --text-main: #F8FAFC;
  --text-muted: #CBD5E1;
  /* Slate-300 for 7:1+ contrast against dark background */
  --text-light: #E2E8F0;
  --primary: #818CF8;
  /* Accessible indigo for dark mode */
  --primary-light: #A5B4FC;
  --nav-bg: rgba(11, 15, 25, 0.85);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.8);

  /* Full Calendar Dark Mode Overrides */
  --fc-page-bg-color: var(--bg-card);
  --fc-neutral-bg-color: var(--bg-base);
  --fc-neutral-text-color: var(--text-main);
  --fc-border-color: rgba(255, 255, 255, 0.1);
}

/* --- DIVINE LIGHT ANIMATION --- */
@keyframes divineLight {
  0% {
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.1);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 40px rgba(243, 156, 18, 0.4);
    transform: scale(1.02);
  }

  100% {
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.1);
    transform: scale(1);
  }
}

.divine-light {
  animation: divineLight 4s infinite ease-in-out;
}

/* --- RESET & ACCESSIBILITY --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 99999;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- APP LAYOUT SHELL --- */
#app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
  padding-top: 80px;
  /* Header clearance */
}

/* --- HEADER & NAVIGATION (14-link Consolidation) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--nav-bg, rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  height: 70px;
  box-shadow: var(--shadow-sm);
  background: var(--nav-bg, rgba(255, 255, 255, 0.95));
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
  font-size: 1.35rem;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar-logo-img {
  height: 44px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(30, 39, 97, 0.15));
  transition: transform var(--transition-fast);
}

.logo-container:hover .navbar-logo-img {
  transform: scale(1.06);
}

[data-theme="dark"] .navbar-logo-img {
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.25));
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

[data-theme="dark"] .logo-text {
  color: #ffffff;
}

.logo-text span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  font-size: 0.95rem;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--secondary);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  gap: 8px;
}

.btn-primary {
  background: var(--secondary);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-donate {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary);
  box-shadow: var(--shadow-accent);
}

.btn-donate:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-text {
  background: transparent;
  color: var(--text-main);
  padding: 8px 16px;
}

.btn-text:hover {
  color: var(--secondary);
}

/* --- USER ACCOUNT DROPDOWN --- */
.user-menu {
  position: relative;
}

.avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-base);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.avatar-btn:hover {
  border-color: var(--secondary);
  transform: scale(1.05);
}

.user-dropdown {
  position: absolute;
  top: 52px;
  right: 0;
  width: 220px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: none;
  flex-direction: column;
  padding: 8px;
  z-index: 1001;
  animation: slideDown var(--transition-fast);
}

.user-dropdown.active {
  display: flex;
}

.dropdown-item {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-base);
  color: var(--secondary);
}

.dropdown-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.05);
  margin: 6px 0;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary), #0A1138);
  color: white;
  padding: 120px 8% 100px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  min-height: 80vh;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-shape-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
  top: -200px;
  right: -100px;
  border-radius: 50%;
  animation: float-slow 20s infinite alternate ease-in-out;
}

.hero-shape-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0) 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  animation: float-slow 25s infinite alternate-reverse ease-in-out;
}

@keyframes float-slow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-30px, 40px) scale(1.05);
  }

  66% {
    transform: translate(40px, -20px) scale(0.95);
  }

  100% {
    transform: translate(-20px, -50px) scale(1.1);
  }
}

.hero-content {
  flex: 1;
  z-index: 2;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent);
}

.hero-title {
  font-size: 3.75rem;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent), #fef08a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 580px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-image-wrapper {
  flex: 1;
  z-index: 2;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  max-width: 480px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(-2deg);
  transition: var(--transition-slow);
}

.hero-image-wrapper:hover .hero-image {
  transform: rotate(0deg) scale(1.03);
}

/* --- STATS BAR --- */
.stats-bar {
  display: flex;
  justify-content: space-around;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-top: -60px;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(15, 23, 42, 0.03);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 4px;
}

.stat-num span {
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- SECTIONS MAIN GRID --- */
.section {
  padding: 100px 8%;
}

.section-alt {
  background-color: var(--bg-card);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.section-tag {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- PILLARS GRID --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pillar-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.03);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary);
  transform: scaleY(0);
  transition: var(--transition-fast);
  transform-origin: bottom;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pillar-card:hover::before {
  transform: scaleY(1);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: HSL(var(--secondary-hue), 85%, 95%);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.pillar-card:nth-child(2) .pillar-icon {
  background: HSL(var(--accent-hue), 95%, 93%);
  color: var(--accent-dark);
}

.pillar-card:nth-child(2)::before {
  background: var(--accent);
}

.pillar-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.pillar-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* --- EVENTS & CALENDAR COMPONENT --- */
.events-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.calendar-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.03);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.calendar-title {
  font-size: 1.25rem;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.cal-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-base);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cal-btn:hover {
  background: var(--secondary);
  color: white;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}

.calendar-day-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 8px 0;
  text-transform: uppercase;
}

.calendar-day {
  padding: 12px 0;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.calendar-day:hover {
  background: var(--bg-base);
}

.calendar-day.active {
  background: var(--primary);
  color: white;
}

.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.calendar-day.active.has-event::after {
  background: white;
}

.calendar-day.empty {
  cursor: default;
  opacity: 0.2;
}

.event-details-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-hifi-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.03);
  transition: var(--transition-normal);
}

.event-hifi-card:hover {
  box-shadow: var(--shadow-lg);
}

.event-banner {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.event-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.event-body {
  padding: 30px;
}

.event-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-body h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.event-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding-top: 20px;
}

.event-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.event-price.free {
  color: var(--success);
}

/* --- RESOURCE HUB (Links of Hope & Programs) --- */
.resource-hub {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.search-bar {
  display: flex;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 8px 8px 8px 20px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.05);
  align-items: center;
}

.search-input {
  flex-grow: 1;
  font-size: 1rem;
  color: var(--text-main);
  background: transparent;
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.resource-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.category-pill {
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.03);
  transition: var(--transition-fast);
}

.category-pill.active,
.category-pill:hover {
  background: var(--secondary);
  color: white;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.03);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.res-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}

.res-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.res-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.res-link {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.res-link:hover {
  color: var(--secondary-dark);
}

/* --- VOLUNTEER & FORMS --- */
.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 50px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.03);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--secondary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* --- AUTH MODAL --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 460px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  animation: modalEnter var(--transition-normal);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--primary);
}

.modal-title {
  font-size: 1.75rem;
  margin-bottom: 24px;
  text-align: center;
}

.modal-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.modal-switch span {
  color: var(--secondary);
  cursor: pointer;
  font-weight: 600;
}

.modal-switch span:hover {
  text-decoration: underline;
}

.auth-social-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-social-btn:hover {
  background: var(--bg-base);
  transform: translateY(-1px);
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

/* --- FOOTER --- */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 80px 8% 40px 8%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 60px;
}

.footer-brand h4 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.social-circle:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.footer-col h5 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  opacity: 0.75;
  font-size: 0.9rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding-top: 140px;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .events-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 1050px) {
  .nav-links {
    display: none !important;
  }

  #mobile-menu-toggle {
    display: flex !important;
  }
}

@media (max-width: 900px) {
  #user-menu-container {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 6%;
    justify-content: center;
    /* Removed position: relative to maintain fixed header behavior and fix the white gap */
  }

  .nav-actions {
    position: absolute;
    right: 6%;
  }

  .nav-group-actions {
    display: none !important;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .stats-bar {
    flex-direction: column;
    gap: 24px;
    margin-top: -30px;
    padding: 30px;
  }

  .section {
    padding: 60px 6%;
  }

  .form-card {
    padding: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* --- PREMIUM MICRO-ANIMATIONS & HIGHLIGHT EFFECTS --- */
.animate-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.animate-hover:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04) !important;
}

/* Elegant Page Entrance Transitions */
#app-content {
  animation: pageEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pageEntrance {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Soft breathing pulse glow for registration CTA buttons */
.pulse-glow {
  position: relative;
}

.pulse-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  animation: pulseGlowEffect 2s infinite;
  pointer-events: none;
}

@keyframes pulseGlowEffect {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}


/* --- GLOBAL AUTHENTICATION LOADER --- */
#auth-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-loader);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

#auth-loader.active {
  opacity: 1;
  pointer-events: all;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(15, 23, 42, 0.1);
  border-left-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loader-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- NAVBAR MODERNIZATION (DROPDOWN & ACTIONS) --- */
.nav-group-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-base, rgba(15, 23, 42, 0.03));
  padding: 6px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-item-dropdown {
  position: relative;
  cursor: pointer;
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 20px;
  background: var(--bg-card, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.nav-item-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 10px 16px;
  color: var(--text-main);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-dropdown-link:hover {
  background: var(--bg-base);
  color: var(--secondary);
}

@media (max-width: 1024px) {
  .hide-on-tablet {
    display: none !important;
  }
}

/* --- FOOTER OUTREACH & VOLUNTEER FORM --- */
.footer-form-container {
  max-width: 1100px;
  margin: 0 auto 50px auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 50px;
}

.footer-form-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 35px 40px;
  box-shadow: var(--shadow-lg);
}

.footer-form-header {
  text-align: center;
  margin-bottom: 25px;
}

.footer-form-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 156, 18, 0.2);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.footer-form-header h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.footer-form-header p {
  color: var(--text-light);
  opacity: 0.85;
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto;
}

.footer-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.footer-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-form-field label {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-form-field .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: var(--transition-fast);
}

.footer-form-field .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 124, 146, 0.25);
}

.footer-form-field select.form-control option {
  background-color: #1E2761;
  color: white;
}

.footer-form-field-full {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .footer-form-grid {
    grid-template-columns: 1fr;
  }

  .footer-form-card {
    padding: 25px 20px;
  }
}

/* --- CALENDAR DOTS & PUBLIC CATEGORY LEGEND --- */
.cal-legend-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: 14px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.cal-legend-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--bg-base);
  border: 1px solid rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.cal-legend-item:hover,
.cal-legend-item.active {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.18);
}

.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.calendar-day {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 2px;
  position: relative;
}

.cal-day-number {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}

.cal-dots-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}

.cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  transition: transform var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.calendar-day:hover .cal-dot {
  transform: scale(1.3);
}

.calendar-day.active {
  background: var(--primary) !important;
  color: white !important;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.calendar-day.active .cal-day-number {
  color: white !important;
}

/* --- ADMIN CATEGORY & COLOR MANAGER --- */
.category-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 15px;
}

.category-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.category-item-card:hover {
  box-shadow: var(--shadow-md);
}

.category-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-color-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.category-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.category-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-picker-wrapper {
  position: relative;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(15, 23, 42, 0.15);
}

.color-picker-input {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- MODERN SKELETON LOADERS --- */
@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg,
      rgba(226, 232, 240, 0.6) 25%,
      rgba(241, 245, 249, 0.9) 50%,
      rgba(226, 232, 240, 0.6) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s infinite ease-in-out;
  border-radius: var(--radius-sm);
  display: block;
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg,
      rgba(30, 41, 59, 0.6) 25%,
      rgba(51, 65, 85, 0.9) 50%,
      rgba(30, 41, 59, 0.6) 75%);
  background-size: 200% 100%;
}

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skeleton-banner {
  width: 100%;
  height: 190px;
  border-radius: 0;
}

.skeleton-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-meta {
  display: flex;
  gap: 12px;
}

.skeleton-badge {
  width: 90px;
  height: 22px;
  border-radius: 20px;
}

.skeleton-title {
  width: 80%;
  height: 24px;
  margin-top: 4px;
}

.skeleton-text {
  width: 100%;
  height: 14px;
}

.skeleton-text-short {
  width: 60%;
  height: 14px;
}

.skeleton-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.skeleton-btn {
  width: 130px;
  height: 38px;
  border-radius: var(--radius-sm);
}

.skeleton-price {
  width: 60px;
  height: 24px;
}

.skeleton-resource {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- DASHBOARD IMAGE CONVERTER & OPTIMIZER --- */
.image-converter-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.converter-dropzone {
  border: 2px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  background: rgba(37, 99, 235, 0.03);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: 20px;
}

.converter-dropzone:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--primary-dark);
}

.converter-guidance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.format-guide-box {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.03);
  border-left: 4px solid var(--primary);
  font-size: 0.85rem;
}

.format-guide-box.webp-box {
  border-left-color: #10B981;
}

.format-guide-box.png-box {
  border-left-color: #6366F1;
}

.converter-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.converter-preview-area {
  display: flex;
  gap: 20px;
  align-items: center;
  background: rgba(15, 23, 42, 0.02);
  padding: 16px;
  border-radius: var(--radius-md);
}

.converter-preview-img {
  max-width: 220px;
  max-height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* --- PAYMENT SPLITTING & INSTALLMENT CONTROLS --- */
.installment-config-box {
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.installment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #E0E7FF;
  color: #3730A3;
  font-weight: 700;
  border-radius: 20px;
  font-size: 0.8rem;
}

.payment-plan-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  background: rgba(15, 23, 42, 0.03);
  border-radius: var(--radius-md);
}

.payment-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- 501(c)(3) TAX RECEIPT & OFFICIAL LETTER --- */
.tax-receipt-card {
  background: #ffffff;
  color: #1e293b;
  border: 2px solid #0f172a;
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-family: 'Times New Roman', Times, serif;
  margin: 20px 0;
  position: relative;
}

.tax-receipt-header {
  text-align: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.tax-receipt-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tax-compliance-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 16px;
  margin: 20px 0;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.6;
}

/* --- BOTTOM COMMUNITY PHOTO CAROUSEL --- */
.community-carousel-section {
  padding: 60px 0;
  background: var(--bg-card);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.carousel-track-wrapper {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 440px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
  padding: 30px;
  color: #ffffff;
}

.carousel-caption h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition-fast);
  z-index: 10;
}

.carousel-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav-btn.prev {
  left: 35px;
}

.carousel-nav-btn.next {
  right: 35px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 12px;
}

/* --- RICH PROGRAM PHOTO CARDS & GALLERY SHOWCASE --- */
.pillar-photo-header {
  height: 180px;
  width: 100%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  position: relative;
  margin: -32px -32px 20px -32px;
  width: calc(100% + 64px);
}

.pillar-photo-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.pillar-card:hover .pillar-photo-header img {
  transform: scale(1.06);
}

.pillar-photo-badge {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.program-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 40px 0;
}

.program-showcase-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.program-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.program-showcase-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  background-color: #e2e8f0;
}

.program-showcase-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-showcase-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 8px;
}

/* --- MODAL SYSTEM & ENHANCED CLOSE BUTTON --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-fast) ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 35px 35px 35px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-fast) cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: var(--bg-base);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 20;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.modal-close:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* --- HERO MAIN BLOCK CAROUSEL --- */
.hero-carousel-container {
  flex: 1;
  max-width: 520px;
  min-width: 320px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.4);
}

.hero-carousel-track-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.hero-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel-caption {
  position: relative;
  z-index: 2;
  padding: 24px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
  color: #ffffff;
}

.hero-carousel-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--accent);
  color: var(--primary);
  margin-bottom: 8px;
}

.hero-carousel-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.hero-carousel-desc {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.4;
  margin-bottom: 0;
}

.hero-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  border: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-carousel-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.hero-carousel-prev {
  left: 12px;
}

.hero-carousel-next {
  right: 12px;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 10px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-carousel-dot.active {
  width: 24px;
  border-radius: 100px;
  background: var(--accent);
}

/* --- TOAST NOTIFICATION ENGINE --- */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 5px solid var(--primary);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.toast.toast-success {
  border-left-color: var(--success);
}

.toast.toast-success .toast-icon {
  color: var(--success);
}

.toast.toast-error {
  border-left-color: var(--danger);
}

.toast.toast-error .toast-icon {
  color: var(--danger);
}

.toast.toast-info {
  border-left-color: var(--secondary);
}

.toast.toast-info .toast-icon {
  color: var(--secondary);
}

.toast-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.toast-close {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--danger);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }

  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* --- SKELETON SHIMMER LOADERS --- */
.skeleton {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.6) 25%, rgba(241, 245, 249, 0.9) 50%, rgba(226, 232, 240, 0.6) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.6) 25%, rgba(51, 65, 85, 0.9) 50%, rgba(30, 41, 59, 0.6) 75%);
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.skeleton-banner {
  height: 180px;
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.skeleton-text {
  height: 14px;
  width: 100%;
  margin-bottom: 10px;
}

.skeleton-title {
  height: 22px;
  width: 75%;
  margin-bottom: 14px;
}

/* --- TAX RECEIPT & STATUS DIALOG --- */
.receipt-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[data-theme="dark"] .receipt-box {
  background: #0f172a;
  border-color: #334155;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.receipt-row:last-child {
  border-bottom: none;
}

/* --- TEAM & LEADERSHIP ENHANCED CARDS --- */
.team-profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-top: 4px solid var(--accent);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.team-profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px auto;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-role-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(30, 39, 97, 0.08);
  color: var(--primary);
  margin-bottom: 12px;
  align-self: center;
}

[data-theme="dark"] .team-role-tag {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
}

.team-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 8px;
  text-align: left;
}

@media print {
  body * {
    visibility: hidden;
  }

  .printable-area,
  .printable-area * {
    visibility: visible;
  }

  .printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* --- HERO DYNAMIC PHOTO CAROUSEL --- */
.hero-carousel-container {
  flex: 1.1;
  min-width: 320px;
  max-width: 560px;
  position: relative;
}

.hero-carousel-track-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.15);
  background: var(--bg-card);
  aspect-ratio: 16 / 10;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  height: 100%;
  width: 100%;
}

.hero-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 16px 20px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 65%, transparent 100%);
  color: #ffffff;
}

.hero-carousel-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--accent);
  color: var(--primary);
  margin-bottom: 4px;
}

.hero-carousel-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.hero-carousel-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.hero-carousel-nav:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.hero-carousel-prev {
  left: 12px;
}

.hero-carousel-next {
  right: 12px;
}

.hero-carousel-dots {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-carousel-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 100px;
}

/* --- MODAL DIALOGS & OVERLAYS --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px 32px;
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

[data-theme="dark"] .modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .modal-close:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(15, 23, 42, 0.08);
  color: var(--text-main);
  animation: toastSlideIn 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  border-left: 5px solid var(--secondary);
}

.toast-success {
  border-left-color: var(--success);
}

.toast-error {
  border-left-color: var(--danger);
}

.toast-info {
  border-left-color: var(--secondary);
}

.toast-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-top: 2px;
}

.toast-success .toast-icon {
  color: var(--success);
}

.toast-error .toast-icon {
  color: var(--danger);
}

.toast-info .toast-icon {
  color: var(--secondary);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--primary);
}

[data-theme="dark"] .toast-title {
  color: #ffffff;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.toast-close {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 0 4px;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--primary);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- SKELETON SHIMMER LOADERS --- */
.skeleton {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.6) 25%, rgba(241, 245, 249, 0.9) 50%, rgba(226, 232, 240, 0.6) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.6) 25%, rgba(51, 65, 85, 0.9) 50%, rgba(30, 41, 59, 0.6) 75%);
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.skeleton-banner {
  height: 180px;
  width: 100%;
  border-radius: 0;
}

.skeleton-body {
  padding: 20px;
}

.skeleton-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.skeleton-badge {
  height: 20px;
  width: 90px;
  border-radius: 100px;
}

.skeleton-title {
  height: 24px;
  width: 80%;
  margin-bottom: 10px;
}

.skeleton-text {
  height: 14px;
  width: 100%;
  margin-bottom: 6px;
}

.skeleton-text-short {
  width: 60%;
  margin-bottom: 16px;
}

.skeleton-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.skeleton-price {
  height: 22px;
  width: 60px;
}

.skeleton-btn {
  height: 36px;
  width: 110px;
  border-radius: var(--radius-sm);
}

.skeleton-resource {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.skeleton-page-loader {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 60px 24px;
}

.skeleton-hero-box {
  height: 380px;
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.skeleton-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* --- HERO MAIN BLOCK DYNAMIC PHOTO CAROUSEL --- */
.hero-carousel-container {
  flex: 1.1;
  min-width: 340px;
  max-width: 580px;
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
}

.hero-carousel-track-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.hero-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  user-select: none;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 20px 24px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 60%, transparent 100%);
  color: white;
  z-index: 2;
}

.hero-carousel-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.hero-carousel-title {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: white;
  margin-bottom: 4px;
  line-height: 1.3;
}

.hero-carousel-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.25s ease;
  pointer-events: auto;
}

.hero-carousel-nav:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px rgba(243, 156, 18, 0.6);
}

.hero-carousel-prev {
  left: 12px;
}

.hero-carousel-next {
  right: 12px;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 12px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-carousel-dot.active {
  width: 24px;
  border-radius: 10px;
  background: var(--accent);
}

/* --- COMMUNITY PHOTO GALLERY (HOMEPAGE BOTTOM) --- */
.story-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

@media (max-width: 960px) {
  .story-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .story-photo-grid {
    grid-template-columns: 1fr;
  }
}

.story-photo-item {
  position: relative;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.story-photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.story-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.story-photo-item:hover img {
  transform: scale(1.06);
}

.story-photo-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.story-photo-item:hover::after {
  opacity: 0.9;
}

.story-photo-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- CALENDAR DAY & DOTS VISIBILITY --- */
.calendar-day.has-event {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-day.has-event:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.cal-dots-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border: 1.5px solid white;
}

/* --- FULLCALENDAR ARROW & CONTROLS FIXES --- */
.fc .fc-toolbar {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.2rem;
}

.fc .fc-toolbar-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

.fc .fc-button {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  padding: 6px 14px !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.fc .fc-button:hover,
.fc .fc-button:focus {
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  transform: translateY(-1px);
}

.fc .fc-button .fc-icon {
  font-size: 1.1rem !important;
  vertical-align: middle !important;
}

.fc .fc-prev-button,
.fc .fc-next-button {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

/* --- GDPR / PRIVACY COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  z-index: 99999;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-banner-header i {
  font-size: 1.6rem;
  color: var(--accent);
}

.cookie-banner-title {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: white;
}

.cookie-banner-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn-accept {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 800;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cookie-btn-settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  margin-left: auto;
}

.cookie-btn-settings:hover {
  color: white;
}

/* --- ADMIN ANALYTICS TIMEFRAME TABS & REPORTS --- */
.analytics-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 12px;
}

.analytics-tabs-group {
  display: flex;
  background: var(--bg-base);
  padding: 4px;
  border-radius: 100px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  gap: 4px;
}

.analytics-tab-btn {
  border: none;
  background: transparent;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.analytics-tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.kpi-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
}

.kpi-trend-up {
  background: rgba(39, 174, 96, 0.15);
  color: #27AE60;
}

.kpi-trend-down {
  background: rgba(231, 76, 60, 0.15);
  color: #E74C3C;
}

/* --- SVG WAVE & CURVE SECTION DIVIDERS --- */
.svg-wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: translateZ(0);
}

.svg-wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 48px;
}

.svg-wave-divider .shape-fill {
  fill: var(--bg-base);
}

/* --- FLUID KEYFRAME ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4);
  }

  50% {
    box-shadow: 0 0 20px 6px rgba(243, 156, 18, 0.2);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

.animate-glow {
  animation: pulseGlow 3s infinite;
}

/* --- SCROLL REVEAL FLUID ANIMATIONS --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* --- COMPREHENSIVE DARK MODE SYSTEM --- */
[data-theme="dark"],
body.dark-theme {
  --bg-base: #0B0F19;
  --bg-card: #131A2B;
  --text-main: #F8F9FA;
  --text-muted: #94A3B8;
  --text-light: #E2E8F0;
  --primary: #5B6EB8;
  --primary-light: #7084D9;
  --secondary: #00A3BF;
  --accent: #F5A623;
  --nav-bg: rgba(11, 15, 25, 0.92);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.7);

  /* Full Calendar Dark Theme Variables */
  --fc-page-bg-color: #131A2B;
  --fc-neutral-bg-color: #0B0F19;
  --fc-neutral-text-color: #F8F9FA;
  --fc-border-color: rgba(255, 255, 255, 0.1);
  --fc-button-text-color: #FFFFFF;
  --fc-button-bg-color: #1E2761;
  --fc-button-border-color: rgba(255, 255, 255, 0.2);
  --fc-button-hover-bg-color: #2A3680;
  --fc-button-hover-border-color: rgba(255, 255, 255, 0.3);
  --fc-button-active-bg-color: #F5A623;
  --fc-button-active-border-color: #F5A623;
}

[data-theme="dark"] body,
body.dark-theme {
  background-color: var(--bg-base);
  color: var(--text-main);
}

/* Dark Mode Navigation & Header */
[data-theme="dark"] .navbar,
body.dark-theme .navbar {
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-link,
body.dark-theme .nav-link {
  color: #E2E8F0;
}

[data-theme="dark"] .nav-dropdown-content,
body.dark-theme .nav-dropdown-content {
  background: #131A2B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .nav-dropdown-link,
body.dark-theme .nav-dropdown-link {
  color: #E2E8F0;
}

[data-theme="dark"] .nav-dropdown-link:hover,
body.dark-theme .nav-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

/* Dark Mode Cards, Sections & Surfaces */
[data-theme="dark"] .section-alt,
body.dark-theme .section-alt {
  background: #0F1524;
}

[data-theme="dark"] .calendar-card,
[data-theme="dark"] .pillar-card,
[data-theme="dark"] .team-profile-card,
[data-theme="dark"] .resource-card,
[data-theme="dark"] .event-hifi-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .form-card,
body.dark-theme .calendar-card,
body.dark-theme .pillar-card,
body.dark-theme .team-profile-card,
body.dark-theme .resource-card,
body.dark-theme .event-hifi-card,
body.dark-theme .modal-content,
body.dark-theme .form-card {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .category-item-card,
body.dark-theme .category-item-card {
  background: #182238;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .category-name,
body.dark-theme .category-name {
  color: #F8F9FA;
}

/* Dark Mode Inputs & Form Elements */
[data-theme="dark"] .form-control,
[data-theme="dark"] select.form-control,
[data-theme="dark"] textarea.form-control,
body.dark-theme .form-control,
body.dark-theme select.form-control,
body.dark-theme textarea.form-control {
  background: #182238;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .form-control:focus,
body.dark-theme .form-control:focus {
  background: #1D2945;
  border-color: var(--secondary);
  color: #FFFFFF;
}

/* Dark Mode Public Calendar */
[data-theme="dark"] .calendar-container,
body.dark-theme .calendar-container {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .calendar-header,
body.dark-theme .calendar-header {
  background: #182238;
  color: #F8F9FA;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .calendar-day-label,
body.dark-theme .calendar-day-label {
  color: #94A3B8;
  background: #131A2B;
}

[data-theme="dark"] .calendar-day,
body.dark-theme .calendar-day {
  background: #151D30;
  color: #F8F9FA;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .calendar-day.empty,
body.dark-theme .calendar-day.empty {
  background: #0B0F19;
}

[data-theme="dark"] .calendar-day:hover,
body.dark-theme .calendar-day:hover {
  background: #233152;
}

[data-theme="dark"] .calendar-day.active,
body.dark-theme .calendar-day.active {
  background: rgba(245, 166, 35, 0.15);
  border-color: var(--accent);
}

[data-theme="dark"] .calendar-day.has-event,
body.dark-theme .calendar-day.has-event {
  background: rgba(0, 163, 191, 0.16);
  border-color: rgba(0, 163, 191, 0.35);
}

[data-theme="dark"] .cal-legend-item,
body.dark-theme .cal-legend-item {
  background: #182238;
  color: #F8F9FA;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cal-legend-item.active,
body.dark-theme .cal-legend-item.active {
  background: rgba(0, 163, 191, 0.2);
  border-color: var(--secondary);
}

/* Dark Mode FullCalendar (Admin Dashboard) */
[data-theme="dark"] .fc,
body.dark-theme .fc {
  color: #F8F9FA;
}

[data-theme="dark"] .fc-toolbar-title,
body.dark-theme .fc-toolbar-title {
  color: #F8F9FA !important;
}

[data-theme="dark"] .fc-col-header-cell-cushion,
[data-theme="dark"] .fc-daygrid-day-number,
body.dark-theme .fc-col-header-cell-cushion,
body.dark-theme .fc-daygrid-day-number {
  color: #F8F9FA !important;
}

[data-theme="dark"] .fc-day-other .fc-daygrid-day-number,
body.dark-theme .fc-day-other .fc-daygrid-day-number {
  color: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .fc-theme-standard td,
[data-theme="dark"] .fc-theme-standard th,
[data-theme="dark"] .fc-theme-standard .fc-scrollgrid,
body.dark-theme .fc-theme-standard td,
body.dark-theme .fc-theme-standard th,
body.dark-theme .fc-theme-standard .fc-scrollgrid {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background-color: #131A2B !important;
}

[data-theme="dark"] .fc-daygrid-day.fc-day-today,
body.dark-theme .fc-daygrid-day.fc-day-today {
  background-color: rgba(245, 166, 35, 0.08) !important;
}

[data-theme="dark"] .fc-button,
body.dark-theme .fc-button {
  background-color: #182238 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .fc-button-active,
body.dark-theme .fc-button-active {
  background-color: var(--accent) !important;
  color: #111424 !important;
  font-weight: 700 !important;
}

/* Dark Mode Tax Receipt and Modals */
[data-theme="dark"] .tax-receipt-card,
body.dark-theme .tax-receipt-card {
  background: #182238;
  color: #F8F9FA;
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .tax-receipt-header,
body.dark-theme .tax-receipt-header {
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .tax-compliance-box,
body.dark-theme .tax-compliance-box {
  background: rgba(255, 255, 255, 0.05);
  color: #CBD5E1;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .svg-wave-divider .shape-fill,
body.dark-theme .svg-wave-divider .shape-fill {
  fill: #0B0F19;
}

/* Dark Mode Google Sign-In Button */
[data-theme="dark"] #google-login-btn,
body.dark-theme #google-login-btn {
  background-color: #1E293B !important;
  color: #F8FAFC !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] #google-login-btn:hover,
body.dark-theme #google-login-btn:hover {
  background-color: #334155 !important;
  border-color: var(--secondary) !important;
}

/* Dark Mode Admin Calendar Container & Theme */
.calendar-surface-wrapper {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] #admin-calendar,
body.dark-theme #admin-calendar,
[data-theme="dark"] .calendar-surface-wrapper,
body.dark-theme .calendar-surface-wrapper {
  background-color: #131A2B !important;
  color: #F8FAFC !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .fc-view-harness,
body.dark-theme .fc-view-harness {
  background-color: #131A2B !important;
}

[data-theme="dark"] .fc-scrollgrid-sync-table,
body.dark-theme .fc-scrollgrid-sync-table {
  background-color: #131A2B !important;
}

[data-theme="dark"] .fc-list-empty,
body.dark-theme .fc-list-empty {
  background-color: #131A2B !important;
  color: #94A3B8 !important;
}

[data-theme="dark"] .fc-daygrid-event,
body.dark-theme .fc-daygrid-event {
  filter: brightness(1.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}



/* --- DONATION PORTAL & RESPONSIVE GRIDS --- */
.donate-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.donate-freq-grid,
.donate-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.donate-donor-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* --- MOBILE LAYOUT OVERRIDES (Critical Production Fixes) --- */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

img:not(.navbar-logo-img):not(.logo-container img):not(.footer-brand-logo img):not(.auth-header img) {
  max-width: 100%;
  height: auto;
}

.navbar-logo-img,
.logo-container img {
  height: 44px !important;
  width: auto !important;
  max-width: 52px !important;
  object-fit: contain !important;
}

.footer-brand-logo img {
  height: 48px !important;
  width: auto !important;
  max-width: 60px !important;
  object-fit: contain !important;
}

.auth-header img {
  height: 54px !important;
  width: auto !important;
  max-width: 70px !important;
  object-fit: contain !important;
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column !important;
    padding: 120px 6% 60px 6% !important;
    text-align: center !important;
    gap: 2.5rem !important;
    min-height: auto !important;
  }

  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  .hero-subtitle {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-actions {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .hero-carousel-container {
    width: 100% !important;
    max-width: 560px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    flex: none !important;
  }

  .donate-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 768px) {

  .hero-shape-1,
  .hero-shape-2 {
    display: none !important;
  }

  .hero {
    padding: 100px 5% 40px 5% !important;
    gap: 2rem !important;
  }

  .hero-title {
    font-size: 2.2rem !important;
    line-height: 1.25 !important;
  }

  .hero-carousel-track-wrapper {
    height: 280px !important;
  }

  .hero-carousel-caption {
    padding: 14px 16px !important;
  }

  .hero-carousel-title {
    font-size: 1.15rem !important;
  }

  .hero-carousel-desc {
    font-size: 0.82rem !important;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .stats-bar {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 20px !important;
    gap: 16px !important;
    margin-top: 0 !important;
  }

  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 14px !important;
  }

  .stat-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .section {
    padding: 50px 5% !important;
  }

  .section-title {
    font-size: 2rem !important;
  }

  /* Donate Page Responsiveness */
  .donate-freq-grid,
  .donate-amount-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .donate-donor-inputs {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .tax-receipt-card {
    padding: 20px 16px !important;
    font-size: 0.85rem !important;
  }

  .tax-receipt-header div {
    font-size: 0.75rem !important;
  }

  /* Admin Dashboard Responsiveness */
  .analytics-header-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  .analytics-tabs-group {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
  }

  .analytics-tab-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 8px 4px !important;
    font-size: 0.78rem !important;
  }

  .category-item-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  .category-item-actions {
    justify-content: space-between !important;
    width: 100% !important;
  }

  .admin-team-grid {
    grid-template-columns: 1fr !important;
  }

  .converter-guidance-grid,
  .events-wrapper,
  .footer-grid,
  .team-grid,
  .blog-grid,
  .event-list,
  .form-grid,
  .pillars-grid {
    grid-template-columns: 1fr !important;
  }

  .form-card,
  .calendar-card,
  .blog-post-card,
  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 20px 16px !important;
  }

  .container,
  .content-container,
  .main-container {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 16px !important;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
  }

  .fc .fc-toolbar {
    flex-direction: column !important;
    gap: 10px !important;
  }
}


/* --- SVG FLOW STREAM & LIVING AMBIENT ANIMATIONS --- */
.hero-flow-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

@keyframes flowStream {
  0% {
    stroke-dashoffset: 2000;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes waveDrift {

  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }

  50% {
    transform: translateY(-12px) scaleY(1.05);
  }
}

@keyframes waveDriftReverse {

  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }

  50% {
    transform: translateY(14px) scaleY(0.95);
  }
}

.flow-line-1 {
  stroke-dasharray: 1200 400;
  animation: flowStream 22s linear infinite, waveDrift 8s ease-in-out infinite alternate;
  transform-origin: center;
}

.flow-line-2 {
  stroke-dasharray: 1000 500;
  animation: flowStream 28s linear infinite reverse, waveDriftReverse 11s ease-in-out infinite alternate;
  transform-origin: center;
}

.flow-line-3 {
  animation: waveDrift 6s ease-in-out infinite alternate;
}

/* Ambient Floating Glow Spheres */
.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-glow-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(0, 124, 146, 0.15) 50%, transparent 70%);
  top: -100px;
  right: 5%;
  animation: ambientFloat1 12s ease-in-out infinite alternate;
}

.hero-glow-orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(243, 156, 18, 0.25) 0%, rgba(236, 72, 153, 0.12) 50%, transparent 70%);
  bottom: -50px;
  left: 8%;
  animation: ambientFloat2 15s ease-in-out infinite alternate;
}

@keyframes ambientFloat1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translate(-35px, 25px) scale(1.1);
    opacity: 0.9;
  }

  100% {
    transform: translate(25px, -20px) scale(0.95);
    opacity: 0.7;
  }
}

@keyframes ambientFloat2 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(40px, -30px) scale(1.15);
    opacity: 0.85;
  }

  100% {
    transform: translate(-20px, 20px) scale(0.9);
    opacity: 0.6;
  }
}

/* Organic Flow Wave Transition Divider */
.hero-wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 52px;
}

/* Staggered Hero Entrance Animations */
@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-tag {
  animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title {
  animation: heroFadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: -0.03em !important;
}

.hero-subtitle {
  animation: heroFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.hero-actions {
  animation: heroFadeInUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.hero-image-wrapper {
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Donate Heartbeat Pulse Glow */
@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.35);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 8px 26px rgba(243, 156, 18, 0.65), 0 0 12px rgba(243, 156, 18, 0.4);
    transform: translateY(-2px);
  }
}

.btn-donate {
  animation: pulseGlow 3s infinite ease-in-out;
}

.btn-donate:hover {
  animation: none;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(243, 156, 18, 0.7);
}

/* Clean Card Hover Flow & Lift */
.pillar-card,
.event-hifi-card,
.calendar-card {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.pillar-card:hover,
.event-hifi-card:hover,
.calendar-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 36px -8px rgba(30, 39, 97, 0.14), 0 0 20px rgba(0, 124, 146, 0.12);
}

[data-theme="dark"] .pillar-card:hover,
[data-theme="dark"] .event-hifi-card:hover,
[data-theme="dark"] .calendar-card:hover {
  box-shadow: 0 18px 36px -8px rgba(0, 0, 0, 0.6), 0 0 25px rgba(129, 140, 248, 0.2);
}

/* Section Tag Animated Shimmer Underline */
.section-tag {
  position: relative;
  display: inline-block;
}

.section-tag::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
  opacity: 0.8;
}


/* --- SUBTLE HOMEPAGE WHITE SECTION AMBIENT AURA --- */
.section {
  position: relative;
  overflow: hidden;
}

.section-bg-aura {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.section-aura-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.055;
  pointer-events: none;
}

.section-aura-orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #007C92 0%, #2563EB 50%, transparent 70%);
  top: 10%;
  left: -80px;
  animation: auraFloat1 20s ease-in-out infinite alternate;
}

.section-aura-orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #F39C12 0%, #EC4899 40%, transparent 70%);
  bottom: 5%;
  right: -60px;
  animation: auraFloat2 24s ease-in-out infinite alternate;
}

@keyframes auraFloat1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, 35px) scale(1.06);
  }

  100% {
    transform: translate(-25px, 60px) scale(0.96);
  }
}

@keyframes auraFloat2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-45px, -35px) scale(1.08);
  }

  100% {
    transform: translate(25px, -50px) scale(0.94);
  }
}

.section>.container,
.section>.section-header,
.section>.pillars-grid,
.section>.form-grid,
.section>div {
  position: relative;
  z-index: 1;
}

/* --- CUSTOM EVENT PAGE STYLES --- */
.special-event-hero {
  position: relative;
  background: linear-gradient(135deg, #1E2761, #0c1236);
  color: white;
  padding: 130px 6% 80px 6%;
  text-align: center;
  overflow: hidden;
}

.special-event-meta-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 25px auto 30px auto;
  max-width: 850px;
}

.special-meta-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
}

.special-meta-chip i {
  color: var(--accent);
}

.special-event-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 900px) {
  .special-event-grid {
    grid-template-columns: 1fr;
  }
}

/* Timeline & Schedule */
.timeline-list {
  position: relative;
  padding-left: 28px;
  margin-top: 20px;
  border-left: 2px solid rgba(0, 124, 146, 0.25);
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 124, 146, 0.2);
}

.timeline-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 2px;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Pricing Grid & Tier Cards */
.pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 35px 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 32px rgba(243, 156, 18, 0.18);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1E2761;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(243, 156, 18, 0.35);
}

.pricing-tier-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin: 15px 0 20px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.pricing-feature-item i {
  color: var(--success);
  margin-top: 3px;
  font-size: 0.85rem;
}

/* Admin Toggle Switch */
.admin-switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.admin-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

.admin-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.admin-slider {
  background-color: var(--success);
}

input:checked+.admin-slider:before {
  transform: translateX(24px);
}

/* --- ADMIN PANEL TABS NAVIGATION SYSTEM --- */
.admin-tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  margin: 0 auto 2.5rem auto;
  max-width: 1200px;
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-tab-btn:hover {
  background: rgba(30, 39, 97, 0.05);
  color: var(--primary);
}

.admin-tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 39, 97, 0.25);
}

.admin-tab-btn.active i {
  color: var(--accent);
}

.admin-tab-btn .tab-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(243, 156, 18, 0.2);
  color: var(--accent);
}

.admin-tab-btn.active .tab-badge {
  background: var(--accent);
  color: var(--primary);
}

.admin-tab-pane {
  display: none;
  animation: tabFadeIn 0.25s ease-out;
}

.admin-tab-pane.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- TICKET CONFIRMATION & VERIFICATION STYLES --- */
.ticket-receipt-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.ticket-receipt-header {
  background: linear-gradient(135deg, var(--primary) 0%, #172554 100%);
  color: white;
  padding: 24px;
  text-align: center;
}

.ticket-receipt-body {
  padding: 24px;
}

.ticket-code-pill {
  display: inline-block;
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 8px 18px;
  background: rgba(243, 156, 18, 0.12);
  color: #b45309;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  margin: 12px 0;
}

.ticket-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.hero-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.6) 45%, rgba(15, 23, 42, 0.94) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 28px 24px;
  color: white;
  opacity: 1;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.hero-carousel-overlay h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-carousel-overlay p {
  font-size: 0.92rem;
  max-width: 500px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.hero-carousel-overlay .btn {
  font-size: 0.88rem;
  padding: 8px 18px;
}

.hero-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.4);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.hero-carousel-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.hero-carousel-prev {
  left: 15px;
}

.hero-carousel-next {
  right: 15px;
}

/* --- TRAFFIC & OVERTIME ANALYTICS DASHBOARD --- */
.live-pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.analytics-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.analytics-filter-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: white;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.analytics-filter-btn:hover {
  background: rgba(30, 39, 97, 0.06);
  border-color: var(--primary);
}

.analytics-filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(30, 39, 97, 0.25);
}

.overtime-table-container {
  overflow-x: auto;
  margin-top: 25px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: white;
  box-shadow: var(--shadow-sm);
}

.overtime-analytics-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.overtime-analytics-table th {
  background: rgba(30, 39, 97, 0.04);
  color: var(--primary);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

.overtime-analytics-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text-main);
  white-space: nowrap;
}

.overtime-analytics-table tr:last-child td {
  border-bottom: none;
}

.overtime-analytics-table tr:hover {
  background: rgba(30, 39, 97, 0.02);
}

.badge-uniques {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.badge-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563EB;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
}

/* ========================================================= */
/* --- HERO CAROUSEL RESPONSIVE ARCHITECTURE ---             */
/* ========================================================= */
.hero-image-wrapper {
  flex: 1;
  width: 100%;
  max-width: 540px;
  min-height: 420px;
  height: 450px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.4);
  z-index: 2;
  margin: 0 auto;
}

#hero-carousel-container,
.hero-carousel-container {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
}

#hero-carousel-track,
.hero-carousel-track {
  display: flex !important;
  height: 100% !important;
  width: 100% !important;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.hero-carousel-slide {
  min-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

.hero-carousel-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.hero-carousel-dots-container {
  position: absolute;
  bottom: 14px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.hero-carousel-dots {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.hero-carousel-dot,
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-carousel-dot.active,
.carousel-dot.active {
  background: #ffffff !important;
  width: 24px !important;
  border-radius: 10px !important;
}

@media (max-width: 992px) {
  .hero-image-wrapper {
    width: 100% !important;
    max-width: 520px !important;
    min-height: 350px !important;
    height: 370px !important;
    margin: 1.5rem auto 0 auto !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  .hero-image-wrapper {
    min-height: 290px !important;
    height: 310px !important;
    max-width: 100% !important;
    border-radius: var(--radius-md) !important;
    border-width: 1px !important;
  }

  .hero-carousel-overlay {
    padding: 16px 14px 20px 14px !important;
  }

  .hero-carousel-overlay h3 {
    font-size: 1.25rem !important;
    margin-bottom: 4px !important;
  }

  .hero-carousel-overlay p {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
  }

  .hero-carousel-overlay .btn {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    margin-top: 2px !important;
  }

  .hero-carousel-nav {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
  }

  .hero-carousel-prev {
    left: 8px !important;
  }

  .hero-carousel-next {
    right: 8px !important;
  }
}

@media (max-width: 480px) {
  .hero-image-wrapper {
    min-height: 260px !important;
    height: 270px !important;
  }
}

/* ========================================================= */
/* --- ADMIN PANEL MODERN RESPONSIVE SYSTEM ---              */
/* ========================================================= */
.admin-dashboard-section {
  padding-top: 130px;
  padding-bottom: 60px;
}

@media (max-width: 768px) {
  .admin-dashboard-section {
    padding-top: 90px !important;
    padding-bottom: 40px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .admin-dashboard-section .section-title {
    font-size: 1.8rem !important;
  }

  .admin-dashboard-section .section-subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 1.5rem !important;
  }
}

/* Admin Tabs Bar */
.admin-tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  margin: 0 auto 2rem auto;
  max-width: 1200px;
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
}

.admin-tabs-bar::-webkit-scrollbar {
  display: none;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .admin-tab-btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    gap: 6px !important;
  }

  .admin-tab-btn .tab-badge {
    display: none !important;
  }
}

/* KPI Metrics Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.admin-kpi-card {
  padding: 18px 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.admin-kpi-card .kpi-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.admin-kpi-card .kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
}

.admin-kpi-card .kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

@media (max-width: 1100px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
  }
}

@media (max-width: 640px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 1.5rem !important;
  }

  .admin-kpi-card {
    padding: 12px 10px !important;
    gap: 10px !important;
  }

  .admin-kpi-card .kpi-icon {
    font-size: 1.4rem !important;
  }

  .admin-kpi-card .kpi-value {
    font-size: 1.3rem !important;
  }

  .admin-kpi-card .kpi-label {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
  }
}

/* Admin Traffic Analytics Card */
.admin-analytics-card {
  max-width: 1200px;
  margin: 0 auto 2.5rem auto;
  padding: 26px;
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.admin-analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.admin-analytics-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.analytics-chart-wrapper {
  position: relative;
  height: 320px;
  width: 100%;
}

@media (max-width: 768px) {
  .admin-analytics-card {
    padding: 16px 12px !important;
    margin-bottom: 1.8rem !important;
  }

  .admin-analytics-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .admin-analytics-header h3 {
    font-size: 1.15rem !important;
  }

  .admin-analytics-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr auto !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .admin-analytics-actions .btn {
    padding: 7px 8px !important;
    font-size: 0.76rem !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .analytics-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .analytics-timeframe-group,
  .analytics-metric-group {
    width: 100% !important;
    display: grid !important;
  }

  .analytics-timeframe-group {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
  }

  .analytics-timeframe-group .analytics-filter-btn {
    padding: 6px 2px !important;
    font-size: 0.72rem !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .analytics-metric-group {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
  }

  .analytics-metric-group .analytics-filter-btn {
    padding: 6px 2px !important;
    font-size: 0.7rem !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .analytics-chart-wrapper {
    height: 220px !important;
  }

  .overtime-analytics-table th,
  .overtime-analytics-table td {
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
  }
}

/* Multi-Column Layout Helpers (Responsive) */
.admin-split-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
}

.admin-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.admin-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

@media (max-width: 992px) {

  .admin-split-layout,
  .admin-two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 768px) {

  .admin-form-row-2,
  .admin-form-row-3 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .admin-shortcuts-grid {
    grid-template-columns: 1fr !important;
  }

  .adm-tier-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .adm-tier-row input,
  .adm-tier-row textarea,
  .adm-tier-row select {
    width: 100% !important;
  }

  .adm-tier-row button {
    align-self: flex-end !important;
  }

  .category-manager-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- PRODUCTION READY DONATION PORTAL & CORPORATE / IN-KIND SUPPLY STYLES --- */
.donation-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  max-width: 1160px;
  margin: 0 auto;


  align-items: start;
}

.donate-tabs-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.donate-tab-btn {
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.donate-tab-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.donate-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(30, 39, 97, 0.25);
}

.donate-freq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.donate-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.donate-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tax-receipt-signatures-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 24px;
  font-size: 0.85rem;
  gap: 15px;
}

/* Corporate Giving Cards */
.corporate-sponsorship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.corporate-tier-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.corporate-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

/* Supply Donation Form */
.supply-donation-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  max-width: 820px;
  margin: 0 auto;
}

/* Attendee Tickets Multiple Selection */
.attendee-inputs-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  background: var(--bg-base);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(15, 23, 42, 0.15);
}

.attendee-item-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.attendee-pill-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Payment Splitting Badge & Card */
.split-pay-callout {
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.08), rgba(0, 48, 135, 0.08));
  border: 1px solid rgba(99, 91, 255, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

/* Gala YouTube Video Showcase */
.gala-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(243, 156, 18, 0.35);
  background: #000000;
}

.gala-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile Responsiveness Rules (Strict Zero Overlap) */
@media (max-width: 960px) {
  .donation-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    width: 100% !important;
  }
}

@media (max-width: 640px) {

  .donate-freq-grid,
  .donate-amount-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .donate-fields-row {
    grid-template-columns: 1fr !important;
  }

  .tax-receipt-signatures-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .attendee-item-card {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .supply-donation-card {
    padding: 20px 16px !important;
  }
}

/* ==========================================================================
   GLOBAL LIVING AMBIENT ATMOSPHERE & BACKGROUND MOTION ENGINE
   ========================================================================== */

.ambient-mesh-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.85;
  transition: opacity 0.5s ease;
}

#ambient-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Ambient Floating Luminous Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  -webkit-filter: blur(85px);
  will-change: transform, opacity;
  pointer-events: none;
}

.ambient-orb-1 {
  width: 550px;
  height: 550px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(30, 39, 97, 0.08) 50%, transparent 75%);
  animation: ambientOrbFloat1 24s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: 480px;
  height: 480px;
  bottom: 5%;
  left: -100px;
  background: radial-gradient(circle, rgba(243, 156, 18, 0.13) 0%, rgba(245, 158, 11, 0.05) 50%, transparent 75%);
  animation: ambientOrbFloat2 30s ease-in-out infinite alternate;
}

.ambient-orb-3 {
  width: 420px;
  height: 420px;
  top: 45%;
  right: 15%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.10) 0%, rgba(0, 124, 146, 0.04) 50%, transparent 75%);
  animation: ambientOrbFloat3 22s ease-in-out infinite alternate;
}

@keyframes ambientOrbFloat1 {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(-60px, 80px, 0) scale(1.12) rotate(45deg); }
  100% { transform: translate3d(50px, 40px, 0) scale(0.92) rotate(90deg); }
}

@keyframes ambientOrbFloat2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(80px, -70px, 0) scale(1.15); }
  100% { transform: translate3d(-40px, -40px, 0) scale(0.9); }
}

@keyframes ambientOrbFloat3 {
  0% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.6; }
  50% { transform: translate3d(-70px, -60px, 0) scale(1.2); opacity: 0.95; }
  100% { transform: translate3d(40px, 50px, 0) scale(1.05); opacity: 0.7; }
}

/* Header Animated Accent Glow Line */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4), rgba(243, 156, 18, 0.6), rgba(16, 185, 129, 0.4), transparent);
  background-size: 200% 100%;
  animation: navLineFlow 8s linear infinite;
  pointer-events: none;
}

@keyframes navLineFlow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Interactive Card Elevation & Ambient Border Aura */
.card,
.calendar-card,
.program-card,
.impact-card,
.corporate-tier-card,
.supply-donation-card,
.hero-tag {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease !important;
}

.card:hover,
.calendar-card:hover,
.program-card:hover,
.corporate-tier-card:hover {
  transform: translateY(-6px) scale(1.008) !important;
  box-shadow: 0 18px 40px -10px rgba(30, 39, 97, 0.16), 0 0 0 1px rgba(37, 99, 235, 0.14) !important;
}

/* Alive Floating Badges & Tags */
.event-badge,
.section-tag,
.hero-tag,
.badge-views,
.installment-badge {
  animation: gentleBadgeFloat 4s ease-in-out infinite alternate;
}

@keyframes gentleBadgeFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

/* Dynamic Button Ambient Shimmer */
.btn-donate,
.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(30, 39, 97, 0.22);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-donate::before,
.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  animation: buttonShimmerSweep 5s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes buttonShimmerSweep {
  0%, 70% { transform: translateX(-150%) rotate(25deg); }
  85%, 100% { transform: translateX(450%) rotate(25deg); }
}

.btn-donate:hover,
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 24px rgba(30, 39, 97, 0.3) !important;
}

/* Pulsing KPI & Live Status Indicators */
.live-pulse-dot,
.status-indicator.live {
  position: relative;
}

.live-pulse-dot::after,
.status-indicator.live::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1.5px solid #10B981;
  animation: pulseAura 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes pulseAura {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Smooth Staggered Scroll-In Transitions */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hero Section Subtle Ambient Mesh Depth */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: float-slow 22s infinite alternate ease-in-out;
  pointer-events: none;
  z-index: 0;
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .ambient-orb,
  .event-badge,
  .btn-donate::before,
  .btn-primary::before,
  .navbar::after {
    animation: none !important;
  }
}

/* Gala Story Narrative Multi-Paragraphs */
.gala-story-paragraphs {
  margin-bottom: 25px;
}

.gala-story-paragraph {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0 0 16px 0;
  letter-spacing: 0.1px;
}

.gala-story-paragraph:last-child {
  margin-bottom: 0;
}

/* Payment Splitting Option Cards */
.split-plan-option-label {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid rgba(15, 23, 42, 0.12) !important;
}

.split-plan-option-label:hover {
  border-color: var(--secondary) !important;
  background: rgba(0, 124, 146, 0.03) !important;
  transform: translateY(-1px);
}

.split-plan-option-label:has(input:checked) {
  border-color: var(--primary) !important;
  background: rgba(30, 39, 97, 0.04) !important;
  box-shadow: 0 2px 8px rgba(30, 39, 97, 0.08);
}

/* Admin Itinerary Row & Index Badges */
.adm-sched-row {
  transition: all 0.15s ease-in-out;
}

.adm-sched-row:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(0, 124, 146, 0.3) !important;
}

.sched-index-badge {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* ========================================================= */
/* --- GALA FROST, FLAME & FUSION DYNAMIC TEXT ANIMATIONS -- */
/* ========================================================= */

/* ========================================================= */
/* --- GALA HERO BANNER: FROST, FLAME & FUSION TYPOGRAPHY -- */
/* ========================================================= */

/* Frost: Light blue crystalline text with snow fog mist fade-in and glacial sheen */
.gala-anim-frost {
  display: inline-block;
  position: relative;
  font-weight: 900;
  color: #E0F2FE;
  background: linear-gradient(
    120deg,
    #E0F2FE 0%,
    #BAE6FD 20%,
    #7DD3FC 45%,
    #38BDF8 70%,
    #BAE6FD 90%,
    #E0F2FE 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.5px rgba(224, 242, 254, 0.95);
  letter-spacing: 0.5px;
  animation: frostSnowFogFadeIn 1.6s ease-out forwards, frostSnowFogSheen 4.5s ease-in-out infinite alternate 1.6s;
  transition: transform 0.25s ease, filter 0.25s ease;
  vertical-align: baseline;
}

.gala-anim-frost:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(125, 211, 252, 0.95));
}

@keyframes frostSnowFogFadeIn {
  0% {
    opacity: 0;
    filter: blur(6px) drop-shadow(0 0 20px rgba(186, 230, 253, 0.9));
    transform: translateY(4px);
  }
  60% {
    opacity: 0.9;
    filter: blur(2px) drop-shadow(0 0 14px rgba(125, 211, 252, 0.85));
  }
  100% {
    opacity: 1;
    filter: blur(0px) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 8px rgba(56, 189, 248, 0.75));
    transform: translateY(0);
  }
}

@keyframes frostSnowFogSheen {
  0% {
    background-position: 0% 50%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 6px rgba(56, 189, 248, 0.65));
  }
  100% {
    background-position: 100% 50%;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px rgba(186, 230, 253, 0.85)) drop-shadow(0 0 24px rgba(56, 189, 248, 0.5));
  }
}

/* Flame: Vivid orange core with dynamic flame lick flicker and heat convection */
.gala-anim-flame {
  display: inline-block;
  position: relative;
  font-weight: 900;
  color: #FFF7ED;
  background: linear-gradient(
    120deg,
    #FFF7ED 0%,
    #FFEDD5 15%,
    #FB923C 40%,
    #F97316 65%,
    #EA580C 85%,
    #C2410C 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.5px rgba(254, 215, 170, 0.95);
  letter-spacing: 0.5px;
  animation: flameIgnite 1.4s ease-out forwards, flameFlicker 3.2s ease-in-out infinite alternate 1.4s;
  transition: transform 0.25s ease, filter 0.25s ease;
  vertical-align: baseline;
}

.gala-anim-flame:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.95)) drop-shadow(0 -4px 18px rgba(234, 88, 12, 0.95));
}

@keyframes flameIgnite {
  0% {
    opacity: 0;
    filter: drop-shadow(0 0 22px rgba(249, 115, 22, 0.95));
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85)) drop-shadow(0 -2px 10px rgba(249, 115, 22, 0.75));
    transform: scale(1);
  }
}

@keyframes flameFlicker {
  0% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85)) drop-shadow(0 -2px 8px rgba(249, 115, 22, 0.7));
    transform: translateY(0);
    background-position: 0% 50%;
  }
  30% {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9)) drop-shadow(0 -4px 14px rgba(234, 88, 12, 0.85));
    transform: translateY(-1.5px) scaleY(1.02);
  }
  70% {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85)) drop-shadow(0 -3px 10px rgba(251, 146, 60, 0.75));
    transform: translateY(-0.5px);
  }
  100% {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.95)) drop-shadow(0 -5px 16px rgba(249, 115, 22, 0.9));
    transform: translateY(-2px) scaleY(1.03);
    background-position: 100% 50%;
  }
}

/* ========================================================= */
/* --- THE FUSION "&" CLEAN ELEMENTAL CONNECTOR ------------ */
/* ========================================================= */
/* Clean, readable foreground & glyph connecting Frost and Flame smoothly */
.gala-anim-fusion {
  display: inline-block;
  position: relative;
  font-weight: 900;
  padding: 0 8px;
  margin: 0 2px;
  vertical-align: baseline;
  z-index: 2;
  color: #FFFFFF;
  background: linear-gradient(
    135deg, 
    #7DD3FC 0%, 
    #FFFFFF 50%, 
    #FB923C 100%
  );
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
  transition: transform 0.25s ease;
}

.gala-anim-fusion:hover {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

/* ========================================================= */
/* --- LIVELY SITE-WIDE MICRO-INTERACTIONS & ELEVATIONS ---- */
/* ========================================================= */

/* Lively Smooth Hover Elevation for cards */
.animate-hover,
.calendar-card,
.pillar-card,
.event-hifi-card,
.stat-item {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
}

.animate-hover:hover,
.calendar-card:hover,
.pillar-card:hover,
.event-hifi-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 36px -10px rgba(30, 39, 97, 0.16), 0 0 1px rgba(0, 124, 146, 0.25) !important;
}

.stat-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px -6px rgba(0, 124, 146, 0.18);
}

/* Hero & Section Tag Lively Pulse */
.hero-tag,
.section-tag {
  animation: badgeLivelyBreathe 4s ease-in-out infinite alternate;
  display: inline-flex;
  align-items: center;
  transition: all 0.25s ease;
}

.hero-tag:hover,
.section-tag:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 14px rgba(243, 156, 18, 0.3);
}

@keyframes badgeLivelyBreathe {
  0% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  100% {
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.22);
  }
}

/* Button Interactive Micro-Sheen & Press Effect */
.btn-primary,
.btn-donate {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}

.btn-primary:active,
.btn-donate:active,
.btn-outline:active {
  transform: scale(0.97) !important;
}

.btn-primary::after,
.btn-donate::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-22deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-donate:hover::after {
  left: 150%;
}

/* Floating Ambient Aura Orbs */
.hero-glow-orb-1 {
  animation: orbContinuousFloat1 12s ease-in-out infinite alternate !important;
}

.hero-glow-orb-2 {
  animation: orbContinuousFloat2 15s ease-in-out infinite alternate !important;
}

@keyframes orbContinuousFloat1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate(40px, -30px) scale(1.15);
    opacity: 0.7;
  }
  100% {
    transform: translate(-30px, 25px) scale(0.95);
    opacity: 0.5;
  }
}

@keyframes orbContinuousFloat2 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-35px, 35px) scale(1.12);
    opacity: 0.65;
  }
  100% {
    transform: translate(25px, -20px) scale(0.92);
    opacity: 0.45;
  }
}

/* Dedicated Gala Page Assistance & Concierge Card */
.gala-inquiries-bar {
  background: linear-gradient(135deg, rgba(11, 19, 43, 0.98), rgba(30, 39, 97, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 28px 34px;
  margin: 45px auto 25px auto;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  color: #FFFFFF;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.4);
}
.gala-inquiries-bar h4 {
  color: #FFFFFF;
  font-size: 1.25rem;
  margin-bottom: 6px;
  font-weight: 800;
}
.gala-inquiries-bar p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}

/* Past Events Styling & Archival Badges */
.event-badge.past-pill-badge {
  left: auto !important;
  right: 16px !important;
  background: #475569 !important;
  color: #F8FAFC !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  letter-spacing: 0.02em;
}

.event-hifi-card.is-past-event {
  border-color: rgba(148, 163, 184, 0.35) !important;
}

.event-hifi-card.is-past-event .event-banner {
  filter: saturate(0.85);
}