:root {
    --primary: #a52460;    /* Medium violet red / pinkish maroon */
    --primary-dark: #340619; /* Dark magenta */
    --secondary: #FF69B4;  /* Hot pink accent */
    --secondary-dark: #DB7093; /* Pale violet red */
    --accent: #9370DB;     /* Medium purple */
    --light: #9b103f;      /* Lavender blush */
    --dark: #4B0082;       /* Indigo dark */
    --white: #FFFFFF;
    --gray: #696969;
}

/* Base Styles that might be missing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html { overflow-y: scroll; }  

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Top Info Bar */
.top-bar {
    display: none; /* Hide the top bar completely */
}
.top-bar {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--secondary);
    position: fixed;
    z-index: 1001 !important;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.welcome-text {
    font-weight: 600;
}


.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
/* Social Media Icons */
.social-media {
    display: flex;
    gap: 1rem;
    align-items: center;
}


.social-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}
/* Mobile responsive for social media */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    .social-media {
        order: 2;
        gap: 0.8rem;
    }
    
    .welcome-text {
        order: 1;
    }
    
    .contact-info {
        order: 3;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .social-link {
        width: 28px;
        height: 28px;
    }
    
    .social-link svg {
        width: 14px;
        height: 14px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* Navigation */
/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MOBILE NAVIGATION FIX ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        overflow-y: auto;
        z-index: 999;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        opacity: 1;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    .nav-menu a:hover {
        background: var(--primary);
        color: white;
    }
    
    /* Dropdown menu for mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        width: 100%;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    /* Donate button in mobile menu */
    .nav-menu .donate-btn {
        margin: 1rem auto;
        width: 200px;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
.navbar {
   display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 2rem;
            background-color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: fixed;
            top: 0; /* Position it below the top bar */
            left: 0;
            right: 0;
            z-index: 1000;
            height: 80px;
            width: 100%;
            transition: transform 0.4s ease, opacity 0.4s ease;
    transform: translateY(0);
}
.logo {
    display: flex;
    align-items: center;      /* ← CHANGE to center */
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
    
}

.logo-text h2 {
    color: var(--primary);
    font-size: 2rem; /* Increase font size */
    font-weight: 900; /* Make it bolder */
    margin-bottom: 0;
    line-height: 1;
    letter-spacing: 2px; /* Add spacing between letters */
    text-transform: uppercase; /* Make it all caps */
    
}

.logo-subtitle {
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
    margin-right: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    opacity: 0.7;
}
.nav-menu a.active {
    opacity: 1; /* Full opacity for active page */
    color: var(--primary);
    font-weight: 600;
}
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.nav-menu a:hover {
    color: var(--primary);
    opacity: 1;
}

.donate-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}
.donate-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}
/* Flickering animation for donate buttons */
@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        box-shadow: 
            0 0 4px var(--secondary),
            0 0 11px var(--secondary),
            0 0 19px var(--secondary),
            0 0 40px var(--secondary),
            0 0 80px var(--secondary),
            0 0 90px var(--secondary),
            0 0 100px var(--secondary),
            0 0 150px var(--secondary);
    }
    20%, 24%, 55% {
        box-shadow: none;
    }
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(219, 112, 147, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(219, 112, 147, 0.8), 0 0 30px rgba(219, 112, 147, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(219, 112, 147, 0.5);
    }
}
/* Navigation donate button flicker */
.nav-menu .donate-btn {
    animation: flicker 2s infinite alternate, pulse-glow 2s ease-in-out infinite;
    position: relative;
}


/* Enhanced hover effects */
.nav-menu .donate-btn:hover {
    animation: none; /* Stop animation on hover */
    transform: translateY(-3px) scale(1.1);
    box-shadow: 
        0 0 20px var(--secondary),
        0 0 30px var(--secondary),
        0 0 40px var(--secondary),
        0 10px 25px rgba(0, 0, 0, 0.3);
    background: var(--primary);
}


@keyframes border-flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}     

/* Mobile optimization - reduce effects on small screens */
@media (max-width: 768px) {
    .nav-menu .donate-btn,
    .hero-buttons .btn-primary {
        animation: pulse-glow 2s ease-in-out infinite;
    }
    
    @keyframes flicker-mobile {
        0%, 100% {
            box-shadow: 0 0 10px var(--secondary), 0 0 20px var(--secondary);
        }
        50% {
            box-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary);
        }
    }
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7em;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.dropdown-menu a:hover {
    background: var(--primary);
    color: var(--white);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}
/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        display: none;
        padding: 1rem 0;
    }
    .logo-text h2 {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }

    

    .logo-img {
        height: 35px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-mission {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .logo-text h2 {
        font-size: 1.2rem;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
    }
  }
  
/* What We Do Page */
/* Enhanced Page Hero Styles */
.page-hero {
  background: linear-gradient(135deg, 
              rgba(165, 36, 96, 0.6) 10%, 
              rgba(219, 112, 147, 0.5) 50%,
              rgba(147, 112, 219, 0.6) 100%),
              url('Assets/projects.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 150px 0 100px;
  text-align: center;
  color: white;
  margin-top: 80px;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Enhanced Main Title Typing Animation */
.typing-main {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
  min-height: 120px;
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  
  white-space: nowrap;
  margin: 0 auto;
  animation: 
    typing 1.5s steps(8, end) forwards;
  width: 0;
  opacity: 0;
  animation-delay: 0.5s;
}

@keyframes typing {
  from { 
    width: 0; 
    opacity: 0;
  }
  to { 
    width: 100%; 
    opacity: 1;
  }
}

/* Enhanced Subtitle Typing Animation */
.typing-subtitle {
  font-size: 1.4rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
  min-height: 60px;
}

.subtitle-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  animation: 
    typing-subtitle 2.5s ease-in-out forwards,  /* Simplified */
    subtitleReveal 1s ease 4s forwards; 
  width: 0;
  opacity: 0;
  animation-delay: 2s;
}

@keyframes typing-subtitle {
  from { 
    width: 0; 
    opacity: 0;
  }
  to { 
    width: 100%; 
    opacity: 1;
  }
}


/* Enhanced Floating Background Elements */
.hero-background-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
}

.shape-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  background: radial-gradient(circle, rgba(255,105,180,0.3) 0%, rgba(255,105,180,0) 70%);
}

.shape-2 {
  width: 180px;
  height: 180px;
  top: 65%;
  right: 8%;
  animation-delay: 2s;
  background: radial-gradient(circle, rgba(147,112,219,0.3) 0%, rgba(147,112,219,0) 70%);
}

.shape-3 {
  width: 90px;
  height: 90px;
  bottom: 25%;
  left: 15%;
  animation-delay: 4s;
  background: radial-gradient(circle, rgba(219,112,147,0.3) 0%, rgba(219,112,147,0) 70%);
}

.shape-4 {
  width: 140px;
  height: 140px;
  top: 30%;
  right: 20%;
  animation-delay: 1s;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1); 
  }
  33% { 
    transform: translateY(-20px) rotate(120deg) scale(1.1); 
  }
  66% { 
    transform: translateY(10px) rotate(240deg) scale(0.9); 
  }
}

/* Enhanced Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 45%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  opacity: 0;
  animation: fadeInUp 1s ease 5s forwards;
  
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, white, transparent);
  margin: 10px auto 0;
  position: relative;
  animation: bounce 2s infinite 5s;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { 
    transform: translateY(0); 
    opacity: 1;
  }
  50% { 
    transform: translateY(-10px); 
    opacity: 0.7;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Add a subtle pulse effect to the main title after typing */

/* Add gradient text effect to subtitle after it appears */
.subtitle-text {
  animation: 
    typing-subtitle 3s steps(40, end) forwards,
    blink-caret-subtitle 1s step-end infinite,
    subtitle-glow 3s ease-in-out 5s forwards;
}

@keyframes subtitle-glow {
  to {
    background: linear-gradient(45deg, #fff, #d2f704, #fff, #ff69b4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-right: none;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .typing-main {
    font-size: 4rem;
    letter-spacing: 2px;
    margin-bottom: 0.7rem;
    
  }
  
  .typing-subtitle {
    font-size: 0.9rem;
    text-align: center;
  }
  
  
  
  .floating-shape {
    display: none;
  }
  
  .hero-scroll-indicator {
    bottom: 30px;
    left:40%;
    padding-top: 10px;
    
  }
}

@media (max-width: 480px) {
  .typing-main {
    font-size: 4rem;
    letter-spacing: 2px;
    margin-bottom: 0.7rem;
  }
  
  .typing-subtitle {
    font-size: 0.6rem;
    
  }
   
    .hero-scroll-indicator {
    bottom: 30px;
    left:30%;
    padding-top: 10px;
    
  }
  
  
}

/* What We Do Section */
.what-we-do {
  padding: 4rem 0;
  background: #f9f9f9;
}

.what-we-do h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 3rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.focus-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.focus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.focus-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.focus-card h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.focus-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}
/* ===== GET INVOLVED ===== */
.involved-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.option {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
    border-top: 4px solid var(--secondary);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.option:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.option p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.option .btn-primary,
.option .btn-secondary {
    margin-top: auto;
    align-self: center;
}
/* ===== SECTIONS ===== */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
}
/* Button Styles */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--secondary-dark);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 2.2rem;
  }

  .page-hero p {
    font-size: 1rem;
  }
  .abpage-hero h1 {
    font-size: 2.2rem;
  }
  .abpage-hero p {
    font-size: 1rem;
  }
}

/* ====== GALLERY STYLES (namespaced) ====== */
.gallery-section { padding: 4rem 0; background: var(--white); }
.gallery-header { text-align: center; margin-bottom: 1rem; }
.gallery-header h2 { color: var(--primary); font-size: 2rem; margin-bottom: .25rem; }
.gallery-header p { color: var(--gray); }

/* Filters */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1rem 0 1.2rem;
}
.filter-btn {
  border: 2px solid var(--primary); background: #fff; color: var(--primary);
  padding: .5rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 600;
  transition: all .2s ease; outline: none;
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; }

/* Grid */
.gallery-grid {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.gallery-item { position: relative; } /* JS controls visibility */
.gallery-item .thumb {
  display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in;
  border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.gallery-item img {
  width: 100%; height: 170px; object-fit: cover; display: block; transition: transform .25s ease;
}
.gallery-item .thumb:hover img { transform: scale(1.03); }

/* Load more */
.gallery-more { 
  display: flex; 
  justify-content: center; 
  margin-top: 1rem; 
  gap: 1rem;
}
#loadMore {
  border: 0; 
  background: var(--secondary); 
  color: #fff; 
  padding: 1rem 2rem;
  border-radius: 999px; 
  cursor: pointer; 
  font-weight: 700; 
  transition: transform .3s ease;
  font-size: 1rem;
}
#loadMore:hover {
  transform: translateY(-2px);
  background: var(--primary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
#showLess:hover {
  transform: translateY(-2px);
  background: var(--secondary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#showLess {
  border: 0; 
  background: var(--primary); 
  color: #fff; 
  padding: 1rem 2rem;
  border-radius: 999px; 
  cursor: pointer; 
  font-weight: 700; 
  transition: transform .3s ease;
  font-size: 1rem;
}
/* Explanatory Content Styles */
.gallery-explanations {
    margin: 3rem 0 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.explanation-content {
    display: none;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.explanation-content.active {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.explanation-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.explanation-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

.explanation-content p:last-child {
    margin-bottom: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Lightbox */
.gallery-lightbox {
  position: fixed; 
  inset: 0; 
  display: none; 
  align-items: center; 
  justify-content: center;
  background: rgba(0,0,0,.8); 
  z-index: 2000; 
  padding: 2rem;
  overflow: hidden;
  
}
.gallery-lightbox.active { 
  display: flex; 
  flex-direction: column;
}
.lightbox-figure { 
max-width: 90vw; 
max-height: 80vh; 
margin: 0; 
text-align: center; 
display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.lightbox-img { 
  max-width: 100%; 
  max-height: 70vh; 
  border-radius: 8px; 
  object-fit: contain;
}
.lightbox-caption { 
  color: #fff; 
  margin-top: .6rem; 
  font-size: 1rem; 
  text-align: center;
  padding: 0 1rem;
  max-width: 600px;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; 
  border: none; 
  background: rgba(255,255,255,.15); 
  color: #fff;
  width: 44px; 
  height: 44px; 
  border-radius: 50%; 
  cursor: pointer; 
  font-size: 1.4rem;
  display: grid; 
  place-items: center; 
  transition: background .2s ease;
  z-index: 2001;
}
.lightbox-close { 
  top: 20px; 
  right: 20px; 

}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { 
  background: rgba(255,255,255,.25); 
}

@media (max-width: 480px) {
  .gallery-item img { height: 140px; }
}
/* Animation for gallery section */
.gallery-section {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFadeIn 0.8s ease-out 0.3s forwards;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Add delay for child elements for staggered effect */
.gallery-header {
    animation: slideUpFadeIn 0.8s ease-out 0.5s forwards;
}

.gallery-filters {
    animation: slideUpFadeIn 0.8s ease-out 0.7s forwards;
}

.gallery-grid {
    animation: slideUpFadeIn 0.8s ease-out 0.9s forwards;
}


/* ===== Lightbox offsets for fixed header(s) ===== */
:root{
  /* will be set from JS to exact header height */
  --headerH: 0px;
}

/* give the overlay some breathing room below the headers */
.gallery-lightbox{
  padding-top: calc(var(--headerH) + 16px);
  padding-bottom: 16px;
  z-index: 3000;               /* make sure it sits above the headers */
}

/* keep the close button inside the view, under the headers */
.gallery-lightbox .lightbox-close{
  top: calc(var(--headerH) + 16px);
  right: 16px;
}

/* make image height account for header + caption space */
.gallery-lightbox .lightbox-figure{
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - var(--headerH) - 96px);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.gallery-lightbox .lightbox-img{
  max-width: 100%;
  max-height: calc(100vh - var(--headerH) - 160px); /* room for caption & controls */
  object-fit: contain;
  border-radius: 10px;
}

.gallery-lightbox .lightbox-caption{
  color: #fff;
  text-align: center;
  max-width: 90vw;
}

/* Optional: move prev/next a bit lower on mobile */
@media (max-width: 768px){
  .gallery-lightbox .lightbox-prev,
  .gallery-lightbox .lightbox-next{
    bottom: 20px;
    top: auto;
  }
}



/* ===== EVENTS SECTION ===== */
        .events-section {
            padding: 4rem 0;
            background: #f9f9f9;
        }

        .events-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .events-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .events-header h2 {
            color: var(--primary);
            font-size: 2.5rem;
            margin-bottom: 1rem;
            position: relative;
        }

        .events-header h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--secondary);
        }

        .events-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2.5rem;
        }

        .event-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .event-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        .event-flier {
            width: 100%;
            height: 450px; /* Increased height for better flyer display */
            object-fit: cover;
            border-bottom: 3px solid var(--secondary);
        }

        .event-content {
            padding: 1.5rem;
        }

        .event-title {
            color: var(--primary);
            font-size: 1.5rem;
            margin-bottom: 1rem;
            text-align: center;
        }

        .event-details {
            margin-bottom: 1.5rem;
        }

        .event-detail {
            display: flex;
            align-items: center;
            margin-bottom: 0.5rem;
            color: var(--gray);
        }

        .event-detail i {
            margin-right: 0.5rem;
            color: var(--secondary);
            width: 20px;
            text-align: center;
        }

        .support-needs {
            background: rgba(165, 36, 96, 0.05);
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1.5rem;
        }

        .support-needs h4 {
            color: var(--primary);
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
            text-align: center;
        }

        .needs-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: center;
        }

        .need-tag {
            background: var(--secondary);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .event-actions {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .btn-event {
            padding: 0.8rem 1.5rem;
            border-radius: 25px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            border: none;
            text-align: center;
            flex: 1;
        }

        .btn-event-primary {
            background: var(--secondary);
            color: white;
        }

        .btn-event-primary:hover {
            background: var(--secondary-dark);
            transform: translateY(-2px);
        }

        .btn-event-secondary {
            background: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .btn-event-secondary:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        .activities-list {
            margin: 1rem 0;
            text-align: center;
        }

        .activity-tag {
            display: inline-block;
            background: rgba(147, 112, 219, 0.1);
            color: var(--accent);
            padding: 0.3rem 0.8rem;
            border-radius: 15px;
            font-size: 0.85rem;
            margin: 0.2rem;
            border: 1px solid rgba(147, 112, 219, 0.3);
        }

        .sponsors {
            text-align: center;
            margin: 1rem 0;
            padding: 0.5rem;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 8px;
        }

        .sponsor-names {
            font-weight: bold;
            color: var(--primary);
            margin: 0.5rem 0;
        }

        .mpesa-info {
            background: rgba(0, 150, 0, 0.1);
            padding: 1rem;
            border-radius: 8px;
            text-align: center;
            margin: 1rem 0;
            border-left: 4px solid #00a650;
        }

        .mpesa-info strong {
            color: #00a650;
            display: block;
            margin-bottom: 0.5rem;
        }

        .contact-info {
            text-align: center;
            margin-top: 1rem;
            font-style: italic;
            color: var(--gray);
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .events-grid {
                grid-template-columns: 1fr;
            }
            
            .event-actions {
                flex-direction: column;
            }
            
            .event-flier {
                height: 350px;
            }
        }


/* ===== CONTACT SECTION STYLES ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-details a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary);
}


/* Map Section */
.contact-map {
    height: 100%;
}

.map-placeholder {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-placeholder h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.map-image {
    flex: 1;
    background: linear-gradient(135deg, var(--light) 0%, var(--primary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    min-height: 300px;
}

.map-fallback {
    text-align: center;
    color: white;
}

.map-fallback p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.map-fallback a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.map-fallback a:hover {
    color: var(--secondary);
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        padding: 1.2rem;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .contact-social-media {
        grid-template-columns: 1fr;
    }
    
    .map-placeholder {
        padding: 1.5rem;
    }
    
    .map-image {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .contact-social-media .social-link {
        justify-content: center;
    }
}

/* ===== COMPACT FOOTER STYLES ===== */
.footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 1.5rem 0 0.5rem;
    position: relative;
    border-top: 2px solid var(--primary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Footer Main Section */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Brand Section with Social Media */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.footer-logo-img {
    height: 35px;
    width: auto;
}

.footer-logo-text h3 {
    color: var(--white);
    font-size: 1rem;
    margin: 0 0 0.1rem 0;
    font-weight: 700;
    line-height: 1.2;
}

.footer-tagline {
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    font-size: 0.75rem;
    margin: 0;
}

/* Compact Social Media - Fix Twitter visibility */
.footer-social-compact {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.social-link-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

/* Ensure Twitter icon is visible */
.fa-x-twitter {
    color: var(--white) !important;
}

.social-link-compact:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.social-link-compact:hover .fa-x-twitter {
    color: var(--white) !important;
}

/* Footer Links - Always 2 columns */
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.link-column {
    display: flex;
    flex-direction: column;
}

.link-column h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.link-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0;
}

.link-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Bottom Footer with Donate Button */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.legal-links {
    display: flex;
    gap: 0.8rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.7rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    margin: 0;
}

/* Donate Button in Footer Bottom */
.donate-btn-bottom {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    background: var(--secondary);
    color: var(--white);
    border: 1px solid var(--secondary);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.donate-btn-bottom:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 112, 147, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-legal {
        flex: 1;
    }
    
    .donate-btn-bottom {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .footer-links {
        gap: 0.6rem;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .link-column h4 {
        font-size: 0.85rem;
    }
    
    .link-column a {
        font-size: 0.7rem;
    }
    .link-column {
        min-width: 0; /* Prevent columns from getting too wide */
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .donate-btn-bottom {
        align-self: flex-start;
        margin-top: 0.3rem;
    }
    
    .footer-social-compact {
        gap: 0.4rem;
    }
    
    .social-link-compact {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
}


/* For extremely small screens */
@media (max-width: 360px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}
 



.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--secondary-dark);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.btn-secondary {
    background: var(--secondary-dark);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: var(--primary);
    transform: translateY(-3px);
}


 

/* ===== EVENT MODAL STYLES ===== */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.event-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.event-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.event-modal-close:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.event-modal-header {
    text-align: center;
    padding: 0;
}

.event-modal-flier {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 15px 15px 0 0;
}

.event-modal-body {
    padding: 2rem;
}

.event-modal-title {
    color: var(--primary);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.contact-info-modal {
    background: rgba(165, 36, 96, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-detail {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-detail:last-child {
    margin-bottom: 0;
}

.contact-detail i {
    color: var(--primary);
    width: 20px;
}

.sponsors-modal {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(147, 112, 219, 0.1);
    border-radius: 10px;
}

.sponsors-modal h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.activities-modal {
    margin: 1.5rem 0;
    text-align: center;
}

.activities-modal h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.support-needs-modal {
    background: rgba(255, 105, 180, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    text-align: center;
}

.support-needs-modal h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.mpesa-info-modal {
    background: rgba(0, 150, 0, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    text-align: center;
    border-left: 4px solid #00a650;
}

.mpesa-info-modal h4 {
    color: #00a650;
    margin-bottom: 1rem;
}

.till-number {
    font-size: 2rem;
    font-weight: bold;
    color: #00a650;
    margin: 0.5rem 0;
}

.event-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Make event flier clickable */
.event-flier-container {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.event-flier-container:hover {
    transform: scale(1.02);
}

.event-preview {
    text-align: center;
    color: var(--gray);
    font-style: italic;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(165, 36, 96, 0.05);
    border-radius: 5px;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .event-modal {
        padding: 1rem 0.5rem;
    }
    
    .event-modal-body {
        padding: 1.5rem;
    }
    
    .event-modal-title {
        font-size: 1.5rem;
    }
    
    .event-modal-actions {
        flex-direction: column;
    }
    
    .event-modal-flier {
        max-height: 300px;
    }
    
    .till-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .event-modal-body {
        padding: 1rem;
    }
    
    .contact-info-modal,
    .support-needs-modal,
    .mpesa-info-modal {
        padding: 1rem;
    }
}






/* ===== GALLERY SECTION STYLES ===== */
.gallery-section {
    padding: 4rem 0;
    background: var(--white);
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFadeIn 0.8s ease-out 0.3s forwards;
}

.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-header h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.gallery-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

.gallery-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.8s ease-out 0.7s forwards;
}

.filter-btn {
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    outline: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(165, 36, 96, 0.3);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(165, 36, 96, 0.3);
}

/* Grid */
.gallery-grid {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.8s ease-out 0.9s forwards;
}

.gallery-item {
    display: block;
    position: relative;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-thumb {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumb {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 40%, rgba(165, 36, 96, 0.9));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.view-details {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Load More / Show Less */
.gallery-more {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.8s ease-out 1.1s forwards;
}

#loadMore, #showLess {
    border: 0;
    background: var(--secondary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

#loadMore::before, #showLess::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

#loadMore:hover::before, #showLess:hover::before {
    left: 100%;
}

#loadMore:hover, #showLess:hover {
    transform: translateY(-3px);
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(165, 36, 96, 0.4);
}

#showLess {
    background: var(--primary);
}

#showLess:hover {
    background: var(--secondary);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.gallery-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.gallery-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(165, 36, 96, 0.4);
}

.gallery-modal-close:hover {
    background: var(--primary-dark);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(165, 36, 96, 0.6);
}

.gallery-modal-header {
    text-align: center;
    padding: 0;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.gallery-modal-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.gallery-modal-body {
    padding: 2.5rem;
}

.gallery-modal-title {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    position: relative;
}

.gallery-modal-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.image-details {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h4::before {
    content: '•';
    color: var(--secondary);
    font-size: 1.5rem;
}

.detail-section p {
    line-height: 1.7;
    color: #555;
    font-size: 1rem;
}

.impact-list {
    list-style: none;
    padding: 0;
}

.impact-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 2rem;
    transition: all 0.3s ease;
}

.impact-list li:hover {
    background: rgba(165, 36, 96, 0.05);
    padding-left: 2.5rem;
}

.impact-list li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.project-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    background: rgba(165, 36, 96, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #666;
    font-weight: 500;
}

.meta-item i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.gallery-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 2rem;
}

.btn-modal {
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-modal:hover::before {
    left: 100%;
}

.btn-modal-primary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(219, 112, 147, 0.4);
}

.btn-modal-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 112, 147, 0.6);
}

.btn-modal-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-modal-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(165, 36, 96, 0.4);
}

/* Animations */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 3rem 0;
    }
    
    .gallery-header h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .gallery-thumb {
        height: 200px;
    }

    .gallery-modal {
        padding: 1rem 0.5rem;
    }
    
    .gallery-modal-body {
        padding: 1.5rem;
    }
    
    .gallery-modal-title {
        font-size: 1.5rem;
    }
    
    .gallery-modal-actions {
        flex-direction: column;
    }
    @media (max-width: 768px) {
    /* ... existing styles ... */
    
    /* Add these modal styles for mobile */
    .gallery-modal {
        padding: 1rem 0.5rem;
    }
    
    .gallery-modal-content {
        max-width: 95%;
        margin: 0 auto;
    }
    
    
    
    .gallery-modal-body {
        padding: 1rem;
    }
    
    .gallery-modal-title {
        font-size: 1.3rem; /* Reduced from 1.5rem */
        margin-bottom: 1rem;
    }
    
    .detail-section h4 {
        font-size: 1.1rem; /* Reduced from 1.2rem */
        margin-bottom: 0.5rem;
    }
    
    .detail-section p {
        font-size: 0.9rem; /* Reduced text size */
        line-height: 1.5;
    }
    
    .impact-list li {
        font-size: 0.9rem; /* Reduced text size */
        padding: 0.4rem 0;
        padding-left: 1.5rem;
    }
    
    .project-meta {
        padding: 1rem;
        gap: 1rem;
    }
    
    .meta-item {
        font-size: 0.9rem; /* Reduced text size */
    }
    
    .btn-modal {
        padding: 0.8rem 1.5rem; /* Smaller buttons */
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-modal {
        padding: 0.5rem;
    }
    
    .gallery-modal-content {
        max-width: 100%;
        border-radius: 10px;
    }
    
    .gallery-modal-image {
        max-height: 250px; /* Even smaller on very small screens */
    }
    
    .gallery-modal-body {
        padding: 0.8rem;
    }
    
    .gallery-modal-title {
        font-size: 1.1rem;
    }
    
    .image-details {
        gap: 1rem; /* Reduced gap between sections */
    }
    
    .project-meta {
        flex-direction: column;
        padding: 0.8rem;
        gap: 0.5rem;
    }
    
    .gallery-modal-actions {
        padding-top: 1rem;
        gap: 0.5rem;
    }
    
    .btn-modal {
        width: 100%; /* Full width buttons on mobile */
        justify-content: center;
    }
}
    
    .image-details {
        gap: 1.5rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-modal-body {
        padding: 1rem;
    }
    
    .gallery-modal-image {
        max-height: 300px;
    }
    
    .gallery-thumb {
        height: 180px;
    }
    
    .gallery-more {
        flex-direction: column;
        align-items: center;
    }
    
    #loadMore, #showLess {
        width: 200px;
    }
}

/* No Results State */
.gallery-no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray);
    display: none;
}

.gallery-no-results.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.gallery-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.gallery-no-results h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading State */
.gallery-loading {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.gallery-loading.active {
    display: block;
}

.gallery-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .gallery-filters,
    .gallery-more,
    .gallery-modal-close,
    .gallery-modal-actions {
        display: none !important;
    }
    
    .gallery-modal {
        position: static;
        background: white;
        display: block !important;
    }
    
    .gallery-modal-content {
        box-shadow: none;
        max-width: 100%;
    }
}






/* Category Grid Styles */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.category-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.category-card p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.category-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.category-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(165, 36, 96, 0.3);
}

/* Back to Categories Button */
.back-to-categories {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.back-to-categories:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

/* Photo Gallery */
.photo-gallery {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== GALLERY SECTION STYLES ===== */
.gallery-section {
    padding: 4rem 0;
    background: var(--white);
}

.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-header h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.gallery-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Grid - Default (Desktop) */
.gallery-grid {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.gallery-item {
    display: block;
    position: relative;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-thumb {
    width: 100%;
    height: 200px; /* Reduced from 250px */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumb {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 40%, rgba(165, 36, 96, 0.9));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.view-details {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Load More / Show Less */
.gallery-more {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    gap: 1rem;
}

#loadMore, #showLess {
    border: 0;
    background: var(--secondary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

#loadMore:hover, #showLess:hover {
    transform: translateY(-3px);
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(165, 36, 96, 0.4);
}

#showLess {
    background: var(--primary);
}

#showLess:hover {
    background: var(--secondary);
}

/* Category Description */
.category-description {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.category-description h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.category-description p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.2rem;
    }
    
    .gallery-thumb {
        height: 180px; /* Smaller for tablet */
    }
    
    .gallery-header h2 {
        font-size: 2.2rem;
    }
    
    .category-description {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .category-description h3 {
        font-size: 1.3rem;
    }
    
    .category-description p {
        font-size: 1rem;
    }
}

/* Large Phone Styles (481px - 767px) - 2 per row */
@media (max-width: 767px) {
    .gallery-section {
        padding: 3rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row */
        gap: 1rem;
    }
    
    .gallery-thumb {
        height: 150px; /* Even smaller for phones */
    }
    
    .gallery-header h2 {
        font-size: 2rem;
    }
    
    .gallery-header p {
        font-size: 1rem;
    }
    
    .category-description {
        padding: 1.2rem;
        margin: 1.2rem 0;
    }
    
    .category-description h3 {
        font-size: 1.2rem;
    }
    
    .category-description p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .gallery-more {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    #loadMore, #showLess {
        width: 200px;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .view-details {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Small Phone Styles (320px - 480px) - 2 per row but even smaller */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* Still 2 per row */
        gap: 0.8rem;
    }
    
    .gallery-thumb {
        height: 120px; /* Smallest size for mobile */
    }
    
    .gallery-section {
        padding: 2rem 0;
    }
    
    .gallery-header h2 {
        font-size: 1.8rem;
    }
    
    .gallery-header p {
        font-size: 0.9rem;
    }
    
    .category-description {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .category-description h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .category-description p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    #loadMore, #showLess {
        width: 180px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .gallery-card {
        border-radius: 8px;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
}

/* Extra Small Phones (below 320px) */
@media (max-width: 320px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .gallery-thumb {
        height: 100px;
    }
    
    .gallery-header h2 {
        font-size: 1.6rem;
    }
}

/* Category Grid Responsive */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

@media (max-width: 767px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.2rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .category-card h3 {
        font-size: 1.2rem;
    }
    
    .category-card p {
        font-size: 0.9rem;
    }
    
    .category-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}




/* Category Description Styles */
.category-description {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.category-description h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.category-description p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.category-description .highlight {
    background: var(--secondary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Update back button margin */
.back-to-categories {
    margin-bottom: 2rem;
}


/* Modal Navigation Arrows */
.modal-nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
    transform: translateY(-50%);
}

.modal-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    pointer-events: all;
}

.modal-nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(165, 36, 96, 0.4);
}

/* Hide arrows when only one image */
.modal-nav-btn[style*="display: none"] {
    display: none !important;
}

/* Responsive design for arrows */
@media (max-width: 768px) {
    .modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-nav-arrows {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .modal-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}