/* ==========================================================================
   WAFEAN (Water Filter Entrepreneurs Association of Nepal)
   DESIGN SYSTEM: "PURITY & PRESTIGE"
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Brand Primary Colors */
  --primary-color: #0a2540;       /* Royal Deep Navy */
  --primary-dark: #061727;
  --primary-light: #163c63;
  --primary-subtle: #eff6ff;

  /* Aqua & Water Accents */
  --accent-color: #0284c7;        /* Clean Aqua Blue */
  --accent-hover: #0369a1;
  --accent-light: #38bdf8;
  --accent-subtle: #f0f9ff;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
  --primary-gradient: linear-gradient(135deg, #0a2540 0%, #0d3b66 100%);
  --hero-gradient: linear-gradient(145deg, #061727 0%, #0a2540 60%, #0c3e69 100%);

  /* State & Accent Colors */
  --gold-accent: #d97706;         /* Prestigious Gold */
  --gold-subtle: #fffbeb;
  --success-color: #059669;       /* Verified Green */
  --success-subtle: #ecfdf5;
  --danger-color: #dc2626;

  /* Neutral Backgrounds & Typography */
  --dark-text: #0f172a;           /* Deep Slate Body */
  --body-text: #334155;           /* Slate 700 */
  --muted-text: #64748b;          /* Slate 500 */
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #38bdf8;

  /* Elevation Shadows */
  --card-shadow: 0 6px 24px -4px rgba(10, 37, 64, 0.08), 0 2px 8px -2px rgba(10, 37, 64, 0.04);
  --card-shadow-hover: 0 28px 48px -8px rgba(10, 37, 64, 0.18), 0 12px 20px -4px rgba(10, 37, 64, 0.08);
  --glow-primary: 0 0 30px rgba(2, 132, 199, 0.4);
  --glow-gold: 0 8px 22px rgba(217, 119, 6, 0.35);
  --gold-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  --premium-gradient: linear-gradient(135deg, #061727 0%, #0a2540 45%, #0284c7 100%);

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background-color: var(--light-bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  color: var(--dark-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--gold-accent);
  color: #ffffff;
}

a:hover {
  color: var(--accent-hover);
}

/* Utility Colors & Gradients */
.text-primary-custom { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; color: #ffffff !important; }
.bg-secondary-custom { background: var(--hero-gradient) !important; }
.bg-slate { background-color: var(--light-bg) !important; }
.bg-accent-subtle { background-color: var(--accent-subtle) !important; }

/* ==========================================================================
   TOP HEADER STRIP
   ========================================================================== */
.top-header-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  padding: 8px 0;
  color: var(--muted-text);
}
.top-header-strip a {
  color: var(--body-text);
}
.top-header-strip a:hover {
  color: var(--accent-color);
}
.top-social-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--primary-color);
  transition: var(--transition-smooth);
}
.top-social-icon:hover {
  background: var(--accent-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   FROSTED GLASS NAVIGATION BAR
   ========================================================================== */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(10, 37, 64, 0.04);
  padding: 12px 0;
  transition: var(--transition-smooth);
}
.navbar-custom.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(10, 37, 64, 0.12);
  padding: 6px 0;
  border-bottom-color: transparent;
}
.navbar-custom .navbar-brand img {
  height: 52px;
  width: auto;
  transition: transform 0.3s ease;
}
.navbar-custom .navbar-brand:hover img {
  transform: scale(1.03);
}

.navbar-custom .nav-link {
  color: var(--dark-text);
  font-family: var(--font-heading);
  font-size: 0.93rem;
  font-weight: 600;
  padding: 8px 16px !important;
  border-radius: 20px;
  transition: var(--transition-smooth);
  position: relative;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--accent-color) !important;
  background-color: var(--accent-subtle);
}

/* Dropdown Menus */
.navbar-custom .dropdown-menu {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 40px rgba(10, 37, 64, 0.12);
  padding: 10px;
  min-width: 230px;
}
.navbar-custom .dropdown-item {
  color: var(--dark-text);
  font-size: 0.88rem;
  padding: 9px 10px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}
.navbar-custom .dropdown-item i {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 8px;
  background: var(--accent-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  margin-right: 10px !important;
  transition: var(--transition-smooth);
}
.navbar-custom .dropdown-item:hover {
  background-color: var(--accent-subtle);
  color: var(--accent-color);
  transform: translateX(4px);
}
.navbar-custom .dropdown-item:hover i {
  background: var(--accent-color);
  color: #ffffff !important;
}

@media (min-width: 1200px) {
  .navbar-custom .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .navbar-custom .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.22s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
}

/* Mobile / Collapsed Navigation Polish */
@media (max-width: 1199px) {
  .navbar-custom .navbar-collapse {
    margin-top: 14px;
    padding: 14px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
  }
  .navbar-custom .navbar-nav {
    gap: 4px;
  }
  .navbar-custom .nav-link {
    padding: 12px 16px !important;
    border-radius: 10px;
    border-left: 3px solid transparent;
  }
  .navbar-custom .nav-link.active,
  .navbar-custom .nav-link:hover {
    border-left-color: var(--accent-color);
    background-color: #ffffff;
  }
  .navbar-custom .dropdown-menu {
    box-shadow: none;
    border: 1px solid var(--border-color);
    background: #ffffff;
    margin: 4px 0 8px;
    width: 100%;
  }
  .navbar-custom .dropdown-item {
    padding: 11px 14px;
  }
  .navbar-custom .btn-membership {
    width: 100%;
    justify-content: center;
    padding: 13px 22px;
  }
}

/* Header Membership CTA Button */
.btn-membership {
  background: var(--gold-gradient);
  color: #1a1205 !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 24px;
  border-radius: 30px;
  border: none;
  box-shadow: var(--glow-gold);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.2px;
}
.btn-membership:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.45);
  color: #1a1205 !important;
}

/* ==========================================================================
   HERO BANNER & SLIDER
   ========================================================================== */
.hero-slider-section {
  position: relative;
  background-color: transparent;
  width: 100%;
}

.hero-slider-card {
  position: relative;
  background-color: #061727;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .hero-slider-card {
    border-radius: 16px;
  }
}

@media (max-width: 576px) {
  .hero-slider-card {
    border-radius: 12px;
  }
}

.carousel-item-hero {
  position: relative;
  background-color: #061727;
  width: 100%;
  aspect-ratio: 16 / 7.2;
  min-height: 220px;
  max-height: 520px;
  overflow: hidden;
}

@media (min-width: 1400px) {
  .carousel-item-hero {
    aspect-ratio: 16 / 7;
    max-height: 540px;
  }
}

@media (max-width: 1199px) {
  .carousel-item-hero {
    aspect-ratio: 16 / 7.6;
    max-height: 440px;
  }
}

@media (max-width: 991px) {
  .carousel-item-hero {
    aspect-ratio: 16 / 8.2;
    max-height: 360px;
  }
}

@media (max-width: 767px) {
  .carousel-item-hero {
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }
}

@media (max-width: 575px) {
  .carousel-item-hero {
    aspect-ratio: 16 / 9.8;
    max-height: 230px;
  }
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 26%;
  transform: none !important;
  transition: transform 6s ease-out;
}

/* Subtle cinematic zoom on active slide */
.carousel-item.active .hero-bg-img {
  transform: scale(1.02) !important;
}

/* Soft gradient overlay & vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 23, 39, 0.12) 0%, rgba(6, 23, 39, 0.04) 50%, rgba(6, 23, 39, 0.45) 100%);
  pointer-events: none;
}

/* Glassmorphism Prev / Next Navigation Arrows */
.custom-slider-control {
  width: 70px;
  opacity: 0.85;
  transition: all 0.3s ease;
  z-index: 10;
}

.custom-slider-control:hover {
  opacity: 1;
}

.slider-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(11, 30, 54, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-slider-control:hover .slider-arrow-btn {
  background: #005eb8;
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 94, 184, 0.45);
}

@media (max-width: 768px) {
  .custom-slider-control {
    width: 46px;
  }
  .slider-arrow-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

/* Indicators Capsule Styling */
.carousel-indicators-wrapper {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
}

.hero-slider-section .carousel-indicators {
  position: static;
  margin: 0;
  padding: 6px 14px;
  background: rgba(6, 23, 39, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.hero-slider-section .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 8px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  opacity: 1;
  transition: all 0.35s ease;
  margin: 0;
}

.hero-slider-section .carousel-indicators .active {
  width: 28px;
  background-color: #005eb8;
  box-shadow: 0 0 10px rgba(0, 94, 184, 0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 23, 39, 0.4) 0%, rgba(6, 23, 39, 0.82) 80%, rgba(6, 23, 39, 0.95) 100%);
  display: flex;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(217, 119, 6, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fbbf24;
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-title {
  color: #ffffff;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}

/* Inner Page Banners */
.inner-page-banner {
  background: var(--hero-gradient);
  color: #ffffff;
  padding: 65px 0 55px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-color);
}
.inner-page-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   CARDS & SECTIONS
   ========================================================================== */
.section-tag {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  background: var(--accent-subtle);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.25;
  letter-spacing: -0.015em;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--gold-gradient);
  margin-top: 14px;
}
.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* Feature & Objective Cards */
.feature-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid var(--border-color);
  padding: 38px 30px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-light);
}
.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--accent-subtle);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 22px;
  transition: var(--transition-smooth);
}
.feature-card:hover .feature-icon-box {
  background: var(--accent-gradient);
  color: #ffffff;
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   STATISTICS & METRIC TILES
   ========================================================================== */
.stat-card-modern {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition-smooth);
}
.stat-card-modern:hover {
  transform: translateY(-6px);
  border-color: var(--accent-color);
  box-shadow: var(--card-shadow-hover);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-weight: 600;
  color: var(--muted-text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   MEMBERS & COMMITTEE CARDS (AUTOMATIC PHOTO FITTING)
   ========================================================================== */
.committee-member-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent-color);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 4px;
}
.committee-member-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-color);
}

/* Auto-fitting Member Photo Frame */
.committee-img-container {
  position: relative;
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--accent-color);
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.15);
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.committee-img-container.top-leader-img {
  width: 160px;
  height: 160px;
  border-width: 4px;
}
.committee-img-container.compact-img {
  width: 120px;
  height: 120px;
}
.committee-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
.committee-member-card:hover .committee-img-container img {
  transform: scale(1.08);
}

/* Auto-fitting Chairman Photo Box & Executive Letter Layout */
.chairman-photo-box {
  width: 220px;
  height: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent-color);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.2);
  margin: 0 auto;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chairman-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* Formal President Message Executive Presentation */
.president-portrait-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 100px;
}
.president-portrait-frame {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.12);
  margin: 0 auto 20px;
  background-color: #f1f5f9;
}
.president-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.4s ease;
}
.president-portrait-card:hover .president-portrait-frame img {
  transform: scale(1.05);
}

.president-letter-box {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  padding: 45px;
  line-height: 1.85;
  color: #334155;
  font-size: 1.02rem;
}
@media (max-width: 768px) {
  .president-letter-box {
    padding: 24px 20px;
  }
}
.president-letter-box p {
  margin-bottom: 1.25rem;
  text-align: justify;
}
.president-salutation {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}
.president-signature-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px dashed #e2e8f0;
}

/* Premium Agenda List (President's Message) */
.agenda-box {
  background: var(--light-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 8px 22px;
}
.agenda-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
.agenda-item-last {
  border-bottom: none;
}
.agenda-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--gold-gradient);
  color: #1a1205;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}
.agenda-title {
  display: block;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}
.agenda-text {
  color: var(--body-text);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: left;
}

.top-leader-card {
  border: 2px solid var(--accent-color);
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.15);
}

/* ==========================================================================
   RESOURCES & PDF DOWNLOAD HOVER CARDS
   ========================================================================== */
.resource-card-section {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.resource-card-section:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-color);
}
.resource-top-bar {
  height: 5px;
  background: var(--accent-gradient);
  width: 100%;
  transition: height 0.3s ease;
}
.resource-card-section:hover .resource-top-bar {
  height: 7px;
}
.resource-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-size: 1.6rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.1);
}
.resource-card-section:hover .resource-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
  background: #fee2e2;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.2);
}
.resource-title {
  color: var(--dark-text);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.45;
  transition: color 0.25s ease;
}
.resource-card-section:hover .resource-title {
  color: var(--accent-color);
}
.resource-desc {
  color: var(--muted-text);
  font-size: 0.88rem;
  line-height: 1.6;
}
.resource-download-section {
  padding: 16px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
.resource-card-section:hover .resource-download-section {
  background: #eff6ff;
  border-top-color: #dbeafe;
}
.resource-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background-color: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}
.resource-card-section:hover .resource-download-btn,
.resource-download-btn:hover {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(10, 37, 64, 0.25);
}
.resource-download-btn i {
  transition: transform 0.3s ease;
}
.resource-card-section:hover .resource-download-btn i,
.resource-download-btn:hover i {
  transform: translateY(2px);
}

/* ==========================================================================
   GALLERY FOLDER TILES & OVERLAY
   ========================================================================== */
.folder-card {
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #ffffff;
}
.folder-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover) !important;
  border-color: var(--accent-color) !important;
}
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  color: #ffffff;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ==========================================================================
   FLOATING BACK-TO-TOP BUTTON
   ========================================================================== */
#backToTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1040;
  cursor: pointer;
}
#backToTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTopBtn:hover {
  background: var(--gold-accent);
  transform: translateY(-4px);
  box-shadow: var(--glow-gold);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-main {
  background: var(--hero-gradient);
  color: #ffffff;
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}
.footer-main::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.footer-main h5 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}
.footer-main h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
}
.footer-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-main ul li {
  margin-bottom: 12px;
}
.footer-main ul li a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}
.footer-main ul li a:hover {
  color: #fbbf24;
  transform: translateX(5px);
}
.footer-bottom {
  background: rgba(6, 23, 39, 0.9);
  padding: 20px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Admin Dashboard Styling */
.admin-header {
  background: var(--primary-color);
}
.admin-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  min-height: calc(100vh - 56px);
}
.admin-sidebar .nav-link {
  color: var(--dark-text);
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 4px;
}
.admin-sidebar .nav-link.active {
  background: var(--primary-color);
  color: #ffffff;
}

/* Admin Auto-Fitting Photo Previews */
.admin-avatar-preview {
  width: 55px;
  height: 55px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 15%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  flex-shrink: 0;
  display: inline-block;
}
.admin-img-preview {
  max-height: 65px;
  max-width: 150px;
  object-fit: contain;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 4px;
}

/* ==========================================================================
   COMMITTEE SUB-NAVIGATION TABS BAR
   ========================================================================== */
.committee-subnav-bar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 6px;
  box-shadow: var(--card-shadow);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
@media (max-width: 768px) {
  .committee-subnav-bar {
    border-radius: 20px;
    width: 100%;
    justify-content: flex-start;
  }
}
.committee-subnav-btn {
  color: var(--dark-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 40px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.committee-subnav-btn:hover {
  background: var(--accent-subtle);
  color: var(--accent-color);
}
.committee-subnav-btn.active {
  background: var(--primary-color);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2);
}

/* ==========================================================================
   EXECUTIVE COMMITTEE PYRAMID LAYOUT (1 -> 2 -> 3 -> 4+)
   ========================================================================== */
.pyramid-tier-section {
  margin-bottom: 2.5rem;
}
.pyramid-tier-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.pyramid-tier-badge.tier-1 {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.pyramid-tier-badge.tier-2 {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.pyramid-tier-badge.tier-3 {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.pyramid-tier-badge.tier-4 {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Featured Card for President (Row 1) */
.featured-president-card {
  border: 2px solid var(--accent-color) !important;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.18) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%) !important;
}

/* ==========================================================================
   STRUCTURED MISSION & ABOUT BULLET POINTS
   ========================================================================== */
.mission-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 24px 28px;
  box-shadow: var(--card-shadow);
}
.mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mission-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #334155;
}
.mission-item:last-child {
  margin-bottom: 0;
}
.mission-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-right: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

/* ==========================================================================
   FLOATING WHATSAPP & QUICK-ACTION WIDGET
   ========================================================================== */
.floating-contact-widget {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-btn.whatsapp-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.floating-btn.whatsapp-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.65);
  color: #ffffff;
}

/* ==========================================================================
   PRINT STYLESHEET OPTIMIZATION
   ========================================================================== */
@media print {
  .top-header-strip,
  .navbar-custom,
  .floating-contact-widget,
  #backToTopBtn,
  .footer-main,
  .footer-bottom,
  .btn-membership,
  .modal,
  .committee-subnav-bar,
  input, select, button {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  .committee-member-card,
  .feature-card,
  .mission-box {
    box-shadow: none !important;
    border: 1px solid #cccccc !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

