/* Education View Page Styles */

.education-view-wrapper {
    display: flex;
    margin: 0 auto;
    padding: 40px 120px;
    gap: 40px;
}

.education-view-container {
    flex: 1;
}

/* Header Section */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.view-title {
    margin: 0;
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 43px;
    color: rgba(0, 0, 0, 0.8);
}

.view-admin-actions {
    display: flex;
    gap: 10px;
}

.btn-admin-edit,
.btn-admin-delete {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-admin-edit {
    background-color: #3b5998;
    color: white;
}

.btn-admin-edit:hover {
    background-color: #2d4373;
}

.btn-admin-delete {
    background-color: #d32f2f;
    color: white;
}

.btn-admin-delete:hover {
    background-color: #b71c1c;
}

/* Content Section - Two Columns */
.view-content {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

/* Left Column */
.view-left {
    width: 650px;
    flex-shrink: 0;
}

.view-thumbnail {
    width: 650px;
    height: 403px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
}

.view-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 21.9%, rgba(0, 0, 0, 0.5) 87.17%);
    pointer-events: none;
}

.view-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #999;
    font-size: 16px;
}

.btn-enroll {
    display: block;
    width: 200px;
    height: 52px;
    margin-left: auto;
    background-color: #3270AA;
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 52px;
    letter-spacing: 0.02em;
    transition: background-color 0.2s;
}

.btn-enroll:hover {
    background-color: #2a5c8a;
}

/* Right Column */
.view-right {
    flex: 1;
}

/* Tab Navigation */
.tab-navigation {
    position: relative;
    display: flex;
    border-top: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
    margin-bottom: 30px;
}

.tab-btn {
    position: relative;
    padding: 20px 50px;
    background: none;
    border: none;
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-size: 20px;
    line-height: 24px;
    color: #272727;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #3270AA;
}

.tab-btn.active {
    font-weight: 700;
    color: #272727;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 4px;
    background: #3270AA;
}

.tab-btn:not(.active) {
    font-weight: 400;
}

/* Tab Content */
.tab-content-container {
    position: relative;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #272727;
    margin: 0 0 20px 0;
}

.content-text {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.content-text ul.sessions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-text ul.sessions-list li {
    padding: 12px 0;
    padding-left: 20px;
    position: relative;
    color: #333;
}

.content-text ul.sessions-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3b5998;
    font-size: 20px;
}

/* Footer Section */
.view-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.btn-back-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-back-list:hover {
    background-color: #e0e0e0;
}

/* Responsive */
@media (max-width: 1024px) {
    .education-view-wrapper {
        flex-direction: column;
    }

    .education-sidebar {
        width: 100%;
    }

    .view-content {
        flex-direction: column;
    }

    .view-left {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .education-view-wrapper {
        gap: 20px;
    }

    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .view-title {
        font-size: 24px;
    }

    .view-admin-actions {
        width: 100%;
    }

    .btn-admin-edit,
    .btn-admin-delete {
        flex: 1;
        text-align: center;
    }

    .view-thumbnail {
        height: 250px;
    }

    .tab-btn {
        font-size: 16px;
        padding: 12px 15px;
    }

    .content-title {
        font-size: 18px;
    }

    .content-text {
        font-size: 14px;
    }
}
