/* Mobile First Breakpoints */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .hero__container {
        grid-template-columns: 1fr 1fr;
    }
    
    .about__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .nav__toggle {
        display: none;
    }
    
    .nav__list {
        display: flex !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: var(--container-width);
    }
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .nav__list {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        padding: var(--space-md);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        align-items: center;
    }
    
    .nav__list.active {
        display: flex;
    }
    
    .nav__toggle {
        display: block;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.5rem;
        --font-size-xl: 1.25rem;
    }
}

/* Responsive Spacing */
/* Responsive Spacing */
@media (max-width: 768px) {
    :root {
        --space-xl: calc(var(--space-unit) * 6);
        --space-lg: calc(var(--space-unit) * 4);
        --space-md: calc(var(--space-unit) * 2);
    }
    
    section {
        padding: var(--space-lg) 0;
    }
    
    .gallery__grid {
        grid-template-columns: 1fr;
    }
    
    .achievements__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .contact__form,
    .gallery,
    .hero__scroll {
        display: none;
    }
    
    body {
        color: black;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        background: none;
        color: black;
    }
}
/* Responsive Layout Improvements */
:root {
    --grid-columns-desktop: repeat(3, 1fr);
    --grid-columns-tablet: repeat(2, 1fr);
    --grid-columns-mobile: 1fr;
    --grid-gap: 2rem;
    --section-padding: 6rem;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Grid Layouts */
.achievements__grid,
.gallery__grid,
.initiatives__grid {
    display: grid;
    gap: var(--grid-gap);
    padding: 2rem 0;
}

/* Desktop (default) */
@media screen and (min-width: 1200px) {
    .achievements__grid,
    .gallery__grid {
        grid-template-columns: var(--grid-columns-desktop);
    }

    .initiatives__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media screen and (max-width: 1199px) and (min-width: 768px) {
    .achievements__grid,
    .gallery__grid {
        grid-template-columns: var(--grid-columns-tablet);
    }

    .initiatives__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section__title {
        font-size: 2.25rem;
    }
}

/* Mobile */
@media screen and (max-width: 767px) {
    :root {
        --section-padding: 4rem;
        --grid-gap: 1.5rem;
    }

    .achievements__grid,
    .gallery__grid,
    .initiatives__grid {
        grid-template-columns: var(--grid-columns-mobile);
    }

    .container {
        padding: 0 1rem;
    }

    .section__title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Card Responsiveness */
.achievement__card,
.gallery__item,
.initiative__card {
    width: 100%;
    height: 100%;
}

/* Achievement Cards */
.achievement__card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.achievement__content {
    flex: 1;
}

/* Gallery Items */
.gallery__item {
    aspect-ratio: 16/9;
    position: relative;
    width: 100%;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Initiative Cards */
.initiative__card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.initiative__card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.initiative__content {
    flex: 1;
    padding: 2rem;
}

/* Section Spacing */
.achievements,
.gallery,
.initiatives {
    padding: var(--section-padding) 0;
}

/* Header Datetime Responsive */
.header__info {
    display: flex;
    align-items: center;
}

.header__datetime {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

@media screen and (max-width: 1024px) {
    .header__datetime {
        display: none;
    }
}

/* Navigation Responsive */
@media screen and (max-width: 991px) {
    .nav__list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-surface);
        padding: 1rem 0;
        flex-direction: column;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav__list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
    }
}

/* Hero Section Responsive */
@media screen and (max-width: 991px) {
    .hero__container {
        flex-direction: column;
        text-align: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__image {
        margin-top: 2rem;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Ensure images maintain aspect ratio */
img {
    max-width: 100%;
    height: auto;
}

/* Add spacing between stacked elements */
.achievement__card > *:not(:last-child),
.initiative__card > *:not(:last-child) {
    margin-bottom: 1rem;
}

/* Improve card spacing on mobile */
@media screen and (max-width: 767px) {
    .achievement__card,
    .initiative__card {
        margin-bottom: var(--grid-gap);
    }

    .gallery__item {
        margin-bottom: var(--grid-gap);
    }
}