/* ============================================================
   style.css  —  Global / Landing Page
   Modul Pembelajaran Statistik Digital Berbasis STEM
   ============================================================ */

/* ── Variables ── */
:root {
    --blue:        #2563eb;
    --blue-dark:   #1e3a8a;
    --blue-light:  #eff6ff;
    --gold:        #f59e0b;
    --gold-dark:   #d97706;
    --text:        #1e293b;
    --muted:       #64748b;
    --border:      #e2e8f0;
    --bg-soft:     #f8fafc;
    --radius:      10px;
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Base ── */
body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: var(--text);
}

/* ── Navbar ── */
nav {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 6%;
    height: 64px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: auto;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    flex-shrink: 0;
}

.logo-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    max-width: 280px;
    line-height: 1.3;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

nav ul a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s;
}

nav ul a:hover  { color: var(--blue); }

nav ul a.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
}

.nav-login {
    background: var(--blue-dark);
    color: #ffffff !important;
    padding: 8px 22px;
    border-radius: 7px;
    font-weight: 600 !important;
    transition: background 0.2s;
}

.nav-login:hover {
    background: var(--blue);
    color: #ffffff !important;
}

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #3b82f6 100%);
    color: #ffffff;
    text-align: center;
    padding: 80px 6% 90px;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.hero p {
    font-size: 15px;
    opacity: 0.85;
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

/* ── Buttons ── */
.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: #1a1a1a;
    padding: 13px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

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

/* ── Modules section ── */
.modules {
    padding: 64px 6%;
    background: var(--bg-soft);
}

.modules h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.modules > p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 28px;
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.module-item:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.module-item:nth-child(2) { border-left-color: #10b981; }
.module-item:nth-child(3) { border-left-color: var(--gold); }
.module-item:nth-child(4) { border-left-color: #8b5cf6; }
.module-item:nth-child(5) { border-left-color: #ef4444; }
.module-item:nth-child(6) { border-left-color: #06b6d4; }

.mod-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.mod-body { flex: 1; }

.mod-meta {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 3px;
}

.mod-body h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.mod-body p {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

.mod-arrow {
    color: #cbd5e1;
    font-size: 20px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.module-item:hover .mod-arrow { color: var(--blue); }

/* ── CTA section ── */
.cta {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #ffffff;
    text-align: center;
    padding: 56px 6%;
}

.cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 24px;
}

/* ── Footer ── */
footer {
    background: #0f172a;
    color: var(--muted);
    padding: 28px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    flex-wrap: wrap;
    gap: 10px;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover { color: #60a5fa; }

/* ── Responsive ── */
@media (max-width: 768px) {
    nav { padding: 0 4%; gap: 16px; }
    nav ul li:not(:last-child) { display: none; }
    .logo-name { font-size: 12px; max-width: 180px; }
    .hero h1 { font-size: 1.6rem; }
}
