/* styles.css */

/* CSS Variables */
:root {
    --soft-coral: #E06666;
    --light-blue: #A3D8F4;
    --muted-teal: #66CCCC;
    --dark-teal: #4A9999;
    --cream: #FFF5EE;
    --light-cream: #F8E8DE;
    --dark-gray: #1A1A1A;
    --primary-blue: #003366;
    --accent-red: #B22222;
    --light-gray: #f0f0f0;
    --white: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Merriweather', serif;
    background-color: var(--cream);
    color: var(--dark-gray);
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
    padding-top: 0;
    transition: padding-top 0.3s ease;
}

body.navbar-fixed {
    padding-top: 70px; /* Adjust based on navbar height */
}

/* Keyframes for Animations */
@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes confettiFall {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(50px) rotate(360deg); opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Header Styles */
.header-area {
    background: linear-gradient(to bottom, rgb(239, 213, 163), rgb(242, 219, 67));
    padding: 24px 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-area.collapsed {
    padding: 0;
}

.header-area.collapsed .header-content,
.header-area.collapsed .logo {
    display: none;
}

/* Header Content Layout */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Logo Containers */
.logo-left-container,
.logo-right-container {
    flex: 0 0 auto;
}

.logo-left,
.logo-right {
    max-width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-left:hover,
.logo-right:hover {
    transform: rotate(15deg);
}

.center-logo-icon {
    width: 40px;
    height: auto;
    margin-bottom: 8px;
    animation: fadeInUp 0.8s ease forwards;
}

/* Navbar Styles */
.navbar {
    flex-grow: 0; /* Prevent stretching */
    max-width: 900px; /* Consistent width */
    margin: 0 auto; /* Center horizontally */
    transition: all 0.3s ease;
    background: transparent; /* Transparent in non-sticky state */
}

.navbar.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 900px !important; /* Restrict width when sticky */
    margin: 0 auto !important; /* Center when sticky */
    background: transparent !important; /* Keep navbar transparent */
    box-shadow: none !important; /* No shadow on navbar */
    z-index: 2000 !important;
    padding: 12px 0;
}

.navbar-nav {
    background: transparent; /* Transparent in non-sticky state */
    border-radius: 0;
    box-shadow: none;
    padding: 12px 24px;
    display: flex;
    justify-content: center; /* Center links */
    width: 100%;
}

.navbar.is-sticky .navbar-nav {
    background: rgb(242, 219, 67); /* Light cream, semi-transparent oval background */
    border-radius: 50px; /* Large border-radius for oval/pill shape */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    padding: 8px 24px; /* Adjusted padding for oval shape */
    width: auto;
    display: inline-flex;
}

.nav-item {
    margin: 0 8px;
}

.nav-link {
    color: var(--dark-gray); /* #4A4A4A */
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8); /* Improve readability over header gradient */
}

.navbar.is-sticky .nav-link {
    text-shadow: none; /* Remove text-shadow when sticky for clarity */
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus {
    color: var(--light-blue); /* #4A9999 */
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.1), inset -3px -3px 6px rgba(255, 255, 255, 0.5);
    transform: translateY(1px);
    outline: 2px solid var(--light-blue);
    outline-offset: 2px;
}

/* Navbar Toggler for Mobile */
.navbar-toggler {
    padding: 4px 8px;
    border: none;
    background: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(74, 153, 153, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Mobile Navbar Scroll Behavior */
.navbar-collapse.hide-on-scroll {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.navbar-collapse {
    transition: transform 0.3s ease;
}

/* Mobile: Adjust oval background for collapsed menu */
@media (max-width: 991.98px) {
    .navbar.is-sticky .navbar-nav {
        background: rgba(248, 232, 222, 0.9); /* Same oval background */
        border-radius: 30px; /* Slightly smaller radius for mobile */
        padding: 12px 16px; /* Adjusted padding */
        margin: 10px 0; /* Space around collapsed menu */
    }

    .navbar-nav {
        flex-direction: column; /* Stack links vertically */
        align-items: center; /* Center links vertically */
    }
}


/* Donation Link */
.donation-link {
    position: fixed;
    top: 10px;
    right: 20px;
    background-color: #0b8e35;
    color: #FFFFFF;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 2100; /* Higher than navbar */
    animation: pulse 2s ease-in-out infinite;
}

.donation-link:hover,
.donation-link:focus {
    background-color: var(--light-blue);
    transform: scale(1.05);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
    outline: 2px solid var(--light-blue);
}

/* Contact Info */
.contact-info {
    font-size: 14px;
    color: var(--dark-gray);
    margin-top: 8px;
}

.contact-info p {
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--muted-teal);
}

.contact-info a {
    color: var(--dark-gray);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-info a:hover,
.contact-info a:focus {
    color: var(--light-blue);
    transform: scale(0.95);
    outline: 2px solid var(--light-blue);
}

.contact-info i {
    color: var(--muted-teal);
    margin-right: 4px;
}

.contact-info a:hover i,
.contact-info a:focus i {
    color: var(--light-blue);
}

/* Center Logo */
.logo {
    text-align: center;
    margin-top: 15px;
}

.logo h1 {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
    color: #D24343;
    font-size: clamp(18px, 5vw, 30px);
    margin-bottom: 5px;
}

.logo p {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(10px, 3vw, 12px);
    color: var(--dark-gray);
}

/* HERO SECTION */
#hero {
  position: relative;
  width: 100%;
  height: 95vh; /* Reduced height */
  overflow: hidden;
}

#heroCarousel .carousel-item {
  height: 95vh; /* match hero height */
}

#heroCarousel .carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* Centering caption content */
.carousel-caption {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  text-align: center;
}

/* Hero text styling */
.hero-text {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* Hero paragraph text */
.carousel-caption p.lead {
  font-size: 1.5rem;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  margin-top: 10px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-text {
    font-size: 2rem;
  }

  .carousel-caption p.lead {
    font-size: 1.2rem;
  }
}

/* Animate.css overrides */
/* Set animation duration for hero text */
.hero-text.animate__animated {
  --animate-duration: 0.3s;
}

/* ZoomOut animation fix to keep opacity 0 at end */
.animate__zoomOut {
  animation-fill-mode: forwards;
}


.donate-section {
    padding: 60px 0;
    background-color: #f8f9fa; /* Adjust to match your theme */
}
.donate-section h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.donate-section p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    position: relative;
}

.section-title {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
    font-size: 36px;
    color: var(--soft-coral);
    margin-bottom: 10px;
}

.about-row {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.about-row:nth-child(odd) {
    background: linear-gradient(to right, var(--light-cream), #FFFFFF);
}

.about-row:nth-child(even) {
    background: linear-gradient(to right, #FFFFFF, var(--light-cream));
}

.about-row:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.about-icon-wrapper {
    background: var(--light-blue);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
}

.about-icon {
    font-size: 30px;
    color: #FFFFFF;
}

.about-row-content {
    padding: 15px;
}

.row-title {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
    font-size: 24px;
    color: var(--muted-teal);
    margin-bottom: 15px;
}

.about-row-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 10px;
}

.about-row {
    animation: fade-in 0.8s ease forwards;
}

.about-row:nth-child(1) { animation-delay: 0.1s; }
.about-row:nth-child(2) { animation-delay: 0.3s; }
.about-row:nth-child(3) { animation-delay: 0.5s; }

/* What We Do Section */
.what-we-do-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, var(--light-cream), var(--cream));
    position: relative;
}

.what-we-do-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50"><circle cx="25" cy="25" r="10" fill="%23A3D8F4" fill-opacity="0.1"/></svg>') repeat;
    opacity: 0.2;
    z-index: 0;
}

.what-we-do-section .container {
    position: relative;
    z-index: 1;
}

.section-subtitle {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
    font-size: 19px;
    color: black;
    position: relative;
    margin-bottom: 10px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--soft-coral);
}

.what-we-do-card {
    background-color: #FFFFFF;
    border: 2px solid var(--soft-coral);
    border-radius: 50%;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.what-we-do-card.highlight-card {
    background-color: #FFFFFF;
    color: var(--dark-gray);
}

.what-we-do-card .icon-box {
    background-color: var(--light-cream);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.what-we-do-card.highlight-card .icon-box {
    background-color: var(--light-cream);
}

.what-we-do-card .icon-box i {
    font-size: 24px;
    color: var(--soft-coral);
}

.what-we-do-card.highlight-card .icon-box i {
    color: var(--soft-coral);
}

.what-we-do-card h3 {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.what-we-do-card.highlight-card h3 {
    color: var(--dark-gray);
}

.what-we-do-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.what-we-do-card.highlight-card p {
    color: var(--dark-gray);
}

.what-we-do-card:hover,
.what-we-do-card:focus {
    transform: translateY(-5px);
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.15), -8px -8px 15px rgba(255, 255, 255, 0.7);
    background-color: var(--light-blue);
    color: #FFFFFF;
    outline: 2px solid var(--light-blue);
}

.what-we-do-card:hover .icon-box,
.what-we-do-card:focus .icon-box {
    transform: rotate(360deg);
    background-color: #FFFFFF;
}

.what-we-do-card:hover .icon-box i,
.what-we-do-card:focus .icon-box i {
    color: var(--muted-teal);
}

.what-we-do-card:hover h3,
.what-we-do-card:focus h3,
.what-we-do-card:hover p,
.what-we-do-card:focus p {
    color: #FFFFFF;
}

/* Puzzle Section */
.puzzle-section {
    padding: 50px 0;
    background: linear-gradient(to bottom, var(--light-cream), #FFFFFF);
    position: relative;
}

.puzzle-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.puzzle-piece {
    position: relative;
    width: 300px;
    min-height: 150px;
    margin: 0;
    border: 3px solid transparent;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.puzzle-piece:hover,
.puzzle-piece:focus {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--light-blue);
    z-index: 10;
    outline: 2px solid var(--light-blue);
}

.puzzle-content {
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #333;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.puzzle-content::before {
    content: "♥";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: rgba(255, 107, 107, 0.3);
    z-index: 0;
}

.piece-1 {
    background: linear-gradient(135deg, var(--soft-coral), #FFD1D1);
    border-radius: 20px 0 0 20px;
}

.piece-2 {
    background: linear-gradient(135deg, var(--light-blue), #D1E4FF);
    border-radius: 0;
}

.piece-3 {
    background: linear-gradient(135deg, var(--muted-teal), #D1FFF5);
    border-radius: 0 20px 20px 0;
}

.piece-4 {
    background: linear-gradient(135deg, #FFD700, #FFF3B0);
    border-radius: 20px 0 0 20px;
}

.piece-5 {
    background: linear-gradient(135deg, #FF8C00, #FFE4B5);
    border-radius: 0 20px 20px 0;
}

.piece-1::after,
.piece-2::after,
.piece-4::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-blue);
    border-left: none;
    border-radius: 0 20px 20px 0;
    transform: translateY(-50%);
}

.piece-1::after {
    background: linear-gradient(135deg, var(--soft-coral), #FFD1D1);
}

.piece-2::after {
    background: linear-gradient(135deg, var(--light-blue), #D1E4FF);
}

.piece-4::after {
    background: linear-gradient(135deg, #FFD700, #FFF3B0);
}

.piece-2::before,
.piece-3::before,
.piece-5::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 40px;
    height: 40px;
    background: var(--light-cream);
    border-radius: 20px 0 0 20px;
    transform: translateY(-50%);
}

.puzzle-piece {
    animation: slide-in 0.5s ease forwards;
}

.piece-1 { animation-delay: 0.1s; }
.piece-2 { animation-delay: 0.2s; }
.piece-3 { animation-delay: 0.3s; }
.piece-4 { animation-delay: 0.4s; }
.piece-5 { animation-delay: 0.5s; }

/* Events Section */
.events-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, var(--cream), var(--light-cream));
    position: relative;
}

.events-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50"><path d="M25 5L30 15H40L32 22L35 35L25 28L15 35L18 22L10 15H20z" fill="%23E06666" fill-opacity="0.1"/></svg>') repeat;
    opacity: 0.2;
    z-index: 0;
}

.events-section .container {
    position: relative;
    z-index: 1;
}

.events-section h2 {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
    font-size: 36px;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.event-card {
    background-color: #FFFFFF;
    border: 2px solid var(--soft-coral);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.event-card:hover,
.event-card:focus {
    transform: scale(1.03);
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.15), -8px -8px 15px rgba(255, 255, 255, 0.7);
    outline: 2px solid var(--light-blue);
}

.event-image-container {
    position: relative;
    margin-bottom: 15px;
}

.event-img {
    width: min(45vw, 180px);
    height: min(45vw, 180px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--soft-coral);
}

.event-date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--muted-teal);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.event-card:hover .event-date-badge,
.event-card:focus .event-date-badge {
    transform: scale(1.1);
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--dark-gray);
}

.event-time i,
.event-location i {
    margin-right: 5px;
    color: var(--muted-teal);
}

.event-card h3 {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
    font-size: 20px;
    color: var(--muted-teal);
    margin-bottom: 10px;
}

.event-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: var(--dark-gray);
}

/* Team Section */
.team-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, var(--light-cream), var(--cream));
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50"><path d="M25 5L30 15H40L32 22L35 35L25 28L15 35L18 22L10 15H20z" fill="%23E06666" fill-opacity="0.1"/></svg>') repeat;
    opacity: 0.3;
    z-index: 0;
}

.team-header {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.team-icon {
    font-size: 24px;
    color: var(--soft-coral);
    margin-bottom: 10px;
}

.team-section h2 {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
    font-size: 36px;
    color: var(--soft-coral);
    margin-bottom: 15px;
}

.team-section p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

.team-grid {
    position: relative;
    z-index: 1;
}

.team-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.team-member {
    position: relative;
    width: 192px;
    text-align: center;
    padding-top: 24px;
    transition: all 0.3s ease;
}

.team-member:hover,
.team-member:focus {
    transform: translateY(-5px);
    outline: 2px solid var(--light-blue);
}

.team-img {
    width: 100%;
    height: 192px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--soft-coral);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 10px;
}

.team-member:hover .team-img,
.team-member:focus .team-img {
    transform: scale(1.1);
}

.team-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--light-blue);
    color: #FFFFFF;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 15px;
    white-space: nowrap;
    z-index: 2;
}

.team-member h3 {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
    font-size: 18px;
    color: var(--dark-teal);
    margin-bottom: 5px;
}

.team-member p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    margin-bottom: 10px;
}

.team-member .social-links a {
    color: var(--soft-coral);
    font-size: 16px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.team-member .social-links a:hover,
.team-member .social-links a:focus {
    color: var(--dark-teal);
    transform: scale(1.2);
    outline: 2px solid var(--light-blue);
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, var(--cream), var(--light-cream));
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50"><circle cx="25" cy="25" r="10" fill="%23A3D8F4" fill-opacity="0.1"/></svg>') repeat;
    opacity: 0.2;
    z-index: 0;
}

.gallery-section .container {
    position: relative;
    z-index: 1;
}

.gallery-section h2 {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
    font-size: 36px;
    color: var(--soft-coral);
    margin-bottom: 40px;
}

/* Updated from .carousel1 to #galleryCarousel */
#galleryCarousel {
    max-width: 800px;
    max-height: fit-content;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px rgba(255, 255, 255, 0.5);
}

/* Gallery Carousel Image Sizing */
.gallery-img {
  width: 70%;
  height: 500px;           /* Set your preferred height */
  object-fit: cover;       /* Ensures images fill the area without distortion */
  border-radius: 10px;     /* Optional: rounded corners */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* Optional: subtle shadow */
  transition: transform 0.3s ease;
  margin: 0 auto;          /* Center images inside carousel */
}

@media (max-width: 768px) {
  .gallery-img {
    height: 220px;         /* Smaller height for mobile */
  }
}

.gallery-img:hover,
.gallery-img:focus {
    transform: scale(1.05);
    outline: 2px solid var(--light-blue);
}

.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(0, 0, 0, 0.3);
    width: 5%;
    border-radius: 10px;
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: 2px solid var(--light-blue);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

.modal-content {
    background-color: var(--cream);
    border-radius: 20px;
}

.modal-body {
    padding: 0;
}

#modalImage {
    width: 100%;
    height: auto;
    border-radius: 20px;
}
.modal-header {
  position: relative;
  background-color: var(--cream);
}

.btn-close {
  filter: invert(0); /* Default black icon */
  opacity: 1;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1100;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}




/* CTA Section */
.cta-section {
    padding: 40px 0;
    background: linear-gradient(to bottom, var(--light-blue), var(--muted-teal));
    position: relative;
}

.cta-section h2 {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
    font-size: 32px;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.cta-section p {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.cta-button-wrapper {
    position: relative;
    display: inline-block;
}

.cta-section .btn-primary {
    background-color: var(--soft-coral);
    color: #FFFFFF;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 25px;
    border: none;
    animation: bounce 2s ease-in-out infinite;
}

.cta-section .btn-primary:hover,
.cta-section .btn-primary:focus {
    background-color: var(--muted-teal);
    outline: 2px solid var(--light-blue);
}

.cta-section .confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0;
    animation: confettiFall 1.5s ease-in-out forwards;
}

.cta-confetti-1 { top: -20px; left: -20px; background-color: var(--soft-coral); animation-delay: 0s; }
.cta-confetti-2 { top: -20px; right: -20px; background-color: var(--light-blue); animation-delay: 0.2s; }
.cta-confetti-3 { bottom: -20px; left: -20px; background-color: var(--muted-teal); animation-delay: 0.4s; }
.cta-confetti-4 { bottom: -20px; right: -20px; background-color: #FFCC99; animation-delay: 0.6s; }

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, var(--cream), var(--light-cream));
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50"><path d="M25 5L30 15H40L32 22L35 35L25 28L15 35L18 22L10 15H20z" fill="%23E06666" fill-opacity="0.1"/></svg>') repeat;
    opacity: 0.2;
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-section h2 {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
    font-size: 32px;
    color: var(--soft-coral);
    margin-bottom: 40px;
}

.contact-form .form-label {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
}

.contact-form .form-control {
    border-radius: 10px;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.1), inset -3px -3px 6px rgba(255, 255, 255, 0.5);
    border: none;
    padding: 10px;
}

.contact-form .form-control:focus {
    outline: 2px solid var(--light-blue);
}

.contact-form .btn-primary {
    background-color: var(--muted-teal);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px rgba(255, 255, 255, 0.5);
}

.contact-form .btn-primary:hover,
.contact-form .btn-primary:focus {
    background-color: var(--light-blue);
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.1), inset -3px -3px 6px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    outline: 2px solid var(--light-blue);
}

.form-feedback {
    margin-top: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--dark-gray);
}

.form-feedback.success {
    color: var(--muted-teal);
}

.form-feedback.error {
    color: var(--soft-coral);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px rgba(255, 255, 255, 0.5);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Footer Section */
.footer-section {
    background-color: var(--dark-teal);
    color: #FFFFFF;
    padding: 40px 0;
    position: relative;
}

.footer-section h4 {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.02em;
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-section p,
.footer-section ul,
.footer-section a {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover,
.footer-section a:focus {
    color: var(--light-blue);
    outline: 2px solid var(--light-blue);
}

.footer-section .social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-section .social-links a {
    font-size: 20px;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--soft-coral);
    color: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.back-to-top:hover,
.back-to-top:focus {
    background-color: var(--light-blue);
    transform: scale(1.1);
    outline: 2px solid var(--light-blue);
}

.back-to-top i {
    font-size: 20px;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .what-we-do-card,
    .puzzle-piece,
    .event-card,
    .team-member,
    .hero-img,
    .nav-link,
    .contact-info a,
    .donation-link,
    .cta-section .btn-primary,
    .back-to-top {
        animation: none;
        transition: none;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .navbar {
        width: 100%;
        margin: 10px 0;
    }

    .navbar.is-sticky {
        padding: 10px 0;
    }

    body.navbar-fixed {
        padding-top: 60px; /* Adjust for mobile */
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .nav-item {
        margin: 5px 0;
    }

    .logo-left-container,
    .logo-right-container {
        display: none;
    }

    .contact-info {
        text-align: center;
        margin-top: 10px;
    }

    .puzzle-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .puzzle-piece {
        border-radius: 20px;
        width: 100%;
        min-height: 120px;
    }

    .puzzle-piece::before,
    .puzzle-piece::after {
        display: none;
    }

    .piece-1,
    .piece-2,
    .piece-3,
    .piece-4,
    .piece-5 {
        border-radius: 20px;
    }

    .header-area.collapsed {
        padding: 0;
    }

    .donation-link {
        top: 5px;
        right: 15px;
        padding: 6px 15px;
        font-size: 14px;
    }
}