* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background-color: #f4f6f8;
    color: #202124;
}


/* =========================
   상단
========================= */

.site-header {
    background-color: #244795;
    color: white;
    text-align: center;
    padding: 34px 20px;
}

.site-header h1 {
    margin: 0;
    font-size: 40px;
}

.site-header p {
    margin: 8px 0 0;
    font-size: 15px;
}


/* =========================
   전체 레이아웃
========================= */

.container {
    max-width: 1000px;
    margin: 36px auto 60px;
    padding: 0 20px;
}


/* =========================
   상단 요약 카드
========================= */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 22px;
}

.summary-card {
    background-color: white;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.summary-label {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.summary-number {
    margin: 16px 0 12px;
    font-size: 38px;
    font-weight: 800;
    color: #244795;
}

.summary-sub {
    margin: 10px 0 0;
    color: #777;
    font-size: 14px;
}


/* =========================
   진도 바
========================= */

.progress-track {
    width: 100%;
    height: 10px;
    background-color: #e9edf3;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: #244795;
    border-radius: 20px;

    transition: width 0.3s ease;
}


/* =========================
   오늘의 학습
========================= */

.today-card {
    background-color: white;
    padding: 26px;
    border-radius: 16px;
    margin-bottom: 36px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;
}

.section-title h2 {
    margin: 0 0 5px;
}

.section-title p {
    margin: 0;
    font-size: 14px;
    color: #777;
}

#today-count {
    background-color: #eef3ff;
    color: #244795;

    padding: 8px 12px;
    border-radius: 20px;

    font-size: 14px;
    font-weight: 700;
}

.today-item {
    display: flex;
    align-items: center;

    padding: 15px 4px;
    border-bottom: 1px solid #eee;
}

.today-item:last-child {
    border-bottom: none;
}

.today-item input {
    margin-right: 12px;
    transform: scale(1.25);
}

.today-item label {
    cursor: pointer;
}


/* =========================
   과목 영역
========================= */

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin-bottom: 6px;
}

.section-heading p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.subject-grid {
    display: grid;

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

    gap: 20px;
}


/* =========================
   과목 카드
========================= */

.subject-card {
    background-color: white;

    padding: 23px;

    border-radius: 16px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.07);
}

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;
}

.subject-name {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 19px;
    font-weight: 750;
}

.subject-icon {
    font-size: 23px;
}

.subject-percent {
    color: #244795;
    font-weight: 800;
    font-size: 18px;
}

.subject-count {
    margin: 10px 0 16px;

    color: #777;
    font-size: 13px;
}


/* =========================
   학습하기 버튼
========================= */

.toggle-button {
    width: 100%;

    border: none;
    border-radius: 9px;

    padding: 11px;

    background-color: #eef3ff;
    color: #244795;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.toggle-button:hover {
    background-color: #dfe8ff;
}


/* =========================
   세부 학습항목
========================= */

.subject-items {
    margin-top: 15px;
}

.subject-items.hidden {
    display: none;
}

.study-item {
    display: flex;
    align-items: center;

    padding: 11px 3px;

    border-bottom: 1px solid #eee;
}

.study-item:last-child {
    border-bottom: none;
}

.study-item input {
    margin-right: 10px;
    transform: scale(1.15);
}

.study-item label {
    cursor: pointer;
    font-size: 14px;
}


/* =========================
   Footer
========================= */

footer {
    text-align: center;
    color: #999;

    padding: 30px;

    font-size: 13px;
}


/* =========================
   모바일
========================= */

@media (max-width: 700px) {

    .summary-grid,
    .subject-grid {
        grid-template-columns: 1fr;
    }

    .container {
        margin-top: 20px;
    }

    .site-header h1 {
        font-size: 34px;
    }

    .section-title {
        align-items: flex-start;
        gap: 15px;
    }
}