/* Color Palette and Base Styles */
:root {
    --primary: #97EFE9;
    /* Ice blue */
    --secondary: #42155c;
    /* Finn - deep purple */
    --accent: #E2ADF2;
    /* Mauve */
    --accent2: #E6B89C;
    /* Desert sand */
    --accent3: #F9DEC9;
    /* Champagne pink */
    --text: #333;
    --light: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--secondary);
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 400;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

a {
    color: var(--secondary);
    /* Fixed: Changed from var(--dark) which was undefined */
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    background: var(--secondary);
    color: var(--light);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: var(--accent);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Improved Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 3px solid var(--primary);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 130px;
    width: auto;
    transition: all 0.3s ease;
}

/* Main navigation wrapper */
.nav-wrapper {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.nav-links li {
    margin: 0 1.2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--secondary);
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--accent);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Donate button container */
.donate-container {
    flex: 0 0 auto;
    margin-left: 1rem;
}

.donate-container a {
    background-color: var(--secondary);
    color: var(--light);
    padding: 0.9rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--secondary);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.donate-container a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

/* Make sure mobile menu is hidden on desktop */
.mobile-menu {
    display: none;
    /* Hide by default on all screen sizes */
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("img/gallery/hero.jpeg") center/cover no-repeat;
    color: var(--light);
    text-align: center;
    padding: 10rem 2rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--light);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Team Section Styles */
.team {
    padding: 5rem 0;
    background-color: var(--accent3);
    position: relative;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    margin: 0 auto 1.5rem;
}

.section-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: fit-content;
    opacity: 0.8;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    /* Added to center the subtitle */
}

/* Interactive About Section Styles */
.about-section {
    padding: 6rem 0;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--accent), var(--accent2), var(--accent3));
}

.section-title {
    color: var(--secondary);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Playfair Display', serif;

}

.section-intro {
    text-align: center;
    font-size: 1.3rem;
    color: var(--secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.8;
}

/* Tabs Navigation */
.about-tabs {
    max-width: 1100px;
    margin: 2rem auto 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    background-color: var(--accent3);
    padding: 0.5rem;
    position: relative;
    z-index: 1;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
    /* Simpler transition */
    font-family: 'Montserrat', sans-serif;
    outline: none;
    border-radius: 30px;
    will-change: transform, background-color;
    /* Performance hint */
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
    border-radius: 30px;
}

.tab-btn:hover,
.tab-btn:focus {
    background-color: rgba(226, 173, 242, 0.4);
    /* Lighter version of accent color */
    color: var(--secondary);
}

.tab-btn:hover::before,
.tab-btn:focus::before {
    transform: translateY(0);
}

.tab-btn.active {
    background-color: var(--accent);
    color: var(--secondary);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Impact Page Styles */
.impact-section {
    padding: 6rem 0;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--accent), var(--accent2), var(--accent3));
}

/* Year display */
.impact-period {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.impact-year {
    display: inline-block;
    position: relative;
    padding: 1.5rem 3rem;
    background: linear-gradient(45deg, var(--accent3), var(--primary));
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
}

.impact-year::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    border-radius: 15px;
    opacity: 0.3;
    z-index: -1;
    transform: rotate(4deg);
}

.year-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.year-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}


/* Tab Content */
.tab-content-wrapper {
    background-color: white;
    position: relative;
    min-height: 400px;
}

.tab-content {
    display: none;
    padding: 3rem;
    opacity: 1;
}

.tab-content.active {
    display: block;
}

.tab-content-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text h2 {
    color: var(--secondary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-family: 'Playfair Display', serif;
}

.content-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.highlight {
    color: var(--secondary);
    font-weight: 600;
    border-bottom: 2px dotted var(--accent);
    padding-bottom: 2px;
}

.content-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.rounded-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.content-image:hover .rounded-image {
    transform: scale(1.05);
}

/* Year display */
.impact-period {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.impact-year {
    display: inline-block;
    position: relative;
    padding: 1.5rem 3rem;
    background: linear-gradient(45deg, var(--accent3), var(--primary));
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
}

.impact-year::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    border-radius: 15px;
    opacity: 0.3;
    z-index: -1;
    transform: rotate(4deg);
}

.year-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.year-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

/* Impact Dashboard */
.impact-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.impact-stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 173, 242, 0.2);
}

.impact-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.impact-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.stat-icon {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    opacity: 0.8;
}

.stat-content {
    flex-grow: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
    position: absolute;
    top: 0;
    right: -1.2rem;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.stat-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.8;
}

.stat-visual {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    opacity: 0.1;
}

.pulse-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--accent);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
}

/* Impact Story */
.impact-story {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.impact-story h2 {
    color: var(--secondary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.impact-story p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.testimonial {
    background: linear-gradient(45deg, rgba(151, 239, 233, 0.1), rgba(226, 173, 242, 0.1));
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
    position: relative;
}

.quote-mark {
    position: absolute;
    top: -30px;
    left: 30px;
    font-size: 6rem;
    font-family: 'Georgia', serif;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
}

blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--secondary);
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
}

.cta-button {
    margin-top: 3rem;
}

.cta-button .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Visual elements */
.impact-visual-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background-color: var(--primary);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background-color: var(--accent);
    bottom: -50px;
    left: -50px;
}

/* Animation for counting */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Guatemala Section Styles */
.guatemala-section {
    padding: 6rem 0;
    background-color: var(--accent3);
    position: relative;
    overflow: hidden;
}

.guatemala-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--accent), var(--accent2), var(--accent3));
}

.guatemala-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    margin-bottom: 4rem;
}

.guatemala-text {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.guatemala-story h2 {
    color: var(--secondary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
}

.guatemala-story h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.guatemala-story h3 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.guatemala-story p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.guatemala-gallery {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guatemala-gallery h3 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.guatemala-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    flex: 1;
    align-content: start;
}

.guatemala-image-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.guatemala-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.guatemala-image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(66, 21, 92, 0.9), transparent);
    color: white;
    padding: 1.5rem 1rem 1rem 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 15px 15px;
}

.guatemala-image-card:hover .image-caption {
    transform: translateY(0);
}

.image-credit {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(66, 21, 92, 0.1);
}

.image-credit p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* Image expansion modal styles */
.guatemala-image-card {
    cursor: pointer;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.image-modal-close:hover {
    opacity: 0.7;
}

.image-modal-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.4;
}

.guatemala-cta {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.guatemala-cta h2 {
    color: var(--secondary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.guatemala-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Guatemala Visual elements */
.guatemala-visual-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.guatemala-visual-element.circle-1 {
    width: 350px;
    height: 350px;
    background-color: var(--accent);
    top: -100px;
    left: -100px;
}

.guatemala-visual-element.circle-2 {
    width: 250px;
    height: 250px;
    background-color: var(--primary);
    bottom: -50px;
    right: -50px;
}

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Icon Features */
.icon-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.icon-feature {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.icon-feature:hover {
    transform: translateY(-5px);
    background-color: var(--primary);
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent3);
    color: var(--secondary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.icon-feature:hover .icon {
    background-color: white;
    color: var(--accent);
}

.icon-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.icon-feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text);
}

/* Stats Cards */
.vision-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.stat-card {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    margin: 0 0.5rem;
    will-change: transform;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: var(--primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

/* Timeline */
.timeline {
    margin-top: 2rem;
    position: relative;
}


.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: var(--accent);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid var(--accent);
    top: 5px;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background-color: var(--secondary);
    transform: scale(1.2);
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Animation Classes */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Team Cards */
.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.team-card {
    background-color: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 300px;
    position: relative;
    overflow: hidden;
}

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

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-role {
    background-color: var(--accent);
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}

.member-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.member-bio {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.member-bio.expanded {
    max-height: none;
}

.bio-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.member-bio.expanded .bio-fade {
    opacity: 0;
}

.read-more-btn {
    align-self: flex-start;
    background-color: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

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

/* Team Grid - Volunteers */
.volunteer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Modal for full bio */
.bio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background-color: var(--light);
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1rem;
}

.modal-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    border: 3px solid var(--accent);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-title h3 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.modal-role {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-bio {
    font-size: 1rem;
    line-height: 1.7;
}

.modal-bio p {
    margin-bottom: 1rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--secondary);
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

/* Funding Section */
.funding {
    padding: 5rem 0;
    background-color: var(--light);
    position: relative;
}

.funding::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35%;
    height: 35%;
    background-color: var(--primary);
    opacity: 0.3;
    z-index: 0;
    clip-path: circle(40% at 100% 100%);
}

.funding-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.funding-card {
    background-color: var(--light);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.funding-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.funding-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.funding-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Partners Section */
.partners {
    padding: 5rem 0;
    background-color: var(--primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.partners::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: var(--accent);
    opacity: 0.2;
    border-radius: 50%;
}

.partners::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    background-color: var(--secondary);
    opacity: 0.15;
    border-radius: 50%;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: stretch;
}

.partner {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 220px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--text);
}

.partner::before {
    content: none;
}

.partner:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);}

.partner:hover::before {
    bottom: 0;
}

.partner:hover img {
    transform: none;
}

.partner:hover .partner-info {
    opacity: 1;
    transform: none;
}

.partner-info {
    text-align: center;
    padding-top: 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.partner-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.partner-info p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 0;
}

.partner img {
    max-width: 80%;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 1rem;

}

/* Gallery Slideshow Styles */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--light);
    position: relative;
}

.gallery-section h1 {
    color: var(--secondary);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.gallery-description {
    color: var(--secondary);
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 3rem;
    opacity: 0.8;
    margin-left: auto;
    margin-right: auto;
    /* Added to center the description */
}

/* Slideshow container */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Hide slides by default */
.slide {
    display: none;
    height: 500px;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Caption text */
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(66, 21, 92, 0.8);
    color: white;
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.slide:hover .caption {
    opacity: 1;
    transform: translateY(0);
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    /* Fixed: Adjusted to center based on height */
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    user-select: none;
    background-color: rgba(66, 21, 92, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover,
.next:hover {
    background-color: var(--accent);
}

/* Thumbnail navigation */
.thumbnail-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--accent);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Fading animation for slides */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Main donation section container styles */
.donate {
    padding: 6rem 0;
    background: linear-gradient(rgba(66, 21, 92, 0.9), rgba(66, 21, 92, 0.9)), url("img/hero-background.jpg") center/cover no-repeat;
    color: var(--light);
    text-align: center;
    position: relative;
}

.donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--primary), var(--accent), var(--accent2), var(--accent3));
}

.donate h2 {
    color: var(--light);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.donate p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.donate-options {
    max-width: 600px;
    margin: 2rem auto;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 3rem;
    border-radius: 20px;
    color: var(--text);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.donate-options::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-color: var(--primary);
    opacity: 0.2;
    border-radius: 50% 0 0 0;
    z-index: 0;
}

.donate-options h3 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

/* Add new styles for the simplified donation contact approach */
.donation-contact {
    position: relative;
    z-index: 1;
    text-align: center;
}

.donation-icon {
    margin: 0 auto 1.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(151, 239, 233, 0.2);
    border-radius: 50%;
    color: var(--secondary);
}

.donation-email {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 1rem 0 1.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background-color: rgba(226, 173, 242, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.donation-email:hover {
    background-color: var(--accent);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.donation-message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.impact-highlight {
    background-color: rgba(151, 239, 233, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.impact-highlight h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.donation-impacts p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.donation-impacts p strong {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 600;
}

.donation-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Keep success message styles in case you need them elsewhere */
.donation-success {
    color: var(--secondary);
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.donation-success h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.donation-success p {
    color: var(--text);
    font-size: 1.1rem;
}
/* Updated Contact Section Styles */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background-color: var(--light);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-methods {
    margin: 2.5rem 0;
}

.contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(226, 173, 242, 0.2);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--secondary);
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details a {
    font-size: 1.1rem;
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 2px dashed var(--accent);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent);
    border-bottom-style: solid;
}

.social-heading {
    margin: 2rem 0 1rem;
    font-size: 1.2rem;
    color: var(--secondary);
}

.social-media {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(66, 21, 92, 0.2);
}

.social-icon:hover {
    background-color: var(--accent);
    color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}


/* Social Media */
.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
    /* Fixed: Changed from var(--light) */
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
    /* Fixed: Changed rgba values */
}

.social-icon:hover {
    background-color: var(--accent);
    color: var(--secondary);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--light);
    padding: 4rem 0 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--accent), var(--accent2), var(--accent3));
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Alert success message for contact form */
.alert-success {
    background-color: rgba(151, 239, 233, 0.2);
    color: var(--secondary);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
    animation: fadeIn 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 992px) {
    .logo img {
        height: 110px;
    }

    .nav-links li {
        margin: 0 0.8rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    h1 {
        font-size: 3.8rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.8rem;
    }
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .partner {
        min-height: 200px;
    }

    .team-cards {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .role-title {
        font-size: 1.6rem;
    }

    .slide {
        height: 400px;
    }

    .lightbox-prev {
        left: -60px;
    }

    .lightbox-next {
        right: -60px;
    }

    .icon-features {
        grid-template-columns: 1fr 1fr;
    }

    .vision-stats {
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 0 0 45%;
        margin-bottom: 1rem;
    }

    .impact-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .testimonial {
        padding: 2rem;
    }

    /* Guatemala responsive styles for 992px */
    .guatemala-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .guatemala-images {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        justify-content: space-between;
    }

    .logo img {
        height: 90px;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--light);
        flex-direction: column;
        transition: all 0.5s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-wrapper.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .donate-container {
        margin-top: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: 1;
        margin-bottom: 2rem;
    }

    .about-text {
        order: 2;
    }
  .hero h1 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .tab-content-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-image {
        order: -1;
        margin-bottom: 1rem;
    }

    .tab-navigation {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .tab-content {
        padding: 2rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .section-intro {
        font-size: 1.1rem;
    }

    .content-text h2 {
        font-size: 2rem;
    }

    .rounded-image {
        height: 300px;
    }

    .team-cards,
    .volunteer-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .role-title {
        font-size: 1.4rem;
    }

    .member-name {
        font-size: 1.3rem;
    }

    .team-member {
        margin-bottom: 2rem;
    }

    .funding-card,
    .gallery-item {
        margin-bottom: 1.5rem;
    }
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .partner {
        min-height: 180px;
    }

    .partner-info p {
        font-size: 0.8rem;
    }

    .donate-options {
        padding: 2rem;
    }

    .slide {
        height: 350px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .prev,
    .next {
        padding: 10px;
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-content {
        padding: 1.5rem;
    }
    
    .contact-email {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .mobile-menu {
        display: block;
        /* Show only on mobile/tablet */
        cursor: pointer;
        z-index: 1001;
    }

    .impact-dashboard {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .year-number {
        font-size: 2.5rem;
    }

    .impact-story h2 {
        font-size: 2rem;
    }

    .blockquote {
        font-size: 1.1rem;
    }

    .mobile-menu {
        display: block;
        /* Display on mobile */
    }

    /* Guatemala responsive styles for 768px */
    .guatemala-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .guatemala-text,
    .guatemala-gallery,
    .guatemala-cta {
        padding: 2rem;
    }

    .guatemala-images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .guatemala-story h2 {
        font-size: 2rem;
    }

    .guatemala-story h3 {
        font-size: 1.6rem;
    }

}

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

    .hero {
        padding: 7rem 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .about-section,
    .team,
    .funding,
    .gallery-section,
    .contact {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .card-image {
        height: 250px;
    }

    .card-content {
        padding: 1rem;
    }

    .member-role {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    .modal-content {
        padding: 1rem;
    }
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .partner {
        min-height: auto;
        padding: 1.2rem;
    }
    .slide {
        height: 300px;
    }

    .caption {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .thumbnail-container {
        gap: 0.5rem;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .prev,
    .next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-intro {
        font-size: 1.1rem;
    }

    .impact-year {
        padding: 1rem 2rem;
    }

    .year-label {
        font-size: 1rem;
    }

    .year-number {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1.1rem;
    }

    .testimonial {
        padding: 1.5rem;
    }

    .quote-mark {
        font-size: 4rem;
        top: -20px;
        left: 15px;
    }


    /* Added fix for icon features on smallest screens */
    .icon-features {
        grid-template-columns: 1fr;
    }

    /* Guatemala responsive styles for 480px */
    .guatemala-text,
    .guatemala-gallery,
    .guatemala-cta {
        padding: 1.5rem;
    }

    .guatemala-story h2 {
        font-size: 1.8rem;
    }

    .guatemala-story h3 {
        font-size: 1.4rem;
    }

    .guatemala-story p {
        font-size: 1rem;
    }

    .guatemala-cta h2 {
        font-size: 1.8rem;
    }

    .guatemala-cta p {
        font-size: 1.1rem;
    }
}