/* =========================
FILE : materi-detail-style.css
========================= */


/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================
BODY + BACKGROUND
Ganti background sendiri
========================= */
body {
    font-family: Arial, sans-serif;
    color: #222;

    /* Background utama */
    background-image: url("../css/background1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* =========================
SECTION UTAMA
========================= */
.detail-page {
    width: 100%;
    min-height: 100vh;
    padding: 30px 50px 40px;
    background: transparent;
}


/* =========================
NAVBAR
========================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}


/* =========================
LOGO AREA
========================= */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-box img {
    width: 65px;
    height: auto;
}

.logo-text h3 {
    color: #288fd7;
    font-size: 22px;
    line-height: 1.2;
}


/* =========================
MENU AREA
========================= */
.menu-area {
    display: flex;
    gap: 14px;
    align-items: center;
}

.btn-outline,
.btn-active {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn-outline {
    border: 2px solid #288fd7;
    background: white;
    color: #288fd7;
}

.btn-active {
    background: #288fd7;
    color: white;
    border: 2px solid #288fd7;
}

.btn-icon {
    width: 18px;
    height: 18px;
}


/* =========================
JUDUL HALAMAN
========================= */
.title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.title-icon {
    width: 90px;
}

.title-section h1,
.title-section h2 {
    color: #1568a8;
    font-weight: bold;
}

.title-section h1 {
    font-size: 58px;
}

.title-section h2 {
    font-size: 60px;
    line-height: 1.2;
}


/* =========================
BOX MATERI
========================= */
.content-box {
    background: white;
    border: 2px solid #288fd7;
    border-radius: 28px;
    padding: 30px;
    min-height: 700px;

    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}


/* Header box */
.box-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}

.box-icon {
    width: 50px;
}

.box-header h3 {
    font-size: 42px;
    color: #1568a8;
}


/* Isi materi */
.materi-content p {
    font-size: 24px;
    line-height: 1.8;
}

.materi-content li{
    margin-left: 20px;
    font-size: 18px;
    line-height: 1.5;

}

.subjudul p {
    font-size: 18px;

}

.subjudultengah p {
    text-align: center;
    font-size: 18px;
    

}



.deskripsigambar p{
    display: flex;
    font-size: 18px;
    justify-content: center;
}


/* =========================
PAGINATION
========================= */
.pagination-section {
    margin: 30px 0;
    text-align: center;
}

.pagination-dots {
    display: inline-flex;
    gap: 15px;
}

.dot {
    width: 18px;
    height: 18px;
    border: 2px solid #222;
    border-radius: 50%;
    display: inline-block;
}

.dot.active {
    background: #288fd7;
    border-color: #288fd7;
}

/* =========================
GAMBAR DI TENGAH CONTENT BOX
Horizontal Center
========================= */

.materi-image {
    width: 100%;

    /* membuat gambar ke tengah horizontal */
    display: flex;
    justify-content: center;

    /* jarak atas bawah */
    margin: 30px 0;

    border: 10px;
    border-color: black;
}


/* ukuran gambar */
.materi-image img {
    width: 600px; /* bisa diganti */
    max-width: 100%;
    height: auto;

    /* optional biar lebih rapi */
    border-radius: 0px;
}


/* =========================
BAGIAN BAWAH
========================= */
.bottom-section {
     display: flex;

    /* tombol tetap di kanan bawah */
    justify-content: flex-end;

    /* posisi bawah */
    align-items: flex-end;

    margin-top: 30px;
}

.bottom-left-image img {
    display: none;
}


/* Tombol kanan bawah */
.bottom-buttons {
    display: flex;
    align-items: center;
    gap: 18px;
}


/* Tombol Quiz */
.btn-quiz {
    background: #78d14f;
    color: white;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 22px;
    font-weight: bold;
}


/* Tombol Next */
.btn-next {
    background: #084671;
    color: white;
    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px 28px;
    border-radius: 14px;
    font-size: 22px;
    font-weight: bold;
}


/* Tombol Back */
.btn-back {
    background: #084671;
    color: white;
    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px 28px;
    border-radius: 14px;
    font-size: 22px;
    font-weight: bold;
}

/*Tombol Kumpulkan Quiz*/
.btn-refleksi {
    background: #288fd7;
    color: white;
    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px 28px;
    border-radius: 14px;
    font-size: 22px;
    font-weight: bold;
}

.nav-icon {
    width: 18px;
    height: 18px;
}


/* =========================
HOVER EFFECT
========================= */

.btn-outline:hover {
    background: #288fd7;
    color: white;
    transform: translateY(-2px);
}

.btn-outline:hover .btn-icon {
    filter: brightness(0) invert(1);
}

.btn-active:hover {
    background: #1f7fc2;
}

.btn-next:hover,
.btn-back:hover {
    background: #063553;
    transform: translateY(-2px);
}

.btn-quiz:hover {
    background: #66c53c;
    transform: translateY(-2px);
}

.content-box:hover {
    transform: translateY(-3px);
    transition: 0.3s ease;
}

/* =========================
CSS TABEL PENILAIAN
========================= */

.tabel-penilaian {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.header-tabel th {
    border: 1.5px solid #555;
    padding: 8px;
    vertical-align: middle;
    text-align: center; /* header rata tengah */
    font-weight: bold;
}


.tabel-penilaian td {
    border: 1.5px solid #555;
    padding: 8px;
    vertical-align: top;
    text-align: left;
}

.tabel-penilaian th {
    background: #f2f2f2;
    font-weight: bold;
}

/* Kolom isi deskripsi rata kiri */
.tabel-penilaian td:nth-child(2) {
    text-align: left;
}

/* Hover */
.tabel-penilaian tr:hover {
    background: #f9fcff;
    transition: 0.2s;
}


/* =========================
BUTTON DI DALAM BOX INSTRUMEN
========================= */

.instrumen-box {
    background: white;
    border: 2px solid #288fd7;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


/* =========================
POSISI BUTTON
========================= */

.instrumen-button {
    margin-top: 35px;
}


/* =========================
STYLE BUTTON
========================= */

.btn-submit {
    display: inline-block;
    text-decoration: none;

    background: #288fd7;
    color: white;

    padding: 18px 28px;
    border-radius: 14px;

    font-size: 16px;
    font-weight: bold;

    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
    transition: 0.3s ease;
}


/* =========================
HOVER EFFECT
========================= */

.btn-submit:hover {
    background: #1f7fc2;
    transform: translateY(-3px);
}

.content-box .note{
    font-size: 12px;
}


/*NOTIF SELESAI*/

.notif {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* ⬇ sembunyi di bawah */

    background: #4FA63A;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.2);

    opacity: 0; /* ❗ ini yang penting */
    pointer-events: none; /* biar tidak bisa diklik saat hidden */
    transition: all 0.4s ease;
}

/* hanya muncul saat ada class ini */
.notif.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================
CSS TABEL KERANGKA
========================= */

.tabel-kerangka {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

/* Header */
.header-tabel th {
    border: 1.5px solid #555;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    background: #f2f2f2;
}

/* Isi tabel */
.tabel-kerangka td {
    border: 1.5px solid #555;
    padding: 12px;
    vertical-align: top;
    text-align: left;
}

/* List di dalam tabel */
.tabel-kerangka ul {
    margin: 0;
    padding-left: 20px;
}

.tabel-kerangka li {
    margin-bottom: 8px;
}

/* Hover */
.tabel-kerangka tr:hover {
    background: #f9fcff;
    transition: 0.2s;
}