.t4-progress-post {
    --t4-blue: #008eec;
    --t4-blue-dark: #075985;
    --t4-blue-light: #eef8ff;
    --t4-text: #263445;
    --t4-muted: #667085;
    --t4-border: #e2e7ec;
    --t4-table-head: #f3f7fa;
    --t4-row-alt: #fafcfd;
    width: 100%;
    max-width: 100%;
    color: var(--t4-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    box-sizing: border-box;
}

.t4-progress-post *,
.t4-progress-post *::before,
.t4-progress-post *::after {
    box-sizing: border-box;
}

.t4-progress-post p {
    margin: 0 0 16px;
}

.t4-progress-post h2 {
    margin: 48px 0 20px;
    padding-left: 14px;
    border-left: 4px solid var(--t4-blue);
    color: #172b4d;
    font-family: Inter, Arial, sans-serif;
    font-size: 27px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.t4-progress-post h3 {
    margin: 0 0 10px;
    color: #172b4d;
    font-family: Inter, Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.t4-progress-post strong {
    color: #172b4d;
    font-weight: 700;
}

/* INTRODUCTION */
.t4-intro {
    margin: 8px 0 36px;
    padding: 30px 32px;
    border: 1px solid #cce8fa;
    border-radius: 18px;
    background: var(--t4-blue-light);
}

.t4-intro-label {
    display: inline-block;
    margin-bottom: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--t4-blue);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.t4-intro-title {
    margin: 0 0 12px;
    color: #113a5c;
    font-size: 25px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.t4-intro p:last-child {
    margin-bottom: 0;
}

/* KEY DATE CARDS */
.t4-date-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 26px;
}

.t4-date-card {
    min-height: 132px;
    padding: 18px;
    border: 1px solid var(--t4-border);
    border-radius: 14px;
    background: #ffffff;
}

.t4-date-card-label {
    margin-bottom: 8px;
    color: var(--t4-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.t4-date-card-value {
    color: #172b4d;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

/* INFORMATION CARDS */
.t4-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.t4-info-card {
    padding: 22px;
    border: 1px solid var(--t4-border);
    border-radius: 14px;
    background: #ffffff;
}

.t4-info-card p:last-child {
    margin-bottom: 0;
}

/* TABLE */
.t4-table-container {
    width: 100%;
    margin: 16px 0 28px;
    overflow-x: auto;
    border: 1px solid var(--t4-border);
    border-radius: 14px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.t4-table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.t4-table th,
.t4-table td {
    padding: 14px 16px;
    border-right: 1px solid var(--t4-border);
    border-bottom: 1px solid var(--t4-border);
    vertical-align: middle;
    text-align: left;
}

.t4-table th:last-child,
.t4-table td:last-child {
    border-right: 0;
}

.t4-table tbody tr:last-child td {
    border-bottom: 0;
}

.t4-table thead th {
    background: var(--t4-table-head);
    color: #172b4d;
    font-weight: 700;
    white-space: nowrap;
}

.t4-table tbody tr:nth-child(even) td {
    background: var(--t4-row-alt);
}

.t4-table tbody tr:hover td {
    background: #f1f8fd;
}

.t4-table .t4-centre {
    text-align: center;
}

.t4-swipe-note {
    display: none;
    margin: 0 0 8px;
    color: var(--t4-muted);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* REPORT SECTION */
.t4-report-list {
    display: grid;
    gap: 12px;
}

.t4-report-item {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 19px 20px;
    border: 1px solid var(--t4-border);
    border-radius: 12px;
    background: #ffffff;
}

.t4-report-heading {
    color: var(--t4-blue-dark);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;
}

.t4-report-content p {
    margin: 0;
}

/* [수정 시작] TERM 4 STUDENT GUIDES */
.t4-guide-intro {
    margin: -4px 0 22px;
    color: var(--t4-text);
    font-size: 16px;
}

.t4-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 24px;
    margin: 0 0 34px;
}

.t4-guide-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--t4-border);
    border-radius: 14px;
    background: #ffffff;
    color: #172b4d !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(23, 43, 77, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.t4-guide-card:hover,
.t4-guide-card:focus-visible {
    border-color: #98cff3;
    box-shadow: 0 10px 24px rgba(23, 43, 77, 0.13);
    transform: translateY(-3px);
}

.t4-guide-card:focus-visible {
    outline: 3px solid rgba(0, 142, 236, 0.28);
    outline-offset: 3px;
}

.t4-guide-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.t4-guide-card-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    color: #172b4d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.t4-guide-card-label::after {
    content: "View guide \2192";
    flex: 0 0 auto;
    color: var(--t4-blue-dark);
    font-size: 13px;
    font-weight: 650;
}
/* [수정 끝] TERM 4 STUDENT GUIDES */

/* BUTTON */
.t4-button-wrap {
    margin: 30px 0 10px;
    text-align: center;
}

.t4-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid var(--t4-blue);
    border-radius: 9px;
    background: var(--t4-blue);
    color: #ffffff !important;
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.t4-button:hover,
.t4-button:focus {
    background: #ffffff;
    color: var(--t4-blue) !important;
}

/* MOBILE */
@media (max-width: 820px) {
    .t4-date-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t4-info-grid {
        grid-template-columns: 1fr;
    }

    .t4-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .t4-progress-post {
        font-size: 15px;
        line-height: 1.65;
    }

    .t4-progress-post h2 {
        margin-top: 38px;
        font-size: 23px;
    }

    .t4-intro {
        padding: 23px 20px;
        border-radius: 14px;
    }

    .t4-intro-title {
        font-size: 21px;
    }

    .t4-date-grid {
        grid-template-columns: 1fr;
    }

    .t4-date-card {
        min-height: auto;
    }

    .t4-info-card {
        padding: 19px;
    }

    .t4-swipe-note {
        display: block;
    }

    .t4-table {
        min-width: 780px;
        font-size: 13px;
    }

    .t4-table th,
    .t4-table td {
        padding: 12px;
    }

    .t4-report-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .t4-guide-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .t4-guide-intro {
        font-size: 15px;
    }

    .t4-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t4-guide-card {
        transition: none;
    }

    .t4-guide-card:hover,
    .t4-guide-card:focus-visible {
        transform: none;
    }
}
