:root {
    --bg-main: #F8FAF8;
    --color-primary: #1A3C2A;
    --color-primary-light: #2D5940;
    --color-secondary: #8A9A86;
    --color-accent: #D9AC4F;
    --color-coral: #E07856;
    --color-sky: #4A7FA5;
    --color-berry: #B25D7E;
    --color-terracotta: #C1693C;
    --color-plum: #6E5C94;
    --color-text: #2C302E;
    --color-text-light: #68706A;
    --color-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(26, 60, 42, 0.1);
    --shadow-soft: 0 10px 30px -10px rgba(26, 60, 42, 0.08);
    --shadow-hover: 0 20px 40px -15px rgba(26, 60, 42, 0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-main);
    color: var(--color-text);
    overflow-x: hidden;
    position: relative;
    display: flex;           
    flex-direction: column;  
}

main { 
    max-width: 1200px;
    width: 100%;
    margin: 40px auto 0;  
    padding: 0 20px;
    flex: 1; 
}

/* main.page-content { flex: 1 0 auto; padding-top: 100px; } */
/* main.page-content {
    flex: 1 0 auto;
    padding-top: 100px; 
    padding-bottom: 80px; /* Adds invisible space below your book cards */
/* }  */

main.page-content {
    max-width: 95%; /* This tells the browser to use 95% of the screen width */
    margin: 0 auto;
}

html, body { margin: 0; padding: 0; min-height: 100%; }
/* body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--color-text);
    overflow-x: hidden;
    position: relative;
} */

.hidden { display: none !important; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.page-content { animation: fadeInUp 0.4s ease forwards; }

.ambient-glow {
    position: fixed;
    width: 520px; height: 520px;
    border-radius: 50%;
    filter: blur(110px);
    z-index: -1;
    opacity: 0.28;
    pointer-events: none;
}
.blob-1 { top: -120px; left: -120px; background: var(--color-sky); }
.blob-2 { bottom: -120px; right: -120px; background: var(--color-accent); }
.blob-3 {
    position: fixed;
    width: 420px; height: 420px;
    top: 40%; right: -160px;
    background: var(--color-coral);
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.18;
    z-index: -1;
    pointer-events: none;
}

.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 60, 42, 0.3);
    transition: var(--transition-smooth);
}
.btn-primary-glow:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 60, 42, 0.4);
}
.btn-secondary-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}
.btn-secondary-glass:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}

.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--color-primary);
}
.section-header p { color: var(--color-text-light); margin-top: 8px; }

/* ============================================================
   FOOTER — full-bleed "Our Partners" strip + dark bottom bar
   ============================================================ */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main.page-content {
    flex: 1 0 auto;
    padding-top: 100px; /* This prevents the header from covering the text */
}
.site-footer {
    width: 100%;
    flex-shrink: 0;
    background: transparent; /* Ensures it blends with your ambient glow */
    margin-top: 60px; /* Acts as a bumper to push the footer down */
}

/* heading, centered serif like the reference */
.footer-partners-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-align: center;
    color: var(--color-primary, #1a3c2a);
    margin: 0;
    padding: 56px 24px 8px;
}

/* sponsor image already contains "Sponsored by" text — no wrapper, just big */
.footer-sponsor-logo {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 24px auto 64px;
    padding: 0 40px;
    box-sizing: border-box;
    object-fit: contain;
}

/* dark bottom bar, full-bleed */
.site-footer-bar {
    width: 100%;
    background: var(--color-primary, #1a3c2a);
    color: rgba(255, 255, 255, 0.85);
    padding: 30px 48px 26px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px 24px;
}
.footer-address {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    justify-self: start;
}
.footer-badge {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-badge img {
    height: 88px;
    width: auto;
    object-fit: contain;
}
.footer-note {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 680px) {
    .footer-partners-title { padding: 40px 20px 4px; }
    .footer-sponsor-logo { padding: 0 20px; margin: 16px auto 40px; }
    .footer-badge img { height: 56px; }
    .site-footer-bar {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 24px 24px 20px;
    }
    .footer-address { justify-self: center; }
}