.course-detail-page {
    background: #f3f3f3;
    padding: 60px 20px 120px;
}

.course-detail-container {
    max-width: 1100px;
    margin: 0 auto;
}

.detail-top-image img {
    width: 100%;
    max-width: 900px;
    display: block;
    margin: 0 auto 36px;
    object-fit: cover;
}

.detail-card {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ddd;
    padding: 28px;
}

.detail-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 20px;
    color: #111;
}

.detail-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #ddd;
    margin-bottom: 18px;
}

.detail-info-box {
    min-height: 90px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #ddd;
}

.detail-info-box:last-child {
    border-right: none;
}

.detail-label {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

.detail-status {
    display: inline-block;
    width: fit-content;
    background: #eef2f7;
    color: #2a4f77;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 700;
}

.detail-price {
    font-size: 20px;
    font-weight: 800;
    color: #2a4f77;
}

.detail-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 40px;
    border-radius: 999px;
    background: #10a4eb;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.detail-box {
    border: 1px solid #ddd;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
}

.detail-box h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #2a4f77;
}

.detail-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.notice-box p + p {
    margin-top: 8px;
}

.lecture-list-wrap {
    max-width: 700px;
    margin: 36px auto 0;
}

.lecture-list-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 18px;
    color: #111;
}

.lecture-button-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lecture-item-btn {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    border: 1px solid #d9dee5;
    border-radius: 4px;
    background: #fff;
    color: #5a6b82;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lecture-item-btn:hover {
    background: #f8fbff;
    border-color: #9bc7f3;
}

.lecture-modal {
    display: none;
}

.lecture-modal.is-open {
    display: block;
}

.lecture-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
}

.lecture-modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(90vw, 520px);
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    z-index: 1000;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.lecture-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lecture-modal-title {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 800;
    color: #111;
}

.lecture-modal-body {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    white-space: pre-line;
}

@media (max-width: 768px) {
    .detail-info-row {
        grid-template-columns: 1fr;
    }

    .detail-info-box {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .detail-info-box:last-child {
        border-bottom: none;
    }
}