* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Google Sans", sans-serif;
}

.navbar {
    background: #ED7043;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

#navbar__logo {
    background-color: white;
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
}

.fa-gem {
    margin-right: 0.5rem;
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar__item {
    height: 80px;
}

.navbar__links {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
    white-space: nowrap;
}

.navbar__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
}


.button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 10px 20px;
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 20px;
    background: #3F6EEF;
    color: white;
}

.button:hover {
    background-color:#0044ff;
    transition: all 0.3s ease-out;
}

.navbar__links:hover {
    color: #3F6EEF;
    transition: all 0.3s ease; 
}


@media screen and (max-width: 960px) {
    .navbar__container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

    .navbar__menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0;
        transition: all 0.5s ease;
        height: 70vh;
        z-index: -1;
        background: #ED7043;
    }

    .navbar__menu.active {
        background: #ED7043;
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 99;
        height: 70vh;
        font-size: 1.6rem;
    }

    /* --- UPDATED SECTION START --- */
    #navbar__logo {
        padding-left: 25px;
        font-size: 1.2rem;       /* Reduces text size for mobile */
        max-width: 70%;          /* Prevents text from reaching the hamburger icon */
        white-space: nowrap;     /* Forces text to stay on one line */
        overflow: hidden;        /* Hides text that overflows the container */
        text-overflow: ellipsis; /* Adds "..." if the name is still too long */
        display: block;          /* Ensures max-width works correctly */
        align-self: center;      /* Vertically centers the logo */
    }
    /* --- UPDATED SECTION END --- */

    .navbar__toggle .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: white;
    }

    .navbar__item {
        width: 100%;
    }

    .navbar__links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
        cursor: pointer; /* Good practice for clickability */
    }

    .navbar__btn {
        padding-bottom: 2rem;
    }

    .button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        height: 80%;
        margin: 0;
    }

    .navbar__toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Main section styles */
.title__container {
    height: 50vh;  
    width: 100%;   
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/hannah-busing-Zyx1bK9mqmA-unsplash.webp");
    background-size: cover;      
    background-position: center; 
    background-repeat: no-repeat;
    display: flex;
    justify-content: center; 
    align-items: center;   
    color: white; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); 
    font-size: 25px;
}

.hook {
    background-color: #ED7043;
    padding: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.hook__title {
    text-align: center;
    font-size: 45px;
}

.hook__explanation {
    font-size: 20px;
    margin: 10px;
}

#statistics__header {
    font-size: 30px;
    text-align: center;
    background-color:#3F6EEF;
    color: white;
    padding: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);

}

#statistics__intro {
    margin: 10px;
    font-size: 20px;
}

#charity__list {
    margin: 10px;
    margin-left: 30px;
    font-size: 20px;
}

#charity__list a {
    text-decoration: none;
    color: #0044ff
}
.your__action {
    font-size: 20px;
}
.action__header {
    font-size: 30px;
    text-align: center;
    background-color:#ED7043;
    color: white;
    padding: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
.steps__list {
    margin: 10px;
    margin-left: 30px;
    font-size: 20px;
}

.steps__list a {
    text-decoration: none;
    color: #0044ff
}

.pledge {
    text-align: center;
}

.moreabout__oftw {
    text-align: center;
}

.join__container {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column; 
    align-items: center;   
    justify-content: center; 
    background-color: #3F6EEF;
    padding: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.join__header {
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.main__btn {
    font-size: 1rem;
    color: black;
    padding: 14px 32px;
    border: none;
    border-radius: 20px;
    background-color: white;
    margin-top: 1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.35s;
    outline: none;
    display: flex;
    align-content: center;
    justify-content: center;
}

.main__btn:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #ED7043;
    transition: all 0.35s;
    border-radius: 20px;
    color: black;
}
.main__btn span {
    position: relative;
    z-index: 2;
}
.main__btn:hover:after {
    width: 100%;
}

.join__header {
    font-size: 30px;
}
.join__container a {
    text-decoration: none;
    position: relative;
    z-index: 2;
    color: black;
    display: flex;
    justify-content: center;
    align-content: center;
}

.pledge__interest {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-content: center;
    justify-content: center;
    font-size: 20px;
    padding: 10px;

}

.more__info__oftw {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-content: center;
    justify-content: center;
    font-size: 20px;
    padding: 10px;
}




/* Footer styles */


/* --- Footer Container --- */
.site-footer {
    background-color: #3F6EEF; 
    color: white;            
    padding: 60px 20px 20px;   /* Top padding for space, bottom for credits */
}

.footer-container {
    display: flex;
    justify-content: space-between; /* Spreads the 3 columns out */
    max-width: 1100px;              /* Keeps content from getting too wide */
    margin: 0 auto;                 /* Centers the container */
    gap: 40px;                      /* Space between columns */
    flex-wrap: wrap;                /* Allows stacking on mobile */
}

/* --- Typography --- */
h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.site-footer h3 {
    font-size: 1.5rem;
    color: #ED7043; 
    margin-bottom: 1.5rem;
}

p.brand-description {
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* --- Links Styling --- */
.footer-nav ul, .social-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-nav li, .social-links li {
    margin-bottom: 12px;
}

.footer-nav a, .social-links a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover, .social-links a:hover {
    color: #ED7043; 
}

.spacer {
    margin-top: 20px;
}

.resource-links {
    margin-top: 20px;
    list-style: none;
}

.resource-links i, .social-links i {
    margin-right: 8px; 
    width: 20px;       
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
}

.signup-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

.signup-form input:focus {
    border-color: white;
}

.btn-subscribe {
    background-color: #ED7043; /* The teal button color */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    width: fit-content;
    transition: background 0.3s;
}

.btn-subscribe:hover {
    background-color: #ff4400; 
}

.footer-bottom {
    margin-top: 60px;
    text-align: left;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom a {
    color: #0e4952;
    text-decoration: underline;
}

.footer-column {
    flex: 1;                        /* Allows columns to grow evenly */
    margin: 0 15px;                 /* Adds a little gap between them */
}


/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Stack columns on phone */
        gap: 40px;
    }
}