/* ==========================================================================
   RESET AND BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #175E54;
}

/* Fix for sticky header covering anchor links */
html {
    scroll-padding-top: 55px; /* Accounts for sticky header height */
}

/* Additional specific offset for donate section */
#donate {
    scroll-margin-top: 55px;
}

/* ==========================================================================
   TYPOGRAPHY - FONT DEFINITIONS
   ========================================================================== */

/* Font Utility Classes */
.font-serifa {
    font-family: 'Serifa', 'Times New Roman', serif;
    font-weight: 400;
    color: #00675B;
}

.font-serifa-light {
    font-family: 'Serifa', 'Times New Roman', serif;
    font-weight: 300;
}

.font-serifa-bold {
    font-family: 'Serifa', 'Times New Roman', serif;
    font-weight: 700;
    color: #00675B;
}

.font-serifa-extra-bold {
    font-family: 'Serifa', 'Times New Roman', serif;
    font-weight: 900;
}

.font-scandia {
    font-family: 'Scandia', 'Arial', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}


/* Link States for Font Classes */
a.font-serifa,
a.font-serifa-bold {
    text-decoration: underline;
}

a.font-serifa:hover,
a.font-serifa-bold:hover {
    color: #22BC70;
    transform: translateY(-1px);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
    max-width: 768px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ==========================================================================
   VERSION WIDGET
   ========================================================================== */

.version-widget {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 9999;
}

.widget-tab {
    background: #333;
    color: white;
    padding: 0px 5px 0 1px;
    cursor: pointer;
    border-radius: 0 8px 0 0;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 2px -2px 10px rgba(0,0,0,0.3);
    user-select: none;
    transition: background 0.3s ease;
}

.widget-tab:hover {
    background: #555;
}

.widget-menu {
    position: absolute;
    left: 0;
    bottom: 100%;
    background: #333;
    min-width: 150px;
    border-radius: 8px 8px 0 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.version-widget:hover .widget-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.widget-menu a {
    display: block;
    padding: 10px 15px;
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #555;
}

.widget-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.widget-menu a:last-child {
    border-bottom: none;
}

.widget-menu a:hover {
    background: #555;
    color: white;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
    background: white;
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1298px;
    margin: 0 auto;
    padding: 0 66px;
}

.logo svg {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 500;
    gap: 22px;
}

.nav-links a {
    color: #00675B;
    text-decoration: none;
    padding: 4px 10px;
    transition: color 0.3s ease;
}

.nav-links a:not(.donate-btn):hover {
    color: #22BC70;
    transform: translateY(-1px);
}

.donate-btn {
    background: #00675B !important;
    color: white !important;
    padding: 14px 32px !important;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 103, 91, 0.2);
}

.donate-btn:hover {
    background: #22BC70 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(34, 188, 112, 0.3);
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .donate-btn {
        padding: 10px 20px !important;
        font-size: 15px;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    color: white;
    padding: 8rem 0 4rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #2d7d6f;
}

/* Background Carousel */
.hero-bg-carousel {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    z-index: 1;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-bg-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Gradient Overlay */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #2d7d6f 0%, #2d7d6f 30%, rgba(45, 125, 111, 0.8) 50%, rgba(45, 125, 111, 0.4) 70%, transparent 100%);
    z-index: 2;
}

/* Pagination Bullets - separated from carousel container */
.hero-pagination {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 100 !important; /* Very high z-index to ensure visibility */
    width: auto !important;
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #93D500 !important;
    transform: scale(1.2) !important;
    box-shadow: 0 0 10px rgba(147, 213, 0, 0.5) !important;
    border: 2px solid #93D500 !important;
}

.hero-pagination .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
    border: 2px solid rgba(255, 255, 255, 1) !important;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    max-width: 535px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1em;
    color: #ffffff;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 500px;
}

.hero-image {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 125, 111, 0.3) 0%, rgba(74, 157, 142, 0.2) 50%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero {
        height: 400px;
        padding: 40px 0;
    }
    
    .hero-bg-carousel {
        width: 100%;
        left: 0;
    }
    
    .hero-gradient-overlay {
        background: linear-gradient(270deg, rgba(0, 103, 91, 0) 0%, #00675B 100%), 
                    linear-gradient(0deg, rgba(0, 103, 91, 0.47), rgba(0, 103, 91, 0.47));
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 32px;
        line-height: 36px;
        margin-bottom: 24px;
    }
    
    .hero-content p {
        font-size: 18px;
        line-height: 24px;
    }
    
    /* Mobile pagination bullets */
    .hero-swiper .swiper-pagination {
        bottom: 20px;
    }
    
    .hero-swiper .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* ==========================================================================
   PARTNERS SECTION
   ========================================================================== */

.partners {
    background: white;
    padding: 66px 0 125px;
}

.partners-container {
    text-align: center;
}

.partners-container a {
    text-decoration: underline;
    color: #175E54;
}

.partners-container a:hover,
.partners-container a:visited {
    color: #175E54;
}

.partners h2 {
    font-size: 33px;
    line-height: 1.2em;
    color: #175E54;
    margin-bottom: 40px;
    font-weight: 800!important;
}

.partners-subtitle {
    font-size: 20px;
    line-height: 27.5px;
    color: #175E54;
    max-width: 768px;
    margin: 0 auto 66px;
}

.community-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 40px;
    margin: 0 0 66px 150px;    
    max-width: 600px;
    list-style: none;
    padding: 0;
} 

.community-list-item {
    display: flex;
    align-items: flex-start;
    color: #175E54;
    font-family: 'Scandia', 'Arial', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.5;
    padding-left: 24px;
    position: relative;
    padding-top: 4px;
} 


.community-list-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00BC70;
    font-size: 20px;
    font-weight: bold;
}

.community-icon {
    font-size: 32px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.community-icon.indigenous-icon {
    font-size: initial;
}

.community-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.community-icon.indigenous-icon img {
    filter: none;
    width: 100px;
    height: 100px;
    /* Remove filters for Indigenous icon since it should display in its original colors */
}

.community-icon.girls-icon {
    font-size: initial;
}

.community-icon.girls-icon img {
    filter: none;
    width: 100px;
    height: 100px;
    /* Remove filters for Girls icon since it should display in its original colors */
}

.community-icon.lgbtqia-icon {
    font-size: initial;
}

.community-icon.lgbtqia-icon img {
    filter: none;
    width: 100px;
    height: 100px;
    /* Remove filters for 2SLGBTQIA+ icon since it should display in its original colors */
}

.community-icon.racialized-icon {
    font-size: initial;
}

.community-icon.racialized-icon img {
    filter: none;
    width: 100px;
    height: 100px;
    /* Remove filters for Racialized icon since it should display in its original colors */
}

.community-icon.disabilities-icon {
    font-size: initial;
}

.community-icon.disabilities-icon img {
    filter: none;
    width: 100px;
    height: 100px;
    /* Remove filters for Disabilities icon since it should display in its original colors */
}

.community-icon.newcomers-icon {
    font-size: initial;
}

.community-icon.newcomers-icon img {
    filter: none;
    width: 100px;
    height: 100px;
    /* Remove filters for Newcomers icon since it should display in its original colors */
}

.community-icon.lowincome-icon {
    font-size: initial;
}

.community-icon.lowincome-icon img {
    filter: none;
    width: 100px;
    height: 100px;
    /* Remove filters for Low-income icon since it should display in its original colors */
}

.community-text {
    font-family: 'Serifa', 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 0 auto 33px;
}

.partners-grid-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 572px;
    margin: 0 auto;
}

.partner-logo {
    background: white;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 190px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.partner-logo div {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.partner-logo h3 {
    font-size: 19px;
    line-height: 22px;
    color: #00675B;
    text-align: center;
}

@media (max-width: 968px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .partners {
        padding: 40px 0 60px;
    }
    
    .partners h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .partners-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .community-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 24px;        
        max-width: 100%;
        padding: 0 20px;
    }
    
    .community-list-item {
        font-size: 16px;
        padding-left: 24px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .partners-grid-bottom {
        grid-template-columns: 1fr;
        max-width: 728px;
    }
}

@media (max-width: 425px) {
    .community-list {
        grid-template-columns: 1fr;
        margin: 0 auto 66px;
        gap: 12px;        
        max-width: 100%;
        padding: 0 20px;
        justify-items: center;
    }
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats {
    background: #175E54;
    padding: 66px 0 102px;
}

.stats-container {
    text-align: center;
}

.stats h2 {
    font-size: 33px;
    font-weight: 700;
    line-height: 1.2em;
    color: #ffffff;
    margin-bottom: 102px;
    max-width: 770px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    align-self: start;
}

.stat-number,
.stat-icon {
    font-size: 44px;
    color: #93D500;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-weight: 800;
}

.stat-icon {
    justify-content: center;
}

.stat-icon svg {
    height: 32px;
    width: auto;
}

.stat-text {
    font-size: 20px;
    line-height: 27.5px;
    color: white;
    text-align: center;
    margin: 0;
    font-weight: normal;
}

@media (max-width: 1024px) {
    .stats-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 22px; 
        row-gap: 60px;
    }

    .stats-grid .stat-item {
        flex-basis: calc((100% - 44px) / 3);
        min-width: 280px;
    }

     .canada-helps-transparent-container {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .stats {
        padding: 40px 0 60px;
    }
    
    .stats h2 {
        font-size: 28px;
        margin-bottom: 60px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stat-number, .stat-icon {
        font-size: 36px;
    }
    
    .stat-text {
        font-size: 17px;
    }
}

/* ==========================================================================
   DONATION SECTION
   ========================================================================== */

.canada-helps-form {
    flex: 1;
    max-width: 500px;
}

/* Ensure the embedded form fits well in your layout */
.canada-helps-form iframe {
    width: 100% !important;
    border: none;
}

/* CSS attempts for transparency */
.canada-helps-transparent-container {
    background: transparent;
    padding: 0;
    width: 80%;
    margin: 0 auto;
}

/* Target the iframe when it loads */
.canada-helps-transparent-container iframe {
    background: transparent !important;
    border: none !important;
    border-radius: 12px;
}

/* Try to override any default backgrounds */
#ch_cdn_embed,
#ch_cdn_embed * {
    background: transparent !important;
}

.donation {
    background: #175E54;
    padding: 57px 0 10px;
}

/* Make sure parent containers are transparent too */
.donation-container {
    display: grid;
    grid-template-columns: 1fr 572px;
    gap: 121px;
    align-items: start;
    max-width: 1166px;
    margin: 0 auto;
    background: transparent;
    padding-bottom: 40px;
    min-height: 800px;
}

.donation-info {
    padding-top: 44px;
    display: flex;
    flex-direction: column;
}

/* Donation-specific typography */
.donation-info h2.font-serifa-bold {
    font-family: 'Serifa', 'Times New Roman', serif;
    font-weight: 700;
    font-size: 33px;
    line-height: 1.2em;
    margin-bottom: 20px;
    color: #ffffff;
}

.donation-info p.font-serifa {
    font-family: 'Serifa', 'Times New Roman', serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    color: #ffffff;
}

.donation-info p.font-scandia {
    font-family: 'Scandia', 'Arial', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ffffff;
}

.donation-info a.font-serifa {
    font-family: 'Serifa', 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.6;
    color: #93D500;
    text-decoration: underline;
}

.donation-info a.font-serifa-bold {
    display: inline-block;
    color: #93D500;
}

.donation-info a.font-serifa-bold:hover {
    color: #00BC70;
    transform: translateY(-1px);
}

.donation-info a[href^="mailto:"] {
    color: #00BC70 !important;
    text-decoration: underline;
    display: inline-block;
}

.donation-info a[href^="mailto:"]:hover {
    color: #93D500 !important;
    transform: translateY(-1px);
}

/* Donation Form */
.donation-form {
    background: #F9F9F9;
    padding: 33px 44px 36px;
    border-radius: 22px;
    width: 100%;
    max-width: 572px;
}

.donation-form h3 {
    font-family: 'Scandia', 'Arial', sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 27.6px;
    color: #175E54;
    margin-bottom: 22px;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 22px;
}

.amount-btn {
    font-family: 'Scandia', 'Arial', sans-serif;
    height: 77px;
    background: white;
    border: none;
    border-radius: 5px;
    font-size: 27px;
    font-weight: 700;
    line-height: 22px;
    color: #175E54;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.amount-btn.selected {
    background: #00675B;
    color: white;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 23px;
    font-weight: 700;
    line-height: 27.6px;
    color: #175E54;
    margin-bottom: 11px;
}

.form-group input {
    font-family: 'Scandia', 'Arial', sans-serif;
    width: 100%;
    height: 55px;
    padding: 10px 20px;
    background: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    line-height: 17px;
    color: #175E54;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: #A8A8A8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
}

.checkbox-group input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
}

.checkbox-group label {
    font-family: 'Scandia', 'Arial', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #175E54;
    margin: 0;
}

.submit-btn {
    font-family: 'Serifa', 'Times New Roman', serif;
    width: 100%;
    height: 55px;
    background: #00675B;
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 17px;
    line-height: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #175E54;
    transform: translateY(-2px);
}

/* Donation Responsive Design */
@media (max-width: 1200px) {
    .donation-container {
        grid-template-columns: 1fr;
        gap: 60px;
        max-width: 800px;
    }
    
    .donation-form {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .donation {
        padding: 40px 0px 0px 0px;
    }
    
    .donation-container {
        padding: 0 20px;
        gap: 40px;
    }
    
    .donation-info {
        padding-top: 0;
    }
    
    .donation-info h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .donation-info p {
        font-size: 18px;
    }
    
    .donation-form {
        padding: 24px;
        border-radius: 16px;
    }
    
    .donation-form h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .amount-buttons {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .amount-btn {
        height: 60px;
        font-size: 24px;
        font-weight: 700;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group input {
        height: 50px;
        font-size: 16px;
    }
    
    .submit-btn {
        height: 50px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .donation-container {
        padding: 0 16px;
    }
    
    .donation-form {
        padding: 20px;
    }
    
    .amount-btn {
        height: 50px;
        font-size: 20px;
        font-weight: 700;
    }
}

/* ==========================================================================
   LARGE DONATION SECTION (INTEGRATED INTO DONATION SECTION)
   ========================================================================== */

.large-donation-callout {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    width: 100%;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.large-donation-heading {
    font-family: 'Serifa', 'Times New Roman', serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    color: #175E54 !important;
}

.large-donation-text {
    font-size: 18px !important;
    line-height: 27.5px !important;
    color: #175E54 !important;
    margin: 0 !important;
}

.large-donation-text a {
    color: #00BC70 !important;
    text-decoration: underline !important;
}

.large-donation-text a:hover {
    color: #175E54 !important;
}

@media (max-width: 768px) {
    .large-donation-callout {
        padding: 20px;
        margin-top: 40px;
    }
    
    .large-donation-heading {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }
    
    .large-donation-text {
        font-size: 16px !important;
    }
}

@media (max-width: 425px) {
    .large-donation-callout {
        margin-top: 30px;
        padding: 35px;
    }
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */

.newsletter {
    background: #175E54;
    padding: 57px 0;
}

.newsletter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1166px;
    margin: 0 auto;
    padding: 0 10px;
}

.newsletter-content {
    flex: 1;
    max-width: 500px;
}

.newsletter h3 {
    font-size: 33px;
    font-weight: 700;
    line-height: 33px;
    color: white;
    margin-bottom: 22px;
}

.newsletter p {
    font-size: 19px;
    line-height: 27.5px;
    color: white;
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 22px;
    flex-shrink: 0;
    align-items: center;
}

.newsletter-form input {
    width: 360px;
    height: 55px;
    padding: 13px 18px;
    background: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    line-height: 17px;
    box-sizing: border-box;
}

.newsletter-form input::placeholder {
    color: #A8A8A8;
}

.newsletter-form button {
    width: 176px;
    height: 55px;
    background: #00BC70;
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 17px;
    line-height: 27.3px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.newsletter-form button:hover {
    background: #00a860;
}

@media (max-width: 1200px) {
    .newsletter-container {
        gap: 40px;
        padding: 0 40px;
    }
    
    .newsletter-form input {
        width: 300px;
    }
    
    .newsletter-form button {
        width: 120px;
    }
}

@media (max-width: 968px) {
    .newsletter-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .newsletter-content {
        max-width: none;
    }
    
    .newsletter-form {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .newsletter {
        padding: 40px 0;
    }
    
    .newsletter-container {
        padding: 0 20px;
        gap: 30px;
    }
    
    .newsletter h3 {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .newsletter p {
        font-size: 17px;
        margin-bottom: 24px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .newsletter-container {
        padding: 0 16px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        max-width: none;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: none;
}

.footer-container {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 400px;
}

.footer-main {
    background: #15574E;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.footer-main-content {
    width: 100%;
    max-width: 1166px;
    padding: 0 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-section {
    color: white;
}

.footer-section:first-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-self: flex-end;
    margin-bottom: 35px;
    line-height: 1.3em;
}

.footer-bottom {
    background: #175E54; 
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.footer-bottom-content {
    width: 100%;
    max-width: 1166px;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    color: white;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.social-links {
    display: none;
    gap: 0.25rem;
    width: 175px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-text-link {
    text-decoration: none;
    color: white;
    display: block;
}

.footer-text-link:hover {
    opacity: 0.85;
}

.footer-org-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
    font-family: 'Scandia', 'Arial', sans-serif;
}

.footer-charity-number {
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    font-family: 'Arial', sans-serif;
    opacity: 0.9;
}

.level-logo {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .footer-main-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 0 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-section p.font-scandia {
        text-align: center;
        margin: 0 auto;
    }
    
    .level-logo {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}