@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Roboto";
}

#pdf-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; 
    padding: 10px; 
    background-color: white;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 9;
}

.eybFooter {
    z-index: 10;
}


.pdf-viewer-wrapper-fullscreen-ios canvas:last-child {
    margin-bottom: 60px !important+; 
}

#pdf-controls button {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    transition: background-color 0.2s;
}

@media (max-width: 768px) {
    #pdf-controls button {
        font-size: 12px;
    }
}

#pdf-controls button:hover {
    background-color: #0056b3;
}

#pdf-controls button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

#page-num-display {
    font-size: 14px;
    font-weight: bold;
    margin: 0 10px;
}

#pdf-container {
    width: 100%;
    max-width: 960px;
    overflow-y: auto; 
    overflow-x: hidden;
    scroll-behavior: smooth; 
    border: 2px solid #dfdfdf;
    background-color: #ffffff;
    /* display: none; */
}
#pdf-viewer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}


#pdf-container canvas {
    width: 100%;
    height: auto; 
    display: block;
    margin: 20px auto;
    border-bottom: 1px solid #eee;
}

#pdf-viewer-wrapper:fullscreen,
#pdf-viewer-wrapper:-webkit-full-screen,
.pdf-viewer-wrapper-fullscreen-ios {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh; 
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: #525252;
    font-size: 12px;
}


#pdf-viewer-wrapper:fullscreen #pdf-container,
#pdf-viewer-wrapper:-webkit-full-screen #pdf-container,
.pdf-viewer-wrapper-fullscreen-ios #pdf-container {
    flex-grow: 1; 
    height: auto; 
    overflow-y: scroll; 
    margin-bottom: 0;
    border: none;
    background-color: #525252; 
}

#pdf-viewer-wrapper:fullscreen #pdf-controls,
#pdf-viewer-wrapper:-webkit-full-screen #pdf-controls,
.pdf-viewer-wrapper-fullscreen-ios #pdf-controls {
    flex-shrink: 0; 
    position: fixed; 
    z-index: 10000;
}



/* 
.endyearbook-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 70px;
}

.eybClouds {
    position: absolute;
    right: 90px;
    top: 50px;
}

.eybLeaf {
    position: absolute;
    bottom: 40px;
    left: -100px;

}

.endyearbook-wrapper a {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.eybTitle {
    width: 500px;
    color: black;
    font-weight: bold;;
}

.eybTitle h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.eybTitle h2 {
    font-size: 36px;
    width: 80%;
    margin-bottom: 20px;
}

.eybTitle p {
    font-weight: normal;    
    font-size: 18px;
    margin-bottom: 30px;
}

.eybBook {
    width: 360px;
    position: relative;
    max-height: 490px;
}

.eybBooks {
    border-radius: 0 20px 20px 0;
    background-size: contain;
    width: 100%;
}

.eybBook img:nth-last-child(1) {
    position: absolute;
    left: 0;
    border-radius: 0 20px 20px 0;
    width: 98%;
    max-width: 360px;
    height: 100%;
    }


.eybButton {
    background: #170152;
    color: white;
    border: none;
    height: 50px;
    border-radius: 8px;
    font-weight: bolder;
    width: 260px;
    font-size: 18px;
    position: relative;
    bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .eybButton {
        width: 170px;
        height: 50px;
        font-size: 16px;
    }
    .eybContainer {
        padding-top: 60px;
        padding-bottom: 120px;
    }

    .eybContainer.eybPDF {
        padding-top: 0;
        padding-bottom: 0;
    }

    .endyearbook-wrapper {
        flex-direction: column-reverse;
    }

    .eybBook {
        width: 200px;
    }

    .eybTitle {
        width: 100%;
    }

       body .eybTitle h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

body .eybTitle h2 {
    font-size: 24px;
    width: 80%;
    margin-bottom: 10px;
}

body .eybTitle p {
    font-weight: normal;    
    font-size: 14px;
    margin-bottom: 20px;
}

body .eybTitle-container a {
    width: 100%;
}

    .eybFlipsnack {
        height: 510px;
    }
    .eybContainerFlip {
    margin: 0;
    width: 100%;
    max-width: 1440px;
    padding: 0;
    margin-top: 26px;
    }

    .eybLeaf {
    bottom: 0;
    left: auto;
    width: 150px;
    right: 0;
    }

    .eybClouds {
    right: 30px;
    top: 380px;
    width: 110px;
    }
}


@media (max-width: 1024px) {
    .endyearbook-wrapper {
        gap: 20px;
    }
    .eybTitle h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.eybTitle h2 {
    font-size: 30px;
    width: 80%;
    margin-bottom: 20px;
}

.eybTitle p {
    font-weight: normal;    
    font-size: 14px;
    margin-bottom: 30px;
}
body .eybTitle-container span {
    font-size: 14px;
}
}

.pageEYB {
height: 100% !important;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.eybBackground {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100; 
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center center;
}

.eybSection {
    padding-bottom: 0;
    height: 100%;
    position: relative;
}


.eybHeader {
    position: sticky;
}

.eybTitle-container a {
    justify-content: center;
    padding: 10px;
    background-color: #170152;
    text-decoration: none;
    color: white;
    text-align: center;
    width: 260px;
}

.eybTitle-container a:hover {
    color: white;
}

.eybTitle-container span {
    font-size: 18px;
}

.eybContainer {
    width: 100%;
    height: 100%;
    } */


.publLogo {
    padding: 40px;
    width: 100%;
    /* height: 180px; */
    display: flex;
    justify-content: center;
    align-items: center;
    /* border-bottom: 1px solid black; */
}

.publLogowrap {
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .publLogowrap {
        flex-direction: column-reverse;
    }
    .publLogowrap .publLogoline {
        /* height: 1px;
        width: 100%;
        margin: 30px 0; */
        display: none;
    }
    .publLogowrap .publLogoright {
        align-items: center;
    }
    .p-onlyLogo {
        margin: 0;
    }
        .publSection .publIndex {
    gap: 60px;
        padding: 40px 100px 200px;
                grid-template-columns: repeat(1, 1fr);
    }


    .publIndex .publContentitem h2 {
    font-size: 16px;
}

.publIndex .publContentitem p {
    font-size: 12px;
}


    .publIndex .publContentitem {
        flex: 0 1 100%;
        max-width: 100%;
    }

        .publContentitem .publContent {
        width: 300px;
    }

}

.publItemwrap {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.publLogoleft {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    height: 150px;
}

.publRight {
    display: grid;
    gap: 10px;
    max-height: 80px;
}

.publLogoline {
    height: 100px;
    width: 1px;
    background-color: black;
    margin: 0 30px;
}

.p-onlyLogo {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.p-logoLeft {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
}

.p-logoLeft p {
    padding: 10px 0;
    border-top: 1px solid black;
    color: black;
    /* margin-top: 10px; */
    width: 100%;
    display: flex;
    justify-content: center;
}

.p-logoLeft img {
    /* height: 50px; */
}

.publLogoright {
        height: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 10px;
    color: black;
}

.--new25 .sectionBanner.--lestariSubmit-25 .publOff {
    webkit-animation: none;
    animation: none;
}
/* 
.publIndex {
    width: 100%;
    height: 100%;
    padding: 0 80px 200px;
}

.publContentitem {
    max-width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
} */

.publIndex {
    width: 100%;
    padding: 40px 130px 200px; /* Padding disesuaikan */
    
    display: grid;
    flex-wrap: wrap;       /* Membolehkan item turun ke baris baru */
    justify-content: center; /* Menjaga item tetap di tengah secara horizontal */
    gap: 80px;   
    box-sizing: border-box;
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
        row-gap: 50px;
}

.publContentitem {
    /* Mengatur lebar agar maksimal 3 item dalam satu baris */
    /* Rumus: (100% / 3) - margin/gap */
    flex: 0 1 calc(33.333% - 40px); 
    min-width: 250px;      /* Batas minimum lebar item */
    max-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    /* margin-bottom: 40px; */
}

/* Responsif untuk Tablet (2 item per baris) */
@media (max-width: 1000px) {
    .publContentitem {
        flex: 0 1 calc(50% - 40px);
    }
        .publIndex {
        grid-template-columns: repeat(2, 1fr);
        gap: 80px 100px;

    }

}

@media (max-width: 1500px){
    .publIndex {
        gap: 80px;
    }
}

/* Responsif untuk Mobile (1 item per baris) */
@media (max-width: 600px) {
    .publSection .publIndex {
        padding: 20px;
        padding-bottom: 200px;
    }
    .publContentitem {
        flex: 0 1 100%;
        max-width: 100%;
    }
    .publContentitem .publContent {
        width: 300px;
    }
}


.publContentitem span {
    font-size: 12px;
    width: 100%;
    padding-top: 10px;
    color: #666666;
    
}

.publContentitem h2 {
    font-size: 18px;
    font-weight: bold;
    padding-top: 10px;
    color: black;
    width: 100%;
}

.publContentitem p {
    padding-top: 10px;
    font-size: 14px;
    font-weight: normal;
    color: #666666;
    width: 100%;
}



.publContent {
    width: 100%;
    position: relative;
    max-height: 490px;
    border-radius: 0 16px 16px 0;
    box-shadow: -2px -2px 15px 0px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}



.publContent img:nth-last-child(1) {
    position: absolute;
    left: 0;
    border-radius: 0 20px 20px 0;
    width: 98%;
    max-width: 360px;
    height: 99%;
    }

.publCta {
    width: 100%;
    padding: 10px;
    background-color: #14496B;
    cursor: pointer;
    margin-top: 20px;
}

.publCta:hover {
    background-color: #0c3047;
}

.publButton {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    width: 100%;
}

.publButton:hover {
    color: white;
}

.pageEYB {
    height: 100% !important;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.eybBackground {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100; 
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #170152;
}

/* Overlay Loading */
        #pdf-loader {
            position: absolute;
            top: -50px; /* Menyesuaikan tinggi controls */
            left: 0;
            width: 100%;
            height: calc(100% - 45px);
            /* background: rgba(255, 255, 255, 0.9); */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10;
            transition: opacity 0.3s ease;
        }

        /* Animasi Spinner */
        .spinner {
            border: 5px solid #f3f3f3;
            border-top: 5px solid #3498db;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin-bottom: 10px;
        }
        .spinnerWrap {
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        .spinnerWrap p {
            font-weight: bold;
            color: white;
            margin-top: 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .eybContainer {
            max-width: 900px;
            padding: 0;
        }

        .publContentitem:only-child {
            grid-column: 2;
        }

        .publContentitem:first-child:nth-last-child(2) {
  grid-column: 1; /* Mulai dari kolom 1 */
  margin-right: -120%; /* Trik untuk menggeser ke arah tengah */
}

.publContentitem:first-child:nth-last-child(2) + .publContentitem {
  grid-column: 3; /* Item kedua di kolom 3 */
  margin-left: -120%; /* Menggeser ke arah tengah */
}