:root {
    --navy: #09194D;
    --orange: #FC8A00;
    --green: #31CC31;
    --white: #FFFFFF;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--navy);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.page-hero {
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem 4rem;
    position: relative;
    height: 15rem;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9,25,77,0.5);
}

.page-hero h1, .page-hero p {
    position: relative;
    z-index: 1;
}

#resources {
    padding: 5rem 2rem 2rem;
    min-height: 100vh;
    background:  var(--white);
}

#resources h1 {
    text-align: center;
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    margin: 0 auto;
    
}

.grid h4 {
    margin-top: 3rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--green);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card iframe {
    width: 100%;
    height: 200px;
}

.social-previews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.social-previews iframe, .social-previews blockquote {
    width: 100%;
    min-height: 200px;
}

.card video {
    width: 100%;
}

@keyframes ripple {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 200%; height: 200%; opacity: 0; }
}


.cta-button {
    background-color: var(--orange);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.cta-button:hover {
    background-color: var(--green);
}

.resource-media-gallery {
    padding: 3rem 0;
    text-align: center;
}

.resources-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.resources-gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.resources-gallery-grid img:hover {
    transform: scale(1.2);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-list {
    list-style: none;
    padding: 0;
}

.modal-list li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.stories-list li {
    flex-direction: column;
    align-items: flex-start;
}

.stories-list img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.download-btn {
    background-color: var(--green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.download-btn:hover {
    background-color: var(--orange);
}


@media (max-width: 768px) {
    #resources h1 {
        font-size: 2rem;
    }

    #resources {
        padding: 2.8rem 0;
    }
    .page-hero {
        height: 10rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        
    }

    .grid p, .grid li {
        font-size: 0.9rem;
    }

    .resources-gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.5rem;

    }

    .resources-gallery-grid img {
        width: 5rem;
        margin: 0.2rem;
        border-radius: 5px;
    }

    .social-previews {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
    }

    .modal p {
        font-size: 0.9rem;
    }
}