/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4fff6;
    line-height: 1.6;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2e8b57;
    color: white;
    padding: 15px 60px;
}

nav h2 {
    font-size: 22px;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* HERO */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 70px 60px;
    gap: 40px;
}

.hero-text {
    max-width: 55%;
}

/* JUDUL */
.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #3cb371, #2e8b57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

/* SUB JUDUL */
.hero-text p:nth-child(2) {
    font-size: 20px;
    font-weight: 600;
    color: #2e8b57;
    margin-bottom: 10px;
}

/* DESKRIPSI */
.hero-text p {
    margin-bottom: 10px;
    font-size: 15px;
    text-align: justify;
}

/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 10px;
    background-color: #2e8b57;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn:hover {
    background-color: #256d46;
}

/* HERO IMAGE */
.hero-img img {
    width: 380px;
    max-width: 100%;
}

/* FITUR */
.fitur {
    text-align: center;
    padding: 60px 40px;
}

.fitur h2 {
    margin-bottom: 40px;
    font-size: 28px;
    color: #2e8b57;
}

/* GRID CARD */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 40px;
}

/* CARD */
.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
}

/* ICON */
.card img {
    width: 130px;
    margin-bottom: 15px;
}

/* TITLE */
.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* TEXT */
.card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

/* BUTTON CARD */
.btn-card {
    display: inline-block;
    background: #2e8b57; /* disesuaikan dengan tema */
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
}

.btn-card:hover {
    background: #256d46;
}

/* FOOTER UTAMA */
.footer {
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: white;
    margin-top: 60px;
}

/* CONTAINER */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px 60px;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* KOLOM */
.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-col h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #f0fdf4;
}

/* COPYRIGHT */
.footer-bottom {
    text-align: center;
    background-color: #e6f4ea;
    color: #2e8b57;
    padding: 15px;
    font-size: 14px;
    font-weight: 500;
}
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: white;
    width: 60%;
    max-width: 600px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    animation: pop 0.3s ease;
}

.modal-content img {
    width: 120px;
    margin-bottom: 10px;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

@keyframes pop {
    from {transform: scale(0.7); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}
.hero-img img {
    width: 380px;
    max-width: 100%;
    animation: floatUpDown 3s ease-in-out infinite;
}

/* animasi naik turun */
@keyframes floatUpDown {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}
/* ===== KELAS MAYA FINAL ===== */
.kelas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 75vh;
    max-width: 1100px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.kelas-container:hover {
    transform: translateY(-3px);
}

/* ===== KIRI ===== */
/* CONTAINER KIRI */
.kelas-left {
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: white;
    padding: 35px 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    gap: 12px; /* ini kunci biar jarak konsisten */
}

/* ICON */
.kelas-left::before {
    content: "";
    display: block;
    width: 100px;
    height: 100px;

    background-image: url('kelas\ maya.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    margin-bottom: 0; /* ini kunci biar tidak jauh */
}

/* JUDUL */
.kelas-left h1 {
    font-size: 34px;
    line-height: 1.2;

    /* shadow halus & elegan */
    text-shadow: 
        0 3px 6px rgba(0,0,0,0.25),
        0 1px 2px rgba(0,0,0,0.15);
}

/* DESKRIPSI */
.kelas-left p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 360px;
    margin: 0; /* hapus jarak bawaan */
}

/* BADGE */
.kelas-left strong {
    margin-top: 10px;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    font-size: 12px;
}

/* ===== KANAN ===== */
.kelas-right {
    background: white;
    padding: 40px 45px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kelas-right h2 {
    color: #2e8b57;
    margin-bottom: 5px;
}

.kelas-right p {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/* INPUT */
.kelas-right input {
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    outline: none;
    transition: 0.3s;
}

.kelas-right input:focus {
    border-color: #2e8b57;
    box-shadow: 0 0 5px rgba(46,139,87,0.2);
}

/* ROW (TIDAK SEJAJAR) */
.kelas-row {
    display: flex;
    justify-content: space-between; /* kiri & kanan */
    align-items: center;
    font-size: 13px;
    margin-bottom: 20px;
}

.kelas-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1; /* penting biar tidak turun */
}

/* checkbox biar center */
.kelas-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0; /* hapus margin bawaan */
    vertical-align: middle;
    position: relative;
    top: -1px; /* sedikit naik biar pas sejajar */
}

/* checkbox biar rapi */
.kelas-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* lupa sandi di kanan */
.kelas-row a {
    color: #2e8b57;
    text-decoration: none;
}

/* BUTTON */
.kelas-right .btn {
    width: 100%;
    margin-top: 5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .kelas-container {
        grid-template-columns: 1fr;
        height: auto;
    }
}
.daftar {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.daftar a {
    color: #2e8b57;
    text-decoration: none;
    font-weight: 500;
}
/* KHUSUS BAGIAN MEDIA (BIAR TIDAK MENGGANGGU CARD LAIN) */
.media-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

/* CARD KHUSUS YANG FULL GAMBAR */
.card.full-img {
    padding: 0;              /* HAPUS SPACE DALAM */
    background: none;        /* HAPUS PUTIH */
    border-radius: 15px;
    overflow: hidden;
}

/* GAMBAR FULL */
.full-img img {
    width: 100%;
    height: 250px !important;
    object-fit: cover;
    display: block;
}

/* LABEL */
.label {
    margin: 0;
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    background: #f1f1f1;
}

/* HOVER */
.card.full-img:hover {
    transform: scale(1.05);
    transition: 0.3s;
}
/* KHUSUS BANK SOAL LEVEL */
.level-section .media-3 {
    display: grid;
    grid-template-columns: repeat(3, 260px); /* lebih besar */
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* CARD JADI KOTAK */
.level-section .card.full-img {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}

/* GAMBAR */
.level-section .full-img img {
    width: 100%;
    height: 150px; /* sedikit lebih besar */
    object-fit: cover;
}

/* LABEL */
.level-section .label {
    text-align: center;
    padding: 12px;
    font-weight: bold;
    background: #f5f5f5;
    font-size: 15px;
}

/* HOVER */
.level-section .card-link:hover .card {
    transform: translateY(-5px);
}
/* KHUSUS EBOOK FULLSCREEN */
#ebookModal .modal-content {
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    margin: 5vh auto;
    padding: 10px;
    border-radius: 15px;
}

/* PDF LEBIH BESAR */
#pdfViewer {
    width: 100%;
    height: 100%;
    border: none;
}
/* MODAL EBOOK */
.ebook-modal-content {
    width: 98%;
    max-width: 1400px;
    height: 96vh;
    margin: 2vh auto;
    padding: 8px;
    border-radius: 20px;
    background: white;
}

/* FRAME FLIPBOOK */
#ebookFrame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}
/* =========================
   EBOOK CONTAINER
========================= */
.ebook-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 40px;
}

/* =========================
   CARD EBOOK
========================= */
.ebook-card {
    background: #ececec;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.ebook-card:hover {
    transform: translateY(-8px);
}

/* =========================
   GAMBAR EBOOK LANDSCAPE
========================= */
.ebook-card img {
    width: 100%;
    height: 180px; /* tinggi landscape */
    object-fit: cover;
    display: block;
}

/* =========================
   JUDUL EBOOK
========================= */
.ebook-title {
    text-align: center;
    padding: 20px;
    font-size: 28px;
    font-weight: bold;
    background: #ececec;
}

/* =========================
   MODAL EBOOK
========================= */
.ebook-modal-content {
    background: white;
    width: 95%;
    height: 92vh;
    margin: 2vh auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: 10px;
}

/* =========================
   IFRAME FLIPBOOK
========================= */
#ebookFrame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

    .ebook-container {
        grid-template-columns: 1fr;
    }

    .ebook-card img {
        height: 220px;
    }

}
/* =========================
   VIDEO CONTAINER
========================= */
.video-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 40px;
}

/* =========================
   VIDEO CARD
========================= */
.video-card {
    position: relative;
    background: #ececec;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.video-card:hover {
    transform: translateY(-8px);
}

/* =========================
   THUMBNAIL VIDEO
========================= */
.video-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* =========================
   TOMBOL PLAY
========================= */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 70px;
    height: 70px;

    background: rgba(0,0,0,0.6);
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
}

/* =========================
   JUDUL VIDEO
========================= */
.video-title {
    text-align: center;
    padding: 20px;
    font-size: 28px;
    font-weight: bold;
    background: #ececec;
}

/* =========================
   MODAL VIDEO
========================= */
.video-modal-content {
    background: white;
    width: 95%;
    height: 92vh;
    margin: 2vh auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: 10px;
}

/* =========================
   IFRAME VIDEO
========================= */
#videoFrame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

    .video-container {
        grid-template-columns: 1fr;
    }

}
/* =========================
   VIDEO CONTAINER
========================= */
.video-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 40px;
}

/* =========================
   VIDEO CARD
========================= */
.video-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-card:hover {
    transform: translateY(-8px);
}

/* =========================
   THUMBNAIL VIDEO
========================= */
.video-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* =========================
   PLAY BUTTON
========================= */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 75px;
    height: 75px;

    border-radius: 50%;

    background: rgba(0,0,0,0.6);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
}

/* =========================
   MODAL VIDEO
========================= */
.video-modal-content {
    background: white;
    width: 85%;
    height: 82vh;
    margin: 2vh auto;

    border-radius: 20px;

    overflow: hidden;
    position: relative;

    padding: 10px;
}

/* =========================
   VIDEO FRAME
========================= */
#videoFrame {
    width: 100%;
    height: 100%;

    border: none;
    border-radius: 15px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

    .video-container {
        grid-template-columns: 1fr;
    }

    .video-card img {
        height: auto;
    }

}