/* =========================================================
   BAPBI WEEKLY ASSIGNMENTS PAGE
   Uses the shared BAPBI theme from css/styles.css.
========================================================= */

.weekly-assign-page main {
    margin: 0;
}

.weekly-assign-page .section-eyebrow {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: var(--gold);
    font-family: Inter, Arial, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    line-height: 1.5;
    text-transform: uppercase;
}

.weekly-assign-page h1,
.weekly-assign-page h2,
.weekly-assign-page h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
}

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

.weekly-assign-page .weekly-hero {
    padding: 7rem 0 6rem;
    background: var(--espresso);
    border-bottom: 1px solid rgba(200,164,93,.25);
}

.weekly-assign-page .weekly-hero h1 {
    margin: 0;
    color: var(--ivory);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: .95;
    text-transform: uppercase;
}

.weekly-assign-page .weekly-hero p {
    max-width: 720px;
    margin: 1.75rem 0 0;
    color: rgba(247,240,230,.72);
    font-family: Inter, Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.weekly-assign-page .weekly-content-section {
    padding: 7rem 0;
    background: var(--ivory);
}

/* =========================================================
   INTRODUCTION
========================================================= */

.weekly-assign-page .weekly-introduction {
    display: grid;
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
    gap: 5rem;
    align-items: end;
    margin-bottom: 3.5rem;
}

.weekly-assign-page .weekly-introduction h2,
.weekly-assign-page .section-heading h2 {
    margin: 0;
    color: var(--espresso);
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1;
    text-transform: uppercase;
}

.weekly-assign-page .weekly-introduction p,
.weekly-assign-page .section-heading p {
    margin: 0;
    color: var(--text-muted);
    font-family: Inter, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.85;
}

/* =========================================================
   CURRENT ASSIGNMENT
========================================================= */

.weekly-assign-page .current-assignment-panel {
    display: grid;
    grid-template-columns: 180px minmax(0,1fr);
    gap: 2.5rem;
    padding: 3rem;
    margin-bottom: 7rem;
    background: var(--espresso);
    border: 1px solid rgba(200,164,93,.5);
}

.weekly-assign-page .current-assignment-label {
    color: var(--gold);
    font-family: Inter, Arial, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.6;
    text-transform: uppercase;
}

.weekly-assign-page .assignment-week,
.weekly-assign-page .assignment-date {
    display: block;
    color: var(--gold);
    font-family: Inter, Arial, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.weekly-assign-page .current-assignment-content h2 {
    margin: .75rem 0 1rem;
    color: var(--ivory);
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 600;
    line-height: 1;
}

.weekly-assign-page .current-assignment-content p {
    max-width: 780px;
    margin: 0 0 1rem;
    color: rgba(247,240,230,.75);
    font-family: Inter, Arial, sans-serif;
    font-size: .98rem;
    line-height: 1.85;
}

.weekly-assign-page .current-assignment-content .assignment-focus {
    color: var(--gold);
    font-weight: 600;
}

.weekly-assign-page .assignment-status,
.weekly-assign-page .assignment-card-status {
    display: inline-block;
    margin-top: 1rem;
    color: var(--gold);
    font-family: Inter, Arial, sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* =========================================================
   ASSIGNMENT DETAILS
========================================================= */

.weekly-assign-page .assignment-details {
    max-width: 900px;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(200,164,93,.3);
}

.weekly-assign-page .assignment-details h3 {
    margin: 0 0 1rem;
    color: var(--ivory);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
}

.weekly-assign-page .assignment-details p {
    margin-bottom: 1.25rem;
}

.weekly-assign-page .assignment-details strong {
    color: var(--ivory);
    font-weight: 700;
}

.weekly-assign-page .assignment-details em {
    color: var(--gold);
}

/* =========================================================
   PREPARATION NOTE
========================================================= */

.weekly-assign-page .assignment-preparation-note {
    margin: 2rem 0 0;
    padding: 1.5rem 1.75rem;
    background: rgba(200,164,93,.08);
    border-left: 3px solid var(--gold);
}

.weekly-assign-page .assignment-preparation-note p {
    margin: 0;
    color: rgba(247,240,230,.82);
}

/* =========================================================
   DISCUSSION QUESTIONS
========================================================= */

.weekly-assign-page .discussion-questions {
    margin-top: 2.5rem;
}

.weekly-assign-page .discussion-questions h3 {
    margin: 0 0 1.5rem;
    color: var(--ivory);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 600;
    line-height: 1.1;
}

.weekly-assign-page .discussion-questions ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: discussion-question;
}

.weekly-assign-page .discussion-questions li {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 4.25rem;
    color: rgba(247,240,230,.82);
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(200,164,93,.16);
    font-family: Inter, Arial, sans-serif;
    font-size: .95rem;
    line-height: 1.75;
    counter-increment: discussion-question;
}

.weekly-assign-page .discussion-questions li::before {
    content: counter(discussion-question, decimal-leading-zero);
    position: absolute;
    top: 1.2rem;
    left: 1.25rem;
    color: var(--gold);
    font-family: Inter, Arial, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.weekly-assign-page .discussion-questions li:hover {
    border-color: rgba(200,164,93,.4);
    background: rgba(255,255,255,.07);
}

/* =========================================================
   WEEK 1 QUIZ
========================================================= */

.weekly-assign-page .quiz-section {
    margin-top: 3rem;
    padding-top: 2.75rem;
    border-top: 1px solid rgba(200,164,93,.3);
}

.weekly-assign-page .quiz-section .section-eyebrow {
    margin-bottom: .75rem;
}

.weekly-assign-page .quiz-section h3 {
    margin: 0 0 1rem;
    color: var(--ivory);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1.1;
}

.weekly-assign-page .quiz-intro {
    max-width: 780px;
    margin: 0 0 2rem;
    color: rgba(247,240,230,.75);
    font-family: Inter, Arial, sans-serif;
    font-size: .98rem;
    line-height: 1.85;
}


/* =========================================================
   QUIZ DEADLINE
========================================================= */

.weekly-assign-page .quiz-deadline {
    max-width: 780px;
    margin: 0 0 2rem;
    padding: 1.35rem 1.5rem;
    background: rgba(200,164,93,.08);
    border-left: 3px solid var(--gold);
}

.weekly-assign-page .quiz-deadline strong {
    display: block;
    margin-bottom: .45rem;
    color: var(--gold);
    font-family: Inter, Arial, sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.weekly-assign-page .quiz-deadline span {
    display: block;
    color: var(--ivory);
    font-family: Inter, Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.6;
}

.weekly-assign-page .quiz-deadline p {
    margin: .45rem 0 0;
    color: rgba(247,240,230,.72);
    font-family: Inter, Arial, sans-serif;
    font-size: .9rem;
    line-height: 1.7;
}


/* =========================================================
   QUIZ QUESTIONS
========================================================= */

.weekly-assign-page .quiz-questions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;

    max-width: 900px;

    margin: 0;
    padding: 0;

    list-style: none;

    counter-reset: quiz-question;
}

.weekly-assign-page .quiz-questions li {
    position: relative;

    margin: 0;
    padding: 1.35rem 1.5rem 1.35rem 4.5rem;

    color: rgba(247,240,230,.88);
    background: rgba(255,255,255,.045);

    border: 1px solid rgba(200,164,93,.16);

    font-family: Inter, Arial, sans-serif;
    font-size: .95rem;
    line-height: 1.75;

    counter-increment: quiz-question;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.weekly-assign-page .quiz-questions li::before {
    content: counter(quiz-question, decimal-leading-zero);

    position: absolute;
    top: 50%;
    left: 1.25rem;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 2.35rem;
    height: 2.35rem;

    color: var(--gold);

    border: 1px solid rgba(200,164,93,.35);

    font-family: Inter, Arial, sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.weekly-assign-page .quiz-questions li:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(200,164,93,.38);
    transform: translateX(3px);
}


/* =========================================================
   QUIZ INSTRUCTIONS
========================================================= */

.weekly-assign-page .quiz-instructions {
    max-width: 780px;
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;

    background: rgba(255,255,255,.035);

    border-top: 1px solid rgba(200,164,93,.22);
    border-bottom: 1px solid rgba(200,164,93,.12);
}

.weekly-assign-page .quiz-instructions strong {
    display: block;
    margin-bottom: .75rem;

    color: var(--gold);

    font-family: Inter, Arial, sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.weekly-assign-page .quiz-instructions p {
    margin: 0 0 .8rem;

    color: rgba(247,240,230,.72);

    font-family: Inter, Arial, sans-serif;
    font-size: .92rem;
    line-height: 1.8;
}

.weekly-assign-page .quiz-instructions p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   QUIZ MOBILE
========================================================= */

@media (max-width: 650px) {

    .weekly-assign-page .quiz-section {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .weekly-assign-page .quiz-section h3 {
        font-size: 2rem;
    }

    .weekly-assign-page .quiz-deadline {
        padding: 1.2rem 1.25rem;
    }

    .weekly-assign-page .quiz-deadline span {
        font-size: .98rem;
    }

    .weekly-assign-page .quiz-questions {
        gap: .75rem;
    }

    .weekly-assign-page .quiz-questions li {
        padding: 1.2rem 1rem 1.2rem 4rem;
        font-size: .9rem;
    }

    .weekly-assign-page .quiz-questions li::before {
        left: 1rem;
        width: 2.15rem;
        height: 2.15rem;
    }

    .weekly-assign-page .quiz-instructions {
        padding: 1.25rem;
    }

}

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

.weekly-assign-page .section-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

/* =========================================================
   ASSIGNMENT CARDS
========================================================= */

.weekly-assign-page .assignment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1.5rem;
}

.weekly-assign-page .assignment-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 300px;
    padding: 2.5rem;
    background: #fff;
    border: 1px solid rgba(16,27,43,.12);
    box-shadow: 0 1rem 2.5rem rgba(16,27,43,.05);
}

.weekly-assign-page .assignment-card h3 {
    margin: 1.5rem 0 1rem;
    color: var(--espresso);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1.05;
    text-transform: uppercase;
}

.weekly-assign-page .assignment-card p {
    margin: 0;
    color: var(--text-muted);
    font-family: Inter, Arial, sans-serif;
    font-size: .94rem;
    line-height: 1.8;
}

.weekly-assign-page .assignment-card-status {
    margin-top: auto;
}

/* =========================================================
   WEEKLY NOTE
========================================================= */

.weekly-assign-page .weekly-note {
    max-width: 850px;
    margin-top: 5rem;
    padding: 2rem 2.25rem;
    border-left: 3px solid var(--gold);
    background: rgba(255,255,255,.55);
}

.weekly-assign-page .weekly-note .section-eyebrow {
    margin-bottom: .75rem;
}

.weekly-assign-page .weekly-note p {
    margin: 0;
    color: var(--text-muted);
    font-family: Inter, Arial, sans-serif;
    font-size: .95rem;
    line-height: 1.8;
}

/* =========================================================
   BUTTONS
========================================================= */

.weekly-assign-page .weekly-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
}

.weekly-assign-page .weekly-actions .button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 25px;
    background: var(--espresso);
    color: var(--ivory);
    border: 1px solid var(--espresso);
    text-decoration: none;
}

.weekly-assign-page .weekly-actions .button-outline span {
    color: var(--gold);
    font-size: 1.15rem;
}

.weekly-assign-page .weekly-actions .button-outline:hover,
.weekly-assign-page .weekly-actions .button-outline:focus-visible {
    background: var(--gold);
    color: #261606;
    border-color: var(--gold);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .weekly-assign-page .weekly-introduction {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .weekly-assign-page .current-assignment-panel {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .weekly-assign-page .weekly-hero,
    .weekly-assign-page .weekly-content-section {
        padding: 4.5rem 0;
    }

    .weekly-assign-page .weekly-hero h1 {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .weekly-assign-page .current-assignment-panel,
    .weekly-assign-page .assignment-card {
        padding: 2rem 1.5rem;
    }

    .weekly-assign-page .assignment-grid {
        grid-template-columns: 1fr;
    }

    .weekly-assign-page .discussion-questions li {
        padding: 1.15rem 1rem 1.15rem 3.75rem;
        font-size: .9rem;
    }

    .weekly-assign-page .discussion-questions li::before {
        left: 1rem;
    }

    .weekly-assign-page .assignment-preparation-note {
        padding: 1.25rem 1.35rem;
    }

    .weekly-assign-page .weekly-actions .button-outline {
        width: 100%;
    }

}

/* =========================================================
   SHARED STICKY SITE NAVIGATION
========================================================= */

.site-header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
}




/* =========================================
   RECORDING BUTTON
   MATCH THE EXISTING BAPBI THEME
========================================= */

.weekly-assign-page .assignment-card .week-recording-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    min-height: 52px;
    max-width: 100%;
    margin-top: 1.5rem;
    padding: 0 25px;

    background: var(--espresso);
    color: var(--ivory);
    border: 1px solid var(--espresso);
    border-radius: 0;

    font-family: Inter, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.weekly-assign-page .assignment-card .week-recording-button span {
    color: var(--gold);
    font-size: 1.15rem;
}

.weekly-assign-page .assignment-card .week-recording-button:hover,
.weekly-assign-page .assignment-card .week-recording-button:focus-visible {
    background: var(--gold);
    color: #261606;
    border-color: var(--gold);
}

.weekly-assign-page .assignment-card .week-recording-button:hover span,
.weekly-assign-page .assignment-card .week-recording-button:focus-visible span {
    color: #261606;
}

@media (max-width: 650px) {
    .weekly-assign-page .assignment-card .week-recording-button {
        width: 100%;
        padding: 12px 16px;
    }
}




/* TEMPORARY DEBUG: test weekly content visibility */
body.weekly-assign-page main {
    min-height: 50vh;
}

body.weekly-assign-page .weekly-content-section {
    display: block !important;
    min-height: 300px;
    background: var(--ivory) !important;
    color: var(--espresso);
    opacity: 1 !important;
    visibility: visible !important;
}

body.weekly-assign-page .weekly-content-section * {
    visibility: visible;
}