/* edu_library-page.css - versi responsif penuh */

.layout-library {
    display: grid;
    grid-template-columns: 1fr 1.8fr 1.2fr;
    gap: 7px;
    padding: 15px;
    background-color: #f2f2f2;
    margin-top: 25px;
}

.library-kolom {
    background-color: #f2f2f2;
    padding: 15px;
}

.library-kolom h3 {
    font-size: 26px;
    letter-spacing: 5px;
    border-left: 0.5rem solid;
    padding-left: 8px;
    margin: 0 0 15px;
    color: #2a2a81;
}

.library-item1 img,
.highlight-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.library-item1 a img:hover {
    opacity: 0.75;
    transition: 0.3s;
}


.library-item h4 a,
.highlight-item h2 a {
    font-size: 22px;
    color: #2a2a81;
    font-weight: bold;
    text-decoration: none;
}

.library-item h4 a:hover,
.highlight-item h2 a:hover {
    color: #f77e05;
}

.library-item p,
.highlight-item p {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
}

.press-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.press-item img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.press-text {
    margin-left: 12px;
}

.press-item a {
    text-decoration: none;
    color: #4b0082;
    font-size: 16px;
    font-weight: bold;
}

.press-item a:hover {
    color: #007BFF;
}

.press-item small {
    font-size: 12px;
    color: #666;
}

.press-ad img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* === KOLOM TENGAH library -  TIMELINE NAVIGATOR library  === */
.kolom-mid {
    padding: clamp(4px, 0.5vw, 8px) clamp(3px, 0.5vw, 10px);
    min-width: clamp(145px, 70vw, 280px);
}

.timeline-item {
    font-size: clamp(14px, 2.5vw, 16px);
    margin-bottom: clamp(8px, 2.5vw, 15px);
    border-bottom: 1px solid #ddd;
    padding-bottom: clamp(10px, 2vw, 15px);
}

.timeline-item .jam {
    color: #0000ff;
    font-size: clamp(10px, 2vw, 15px);
    margin-right: clamp(4px, 1vw, 8px);
}

.timeline-item a {
    text-decoration: none;
    font-weight: bold;
    color: #4b0082;
}

.timeline-item a:hover {
    color: #CC6200;	
    text-decoration: none;
}


/* =================================================================== */


/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 950px) {
    .layout-library {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .layout-library {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .library-kolom h3 {
        font-size: 24px;
    }

    .library-item h4 a,
    .highlight-item h2 a {
        font-size: 20px;
    }

    .press-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .press-text {
        margin-left: 0;
        margin-top: 8px;
    }
}

@media (max-width: 320px) {
    .library-item p,
    .highlight-item p {
        font-size: 15px;
    }

    .press-item a {
        font-size: 14px;
    }

    .press-item img {
        width: 100%;
        height: auto;
    }
}

/* ========== RESPONSIF TAMBAHAN ========== */
@media (max-width: 320px) {
    .layout-library {
        font-size: clamp(10px, 2vw, 20px);
        letter-spacing: 1px;
    }
}