@import url("https://use.typekit.net/zjo0ccn.css");
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Libre+Franklin:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Oswald:wght@200..700&display=swap');



/* ==========================================================================
   1. CSS Variables & Imports
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #FF3030;
    --color-text-dark: #222222;
    --color-text-light: rgb(128 128 128);
    --color-background: #FFFFFF;
    
    /* Typography */
    --font-heading: "Oswald", sans-serif;
    --font-body: "Libre Franklin", sans-serif;
    --font-accent: "EB Garamond", serif;
    --font-secondary: "Open Sans", sans-serif;
}


/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;
}

/* Base Elements */
img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* filter: contrast(1.05) brightness(0.9) sepia(0.2) opacity(0.95); */
}

main img{
    display: block;
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.05) brightness(0.9) sepia(0.2) opacity(0.95);
}
video {
    display: block;
    max-width: 100%;
}

ul,
ol {
    list-style: none;
    padding-left: 0;
}

a {
    text-decoration: none;
    color: inherit;
    background: none;
    text-underline-position: under;
    text-decoration-thickness: 0.1em;
}

button,
input[type="submit"],
input[type="button"] {
    cursor: pointer;
}

/* ==========================================================================
   3. Layout & Components (Following HTML Structure)
   ========================================================================== */
/* 3.1 Header */
.header {
    padding: 4rem 1.6rem 4.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
    background-color: var(--color-background);
}

/* Logo & Contact Section */
.logo-contact-info {
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
}

.logo {
    height: 4.8rem;
    margin-top: 0.05rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#title {
    font-family: var(--font-accent);
    font-weight: 800;
    color: var(--color-primary);
    font-size: 2.5rem;
    line-height: 2.6rem;
    width: 20rem;
}

#contact-number {
    font-family: var(--font-secondary);
    font-weight: normal;
    font-size: 1.2rem;
    color: var(--color-text-light);
    align-self: center;
}

/* Navigation */
header > nav {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

header > nav > ul {
    display: flex;
    align-items: stretch;
    text-align: center;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

header > nav > ul > li {
    flex: 1 1 auto;
    display: flex;
}

header > nav > ul > li > a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--color-text-light);
    padding: 1.6rem 1rem;
    width: 100%;
    transition: color 0.3s ease;
    white-space: nowrap;
}

header > nav > ul > li > a:hover {
    color: var(--color-text-dark);
}

/* ==========================================================================
   4. Main Content
   ========================================================================== */

/* 4.1 Section Headings */
#charity-story > h2,
#stories-of-hope > h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 6rem;
    line-height: 6.1rem;
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    padding: 0 1rem;
}

/* Remove or comment out the duplicate #charity-story h2 styles */
/* #charity-story h2 { ... } */

/* Update media queries */
@media (min-width: 768px) {
    #charity-story > h2,
    #stories-of-hope > h2 {
        margin-top: 1.5rem;
        padding: 0 2rem;
    }
}

@media (max-width: 600px) {
    #charity-story > h2,
    #stories-of-hope > h2 {
        font-weight: 500;
        font-size: 5rem;
        line-height: 4.7rem;
    }
}

/* Story Component Styles */
.story {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
    max-width: 1440px;
    margin-inline: auto;
}

.story-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.story h3 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-bottom: 0;
}

.story p {
    font-family: var(--font-accent);
    font-size: 1.6rem;
    line-height: 2.7rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

.story a {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    margin-top: auto;
}

.story a:hover {
    color: var(--color-text-dark);
}

/* Responsive styles */
@media (min-width: 768px) {
    .story {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 4rem;
        padding: 3rem;
        margin-bottom: 6rem;
        align-items: start;
    }

    .story-image {
        height: 100%;
    }

    .story h3 {
        font-size: 3rem;
    }

    .story p {
        font-size: 1.8rem;
        line-height: 2.7rem;
        width: 50%;
    }
}

/* ==========================================================================
   5. Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    header > nav > ul {
        flex: 1 1 0;
    }
    .story p {
        font-size: 1.8rem;
        line-height: 2.5rem;
    }
}

@media (max-width: 600px) {
    #charity-story > h2,
    #stories-of-hope > h2 {
        font-weight: 500;
        font-size: 5rem;
        line-height: 4.7rem;
    }

    header > nav > ul > li > a {
        font-size: 1.3rem;
        line-height: 1.6;
        padding: 1.5rem 0;
    }
}

@media (max-width: 450px) {
    header > nav {
        padding: 0 1rem;
    }

    header > nav > ul {
        row-gap: 0.8rem;
    }

    header > nav > ul > li {
        flex: 0 1 30%;
    }

    header > nav > ul > li:nth-last-child(-n+2) {
        flex: 0 1 45%;
    }

    header > nav > ul > li > a {
        padding: 1.2rem 0.5rem;
        font-size: 1.4rem;
    }
}
