/* ============================================================
   MINH DUONG MATH — Trang Thi Thử (thi-thu/index.html)
   ============================================================ */

/* ── Page-specific layout ────────────────────────────────────── */
.exam-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Info strip ──────────────────────────────────────────────── */
.exam-info-strip {
    background: var(--primary-pale);
    border-top: 3px solid var(--gold);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.exam-info-strip::-webkit-scrollbar { display: none; }

.exam-info-strip__item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    scroll-snap-align: start;
    min-width: 155px;
}

.exam-info-strip__icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    flex-shrink: 0;
}

.exam-info-strip__label {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-gray);
    margin-bottom: 2px;
}

.exam-info-strip__value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ── Registration section ────────────────────────────────────── */
.reg-section {
    padding: 40px 0 20px;
}

.reg-section__intro {
    text-align: center;
    margin-bottom: 48px;
}

.reg-section__intro .section-title {
    margin-bottom: 12px;
}

.reg-section__intro p {
    font-size: 16px;
    color: var(--text-gray);
}

.reg-section__intro strong {
    color: var(--primary-dark);
}

/* ── Day cards ───────────────────────────────────────────────── */
.day-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto 32px;
}

.day-card {
    display: block;
    border: 2px solid var(--border);
    border-radius: 6px;
    padding: 28px 20px;
    text-align: center;
    background: var(--white);
    text-decoration: none;
    color: var(--text-dark);
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.day-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.day-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
}

.day-card:hover::after {
    transform: scaleX(1);
}

.day-card__day {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.day-card__time {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.day-card__note {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.day-card__cta {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 22px;
    background: var(--primary-pale);
    border-radius: var(--radius-pill);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-dark);
    transition: background var(--transition);
}

.day-card:hover .day-card__cta {
    background: var(--primary-dark);
    color: var(--white);
}

/* ── Subject badge ───────────────────────────────────────────── */
.subject-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* ── Timeline section ────────────────────────────────────────── */
.exam-timeline {
    background: var(--primary-pale);
    padding: 40px 0;
}

.exam-timeline__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

.timeline-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.25rem, 4vw, 1.625rem);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 40px;
    text-align: center;
}

.timeline-list {
    position: relative;
    padding-left: 28px;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-light), var(--gold));
}

.timeline-entry {
    position: relative;
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
}

.timeline-entry:last-child {
    margin-bottom: 0;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--gold);
}

.timeline-entry__time {
    flex-shrink: 0;
    width: 64px;
}

.timeline-entry__time-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.timeline-entry__time-sub {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-entry__body {
    flex: 1;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-light);
}

.timeline-entry__activity {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: clamp(12px, 1.8vw, 14px);
    color: var(--text-dark);
    margin-bottom: 4px;
}

.timeline-entry__desc {
    font-size: clamp(11px, 1.6vw, 13px);
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ── Tips section ────────────────────────────────────────────── */
.exam-tips {
    padding: 40px 0;
    background: var(--cream);
}

.exam-tips__intro {
    text-align: center;
    margin-bottom: 48px;
}

.exam-tips__intro .section-title {
    margin-bottom: 12px;
}

.tips-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 16px;
    padding-bottom: 8px;
}
.tips-grid::-webkit-scrollbar { display: none; }

.tip-card {
    background: var(--white);
    border-radius: 6px;
    padding: 22px 18px;
    box-shadow: var(--shadow-card);
    border-top: 3px solid var(--primary-light);
    transition: all var(--transition);
    flex-shrink: 0;
    scroll-snap-align: start;
    min-width: 75vw;
    max-width: 280px;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--gold);
}

.tip-card__icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.tip-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.tip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tip-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.tip-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 12px;
}

/* ── Past exam materials ─────────────────────────────────────── */
.past-exams {
    padding: 40px 0;
    background: var(--white);
}

.past-exams__intro {
    text-align: center;
    margin-bottom: 48px;
}

.past-exams__intro .section-title {
    margin-bottom: 12px;
}

.exams-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 16px;
    padding-bottom: 8px;
}
.exams-grid::-webkit-scrollbar { display: none; }

.exam-card {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--gold);
    transition: all var(--transition);
    flex-shrink: 0;
    scroll-snap-align: start;
    min-width: 72vw;
    max-width: 280px;
}

.exam-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.exam-card__head {
    background: var(--primary-pale);
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.exam-card__date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.exam-card__loc {
    font-size: 13px;
    color: var(--text-gray);
}

.exam-card__body {
    background: var(--white);
    padding: 16px 20px;
}

.exam-card__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exam-card__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--primary-pale);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--primary-dark);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--blue-border);
    transition: all var(--transition);
}

.exam-card__link:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.exam-card__link-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Exam Strategy ───────────────────────────────────────────── */
.exam-strategy { padding: 40px 0; background: var(--cream); }
.exam-strategy .strategy-header { text-align: center; margin-bottom: 60px; }
.exam-strategy .strategy-header p { font-size: 16px; color: var(--text-gray); margin-top: 12px; }

.strategy-block { margin-bottom: 56px; }

.strategy-block-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.5vw, 1.35rem); font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.strategy-block-title span { font-family: 'Be Vietnam Pro', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-gray); }

/* Score parts */
.score-parts {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 14px;
    padding-bottom: 8px;
}
.score-parts::-webkit-scrollbar { display: none; }
.score-part {
    background: var(--white); border-radius: 12px; padding: 18px 14px;
    box-shadow: var(--shadow-card); text-align: center;
    border-top: 3px solid var(--primary-light);
    flex-shrink: 0;
    scroll-snap-align: start;
    min-width: 72vw;
    max-width: 260px;
}
.score-part--featured {
    border-top-color: var(--gold);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.score-part__roman { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-gray); margin-bottom: 8px; font-family: 'Be Vietnam Pro', sans-serif; }
.score-part__name { font-family: 'Playfair Display', serif; font-size: clamp(0.9rem, 2vw, 1.05rem); font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.score-part__formula { font-size: 13px; color: var(--text-gray); margin-bottom: 14px; font-family: 'Be Vietnam Pro', sans-serif; }
.score-part__total { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; color: var(--gold); line-height: 1; }
.score-part__total-label { font-size: 12px; color: var(--text-gray); margin-top: 4px; font-family: 'Be Vietnam Pro', sans-serif; }
.score-part__note { font-size: 11px; color: var(--text-gray); margin-top: 10px; line-height: 1.65; font-style: italic; border-top: 1px solid var(--border); padding-top: 10px; }

/* Phase blocks */
.phase-block { margin-bottom: 16px; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); }
.phase-block__header { display: flex; align-items: flex-start; gap: 16px; padding: 18px 22px; background: var(--primary-pale); border-bottom: 1px solid var(--border); }
.phase-num { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-dark); color: var(--white); font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.phase-meta { flex: 1; }
.phase-name { font-family: 'Playfair Display', serif; font-size: clamp(0.875rem, 2vw, 0.9375rem); font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.phase-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.phase-badge { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-family: 'Be Vietnam Pro', sans-serif; font-size: 11px; font-weight: 600; }
.phase-badge--time { background: var(--primary-dark); color: var(--white); }
.phase-badge--target { background: var(--gold); color: var(--white); }
.phase-block__body { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.phase-step { display: flex; gap: 14px; align-items: flex-start; }
.phase-step__num { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-pale); color: var(--primary-dark); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-family: 'Be Vietnam Pro', sans-serif; }
.phase-step__content { flex: 1; }
.phase-step__title { font-family: 'Be Vietnam Pro', sans-serif; font-size: clamp(12px, 1.8vw, 13px); font-weight: 600; color: var(--text-dark); }
.phase-step__title span { font-weight: 400; color: var(--primary-light); margin-left: 6px; font-size: 12px; }
.phase-step__desc { font-size: clamp(10px, 1.5vw, 12px); color: var(--text-gray); line-height: 1.65; margin: 3px 0 0; }
.phase-sublist { list-style: none; padding: 0; margin: 5px 0 0; }
.phase-sublist li { position: relative; padding-left: 14px; margin-bottom: 3px; font-size: 13px; color: var(--text-gray); line-height: 1.6; }
.phase-sublist li::before { content: '·'; position: absolute; left: 0; color: var(--gold); font-weight: bold; }
.phase-note { padding: 10px 14px; background: rgba(74,143,164,0.07); border-left: 3px solid var(--primary-light); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 13px; color: var(--text-gray); line-height: 1.65; }
.phase-note strong { color: var(--primary-dark); }

/* Checklist */
.checklist-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 14px;
    padding-bottom: 8px;
}
.checklist-grid::-webkit-scrollbar { display: none; }
.checklist-group {
    background: var(--white); border-radius: 12px; padding: 18px 14px;
    box-shadow: var(--shadow-card);
    flex-shrink: 0;
    scroll-snap-align: start;
    min-width: 75vw;
    max-width: 280px;
}
.checklist-group__icon { font-size: 1.4rem; margin-bottom: 8px; }
.checklist-group__title { font-family: 'Cormorant Garamond', serif; font-size: clamp(0.875rem, 2vw, 0.9375rem); font-weight: 700; color: var(--primary-dark); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.check-item { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; cursor: pointer; font-size: 13.5px; color: var(--text-gray); line-height: 1.55; }
.check-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary-dark); margin-top: 3px; flex-shrink: 0; cursor: pointer; }
.check-item.is-checked { opacity: 0.55; }
.check-item.is-checked span { text-decoration: line-through; }

/* ── RESPONSIVE — Mobile-First (min-width) ───────────────────── */

/* ── md: 768px+ ─────────────────────────────────────────────── */
@media (min-width: 768px) {
    .exam-container { padding: 0 40px; }

    /* Info strip → centered wrap */
    .exam-info-strip {
        justify-content: center;
        flex-wrap: wrap;
        padding: 28px 40px;
        gap: 48px;
        overflow: visible;
        scroll-snap-type: none;
    }
    .exam-info-strip__item { min-width: unset; scroll-snap-align: none; }
    .exam-info-strip__icon { width: 36px; height: 36px; font-size: 14px; }
    .exam-info-strip__label { font-size: 11px; }
    .exam-info-strip__value { font-size: 1.05rem; }

    /* Registration */
    .reg-section { padding: 80px 0 40px; }
    .reg-section__intro { margin-bottom: 48px; }
    .day-cards { grid-template-columns: 1fr 1fr; gap: 24px; max-width: 680px; margin-bottom: 48px; }
    .day-card { padding: 40px 28px; }
    .day-card__day { font-size: 1.8rem; }

    /* Grids → proper grid layout */
    .score-parts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        scroll-snap-type: none;
        flex-wrap: wrap;
    }
    .score-part { min-width: unset; max-width: unset; scroll-snap-align: none; }
    .score-part--featured { transform: translateY(-4px); }

    .checklist-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        scroll-snap-type: none;
    }
    .checklist-group { min-width: unset; max-width: unset; scroll-snap-align: none; }

    .tips-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        scroll-snap-type: none;
    }
    .tip-card { min-width: unset; max-width: unset; scroll-snap-align: none; }

    .exams-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        scroll-snap-type: none;
    }
    .exam-card { min-width: unset; max-width: unset; scroll-snap-align: none; }

    /* Timeline */
    .exam-timeline { padding: 64px 0; }
    .exam-timeline__inner { padding: 0 40px; }

    /* Strategy */
    .phase-block__header { padding: 18px 22px; gap: 16px; }
    .phase-num { width: 38px; height: 38px; font-size: 1rem; }
    .phase-block__body { padding: 18px 22px; gap: 12px; }
    .phase-step__num { width: 22px; height: 22px; font-size: 11px; }
    .exam-strategy { padding: 80px 0; }
    .exam-tips { padding: 80px 0; }
    .past-exams { padding: 80px 0; }
}
