/* =====================================
   APLIKASI PEMBELAJARAN MATEMATIKA SMA
   NASIMUDDIN
===================================== */

:root {
    --primary: #176b46;
    --primary-dark: #104b33;
    --primary-light: #e9f5ee;
    --secondary: #f4f8f5;
    --white: #ffffff;
    --dark: #1e293b;
    --gray: #64748b;
    --border: #e2e8f0;
    --success: #16a34a;
    --radius: 14px;
    --shadow: 0 4px 15px rgba(0,0,0,.06);
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--secondary);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 92%;
    max-width: 1150px;
    margin: auto;
}

/* NAVBAR */

.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    font-size: 19px;
    font-weight: 800;
    color: var(--primary);
}

.brand span {
    color: var(--dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    transition: .2s;
}

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

.btn {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: .2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: white;
}

/* HERO */

.hero {
    background: linear-gradient(
        135deg,
        #176b46,
        #104b33
    );
    color: white;
    padding: 75px 0;
}

.hero-content {
    max-width: 720px;
}

.hero h1 {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 17px;
    color: #e1f2e8;
    margin-bottom: 25px;
}

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

/* SECTION */

.section {
    padding: 55px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    color: var(--primary-dark);
    font-size: 29px;
    margin-bottom: 8px;
}

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

/* CARD */

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: .25s;
}

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

.card-icon {
    width: 55px;
    height: 55px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 27px;
    margin-bottom: 18px;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.card p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 18px;
}

/* CONTENT */

.content-box {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

.content-box h2,
.content-box h3 {
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.content-box p {
    margin-bottom: 14px;
}

.formula {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 18px;
    margin: 18px 0;
    border-radius: 8px;
    font-weight: 600;
}

/* FOOTER */

.footer {
    background: #103d2b;
    color: white;
    text-align: center;
    padding: 28px 15px;
    margin-top: 40px;
}

.footer p {
    font-size: 13px;
    color: #d1e7d9;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .navbar-inner {
        flex-direction: column;
        padding: 15px 0;
    }

    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 55px 0;
    }

    .hero p {
        font-size: 15px;
    }

    .content-box {
        padding: 20px;
    }

    .section {
        padding: 38px 0;
    }
}
