* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --green: #174f3b;
    --green-light: #286d52;
    --dark: #0d2820;
    --gold: #c59b45;
    --background: #f7f8f5;
    --white: #ffffff;
    --text: #17221c;
    --muted: #68736d;
    --border: #dfe5df;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
}

/* NAVBAR */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    height: 75px;
    padding: 0 7%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(247, 248, 245, 0.95);
    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--green);
    color: white;

    font-size: 25px;
}

.logo h3 {
    font-size: 14px;
    letter-spacing: 1px;
}

.logo small {
    color: var(--muted);
    font-size: 9px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-menu a {
    color: #536059;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}

.nav-menu a:hover {
    color: var(--green-light);
}

.menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 25px;
}


/* HERO */

.hero {
    min-height: calc(100vh - 75px);

    padding: 70px 8%;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 50px;
    align-items: center;

    background:
        radial-gradient(
            circle at 10% 20%,
            #e2eee7,
            transparent 35%
        );
}

.label {
    display: inline-block;

    color: var(--green-light);

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;

    letter-spacing: -3px;
}

.hero h1 span {
    color: var(--green-light);
}

.hero p {
    max-width: 650px;

    color: var(--muted);

    margin: 25px 0;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 13px 18px;

    border-radius: 10px;

    font-weight: bold;
    font-size: 13px;

    cursor: pointer;

    text-decoration: none;
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-secondary {
    border: none;
    background: #e7eee9;
    color: var(--green);
}

.fact-box {
    margin-top: 18px;

    padding: 15px;

    border-left: 3px solid var(--gold);

    background: white;

    border-radius: 10px;

    color: var(--muted);

    font-size: 13px;
}


/* ILUSTRASI MASJID */

.mosque-container {
    height: 480px;

    position: relative;

    overflow: hidden;

    border-radius: 30px;

    background:
        linear-gradient(
            160deg,
            #173e32,
            #091f19
        );

    box-shadow: 0 30px 70px rgba(0,0,0,.2);
}

.moon {
    position: absolute;

    width: 80px;
    height: 80px;

    border-radius: 50%;

    background: #f2e5b5;

    top: 60px;
    right: 80px;

    box-shadow: 0 0 40px rgba(242,229,181,.3);
}

.mosque {
    position: absolute;

    left: 12%;
    right: 12%;
    bottom: 80px;

    height: 230px;
}

.dome {
    position: absolute;

    width: 190px;
    height: 150px;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    border-radius: 190px 190px 0 0;

    background: #dce5df;
}

.building {
    position: absolute;

    bottom: 0;

    left: 7%;
    right: 7%;

    height: 120px;

    display: flex;

    justify-content: center;
    align-items: flex-end;

    gap: 20px;

    padding-bottom: 0;

    background: #edf0eb;

    border-radius: 10px 10px 0 0;
}

.arch {
    width: 45px;
    height: 75px;

    border: 7px solid #c8d2ca;

    border-bottom: none;

    border-radius: 40px 40px 0 0;
}

.minaret {
    position: absolute;

    bottom: 0;

    width: 24px;
    height: 190px;

    background: #dce5df;

    border-radius: 5px;
}

.minaret-left {
    left: 0;
}

.minaret-right {
    right: 0;
}

.ground {
    position: absolute;

    bottom: 0;

    width: 100%;
    height: 80px;

    background:
        repeating-linear-gradient(
            90deg,
            #244e40 0,
            #244e40 70px,
            #2d5b4a 71px,
            #2d5b4a 140px
        );
}

.art-text {
    position: absolute;

    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);

    color: #dce9e0;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 3px;

    white-space: nowrap;
}


/* SECTION */

.section {
    padding: 100px 8%;
    scroll-margin-top: 75px;
}

.section-title {
    max-width: 800px;

    text-align: center;

    margin: 0 auto 45px;
}

.section-title h2 {
    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.15;
}

.section-title p {
    color: var(--muted);

    margin-top: 12px;
}


/* CARDS */

.cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.card {
    padding: 28px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 20px;

    transition: .3s;

    box-shadow: 0 15px 40px rgba(20,45,35,.07);
}

.card:hover {
    transform: translateY(-7px);
}

.card-icon {
    font-size: 30px;

    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 7px;
}

.card p {
    color: var(--muted);

    font-size: 14px;
}

.note {
    max-width: 900px;

    margin: 25px auto;

    padding: 18px;

    background: #edf3ee;

    border-radius: 12px;

    font-size: 13px;

    color: #536059;
}


/* DARK SECTION */

.dark {
    background: var(--dark);

    color: white;
}

.dark .section-title p {
    color: #aebfb6;
}

.dark .label {
    color: #d3b76d;
}


/* LEARNING MAP */

.learning-map {
    position: relative;

    max-width: 900px;

    height: 500px;

    margin: auto;
}

.center-circle {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 190px;
    height: 190px;

    border-radius: 50%;

    background: #edf2ee;

    color: var(--green);

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    box-shadow:
        0 0 0 18px rgba(197,155,69,.08),
        0 20px 50px rgba(0,0,0,.25);
}

.small-dome {
    width: 60px;
    height: 35px;

    margin-bottom: 8px;

    border-radius: 60px 60px 0 0;

    background: var(--green-light);
}

.center-circle strong {
    font-size: 15px;
    line-height: 1.1;
}

.center-circle small {
    font-size: 10px;
    color: #708077;
}

.map-card {
    position: absolute;

    width: 170px;

    padding: 17px;

    text-align: center;

    border: 1px solid rgba(255,255,255,.15);

    border-radius: 15px;

    background: rgba(255,255,255,.06);
}

.map-card strong {
    display: block;

    color: #d6b86e;

    font-size: 13px;
}

.map-card span {
    color: #b7c7bf;

    font-size: 11px;
}

.map-1 {
    left: 3%;
    top: 15%;
}

.map-2 {
    right: 3%;
    top: 15%;
}

.map-3 {
    left: 3%;
    bottom: 15%;
}

.map-4 {
    right: 3%;
    bottom: 15%;
}

.quote {
    max-width: 850px;

    margin: auto;

    display: flex;

    gap: 20px;
}

.quote span {
    font-size: 80px;

    color: #d6b86e;
}

.quote p {
    font-size: 18px;

    color: #d7e3dc;
}


/* TARBIYAH */

.method-container {
    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.method {
    padding: 22px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 16px;

    cursor: pointer;

    transition: .2s;
}

.method:hover,
.method.active {
    background: var(--green);

    color: white;

    transform: translateY(-4px);
}

.method-number {
    color: var(--gold);

    font-weight: bold;

    font-size: 11px;
}

.method h3 {
    margin-top: 7px;
}

.method p {
    color: var(--muted);

    font-size: 12px;
}

.method.active p {
    color: #cbdad2;
}

.method-detail {
    max-width: 1000px;

    min-height: 150px;

    margin: 20px auto;

    padding: 25px;

    border-radius: 18px;

    background: #edf3ee;

    border: 1px solid #d5e3da;
}

.method-detail > span {
    font-size: 10px;

    font-weight: bold;

    color: var(--green-light);

    letter-spacing: 2px;
}

.method-detail h3 {
    margin: 5px 0;
}

.method-detail p {
    color: var(--muted);

    font-size: 14px;
}

.method-detail small {
    display: block;

    margin-top: 10px;

    color: var(--green-light);

    font-weight: bold;
}


/* DALIL */

.dalil {
    background: #f0eee7;
}

.verse {
    max-width: 1000px;

    margin: auto;

    padding: 35px;

    text-align: center;

    background: white;

    border-radius: 22px;

    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.arabic {
    font-family: Georgia, serif;

    font-size: 29px;

    line-height: 2.2;

    color: #173e32;
}

.verse h4 {
    color: var(--gold);

    margin: 12px;
}

.verse p {
    max-width: 800px;

    margin: auto;

    color: var(--muted);

    font-size: 14px;
}

.tafsir {
    max-width: 1000px;

    margin: 20px auto;

    padding: 25px;

    display: flex;

    gap: 20px;

    background: white;

    border-radius: 20px;

    border: 1px solid #e5e1d4;
}

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

.tafsir p {
    color: var(--muted);

    font-size: 14px;
}

.tafsir span {
    display: inline-block;

    margin-top: 10px;

    padding: 6px 10px;

    border-radius: 20px;

    background: #eaf0eb;

    color: var(--green);

    font-size: 10px;

    font-weight: bold;
}


/* IBRAH */

.flow {
    max-width: 1050px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 15px;
}

.flow-card {
    flex: 1;

    padding: 25px;

    text-align: center;

    background: white;

    border: 1px solid var(--border);

    border-radius: 18px;
}

.flow-card span {
    color: var(--gold);

    font-size: 11px;

    font-weight: bold;
}

.flow-card h3 {
    color: var(--green);

    font-size: 21px;
}

.flow-card p {
    color: var(--muted);

    font-size: 12px;
}

.arrow {
    color: var(--gold);

    font-size: 28px;

    font-weight: bold;
}


/* QUIZ */

.quiz-section {
    background: #eaf0eb;
}

.quiz {
    max-width: 900px;

    margin: auto;

    padding: 30px;

    background: white;

    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.question {
    padding: 18px 0;

    border-bottom: 1px solid var(--border);
}

.question h3 {
    font-size: 15px;

    margin-bottom: 10px;
}

.option {
    display: block;

    padding: 6px 0;

    color: var(--muted);

    font-size: 13px;

    cursor: pointer;
}

.option input {
    accent-color: var(--green);
}

.quiz-button {
    width: 100%;

    margin-top: 20px;

    padding: 13px;

    border: none;

    border-radius: 10px;

    background: var(--green);

    color: white;

    font-weight: bold;

    cursor: pointer;
}

#quizResult {
    max-width: 900px;

    margin: 20px auto;

    text-align: center;

    font-weight: bold;

    color: var(--green);
}


/* SOURCES */

.source-list {
    max-width: 900px;

    margin: auto;

    display: grid;

    gap: 10px;
}

.source-list a {
    padding: 15px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 12px;

    color: var(--green-light);

    font-size: 13px;

    font-weight: bold;

    text-decoration: none;
}

.source-list a:hover {
    background: #edf3ee;
}


/* FOOTER */

footer {
    padding: 30px 8%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: #0a211a;

    color: white;
}

footer strong {
    display: block;

    font-size: 12px;

    letter-spacing: 2px;
}

footer small {
    color: #91a79b;

    font-size: 10px;
}

footer p {
    color: #91a79b;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 2px;
}


/* TOP BUTTON */

.top-btn {
    position: fixed;

    right: 20px;
    bottom: 20px;

    width: 42px;
    height: 42px;

    border: none;

    border-radius: 50%;

    background: var(--gold);

    color: white;

    font-size: 18px;

    cursor: pointer;

    opacity: 0;

    pointer-events: none;

    transition: .3s;
}

.top-btn.show {
    opacity: 1;

    pointer-events: auto;
}


/* RESPONSIVE */

@media(max-width: 850px) {

    .menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;

        position: absolute;

        top: 75px;

        left: 0;
        right: 0;

        padding: 20px;

        flex-direction: column;

        background: white;

        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;

        padding: 60px 6%;
    }

    .cards,
    .method-container {
        grid-template-columns: 1fr;
    }

    .learning-map {
        height: auto;

        padding: 30px 0;
    }

    .center-circle {
        position: relative;

        left: auto;
        top: auto;

        transform: none;

        margin: 30px auto;
    }

    .map-card {
        position: relative;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        margin: 15px auto;
    }

    .flow {
        flex-direction: column;
    }

    .flow-card {
        width: 100%;
    }

    .arrow {
        transform: rotate(90deg);
    }

}

@media(max-width: 500px) {

    .hero h1 {
        font-size: 42px;
    }

    .mosque-container {
        height: 350px;
    }

    .arabic {
        font-size: 20px;
    }

    .taf sir {
        display: block;
    }

    footer {
        flex-direction: column;

        gap: 10px;

        text-align: center;
    }

}