@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
    --sky: #f4f8fb;
    --green: #477a3b;
    --gold: #e5a91c;
    --blue: #4f83a8;
    --brown: #654b3b;
    --text: #343434;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Nunito", sans-serif;

    background-color: #edf8fc;

    min-height: 100vh;
    display: flex;
    flex-direction: column;

    position: relative;
    z-index: 0;
}


/* TREE BACKGROUND */

body::before {
    content: "";
    position: fixed;

    right: -100px;
    bottom: 0;

    width: 500px;
    height: 500px;

    background-image: url('/images/background/tree.png');
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;

    opacity: 0.20;

    pointer-events: none;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;

    left: -35px;
    top: 220px;

    width: 300px;
    height: 300px;

    background-image: url('/images/background/sun.png');
    background-size: contain;
    background-position: left top;
    background-repeat: no-repeat;

    opacity: 0.20;

    pointer-events: none;
    z-index: -1;
}

body {

 background:
        linear-gradient(
            to bottom,
        #dbe0ec 0%,
        #dde5f2 30%,
        #e2eef6 65%,
        #ffffff 100%
        );

    background-attachment: fixed;

    position: relative;
    z-index: 0;
    margin: 0;
    font-family: "Nunito", sans-serif;


    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.background-bushes {
    position: fixed;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 110px;

    background-image: url('/images/background/bushes.png');
    background-repeat: repeat-x;
    background-position: center bottom;
    background-size: auto 110px;

    opacity: 0.15;

    pointer-events: none;
    z-index: -2;
}

.site-header {
    padding: 28px 6%;
    text-align: center;
}

.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.18em;
    flex-wrap: wrap;
}

.logo .think {
    color: #3A86D1;
}

.logo .imagine {
    color: #F59E0B;
}

.logo .play {
    color: #66B032;
}

.logo .dot {
    color: #F4C430;
}

main {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    flex: 1;
}

section {
    margin-bottom: 48px;
}

.tagline {
    margin: 12px 0 22px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brown);
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.main-nav a {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.main-nav a:hover {
    text-decoration: underline;
}

footer {
    width: 90%;
    max-width: 1100px;
    margin: 60px auto 0;
}

.site-footer {
    width: 100%;
    max-width: none;
    margin: 70px 0 0;
    padding: 28px 0;
    background: #e4eaee;
    border-top: 1px solid #d3dade;
    font-size: 0.9rem;
}

.footer-inner {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-brand p {
    margin: 3px 0;
}

.site-footer nav {
    display: flex;
    gap: 20px;
}

.site-footer a {
    color: #3f7d32;
    text-decoration: none;
    font-weight: 600;
}

.site-footer a:hover {
    text-decoration: underline;
}

.copyright {
    margin: 0;
    color: #666;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer nav {
        flex-wrap: wrap;
    }
}

.episode-feature {
    display: flex;
    gap: 30px;
    align-items: center;
}

.episode-image {
    width: 360px;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    border-radius: 10px;
    background: #e2e7ea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.episode-button {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    background: #4d8f37;
    color: white;
}

.why-play {
    margin-top: 55px;
}

.play-section {
    margin-bottom: 45px;
}

.play-section h2,
.heart-of-play h2 {
    margin-bottom: 18px;
}

.play-questions {
    margin: 22px 0;
    padding-left: 20px;
    border-left: 4px solid #f2a000;
}

.play-questions span {
    display: block;
    margin: 9px 0;
    font-weight: 600;
}

.activities {
    margin: 60px 0;
    padding: 30px 35px;
    background: #f7f3e8;
    border-radius: 10px;
}

.activities h2 {
    margin-top: 0;
}

.button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 6px;
    background: #4d8f37;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.button:hover {
    text-decoration: underline;
}

.the-heart blockquote {
    margin: 22px 0 0 32px;
    padding: 0;
    border: 0;
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
}

/* ========================================
   CONTACT PAGE SPECIFICS
======================================== */

.contact-page {
    width: 90%;
    max-width: 900px;
    margin: 35px auto 60px;
}

.contact-page h1 {
    margin-bottom: 15px;
}

.contact-page>p {
    max-width: 650px;
    line-height: 1.6;
}

/* Contact form */

.contact-form {
    width: 100%;
    max-width: 650px;
    margin-top: 24px;
    padding: 26px 30px;
}

.contact-success {
    min-height: 500px;
}

/* Each label + field */

.contact-form .form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;

    font-weight: 600;
}

.contact-form .button {
    padding: 11px 20px;
    font-size: 0.95rem;
}

/* Form fields */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;

    font-family: inherit;
    font-size: 1rem;

    background: white;

    border: 1px solid #b8c1b4;
    border-radius: 6px;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}


/* Highlight the field being used */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #4d8f37;
    outline-offset: 1px;
    border-color: #4d8f37;
}


/* Keep form from overflowing its container */

.contact-form *,
.contact-form *::before,
.contact-form *::after {
    box-sizing: border-box;
}


/* Mobile */

@media (max-width: 700px) {

    .contact-page {
        width: 90%;
        margin-top: 25px;
    }

    .contact-form {
        padding: 24px 20px;
    }
}

/* =========================
   ABOUT PAGE
   ========================= */

.about-page {
    width: 90%;
    max-width: 1100px;
    margin: 35px auto 70px;
}

.about-page>h1 {
    margin-bottom: 25px;
}

.about-intro,
.about-section {
    max-width: 900px;
    margin-bottom: 34px;
}

.about-intro h2,
.about-section h2 {
    margin-top: 0;
    margin-bottom: 14px;
}

.about-intro p,
.about-section p {
    line-height: 1.65;
    margin: 0 0 14px;
}


/* Important statement near the end */

.about-highlight {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 8px;
}


/* Final invitation */

.about-join {
    margin-top: 42px;
}

.about-join .button {
    display: inline-block;
    margin-top: 10px;
}


/* Mobile */

@media (max-width: 700px) {

    .about-page {
        width: 90%;
        margin-top: 25px;
    }

    .about-intro,
    .about-section {
        margin-bottom: 28px;
    }

    .about-highlight {
        font-size: 1.08rem;
    }
}


/* ==========================================
   EPISODES DIRECTORY
========================================== */

.episodes-directory {
    max-width: 1050px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

.episodes-directory > h1 {
    margin-bottom: 16px;
}

.episodes-directory > .lead {
    margin-bottom: 36px;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.episode-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 4px 18px rgba(35, 55, 75, 0.07);
}

.episode-card-image {
    width: 38%;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #e8edf3;
}

.episode-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.episode-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #607080;
    font-weight: 600;
}

.episode-card-content {
    flex: 1;
    min-width: 0;
}

.episode-card-number {
    color: #438a37;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.episode-card-content h2 {
    font-size: 1.4rem;
    margin: 0 0 14px;
}

.episode-card-description {
    line-height: 1.65;
    margin-bottom: 22px;
}

/* Mobile layout */

@media (max-width: 700px) {
    .episode-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 18px;
    }

    .episode-card-image {
        width: 100%;
    }

    .episode-card-content h2 {
        font-size: 1.2rem;
    }
}


/* ==========================================
   EPISODES THUMBNAIL GALLERY
========================================== */

.episodes-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.gallery-card {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 4px 16px rgba(35, 55, 75, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(35, 55, 75, 0.13);
}

.gallery-card:focus-visible {
    outline: 3px solid #3BB273;
    outline-offset: 3px;
}

.gallery-thumbnail {
    aspect-ratio: 16 / 9;
    background: #e8edf3;
    overflow: hidden;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #607080;
    font-weight: 600;
}

.gallery-info {
    padding: 16px 18px 20px;
}

.gallery-number {
    color: #438a37;
    font-size: 0.85rem;
    font-weight: 700;
}

.gallery-info h2 {
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 8px 0 0;
}

@media (max-width: 850px) {
    .episodes-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    .episodes-gallery {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-card {
        transition: none;
    }
}

/* Episode printable activity gallery */

.activity-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.activity-card {
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.activity-preview {
    display: block;
    padding: 14px;
    background: white;
}

.activity-preview img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: contain;
}

.activity-info {
    padding: 16px;
    text-align: center;
}

.activity-info h3 {
    margin: 0 0 8px;
}

.activity-info p {
    margin: 0 0 16px;
}

.activity-download {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: #3BB273;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.activity-download:hover {
    background: #2d925d;
}

/* Tablet */
@media (max-width: 850px) {
    .activity-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phone */
@media (max-width: 550px) {
    .activity-gallery {
        grid-template-columns: 1fr;
    }
}

/* Individual episode feature layout */

.episode-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 30px;
    align-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.episode-video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.episode-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.episode-feature-info h1 {
    margin: 8px 0 14px;
}

.episode-feature-info p {
    line-height: 1.6;
}

/* Stack video and description on smaller screens */

@media (max-width: 700px) {
    .episode-feature {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 16px;
    }
}

.episode-video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.episode-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* ==========================================
   HOME PAGE — BRAND COLOR ACCENTS
   ========================================== */

/* PLAY — Blue: storytelling */
.our-vision .play-section > p:first-of-type {
    border-left: 4px solid #4AA8F0;
    padding-left: 18px;
}

/* IMAGINE — Yellow: problem-solving questions */
.problem-solving .play-questions {
    border-left: 4px solid #F6C945;
    padding-left: 18px;
}

/* THINK — Green: our philosophy */
.the-heart > p:first-of-type {
    border-left: 4px solid #3BB273;
    padding-left: 18px;
}