@import "hero.css";

/* 메인 컨테이너 */
.library-detail-page {
    min-height: 100vh;
    width: 100%;
}

/* 헤더 섹션 */
.library-detail-header {
    background-color: #ffffff;
    margin: 0 auto;
    padding: 60px 0 40px 0;
    position: relative;
    width: 100%;
}

.library-detail-header-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    height: 100%;
    justify-content: flex-end;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

/* 페이지 타이틀 섹션 */
.page-title-section {
    margin: 60px auto 0 auto;
    padding: 0;
    width: 100%;
}

.page-title-content {
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
    width: 100%;
}

.page-title {
    color: #000000;
    font-family: 'Pretendard', sans-serif;
    font-size: 60px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 150%;
    margin: 0;
}

/* 자료실 상세 컨텐츠 섹션 */
.library-detail-content {
    padding: 50px 0 60px 0;
    position: relative;
    width: 100%;
}

.library-detail-content-inner {
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    width: 100%;
}

/* 상단 구분선 */
.content-divider-top {
    background-color: #d7d7d7;
    height: 1px;
    margin-bottom: 40px;
    width: 100%;
}

/* 제목 및 날짜 섹션 */
.detail-header {
    margin-bottom: 40px;
    width: 100%;
}

.detail-title {
    color: #191f28;
    font-family: 'Pretendard', sans-serif;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 54px;
    margin: 0 0 8px 0;
}

.detail-date {
    color: #555555;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 30px;
    margin: 0;
}

/* 구분선 */
.content-divider {
    background-color: #eeeeee;
    height: 1px;
    margin-bottom: 40px;
    width: 100%;
}

/* 본문 컨텐츠 */
.detail-content {
    margin-bottom: 50px;
    width: 100%;
}

.detail-content .video-wrapper {
    aspect-ratio: 590 / 315;
    max-width: 590px;
    position: relative;
    width: 100%;
}

.detail-content .video-wrapper iframe {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.content-image-section {
    margin-bottom: 20px;
}

.content-image-section:last-child {
    margin-bottom: 0;
}

.content-image {
    background-color: #e3e3e3;
    border-radius: 15px;
    height: 675px;
    margin-bottom: 20px;
    opacity: 0.2;
    width: 100%;
}

.image-caption {
    color: #202020;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 30px;
    margin: 0;
    text-align: center;
}

/* 하단 구분선 */
.content-divider-bottom {
    background-color: #eeeeee;
    height: 1px;
    margin-bottom: 40px;
    width: 100%;
}

/* 목록으로 버튼 섹션 */
.back-button-section {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.back-button {
    border: 1px solid transparent;
    transition: background-color 0.3s ease;
    width: 148px;
}

.back-button:hover {
    background-color: transparent;
    border: 1px solid var(--color-primary-01);
    color: var(--color-primary-01);
}

/* 태블릿 반응형 */
@media (max-width: 1200px) {


    .library-detail-header-content {
        padding: 40px 60px 0 60px;
    }

    .library-detail-content-inner {
        padding: 0 60px;
    }

    .detail-title {
        font-size: 32px;
        line-height: 48px;
    }

    .detail-date {
        font-size: 18px;
        line-height: 27px;
    }

    .image-caption {
        font-size: 18px;
        line-height: 27px;
    }

    .back-button {
        font-size: 18px;
        line-height: 27px;
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .library-detail-page {
        position: relative;
    }

    .library-detail-page::before {
        background-color: var(--color-primary-04);
        content: "";
        height: calc(100% + 56px);
        left: 0;
        position: absolute;
        top: 56px;
        width: 100%;
        z-index: -1;
    }


    .library-detail-header {
        padding: 20px 16px;
    }

    .library-detail-header-content {
        padding: 0;
    }

    .page-title,
    .page-title-section h1 {
        font-size: 28px;
        letter-spacing: -0.02em;
        line-height: 42px;
    }

    .library-detail-content {
        padding: 40px 0;
    }

    .library-detail-content-inner {
        padding: 0 16px;
    }

    .content-divider-top {
        margin-bottom: 20px;
    }

    .detail-header {
        margin-bottom: 20px;
    }

    .detail-title {
        color: #151515;
        font-size: 20px;
        letter-spacing: -0.01em;
        line-height: 30px;
        margin-bottom: 12px;
    }

    .detail-date {
        font-size: 16px;
        letter-spacing: -0.01em;
        line-height: 24px;
    }

    .content-divider {
        margin-bottom: 20px;
    }

    .detail-content {
        margin-bottom: 40px;
    }

    .content-image-section {
        margin-bottom: 20px;
    }

    .content-image {
        height: 192.9375px;
        margin-bottom: 20px;
    }

    .image-caption {
        font-size: 16px;
        letter-spacing: -0.01em;
        line-height: 24px;
    }

    .content-divider-bottom {
        margin-bottom: 40px;
    }

    .back-button-section {
        justify-content: center;
    }

    .back-button {
        background-color: transparent !important;
        border: 1px solid var(--color-primary-01) !important;
        color: var(--color-primary-01) !important;
        font-size: 14px;
        height: 41px;
        letter-spacing: -0.02em;
        line-height: 21px;
        padding: 0 !important;
        width: 85px;
    }

    .back-button:hover {
        background-color: var(--color-primary-01) !important;
        color: #ffffff !important;
    }
}
