@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --green: #174d3b;
    --green2: #21674d;
    --gold: #d6ad50;
    --ink: #202923;
    --muted: #77827b;
    --line: #e6eae6;
    --paper: #f7f9f6
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 14px 'DM Sans', sans-serif
}

.sidebar {
    width: 250px;
    background: #123d30;
    color: white;
    position: fixed;
    inset: 0 auto 0 0;
    padding: 26px 19px;
    display: flex;
    flex-direction: column;
    z-index: 5
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: white;
    text-decoration: none;
    padding: 0 5px 35px
}

.logo {
    width: 42px;
    height: 42px;
    border: 1px solid #d6ad50;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #f0cb70;
    font-weight: 800
}

.brand b,
.brand small {
    display: block
}

.brand b {
    font: 700 14px Manrope
}

.brand small {
    font-size: 10px;
    color: #a9c3b4;
    margin-top: 4px
}

.label {
    font-size: 9px;
    letter-spacing: 1.7px;
    color: #8eae9d;
    padding: 0 12px 10px;
    font-weight: bold
}

.sidebar nav {
    display: grid;
    gap: 5px
}

.nav {
    padding: 12px;
    border-radius: 9px;
    text-decoration: none;
    color: #c4d5cb;
    font-size: 12px
}

.nav:hover,
.nav.active {
    background: #245944;
    color: white
}

.nav.active {
    box-shadow: inset 3px 0 var(--gold)
}

.info-label {
    margin-top: 28px
}

.side-note {
    margin-top: auto;
    background: #1d503d;
    border-radius: 12px;
    padding: 15px
}

.side-note span {
    color: #e4c16a;
    font-size: 20px
}

.side-note b {
    display: block;
    font-size: 12px;
    margin: 8px 0 5px
}

.side-note p {
    font-size: 10px;
    line-height: 1.6;
    color: #b8cec0
}

.version {
    color: #86a696;
    padding: 16px 5px 0;
    font-size: 9px
}

main {
    margin-left: 250px;
    min-height: 100vh;
    padding: 0 40px;
    display: flex;
    flex-direction: column
}

.topbar {
    height: 70px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #89938c;
    font-size: 11px
}

.topbar span {
    padding: 0 8px;
    color: #c4cbc5
}

.topbar b {
    color: var(--green)
}

.topbar small {
    font-size: 10px
}

.menu-toggle {
    display: none
}

.page {
    display: none;
    padding: 34px 0 42px
}

.page.active {
    display: block
}

.hero {
    min-height: 280px;
    background: linear-gradient(115deg, #edf4ed, #f8f8f1);
    border: 1px solid #e5ece4;
    border-radius: 17px;
    padding: 34px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden
}

.hero-copy {
    max-width: 510px
}

.eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
    color: #9b854c;
    font-weight: 700;
    margin: 0 0 12px
}

.hero h1,
.page-heading h1 {
    font: 800 35px/1.2 Manrope;
    letter-spacing: -1.5px;
    color: #183e30;
    margin: 0
}

.hero h1 em {
    font-style: normal;
    color: #a17d32
}

.hero-copy>p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.8;
    color: #68776d;
    max-width: 450px;
    margin: 14px 0 20px
}

.gold-button {
    display: inline-flex;
    gap: 24px;
    background: var(--gold);
    color: #26372c;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 17px;
    font-size: 11px;
    font-weight: bold
}

.hero-art {
    width: 220px;
    height: 210px;
    display: grid;
    place-items: center;
    position: relative
}

.orbit {
    position: absolute;
    width: 190px;
    height: 165px;
    border: 1px solid #c5d9c9;
    border-radius: 50%;
    transform: rotate(-25deg);
    box-shadow: 0 0 0 15px #dce9de55
}

.medallion {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: #174d3b;
    border: 5px double #d6b65e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f4d77e;
    box-shadow: 0 12px 35px #174d3b35
}

.medallion span {
    font-size: 18px
}

.medallion b {
    font: 800 30px Manrope
}

.medallion small {
    font-size: 7px;
    letter-spacing: 1.3px
}

.hero-art i {
    position: absolute;
    top: 12px;
    left: 20px;
    color: #bd9b4d;
    font-size: 23px
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 34px 0 16px
}

.section-title h2 {
    font: 800 21px Manrope;
    margin: 0;
    color: #203c30
}

.section-title small {
    font-size: 10px;
    color: #89938c
}

.grades {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px
}

.grade {
    position: relative;
    text-align: left;
    border: 1px solid var(--line);
    background: white;
    border-radius: 12px;
    padding: 16px 18px;
    min-height: 108px;
    cursor: pointer
}

.grade:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px #193a2b12
}

.roman {
    display: block;
    font: 800 26px Manrope;
    color: #2b6549
}

.roman.gold {
    color: #a47e37
}

.roman.blue {
    color: #47768a
}

.grade strong {
    display: block;
    font: 800 12px Manrope;
    margin: 5px 0
}

.grade small {
    font-size: 10px;
    color: #8b968e
}

.grade>span {
    position: absolute;
    right: 16px;
    top: 13px;
    color: #b49a5c
}

.feature-row {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 13px;
    margin-top: 17px
}

.featured,
.quick {
    border-radius: 13px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    background: white
}

.featured {
    background: #173f31;
    color: white;
    border: 0
}

.pill {
    font-size: 8px;
    letter-spacing: 1px;
    color: #e7c96f;
    border: 1px solid #b99c5066;
    padding: 6px 9px;
    border-radius: 30px
}

.featured .eyebrow {
    color: #cbb777;
    margin-top: 19px
}

.featured h2 {
    font: 800 22px Manrope;
    margin: 0 0 8px
}

.featured p:not(.eyebrow) {
    font-size: 11px;
    line-height: 1.7;
    color: #c6d8cc
}

.text-button {
    border: 0;
    background: none;
    color: #f0cf79;
    font-weight: bold;
    font-size: 11px;
    padding: 8px 0;
    cursor: pointer
}

.quick h3 {
    font: 800 17px/1.4 Manrope;
    color: #254333;
    margin: 0 0 8px
}

.quick>p:not(.eyebrow) {
    font-size: 11px;
    line-height: 1.7;
    color: #7c8980
}

.quick a {
    color: #397253;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none
}

.page-heading {
    margin: 10px 0 25px
}

.page-heading h1 {
    font-size: 31px
}

.page-heading>p:last-child {
    font-size: 12px;
    color: #7b877e;
    margin-top: 9px
}

.tabs {
    display: flex;
    gap: 7px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px
}

.tab {
    border: 0;
    background: transparent;
    padding: 12px 17px;
    color: #7e8981;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 2px solid transparent
}

.tab.active {
    color: var(--green);
    border-color: var(--gold)
}

.lesson-list {
    display: grid;
    gap: 10px
}

.lesson {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 15px
}

.lesson-num {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #edf4ed;
    color: #32694b;
    display: grid;
    place-items: center;
    font-weight: bold
}

.lesson-info {
    flex: 1
}

.lesson-info b {
    display: block;
    font-size: 12px;
    color: #294334
}

.lesson-info small {
    display: block;
    color: #929b94;
    font-size: 10px;
    margin-top: 4px
}

.lesson button {
    border: 0;
    background: #edf4ed;
    color: #32694b;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: bold
}

.lesson button:disabled {
    opacity: .55
}

.explore {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.explore article,
.notice {
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 22px
}

.explore article>b {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: #edf4ed;
    color: #32694b;
    border-radius: 12px;
    font-size: 22px
}

.explore h3 {
    font: 700 15px Manrope
}

.explore p,
.notice p {
    font-size: 11px;
    line-height: 1.7;
    color: #7c8980
}

.explore small {
    font-size: 9px;
    color: #a2833f;
    background: #f7f1e3;
    padding: 6px 8px;
    border-radius: 5px
}

.notice {
    display: flex;
    gap: 15px;
    max-width: 760px
}

.about-logo {
    background: #174d3b;
    color: #e7c96f;
    padding: 18px;
    border-radius: 13px;
    font-weight: 800;
    font-size: 20px;
    height: max-content
}

.notice small {
    color: #929b94
}

.notice b {
    font-family: Manrope;
    color: #294334
}

footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    color: #9aa39c;
    font-size: 9px
}

@media(max-width:900px) {
    .sidebar {
        width: 215px
    }

    main {
        margin-left: 215px;
        padding: 0 24px
    }

    .hero {
        padding: 27px
    }

    .hero-art {
        width: 175px
    }

    .feature-row {
        grid-template-columns: 1fr
    }

    .explore {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:650px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .25s;
        width: 260px;
        box-shadow: 10px 0 35px #0002
    }

    .sidebar.open {
        transform: translateX(0)
    }

    main {
        margin-left: 0;
        padding: 0 16px
    }

    .topbar {
        height: 60px;
        gap: 12px
    }

    .menu-toggle {
        display: block;
        border: 0;
        background: #eaf1eb;
        color: var(--green);
        border-radius: 8px;
        padding: 8px 10px
    }

    .topbar small {
        display: none
    }

    .page {
        padding-top: 22px
    }

    .hero {
        padding: 24px 20px;
        min-height: 0
    }

    .hero h1 {
        font-size: 28px
    }

    .hero-art {
        display: none
    }

    .hero-copy>p:not(.eyebrow) {
        font-size: 11px
    }

    .section-title {
        margin-top: 26px
    }

    .section-title h2 {
        font-size: 18px
    }

    .grades {
        gap: 8px
    }

    .grade {
        padding: 13px 10px;
        min-height: 102px
    }

    .roman {
        font-size: 23px
    }

    .grade strong {
        font-size: 11px
    }

    .grade small {
        font-size: 9px
    }

    .grade>span {
        right: 9px;
        top: 8px
    }

    .feature-row {
        grid-template-columns: 1fr
    }

    .page-heading h1 {
        font-size: 27px
    }

    .explore {
        grid-template-columns: 1fr
    }

    .lesson {
        padding: 11px;
        gap: 9px
    }

    .lesson button {
        padding: 8px
    }

    .notice {
        padding: 16px
    }

    footer {
        gap: 8px;
        line-height: 1.5
    }
}


/* ==========================================
   HALAMAN MATERI BANI UMAYYAH
========================================== */

.breadcrumb {
    font-size: 12px;
    color: #87958e;
    margin-bottom: 38px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5ebe6;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h1 {
    font-size: clamp(28px, 4vw, 40px);
    color: #123f32;
    margin: 10px 0;
    letter-spacing: -1px;
}

.section-heading > p:last-child {
    color: #78867f;
    line-height: 1.7;
    max-width: 650px;
}

.lesson-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 35px;
    margin-bottom: 30px;
    border-radius: 18px;
    background: linear-gradient(120deg, #123f32, #1d624a);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.lesson-intro h2 {
    font-size: 25px;
    margin: 12px 0;
    color: #ffffff;
}

.lesson-intro p {
    max-width: 650px;
    color: #d4e4da;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 0;
}

.lesson-intro .eyebrow {
    color: #e4bc62;
}

.lesson-label {
    font-size: 24px;
    font-weight: 700;
    color: #e4bc62;
    white-space: nowrap;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 35px;
}

.module-card {
    background: #ffffff;
    border: 1px solid #e5ebe6;
    border-radius: 15px;
    padding: 25px;
    min-height: 165px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(18, 63, 50, 0.08);
}

.module-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #edf4ee;
    color: #176044;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.module-card h3 {
    font-size: 16px;
    color: #173d32;
    margin: 0 0 9px;
}

.module-card p {
    font-size: 13px;
    color: #829088;
    line-height: 1.6;
    margin: 0;
}

.back-button {
    border: 1px solid #dce6df;
    background: #ffffff;
    color: #176044;
    padding: 12px 20px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.back-button:hover {
    background: #edf4ee;
}

/* ==========================================
   RESPONSIVE HALAMAN MATERI
========================================== */

@media (max-width: 900px) {
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .breadcrumb {
        margin-bottom: 25px;
    }

    .lesson-intro {
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
    }

    .lesson-intro h2 {
        font-size: 21px;
    }

    .lesson-label {
        font-size: 18px;
    }

    .module-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .module-card {
        min-height: auto;
        padding: 20px;
    }
}


/* ==========================================
   RUANG BACA MATERI
========================================== */

.module-detail {
    background: #ffffff;
    border: 1px solid #e5ebe6;
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 30px;
    animation: detailFade .35s ease;
}

.module-detail[hidden] {
    display: none !important;
}

.detail-content {
    max-width: 850px;
    margin: 35px auto 10px;
}

.detail-content .eyebrow {
    color: #b28a38;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.detail-content h2 {
    color: #123f32;
    font-size: clamp(25px, 4vw, 34px);
    line-height: 1.3;
    margin-bottom: 25px;
}

.detail-intro {
    background: #edf4ee;
    border-left: 4px solid #176044;
    padding: 20px 24px;
    border-radius: 8px;
    color: #365b4c;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 35px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    color: #176044;
    font-size: 19px;
    margin-bottom: 12px;
}

.detail-section p {
    color: #59685f;
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
}

@keyframes detailFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .module-detail {
        padding: 20px;
    }

    .detail-content {
        margin-top: 28px;
    }

    .detail-section h3 {
        font-size: 17px;
    }

    .detail-section p {
        font-size: 14px;
    }
}


/* ==========================================
   TIMELINE SEJARAH BANI UMAYYAH
========================================== */

.timeline-section {
    margin: 45px 0;
}

.timeline-heading {
    margin-bottom: 30px;
}

.timeline-heading .eyebrow {
    color: #b28a38;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.timeline-heading h2 {
    color: #123f32;
    font-size: clamp(23px, 3vw, 30px);
    margin: 10px 0;
}

.timeline-heading > p:last-child {
    color: #78867f;
    font-size: 14px;
    line-height: 1.8;
    max-width: 650px;
}

.timeline {
    position: relative;
    max-width: 850px;
    padding: 10px 0 10px 25px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 92px;
    top: 15px;
    bottom: 20px;
    width: 2px;
    background: #dce9df;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.timeline-year {
    position: relative;
    z-index: 1;
    color: #176044;
    font-size: 13px;
    font-weight: 700;
    padding-top: 22px;
}

.timeline-year::after {
    content: "";
    position: absolute;
    right: -11px;
    top: 25px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e4bc62;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #176044;
}

.timeline-content {
    background: #fff;
    border: 1px solid #e5ebe6;
    border-radius: 13px;
    padding: 20px 23px;
    transition: .25s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(18, 63, 50, .08);
    border-color: #cbdccf;
}

.timeline-content h3 {
    color: #173d32;
    font-size: 16px;
    margin: 0 0 9px;
}

.timeline-content p {
    color: #78867f;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 600px) {

    .timeline {
        padding-left: 15px;
    }

    .timeline::before {
        left: 70px;
    }

    .timeline-item {
        grid-template-columns: 65px 1fr;
        gap: 20px;
        margin-bottom: 18px;
    }

    .timeline-year {
        font-size: 11px;
    }

    .timeline-year::after {
        right: -11px;
    }

    .timeline-content {
        padding: 16px;
    }

    .timeline-content h3 {
        font-size: 14px;
    }

    .timeline-content p {
        font-size: 12px;
    }
}


/* INTERAKSI TIMELINE */

.timeline-toggle {
    margin-top: 15px;
    padding: 8px 13px;
    border: 1px solid #dce9df;
    border-radius: 7px;
    background: #edf4ee;
    color: #176044;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.timeline-toggle:hover {
    background: #176044;
    color: #fff;
}

.timeline-extra {
    margin-top: 15px;
    padding: 15px;
    background: #f7faf7;
    border-radius: 8px;
    border-left: 3px solid #e4bc62;
}

.timeline-extra p {
    margin: 0;
    color: #59685f;
    font-size: 13px;
    line-height: 1.8;
}

.timeline-extra[hidden] {
    display: none !important;
}


/* ==========================================
   PETA EKSPANSI BANI UMAYYAH
========================================== */

.map-section {
    margin: 50px 0;
}

.map-heading {
    margin-bottom: 25px;
}

.map-heading .eyebrow {
    color: #b28a38;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.map-heading h2 {
    color: #123f32;
    font-size: clamp(23px, 3vw, 30px);
    margin: 10px 0;
}

.map-heading > p:last-child {
    color: #78867f;
    font-size: 14px;
    line-height: 1.8;
    max-width: 650px;
}

.map-container {
    background: #f2f6f2;
    border: 1px solid #e1e9e2;
    border-radius: 18px;
    padding: 20px;
    overflow: hidden;
}

.map-placeholder {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    border: 1px dashed #b8cbbd;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 50%,
        #e1ece2 0%,
        #f7faf7 75%);
}

.map-placeholder h3 {
    color: #176044;
    font-size: 21px;
    margin-bottom: 10px;
}

.map-placeholder p {
    color: #78867f;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .map-container {
        padding: 10px;
    }

    .map-placeholder {
        min-height: 260px;
        padding: 20px;
    }
}


/* ==========================================
   PETA INTERAKTIF
========================================== */

.map-interactive {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.map-visual {
    min-height: 380px;
    padding: 25px;
    border-radius: 15px;
    background:
        radial-gradient(circle at 50% 50%,
        #e2eee4, #f3f7f3);
    border: 1px solid #dce9df;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-caption {
    color: #176044;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.map-caption span {
    display: block;
    color: #a9873d;
    margin-top: 5px;
}

.map-region-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.map-region {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid #dce9df;
    border-radius: 10px;
    background: #fff;
    color: #365b4c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: .2s ease;
}

.map-region:hover,
.map-region.active {
    background: #176044;
    border-color: #176044;
    color: #fff;
}

.region-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e4bc62;
}

.map-note {
    margin-top: 25px;
    color: #78867f;
    font-size: 11px;
    line-height: 1.6;
}

.map-information {
    background: #fff;
    border: 1px solid #e5ebe6;
    border-radius: 15px;
    padding: 28px;
}

.map-information h3 {
    color: #176044;
    font-size: 23px;
    margin: 15px 0;
}

.map-information > p:not(.eyebrow) {
    color: #78867f;
    font-size: 14px;
    line-height: 1.9;
}

.region-period {
    margin-top: 25px;
    padding: 17px;
    background: #edf4ee;
    border-radius: 9px;
}

.region-period span {
    display: block;
    color: #78867f;
    font-size: 11px;
    margin-bottom: 7px;
}

.region-period strong {
    color: #176044;
    font-size: 14px;
}

@media (max-width: 700px) {
    .map-interactive {
        grid-template-columns: 1fr;
    }

    .map-visual {
        min-height: 300px;
        padding: 18px;
    }

    .map-information {
        padding: 22px;
    }
}


/* PETA GEOGRAFIS LEAFLET */

#umayyahMap {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    border: 1px solid #dce9df;
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
}

.leaflet-popup-content {
    font-family: inherit;
    line-height: 1.7;
}

@media (max-width: 600px) {
    #umayyahMap {
        height: 300px;
    }
}

/* =================================
   GALERI TOKOH BANI UMAYYAH
================================= */

.figures-section {
    margin-top: 60px;
}

.figures-heading {
    margin-bottom: 28px;
}

.figures-heading h2 {
    font-size: 26px;
    color: #183b2b;
    margin: 8px 0;
}

.figures-heading > p:last-child {
    color: #718078;
    line-height: 1.7;
    max-width: 650px;
}

.figures-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.figure-card {
    position: relative;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e2ebe4;
    border-radius: 16px;
    transition: 0.25s ease;
}

.figure-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(25, 65, 43, 0.09);
}

.figure-number {
    font-size: 13px;
    font-weight: 700;
    color: #24945b;
    margin-bottom: 14px;
}

.figure-card h3 {
    font-size: 19px;
    color: #203d2d;
    margin-bottom: 8px;
}

.figure-period {
    font-size: 13px;
    font-weight: 600;
    color: #24945b;
    margin-bottom: 12px;
}

.figure-card > p:not(.figure-period) {
    color: #718078;
    font-size: 14px;
    line-height: 1.7;
}

.figure-toggle {
    margin-top: 18px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #eaf5ed;
    color: #187344;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.figure-toggle:hover {
    background: #187344;
    color: white;
}

.figure-detail {
    margin-top: 16px;
    padding: 15px;
    background: #f3f8f4;
    border-left: 3px solid #24945b;
    border-radius: 8px;
}

.figure-detail p {
    color: #52665a;
    font-size: 14px;
    line-height: 1.8;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .figures-grid {
        grid-template-columns: 1fr;
    }

    .figures-heading h2 {
        font-size: 22px;
    }

    .figure-card {
        padding: 20px;
    }
}

/* =================================
   EVALUASI INTERAKTIF
================================= */

.quiz-section {
    margin-top: 65px;
}

.quiz-heading {
    margin-bottom: 28px;
}

.quiz-heading h2 {
    font-size: 26px;
    color: #183b2b;
    margin: 8px 0;
}

.quiz-heading > p:last-child {
    color: #718078;
    line-height: 1.7;
    max-width: 650px;
}

.quiz-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e2ebe4;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(25, 65, 43, 0.06);
}

.quiz-start,
.quiz-result {
    text-align: center;
    padding: 20px 10px;
}

.quiz-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eaf5ed;
    color: #187344;
    font-size: 32px;
    font-weight: 800;
}

.quiz-start h3,
.quiz-result h3 {
    color: #203d2d;
    font-size: 23px;
    margin-bottom: 12px;
}

.quiz-start > p,
.quiz-result > p {
    color: #718078;
    line-height: 1.7;
}

.quiz-info {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin: 28px 0;
}

.quiz-info div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quiz-info strong {
    color: #187344;
    font-size: 19px;
}

.quiz-info span {
    color: #87938b;
    font-size: 12px;
}

.quiz-button {
    padding: 13px 25px;
    border: none;
    border-radius: 9px;
    background: #187344;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.quiz-button:hover:not(:disabled) {
    background: #105b34;
    transform: translateY(-2px);
}

.quiz-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.quiz-progress {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #718078;
    font-size: 13px;
    font-weight: 600;
}

.quiz-progress-bar {
    height: 8px;
    margin-bottom: 28px;
    overflow: hidden;
    border-radius: 20px;
    background: #edf2ee;
}

#quizProgressFill {
    width: 0%;
    height: 100%;
    border-radius: 20px;
    background: #24945b;
    transition: width 0.3s ease;
}

#questionText {
    color: #203d2d;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.answer-options {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.answer-option {
    width: 100%;
    padding: 15px 18px;
    text-align: left;
    border: 1px solid #e0e9e2;
    border-radius: 10px;
    background: #ffffff;
    color: #405348;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.answer-option:hover:not(:disabled) {
    border-color: #24945b;
    background: #f3f8f4;
}

.answer-option.correct {
    border-color: #24945b;
    background: #eaf7ee;
    color: #17663b;
}

.answer-option.wrong {
    border-color: #d85b5b;
    background: #fff0f0;
    color: #b13b3b;
}

.answer-feedback {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #f3f8f4;
    color: #405348;
    font-size: 14px;
    line-height: 1.7;
}

.final-score {
    margin: 22px auto;
    color: #187344;
    font-size: 55px;
    font-weight: 800;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .quiz-container {
        padding: 22px 17px;
    }

    .quiz-info {
        gap: 20px;
    }

    #questionText {
        font-size: 18px;
    }

    .quiz-heading h2 {
        font-size: 22px;
    }
}

/* =================================
   DASHBOARD CAPAIAN BELAJAR
================================= */

.achievement-section {
    padding: 10px 0 40px;
}

.achievement-section .section-heading {
    margin-bottom: 30px;
}

.achievement-section .section-heading h2 {
    color: #183b2b;
    margin: 8px 0;
}

.achievement-section .section-heading p:last-child {
    color: #718078;
    line-height: 1.7;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.achievement-card {
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e2ebe4;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: 0.25s ease;
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(25, 65, 43, 0.08);
}

.achievement-label {
    color: #718078;
    font-size: 13px;
    font-weight: 600;
}

.achievement-card strong {
    color: #187344;
    font-size: 36px;
}

.achievement-card small {
    color: #98a39b;
    font-size: 12px;
}

.achievement-history {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e2ebe4;
    border-radius: 15px;
}

.achievement-history h3 {
    color: #203d2d;
    margin-bottom: 20px;
}

.empty-history {
    padding: 25px;
    text-align: center;
    color: #98a39b;
    background: #f7faf7;
    border-radius: 10px;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .achievement-card {
        padding: 20px;
    }

    .achievement-history {
        padding: 20px;
    }
}

/* RIWAYAT EVALUASI */

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid #edf2ee;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-item strong {
    color: #304b39;
    font-size: 14px;
}

.history-item small {
    color: #98a39b;
    font-size: 12px;
}

.history-score {
    color: #187344;
    font-weight: 800;
    white-space: nowrap;
}

.complete-button {
    margin-top: 25px;
    padding: 13px 22px;
    border: none;
    border-radius: 10px;
    background: #16834a;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.complete-button:hover {
    background: #10683a;
}

.complete-button.completed {
    background: #64748b;
    cursor: default;
}

/* PROGRES PEMBELAJARAN */

.learning-progress {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    margin-top: 25px;
    border: 1px solid #e5eee7;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.progress-header h3 {
    margin: 0 0 6px;
}

.progress-header p {
    margin: 0;
    color: #718078;
    font-size: 13px;
}

#learningProgressText {
    color: #16834a;
    font-size: 24px;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: #e8eee9;
    border-radius: 20px;
    overflow: hidden;
}

#learningProgressFill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #16834a, #57bd7d);
    border-radius: 20px;
    transition: width 0.5s ease;
}

#learningProgressInfo {
    color: #718078;
    font-size: 13px;
    margin: 12px 0 0;
}

/* STATUS MATERI */

.module-progress-list {
    margin-top: 25px;
}

.module-progress-list h4 {
    margin-bottom: 15px;
}

.module-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #edf2ee;
    font-size: 14px;
}

.module-status-item:last-child {
    border-bottom: none;
}

.module-status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.module-status-badge.done {
    color: #16834a;
    background: #e5f5eb;
}

.module-status-badge.pending {
    color: #9a6b16;
    background: #fff4d9;
}

/* BADGE PENCAPAIAN */

.badge-section {
    margin-top: 30px;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.achievement-badge {
    padding: 18px 10px;
    text-align: center;
    border: 1px solid #e5eee7;
    border-radius: 12px;
    background: #fff;
}

.achievement-badge .badge-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.achievement-badge strong {
    display: block;
    font-size: 13px;
}

.achievement-badge small {
    display: block;
    margin-top: 5px;
    color: #718078;
    font-size: 11px;
}

.achievement-badge.locked {
    opacity: 0.45;
    filter: grayscale(1);
}

@media (max-width: 600px) {
    .badge-grid {
        grid-template-columns: 1fr;
    }
}

/* IDENTITAS SISWA */

.student-profile {
    background: #ffffff;
    border: 1px solid #e5eee7;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.profile-heading h3 {
    margin: 5px 0;
}

.profile-heading p {
    color: #718078;
    font-size: 13px;
}

.profile-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.profile-form input,
.profile-form select {
    flex: 1;
    min-width: 180px;
    padding: 12px;
    border: 1px solid #dce5df;
    border-radius: 8px;
    font: inherit;
}

.profile-form button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #16834a;
    color: white;
    cursor: pointer;
    font-weight: 600;
}

#profileGreeting {
    margin-top: 15px;
    color: #16834a;
    font-weight: 600;
}

@media(max-width:600px) {
    .profile-form {
        flex-direction: column;
    }
}

/* DASHBOARD PERSONAL SISWA */

.student-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 15px;
    background: linear-gradient(120deg, #e8f5ec, #f5faf6);
}

.student-welcome h2 {
    margin: 5px 0;
    color: #176b3c;
}

.student-welcome p {
    margin: 5px 0;
    color: #64756a;
}

.welcome-icon {
    font-size: 42px;
}

@media (max-width: 600px) {
    .student-welcome {
        padding: 18px;
    }

    .welcome-icon {
        font-size: 30px;
    }
}

/* TOMBOL CETAK LAPORAN */

.report-action {
    margin: 20px 0;
    text-align: left
}

#printReport {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #176b3c;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

#printReport:hover {
    background: #10552e;
}

/* TAMPILAN CETAK */

@media print {
    body * {
        visibility: hidden;
    }

    #page-capaian,
    #page-capaian * {
        visibility: visible;
    }

    #page-capaian {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
    }

    .sidebar,
    .topbar,
    .report-action,
    .student-profile {
        display: none !important;
    }

    .achievement-card,
    .learning-progress,
    .achievement-history {
        break-inside: avoid;
        box-shadow: none !important;
    }
}


/* =================================
   RESPONSIVE DESIGN - SKI LEARNING HUB
================================= */

/* TABLET */
@media (max-width: 900px) {
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* SMARTPHONE */
@media (max-width: 600px) {
    .module-grid,
    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h1 {
        font-size: 25px;
    }

    .section-heading p {
        font-size: 14px;
    }

    .lesson-intro {
        padding: 18px;
    }

    .module-card {
        padding: 18px;
    }

    .detail-content {
        padding: 18px;
    }

    .achievement-section {
        padding: 15px;
    }

    .report-action {
        text-align: left;
    }

    #printReport {
        width: 100%;
    }
}
