/* ========== RESPONSIVE FILTERS VISIBILITY ========== */
.filters-dropdown-wrapper { display: none; }
.filters-inline-wrapper { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }

@media (max-width: 767px) {
  .filters-dropdown-wrapper { display: block; }
  .filters-inline-wrapper { display: none !important; }
}
/* ========== FILTERS DROPDOWN (Menu déroulant filtres) ========== */
.filters-dropdown-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1rem;
}


.filters-dropdown-btn {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background var(--transition-normal), color var(--transition-normal);
  outline: none;
  display: none;
}
.filters-dropdown-btn:focus, .filters-dropdown-btn[aria-expanded="true"] {
  background: var(--gold);
  color: white;
}
@media (max-width: 767px) {
  .filters-dropdown-btn {
    display: block;
    width: 100%;
  }
}

.filters-dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 250px;
  background: white;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeIn 0.2s;
}

@media (max-width: 767px) {
  .filters-dropdown-menu {
    min-width: 90vw;
    left: 50%;
    transform: translateX(-50%);
  }
}
/* ========== COLLAPSIBLE FILTERS (Mobile) ========== */
@media (max-width: 767px) {
  .collapsible-filters-hidden {
    display: none !important;
  }
  .show-filters-btn {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1rem;
    border: 1px solid var(--gold);
    background: white;
    color: var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 1rem;
    text-align: center;
    transition: background var(--transition-normal), color var(--transition-normal);
  }
  .show-filters-btn[aria-expanded="true"] {
    background: var(--gold);
    color: white;
  }
}
/* ========================================
   LUCHNOS - Main Stylesheet
   Converted from Tailwind CSS
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
  /* Primary Colors */
  --primary: #191F34;
  --primary-light: #1C2235;
  --primary-dark: #1A2034;
  --primary-hero: #1D2739;

  /* Gold Colors */
  --gold: #FFC100;
  --gold-light: #FFD700;
  --gold-dark: #E5AC00;

  /* Copper Colors */
  --copper: #CC7447;
  --copper-light: #DC9664;
  --copper-dark: #9F4A15;

  /* Accent Colors */
  --accent-green: #2D7A3E;
  --accent-green-light: #3A9B51;
  --accent-orange: #E67E22;
  --accent-orange-light: #F39C12;
  --accent-blue: #3498DB;

  /* Flame Colors */
  --flame-yellow: #FFC100;
  --flame-orange: #FF8C00;
  --flame-glow: #FFD700;

  /* Neutral Colors */
  --slate: #64748b;
  --slate-light: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Status Colors */
  --red-500: #ef4444;
  --red-600: #dc2626;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --blue-500: #3b82f6;
  --yellow-500: #eab308;
  --purple-500: #a855f7;
  --pink-500: #ec4899;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(244, 196, 48, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(244, 196, 48, 0.4);
  --shadow-flame: 0 0 30px rgba(255, 244, 79, 0.5);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1D2739 0%, #1D2739 100%);
  --gradient-gold: linear-gradient(135deg, #FFC100 0%, #FFD700 100%);
  --gradient-flame: radial-gradient(circle, #FFC100 0%, #FF8C00 60%, #FFD700 100%);
  --gradient-copper: linear-gradient(135deg, #CC7447 0%, #9F4A15 100%);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Container */
  --container-max: 80rem;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: white;
  color: var(--primary);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-normal);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ========== UTILITY CLASSES ========== */
.container-custom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding: 0 2rem;
  }
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-content {
  text-align: justify;
  line-height: 1.75;
}

/* Max width utilities to match Tailwind */
.max-w-4xl {
  max-width: 56rem; /* 896px */
}

.max-w-5xl {
  max-width: 64rem; /* 1024px */
}

.max-w-6xl {
  max-width: 72rem; /* 1152px */
}

.max-w-7xl {
  max-width: 80rem; /* 1280px */
}

.max-w-3xl {
  max-width: 48rem; /* 768px */
}

.max-w-2xl {
  max-width: 42rem; /* 672px */
}

/* Margin auto for centering */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Margin bottom variants */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* ========== TYPOGRAPHY ========== */
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--slate);
  margin-bottom: 2rem;
}

.text-gold { color: var(--gold); }
.text-copper { color: var(--copper); }
.text-primary { color: var(--primary); }
.text-white { color: white; }
.text-slate { color: var(--slate); }
.text-slate-200 { color: var(--slate-200); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-700 { color: var(--slate-700); }

.italic { font-style: italic; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-gold);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.btn-secondary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background-color: var(--gold);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-round {
  border-radius: var(--radius-full);
}

/* ========== CARDS ========== */
.card {
  background-color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.card-body {
  padding: 1.5rem;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--primary);
  padding: 0.75rem 0;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background-color: var(--primary);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo:hover img {
  transform: scale(1.1);
}

.header-logo img {
  height: 4rem;
  width: 4rem;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.header-logo-text {
  display: flex;
  flex-direction: column;
}

.header-logo-title {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.header-logo-subtitle {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  color: white;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  white-space: nowrap;
  transition: all var(--transition-normal);
}

.nav-link:hover {
  color: var(--gold);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--gold);
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: flex;
  color: white;
  font-size: 1.5rem;
  padding: 0.5rem;
  margin-left: auto;
  cursor: pointer;
  transition: color var(--transition-normal);
}

.menu-toggle:hover {
  color: var(--gold);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  overflow: hidden;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--primary);
  color: white;
}

.footer-main {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-section h4 {
  color: var(--gold);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0;
}

.footer-description {
  color: #cbd5e1; /* slate-300 */
  font-size: 0.875rem;
  line-height: 1.625;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #cbd5e1; /* slate-300 */
  font-size: 0.875rem;
  transition: color var(--transition-normal);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1; /* slate-300 */
  font-size: 0.875rem;
  transition: color var(--transition-normal);
}

.footer-contact-item:hover {
  color: var(--gold);
}

.footer-contact-item svg {
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-link {
  color: #cbd5e1; /* slate-300 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.footer-bottom p {
  color: #94a3b8; /* slate-400 */
  font-size: 0.875rem;
  text-align: center;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  height: 450px;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  overflow: hidden;
  padding-top: 5rem; /* Espace pour le header fixe - pages normales */
}

/* Hero carousel sur la page d'accueil uniquement */
#hero-section {
  margin-top: 8rem; /* Espace blanc entre header et carousel */
  margin-bottom: 3rem; /* Espace en dessous du carousel */
  margin-left: auto;
  margin-right: auto;
  max-width: calc(100% - 4rem); /* Largeur maximale avec marges */
  border-radius: 1.5rem; /* Coins arrondis */
  padding-top: 0; /* Pas de padding-top pour le carousel */
}

/* Taller hero variant for presentation page */
.hero.hero-tall {
  height: 500px;
  min-height: 450px;
}

/* Responsive margins for carousel uniquement */
@media (max-width: 1200px) {
  #hero-section {
    max-width: calc(100% - 3rem);
    height: 400px;
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  #hero-section {
    max-width: calc(100% - 2rem);
    height: 380px;
    min-height: 380px;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  #hero-section {
    max-width: calc(100% - 1rem);
    height: 350px;
    min-height: 350px;
    border-radius: 1rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
  
  .hero h2 {
    font-size: 2.75rem;
  }
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: 2rem;
  }
}

/* ========== SECTIONS ========== */
.section {
  padding: 5rem 0; /* py-20 */
}

/* Section padding variants to match Tailwind */
.section.py-20 {
  padding: 5rem 0; /* 80px */
}

.section.py-16 {
  padding: 4rem 0; /* 64px */
}

.section.py-12 {
  padding: 3rem 0; /* 48px */
}

.section.py-8 {
  padding: 2rem 0; /* 32px */
}

.section-white {
  background-color: white;
}

.section-light {
  background-color: white;
}

.section-dark {
  background: var(--gradient-primary);
  color: white;
}

.section-slate {
  background-color: var(--slate-900);
  color: white;
}

/* Sticky filter section for multimedia/edition */
.section-filters {
  padding: 2rem 0;
  background-color: white;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 5rem; /* top-20 = 80px */
  z-index: 40;
}

/* ========== GRIDS ========== */
.grid {
  display: grid;
  gap: 2rem;
}

/* gap-6 (1.5rem) variant */
.grid.gap-6 {
  gap: 1.5rem;
}

/* gap-8 (2rem) - default */
.grid.gap-8 {
  gap: 2rem;
}

/* gap-12 (3rem) variant */
.grid.gap-12 {
  gap: 3rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* lg:grid-cols-2 variant */
.grid-2-lg {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .grid-2-lg {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* grid-cols-1 md:grid-cols-2 lg:grid-cols-4 (for home ministry cards) */
.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 (for books) */
.grid-books {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-books {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-books {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .grid-books {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-normal);
  background-color: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 193, 0, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ========== BADGES ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-gold {
  background-color: var(--gold);
  color: var(--primary);
}

.badge-green {
  background-color: var(--green-500);
  color: white;
}

.badge-red {
  background-color: var(--red-500);
  color: white;
}

.badge-blue {
  background-color: var(--blue-500);
  color: white;
}

.badge-primary {
  background-color: var(--primary);
  color: white;
}

/* ========== ICONS ========== */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  background-color: var(--gold);
}

.icon-circle-lg {
  width: 6rem;
  height: 6rem;
}

.icon-circle-sm {
  width: 3rem;
  height: 3rem;
}

/* ========== MINISTRY CARDS (Home) ========== */
.ministry-card {
  background-color: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  border-left: 4px solid transparent;
}

.ministry-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.ministry-card.border-gold { border-left-color: var(--gold); }
.ministry-card.border-blue { border-left-color: var(--accent-blue); }
.ministry-card.border-green { border-left-color: var(--accent-green); }
.ministry-card.border-orange { border-left-color: var(--accent-orange); }

/* ========== FILTERS ========== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E") 0.75rem center / 1rem no-repeat;
}

/* ========== TABS ========== */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--slate-200);
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.tab {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--slate);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-normal);
  border-radius: var(--radius) var(--radius) 0 0;
}

.tab:hover {
  color: var(--gold);
  background-color: rgba(255, 193, 0, 0.1);
}

.tab.active {
  color: var(--gold);
  background-color: rgba(255, 193, 0, 0.1);
  border-bottom: 2px solid var(--gold);
  margin-bottom: -2px;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: white;
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.modal-close {
  font-size: 1.5rem;
  color: var(--slate);
  cursor: pointer;
  transition: color var(--transition-normal);
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  padding: 1.5rem;
}

/* ========== VIDEO MODAL ========== */
.video-modal .modal {
  max-width: 900px;
  background-color: black;
}

.video-modal .modal-body {
  padding: 0;
  aspect-ratio: 16 / 9;
}

.video-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-in;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--slate-light);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* ========== SWIPER CUSTOMIZATION ========== */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-pagination-bullet {
  background-color: white;
  opacity: 0.6;
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: var(--gold);
  opacity: 1;
  transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 24px;
  font-weight: bold;
}

/* Responsive styles for carousel navigation */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 45px;
    height: 45px;
  }
  
  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 18px;
  }
}

/* ========== LOADING STATE ========== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--slate-200);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== CONTACT INFO ========== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gold);
  border-radius: var(--radius-full);
  color: var(--primary);
  flex-shrink: 0;
}

/* ========== DONATION CARDS ========== */
.donation-card {
  background-color: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.donation-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
}

.donation-card img {
  max-height: 60px;
  margin: 0 auto 1rem;
}

/* ========== EVENT CARDS ========== */
.event-card {
  background-color: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.event-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.event-card:hover .event-image img {
  transform: scale(1.1);
}

.event-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
}

.event-content {
  padding: 1.5rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--slate);
  font-size: 0.875rem;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ========== BOOK CARDS ========== */
.book-card {
  background-color: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.book-image {
  position: relative;
  height: 280px;
  background-color: var(--slate-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: visible;
}

.book-image img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}

/* Mobile book card adjustments */
@media (max-width: 767px) {
  .book-image {
    height: 220px;
    padding: 1rem;
  }

  .book-content {
    padding: 1rem;
  }

  .book-title {
    font-size: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .book-description {
    -webkit-line-clamp: 2;
  }
}

.book-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.book-content {
  padding: 1.5rem;
}

.book-author {
  color: var(--copper);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.book-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.book-description {
  color: var(--slate-600);
  font-size: 0.875rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== VIDEO CARDS ========== */
.video-card {
  background-color: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.video-card:hover .video-thumbnail img {
  transform: scale(1.1);
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.video-card:hover .video-play-btn {
  opacity: 1;
}

.video-play-btn svg {
  width: 4rem;
  height: 4rem;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.video-content {
  padding: 1.5rem;
}

.video-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--gold);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  background-color: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  font-family: 'Georgia', serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  color: var(--slate-700);
  margin-bottom: 1.5rem;
  padding-top: 1rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
}

/* ========== PLACEHOLDER IMAGES ========== */
.placeholder-book,
.placeholder-video,
.placeholder-event {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.placeholder-book::after {
  content: '';
  width: 60px;
  height: 80px;
  background: var(--gold);
  border-radius: 4px;
  box-shadow: -4px 4px 0 var(--copper);
}

.placeholder-video::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 40px solid var(--gold);
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
}

.placeholder-event::after {
  content: '';
  width: 60px;
  height: 60px;
  border: 4px solid var(--gold);
  border-radius: 8px;
  position: relative;
}

/* ========== HIDDEN UTILITY ========== */
.hidden {
  display: none !important;
}

/* ========== RESPONSIVE UTILITIES ========== */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ========== BACKDROP ========== */
.backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.backdrop.open {
  opacity: 1;
  visibility: visible;
}
