@import "hero.css";

/* 자료실 페이지 스타일 */




/* 메인 컨테이너 */
.library-page {
    background-color: var(--color-primary-04);
    min-height: 100vh;
    width: 100%;
}

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

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

/* 자료실 컨텐츠 섹션 */
.library-content {
    background-color: var(--color-primary-04);
    padding: 60px 0;
    position: relative;
    width: 100%;
}

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

/* 검색 섹션 */
.library-controls {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    width: 100%;
}

.library-count {
    align-items: center;
    display: flex;
}

.count-text {
    color: #202020;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 30px;
}

.count-text mark {
    background-color: transparent;
    font-weight: 600;
}

.library-search {
    align-items: center;
    display: flex;
}

.search-box {
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 50px;
    display: flex;
    height: 48px;
    padding: 0 24px;
    position: relative;
    width: 285px;
}

.search-input {
    background: transparent;
    border: none;
    color: var(--color-gray-01);
    flex: 1;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 27px;
    outline: none;
}

.search-input::placeholder {
    color: var(--color-gray-02);
}

.search-button {
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    height: 24px;
    justify-content: center;
    padding: 0;
    width: 24px;
}

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* 자료실 리스트 */
.library-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 60px;
}

.library-item {
    background-color: #ffffff;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.library-item:hover {
    transform: translateY(-2px);
}

.library-content-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 32px 60px 32px;
}

.library-title {
    color: #151515;
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 36px;
    margin: 0;
}

.library-date {
    color: #555555;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 24px;
    margin: 0;
}

.library-image {
    aspect-ratio: 16 / 9;
    background-color: #e3e3e3;
    flex: 1;
}

.library-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

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


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

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

    .library-search-section {
        margin-bottom: 30px;
    }

    .count-text {
        font-size: 18px;
        line-height: 27px;
    }

    .count-text {
        font-size: 18px;
        line-height: 27px;
    }

    .search-box {
        width: 260px;
    }

    .library-list {
        gap: 16px;
        margin-bottom: 50px;
    }

    .library-content-text {
        padding: 28px 28px 40px 28px;
    }

    .library-title {
        font-size: 22px;
        line-height: 33px;
    }

    .library-date {
        font-size: 15px;
        line-height: 22px;
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .library-header {
        padding: 20px 16px;
    }

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

    .count-text {
        font-size: 14px;
        line-height: 21px;
    }

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

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

    .library-search-section {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        height: auto;
        margin-bottom: 40px;
    }

    .count-text {
        font-size: 14px;
        letter-spacing: -0.02em;
        line-height: 21px;
    }

    .search-box {
        max-width: 285px;
        width: 100%;
    }

    .search-input {
        font-size: 14px;
        line-height: 27px;
        padding: 0 50px 0 20px;
    }

    .search-btn {
        right: 20px;
    }

    .library-list {
        gap: 16px;
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

    .library-content-text {
        gap: 12px;
        padding: 24px 24px 20px 24px;
    }

    .library-title {
        font-size: 20px;
        letter-spacing: -0.01em;
        line-height: 30px;
    }

    .library-date {
        font-size: 14px;
        letter-spacing: -0.02em;
        line-height: 21px;
    }

    .pagination {
        gap: 20px;
    }

    .pagination-btn {
        font-size: 14px;
        height: 40px;
        letter-spacing: -0.02em;
        line-height: 21px;
    }

    .pagination-btn.prev,
    .pagination-btn.next {
        padding: 0 8px;
    }

    .pagination-btn.current {
        width: 40px;
    }
}
