/* =====================================================
   TeeTalk English
   Layout CSS
   Version 1.0
===================================================== */

/* ===============================
   HERO
================================ */

.hero{
    background:linear-gradient(135deg,#24B7BD,#1aa4aa);
    color:#fff;
    padding:60px;
    border-radius:24px;
    margin-bottom:45px;
    box-shadow:0 15px 40px rgba(36,183,189,.18);
}

.hero h1{
    color:#fff;
    margin-bottom:20px;
}

.hero p{
    color:rgba(255,255,255,.95);
    font-size:1.08rem;
}

/* ===============================
   LESSON NUMBER
================================ */

.lesson-number{

    display:inline-flex;
    align-items:center;
    gap:10px;

    background:white;
    color:var(--primary);

    padding:10px 22px;

    border-radius:999px;

    font-weight:700;

    margin-bottom:25px;

}

/* ===============================
   HERO GRID
================================ */

.hero-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:20px;

    margin-top:40px;

}

/* ===============================
   SECTION
================================ */

.section{

    background:white;

    border-radius:22px;

    padding:40px;

    margin:40px 0;

    box-shadow:var(--shadow);

}

.section h2{

    margin-bottom:20px;

    color:var(--primary);

}

/* ===============================
   COMMON GRIDS
================================ */

.hero-grid,
.question-grid,
.goal-grid,
.tips-grid,
.mission-grid,
.notes,
.quiz,
.flow{

    display:grid;

    gap:20px;

}

/* ===============================
   AUTO GRID
================================ */

.question-grid,
.goal-grid,
.tips-grid,
.mission-grid{

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

}

/* ===============================
   TWO COLUMN
================================ */

.two-column{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:35px;

}

/* ===============================
   THREE COLUMN
================================ */

.three-column{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}

/* ===============================
   FOUR COLUMN
================================ */

.four-column{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

}

/* ===============================
   VIDEO
================================ */

.video-wrapper{

    position:relative;

    width:100%;

    overflow:hidden;

    border-radius:20px;

    margin:25px 0;

    aspect-ratio:16 / 9;

    box-shadow:var(--shadow);

}

.video-wrapper iframe{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    border:none;

}

/* ===============================
   VIDEO GOALS
================================ */

.video-goals{

    margin-top:25px;

}

.goal-tags{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    margin-top:15px;

}

.goal-tags span{

    background:var(--primary-light);

    color:var(--primary);

    padding:10px 18px;

    border-radius:999px;

    font-weight:600;

}

/* ===============================
   STORY
================================ */

.story{

    background:#f8fbfc;

    border-left:6px solid var(--primary);

    padding:30px;

    border-radius:18px;

}

/* ===============================
   FLOWCHART
================================ */

.flow{

    justify-items:center;

    margin:35px 0;

}

.flow-box{

    width:100%;

    max-width:300px;

    background:white;

    border:2px solid var(--primary);

    padding:18px;

    border-radius:16px;

    text-align:center;

    font-weight:700;

}

.arrow{

    font-size:28px;

    color:var(--primary);

}

.flow-text{

    margin-top:25px;

    text-align:center;

}

/* ===============================
   COMPLETE SECTION
================================ */

.complete{

    background:#eafaf5;

    border-left:8px solid #22c55e;

}

.complete h2{

    color:#16a34a;

}

/* ===============================
   PAGE NAVIGATION
================================ */

.button-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:20px;

    margin:50px 0;

}

/* ===============================
   DIVIDER TITLE
================================ */

.section-divider{

    margin:70px 0 40px;

    text-align:center;

}

.section-divider h2{

    display:inline-block;

    padding:0 25px;

    background:var(--background);

}

/* ===============================
   FLEX UTILITIES
================================ */

.flex{

    display:flex;

}

.flex-center{

    display:flex;

    align-items:center;

    justify-content:center;

}

.flex-between{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.flex-column{

    display:flex;

    flex-direction:column;

}

/* ===============================
   GAP UTILITIES
================================ */

.gap-sm{

    gap:12px;

}

.gap{

    gap:20px;

}

.gap-lg{

    gap:35px;

}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width:992px){

    .two-column{

        grid-template-columns:1fr;

    }

    .three-column{

        grid-template-columns:1fr;

    }

    .four-column{

        grid-template-columns:repeat(2,1fr);

    }

}

@media (max-width:768px){

    .hero{

        padding:35px 28px;

    }

    .section{

        padding:28px;

    }

    .button-row{

        flex-direction:column;

    }

    .hero-grid,
    .question-grid,
    .goal-grid,
    .tips-grid,
    .mission-grid{

        grid-template-columns:1fr;

    }

    .four-column{

        grid-template-columns:1fr;

    }

    .flow-box{

        max-width:none;

    }

}