@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ================= BODY ================= */
body {
    background: #f5f7fb;
    color: #2c3e50;
}

/* ================= HEADER ================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: #ffffff;
    border-bottom: 3px solid #ff4d4d;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    margin-right: 12px;
}

.logo-text h3 {
    font-size: 15px;
    font-weight: 700;
}

.logo-text p {
    font-size: 12px;
    color: #777;
}

/* ================= NAVBAR ================= */
nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a,
.dropdown label {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

/* underline anim */
nav a::after,
.dropdown label::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: 0.3s;
}

nav a:hover::after,
.dropdown label:hover::after {
    width: 100%;
}

/* ================= DROPDOWN CLICK ================= */
.dropdown {
    position: relative;
}

.dropdown input {
    display: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 32px;
    left: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 190px;
    z-index: 999;
    padding: 8px 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #f1f3ff;
}

/* tampil saat diklik */
.dropdown input:checked ~ .dropdown-menu {
    display: block;
}

/* ================= HERO ================= */
.hero {
    height: 340px;
    background:
        linear-gradient(135deg,
        rgba(102,126,234,0.9),
        rgba(118,75,162,0.9)),
        url('hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
}

.hero p {
    font-size: 16px;
    opacity: 0.9;
}

/* ================= INFO MATA KULIAH ================= */
.info-mk {
    max-width: 900px;
    margin: -60px auto 50px;
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    text-align: center;
}

.info-mk h2 {
    font-size: 18px;
    color: #667eea;
    margin-bottom: 6px;
}

.info-mk h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.info-mk p {
    font-size: 14px;
    color: #555;
}

/* ================= MATERI ================= */
.materi-section {
    padding: 40px 20px;
}

.materi-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.materi-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

/* ================= CARD ================= */
.materi-card {
    background: #ffffff;
    padding: 26px;
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    transition: 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
}

.materi-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: 0.35s;
}

.materi-card:hover::before {
    opacity: 0.08;
}

.materi-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 18px 45px rgba(102,126,234,0.35);
}

.materi-card small {
    display: block;
    margin-top: 6px;
    color: #555;
    font-weight: 400;
}

/* ================= TENTANG & KONTAK ================= */
.tentang {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    text-align: center;
}

.tentang h2 {
    margin-bottom: 15px;
}

/* ================= FOOTER ================= */
footer {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    text-align: center;
    padding: 18px;
    margin-top: 60px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 32px;
    }
}
/* ================= PENYATU HALAMAN PERTEMUAN ================= */
/* Tambahkan di PALING BAWAH style.css */

.materi-page {
    padding: 50px 20px;
}

/* Bungkus semua isi materi jadi satu alur */
.materi-page > * {
    max-width: 900px;
    margin: 0 auto 18px;
}

/* Judul section */
.materi-page h2,
.materi-page h3 {
    color: #2c3e50;
    margin-bottom: 12px;
}

/* Box isi materi */
.materi-page p,
.materi-page ul {
    background: #ffffff;
    padding: 26px 32px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}

/* Supaya list menyatu */
.materi-page ul {
    margin-top: -8px;
    padding-left: 50px;
}

/* Jarak antar section lebih halus */
.materi-page section,
.materi-page h3 {
    margin-top: 30px;
}

/* Efek halus biar elegan */
.materi-page p:hover,
.materi-page ul:hover {
    box-shadow: 0 14px 30px rgba(102,126,234,0.18);
    transition: 0.3s ease;
}

/* ================= KUNCI FOOTER AGAR SAMA SEMUA ================= */

footer {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    text-align: center;
    padding: 18px;
    margin-top: 60px;
    border-radius: 0 !important;
    box-shadow: none !important;
}

footer * {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #fff;
}
