@import url('https://fonts.googleapis.com/css2?family=Jacques+Francois&family=La+Belle+Aurore&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inria+Serif:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    width: 100%;
    background-color: #f8f9fa;
}


    /* Header Styles */
.header {
    background-color: #E2EEFF;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #c0dcfb;
    flex-wrap: wrap;
    gap: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.header-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1px;
    flex: 1;
    min-width: 0;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}
.header-content img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.header-content img:hover {
    transform: scale(1.05);
}
.header-content a {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
}
.header-title {
    font-size: clamp(28px, 4.5vw, 44px);
    font-family: "Poppins", sans-serif;
    color: #1a365d;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}
.download-button {
    background: linear-gradient(145deg, #ffffff, #f0f7ff);
    color: #1a365d;
    padding: 8px 20px;
    border: 2px solid #c0dcfb;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.4s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.download-button:hover {
    background: linear-gradient(145deg, #c0dcfb, #e2eeff);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    border-color: #90c3fa;
}
.download-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .header {
        padding: 1.25rem 2rem;
    }
    .header-title {
        font-size: clamp(1.5rem, 4vw, 2.25rem);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .header-content {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .header-content a {
        flex-direction: column;
        gap: 1rem;
    }
    .header-title {
        white-space: normal;
        font-size: 2rem;
    }
    .download-button {
        width: 70%;
        margin: 0 auto;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 1.25rem;
    }
    .header-title {
        font-size: 1.75rem;
    }
    .download-button {
        width: 60%;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
        margin: 0 auto;
        display: block;
    }
}
/* HEADER ENDS */


/* CONTENT */
.content {    
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
/* Video Container Enhancements */
.video-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 30px;
}

.custom-video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-carousel {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.video-slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.video-slide.active {
    display: block;
}

.youtube-video {
    position: relative;
    z-index: 2;
    padding: 15px;
    width: 100%;
}

.youtube-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: block;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  transform: translateY(-50%);
  pointer-events: none;
}


.carousel-prev, .carousel-next {
  color: black;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 2;
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}


.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}



/* Frame PNG Overlay (tetap sama) */
.frame-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    object-fit: contain;
}
/* Button Card Style - Container menentukan ukuran */
.button-card, .button-card-osis {
    display: inline-block;
    width: 100%; /* Full width of container */
    aspect-ratio: 4.375 / 1; /* 350/80 = 4.375 ratio (maintains your original proportion) */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #f8f8f8;
    transition: all 0.3s ease;
    position: relative;
    border: none;
}
.button-card-osis {
    grid-column: span 2; /* Membuat button OSIS mengambil 2 kolom */
    aspect-ratio: 4.375 / 1; /* Memastikan rasio sama dengan button-card */
    max-height: 80px;
}
/* Responsive Grid Container */
.layout-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    width: 100%;
}
/* Mobile-First Adjustments */
@media (max-width: 1199px) {
    .button-card, .button-card-osis {
        aspect-ratio: 3.5 / 1;
    }
    .layout-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    .card-label {
        font-size: 12px;
        padding: 6px;
    }
}

/* Desktop Enhancements */
@media (min-width: 1200px) {
    .button-card, .button-card-osis {
        aspect-ratio: 4 / 1;
    }
    .layout-container {
        gap: 20px;
    }
}
/* CONTENT ENDS */


/* BOOK CARD STYLE */
.card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}
.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #f0f0f0;
    transition: transform 0.3s ease;
}

.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* Hover Effects */
.button-card:hover, .button-card-osis:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.button-card:hover .card-image, .button-card-osis:hover .card-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 16px 12px 8px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    opacity: 1;
    transform: translateY(100%);
    transition: all 0.3s ease;
}
.button-card:hover .card-overlay, .button-card-osis:hover .card-overlay {
    transform: translateY(0);
}
/* Horizontal alignment for desktop */
@media (min-width: 900px) {
    .content {
        flex-direction: row; /* Side by side layout */
        align-items: flex-start; /* Align to top */
        gap: 30px; /* Space between video and buttons */
    }

    .custom-video-frame {
        width: 560px; /* Fixed size on desktop */
    }

    .video-container {
        flex: 0 0 auto; /* Don't grow or shrink */
    }

    .layout-container {
        flex: 1; /* Take remaining space */
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2-column grid */
        gap: 15px;
        align-content: start; /* Align grid to top */
    }
}

/* Mobile layout (buttons below video) */
@media (max-width: 899px) {
    .custom-video-frame {
        padding: 0 10px; /* Add some side padding on mobile */
    }
    
    .frame-image {
        transform: scale(1.03); /* Penyesuaian halus untuk mobile */
    }
    
    .youtube-video {
        padding: 1px; /* Slightly less padding on mobile */
    }
    
    .layout-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 20px;
    }
}
/* CONTENT ENS */


/* BOOK CARD STYLE */
.content-book {
    margin-left: 0px;
}

.content-book p{
    font-size: 1.5em;
    font-weight: bold;
    padding: 60px 0 20px 10px;
    display: block;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    margin-left: 1.5rem;
}

    .buku-kelas {
    display: flex;
    margin-left: 10px;
    overflow-x: auto;
    gap: 1px;
}
.buku-kelas::-webkit-scrollbar {
    width: 0; 
}
p {
    font-size: 2em;
    font-weight: bold;
    padding: 15px;
    display: block;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
.buku-kelas-card {
    text-align: left;
    margin: 0 20px;
}
.buku-kelas-card img {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto 15px 0;
    display: block;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.buku-kelas-card h1 {
    font-size: 1.1em;
    display: inline-block;
    font-family: 'Newsreader', serif;
    text-align: left;
    margin-bottom: 2px;
    font-weight: 600;
}
.buku-kelas-card h2 {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}
.buku-kelas-card button {
    background-color: #E2EEFF;
    color: #000000;
    border: 1px solid #E2EEFF;
    border-radius: 10px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.8em;
    display: block;
    width: 180px;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.09em;
    font-weight: 600;
}
.buku-kelas-card button:hover {
    color: white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    background: #1a365d;
}
/* BOOK CARD STYLE END */



/* footer */
/* Footer Styles */
.site-footer {
    background-color: #E2EEFF;
    color: #fff;
    padding: 3rem 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;   
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #c0dcfb;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    background-color: #1a365d;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.9px;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: #1a365d;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: flex;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(9, 9, 9, 0.2);
}

.footer-social a:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.footer-social a:nth-child(1):hover { color: #E1306C; } /* Instagram */
.footer-social a:nth-child(2):hover { color: #1877F2; } /* Facebook */
.footer-social a:nth-child(3):hover { color: #25F4EE; } /* TikTok */
.footer-social a:nth-child(4):hover { color: #FF0000; } /* YouTube */
.footer-social a:nth-child(5):hover { color: #0088cc; } /* Telegram */

.footer-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: -1.5rem;
}

.copyright, .credits {
    margin: 0;
    font-size: 1rem;
    color: #1a365d;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.9px;
    line-height: 1.6;
}

.credits {
    font-size: 1rem;
    margin-top: -2rem;
    color: #1a365d;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .footer-social {
        gap: 1rem;
    }
    
    .footer-social a {
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 2rem 0;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-social {
        gap: 0.8rem;
    }
    
    .footer-social a {
        font-size: 1.3rem;
        width: 40px;
        height: 40px;
    }
    
    .copyright, .credits {
        font-size: 0.75rem;
    }
}
/* FOOTER ENDS */