/* 
 * Custom CSS for Muhammadiyah Charitable Trust Website 
 * Multi-color professional NGO design | Green brand identity
 * Version 2.0
 */

/* ==========================================================================
   1. Base & Custom Properties (Color Palette)
   ========================================================================== */

:root {
  /* Primary Green Brand */
  --color-deep-green: #126B45;
  --color-forest-green: #0B4F36;
  --color-soft-green: #E8F5EC;

  /* Complementary Section Colors */
  --color-cream: #FFF8E8;
  --color-gold: #D9A928;
  --color-sand: #F4EBDD;
  --color-peach: #FCE8DF;
  --color-light-blue: #EAF4F7;
  --color-white: #FFFFFF;
  --color-dark: #17231D;

  /* Legacy aliases (keep for JS compatibility) */
  --color-primary: #126B45;
  --color-primary-dark: #0B4F36;
  --color-light: #E8F5EC;
  --color-accent: #D9A928;
  --color-bg-light: #E8F5EC;
  --color-bg: #E8F5EC;
  --color-rose: #126B45;
  --color-rose-hover: #0B4F36;
  --color-coral: #126B45;

  --nav-height: 80px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  background-color: var(--color-white);
  color: var(--color-dark);
}

/* Scroll Margin for Fixed Nav */
section[id] {
  scroll-margin-top: var(--nav-height);
}

/* ==========================================================================
   1b. Mobile Container Gutter System
   Increases horizontal breathing room on mobile (< 640px) from the default
   Tailwind px-4 (16px) to a responsive clamp(20px, 6vw, 32px).
   At 320px → 20px, 375px → 22.5px, 412px → 24.7px, 430px → 25.8px.
   Above 640px Tailwind's sm:px-6 (24px) takes over naturally.
   ========================================================================== */

@media (max-width: 639px) {
  /* All section content containers */
  .max-w-7xl,
  .max-w-4xl,
  .max-w-3xl {
    padding-left: clamp(20px, 6vw, 32px) !important;
    padding-right: clamp(20px, 6vw, 32px) !important;
  }

  /* Navbar containers should keep default tighter padding */
  #navbar .max-w-7xl,
  #mobile-menu .max-w-7xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Stat cards: slightly reduce inner padding so they don't overflow */
  #stats .grid > div {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }
}

/* ==========================================================================
   2. Scrollbar & Focus Styles
   ========================================================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #126B45;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0B4F36;
}

:focus-visible {
  outline: 2px solid var(--color-deep-green);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-deep-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   3. Typography & Eyebrow Labels
   ========================================================================== */

.eyebrow-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-deep-green);
  margin-bottom: 0.75rem;
}

.eyebrow-label.on-dark {
  color: var(--color-gold);
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-dark);
}

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

.section-heading.on-dark {
  color: white;
}

.section-heading-underline {
  position: relative;
  display: inline-block;
}

.section-heading-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-deep-green), var(--color-gold));
  border-radius: 2px;
}

.section-heading-underline.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Section underline accents from Tailwind classes */
h2 > span.absolute {
  background: linear-gradient(90deg, var(--color-deep-green), var(--color-accent)) !important;
}

/* ==========================================================================
   4. Navigation Styling
   ========================================================================== */

#navbar {
  background-color: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(232, 245, 236, 0.8);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(11, 79, 54, 0.12);
}

#navbar a {
  color: var(--color-dark);
  transition: color 0.2s ease;
  position: relative;
}

#navbar a:hover {
  color: var(--color-deep-green) !important;
}

/* Active nav link indicator */
#navbar a.nav-active,
#navbar a.active {
  color: var(--color-deep-green) !important;
  font-weight: 600;
}

#navbar a.nav-active::after,
#navbar a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-deep-green);
  border-radius: 1px;
}

/* Donate Now button in nav - special style */
#navbar a.nav-donate-btn {
  background-color: var(--color-deep-green) !important;
  color: white !important;
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#navbar a.nav-donate-btn:hover {
  background-color: var(--color-forest-green) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(18, 107, 69, 0.35);
}

#navbar a.nav-donate-btn::after {
  display: none !important;
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(11, 79, 54, 0.93) 0%,
    rgba(11, 79, 54, 0.80) 45%,
    rgba(11, 79, 54, 0.45) 70%,
    rgba(11, 79, 54, 0.15) 100%
  );
  z-index: 1;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(217, 169, 40, 0.2);
  border: 1px solid rgba(217, 169, 40, 0.4);
  color: var(--color-gold);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Page Banner (About page) */
.page-banner {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 79, 54, 0.85);
  z-index: 1;
}

.page-banner > * {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   6. Stats Section
   ========================================================================== */

.stats-section {
  background: linear-gradient(135deg, var(--color-forest-green) 0%, var(--color-deep-green) 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: white;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 4rem;
  }
}

/* ==========================================================================
   7. Program / Cause Cards
   ========================================================================== */

.program-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(23, 35, 29, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(18, 107, 69, 0.15);
}

.program-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-card-image {
  transform: scale(1.05);
}

.program-card-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Alternating image+text layout */
.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr 1fr;
  }

  .feature-block.reversed .feature-image {
    order: 2;
  }

  .feature-block.reversed .feature-text {
    order: 1;
  }
}

.feature-image img {
  border-radius: 1.5rem;
  box-shadow: 0 8px 40px rgba(23, 35, 29, 0.12);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.feature-stat-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-soft-green);
  border-left: 4px solid var(--color-deep-green);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 700;
  color: var(--color-dark);
  font-size: 1.1rem;
  margin: 1.25rem 0;
}

/* ==========================================================================
   8. Principle Cards
   ========================================================================== */

.principle-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid rgba(232, 245, 236, 0.8);
  box-shadow: 0 2px 12px rgba(23, 35, 29, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(18, 107, 69, 0.12);
}

.principle-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-soft-green);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-deep-green);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   9. Board Cards
   ========================================================================== */

.board-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(232, 245, 236, 0.8);
  box-shadow: 0 4px 16px rgba(23, 35, 29, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.board-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(18, 107, 69, 0.12);
}

.board-avatar {
  width: 5rem;
  height: 5rem;
  background: var(--color-soft-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-deep-green);
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  font-weight: 800;
}

/* ==========================================================================
   10. Research / Document Cards
   ========================================================================== */

.research-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid rgba(234, 244, 247, 0.8);
  box-shadow: 0 4px 20px rgba(23, 35, 29, 0.06);
}


/* ==========================================================================
   11. Donation Form
   ========================================================================== */

.donation-amount-btn {
  transition: all 0.2s ease;
  border: 2px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  color: var(--color-dark);
}

.donation-amount-btn:hover {
  border-color: var(--color-deep-green);
  background: var(--color-soft-green);
  color: var(--color-deep-green);
}

.donation-amount-btn.active {
  background: var(--color-deep-green) !important;
  color: white !important;
  border-color: var(--color-deep-green) !important;
  box-shadow: 0 2px 12px rgba(18, 107, 69, 0.35);
}

.donation-type-label {
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

.donation-type-label:hover {
  border-color: var(--color-deep-green);
}

.donation-type-label.active {
  border-color: var(--color-deep-green);
  background: var(--color-soft-green);
  color: var(--color-deep-green);
}

.donation-type-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  width: 100%;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--color-deep-green);
  box-shadow: 0 0 0 3px rgba(18, 107, 69, 0.12);
  outline: none;
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   12. CTA / Donate Banner
   ========================================================================== */

.donate-cta-section {
  background: linear-gradient(135deg, var(--color-forest-green) 0%, #0a3d28 100%);
  position: relative;
  overflow: hidden;
}

.donate-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Bank details display */
.bank-details-card {
  background: rgba(255, 248, 232, 0.12);
  border: 1px solid rgba(217, 169, 40, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
}

.bank-details-card dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.2rem;
}

.bank-details-card dd {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  font-family: 'Inter', monospace;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   13. Premium Animations & Transitions
   ========================================================================== */

/* ==========================================================================
   13. Mobile-First Animations & Transitions
   ========================================================================== */

/* Hero Entrance Animations - subtle, fast, and jitter-free on mobile */
@keyframes heroBgSettle {
  from { transform: scale(1.02); opacity: 0.9; }
  to { transform: scale(1); opacity: 1; }
}

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

.hero-animate-bg {
  animation: heroBgSettle 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-fade-up {
  opacity: 0;
  animation: heroFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Fast, non-blocking stagger delays for mobile */
.hero-delay-1 { animation-delay: 0.05s; }
.hero-delay-2 { animation-delay: 0.10s; }
.hero-delay-3 { animation-delay: 0.15s; }
.hero-delay-4 { animation-delay: 0.20s; }
.hero-delay-5 { animation-delay: 0.25s; }

/* Text Shadows for Hero Contrast against translucent overlays */
.hero-text-shadow {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.45);
}

.hero-subtext-shadow {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

/* IntersectionObserver Scroll Reveal System - Mobile First */
.reveal-on-scroll,
.animate-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed,
.reveal-on-scroll.visible,
.animate-on-scroll.is-revealed,
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger utilities for cards in grid */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.10s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.20s; }

/* Desktop enhancement for animations */
@media (min-width: 768px) {
  @keyframes heroFadeUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .reveal-on-scroll,
  .animate-on-scroll {
    transform: translateY(18px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* Card Image Gentle Scale on Reveal */
.reveal-image {
  opacity: 0;
  transform: scale(0.98) translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-image.is-revealed,
.reveal-image.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Card Hover Lift & Soft Shadow Elevation */
.card-hover-lift {
  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.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -6px rgba(11, 79, 54, 0.12), 0 6px 12px -4px rgba(0, 0, 0, 0.04);
  }
}

/* Button Refined Hover */
.btn-hover-lift {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-hover-lift:hover {
    transform: translateY(-2px);
  }
}

.btn-hover-lift:active {
  transform: translateY(0);
}

/* Loading Spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--color-deep-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Mobile Menu */
#mobile-menu {
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
}

#mobile-menu:not(.hidden) {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   14. Gallery & PDF Modal
   ========================================================================== */

.gallery-item {
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(23, 35, 29, 0.15);
}

.gallery-item img {
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

#gallery-lightbox {
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   15. Back to Top
   ========================================================================== */

#back-to-top {
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

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

#back-to-top:hover {
  transform: translateY(-3px);
  background-color: var(--color-forest-green) !important;
}

/* ==========================================================================
   16. Utility Classes
   ========================================================================== */

.btn-primary {
  background-color: var(--color-deep-green);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: var(--color-forest-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18, 107, 69, 0.35);
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-dark);
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-gold:hover {
  background-color: #c49220;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 169, 40, 0.35);
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: white;
  transform: translateY(-2px);
}

.gold-text {
  color: var(--color-gold);
}

.green-text {
  color: var(--color-deep-green);
}

.text-dark {
  color: var(--color-dark);
}

/* Timeline (Research) */
.timeline-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.timeline-connector-line {
  width: 2px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--color-deep-green), var(--color-gold));
  border-radius: 1px;
}

/* ==========================================================================
   17. Accessibility / Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .gallery-item:hover,
  .gallery-item:hover img {
    transform: none;
  }
}

/* ==========================================================================
   18. Print Styles
   ========================================================================== */

@media print {
  #navbar,
  #back-to-top,
  #mobile-menu,
  #gallery-lightbox {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }

  section {
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   19. Responsive Initiative & Project Images
   Preserves entire artwork composition without unwanted cropping
   on mobile and tablet devices.
   ========================================================================== */
@media (max-width: 1024px) {
  .initiative-image {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
  }

  .initiative-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
  }
}

