* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #0e0e0e;
    color: #f5f5f5;
    line-height: 1.7;
}

/* ================= HERO ================= */

.hero {
    height: 45vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #111, #1a1a1a);
    border-bottom: 1px solid #222;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    color: #bdbdbd;
    max-width: 800px;
}

/* ================= TABLE OF CONTENTS ================= */

.toc {
    position: sticky;
    top: 60px;
    background: #121212;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #222;
    z-index: 10;
}

/* make links behave like full-height buttons */
.toc a {
    color: #cfcfcf;
    text-decoration: none;
    font-size: 0.9rem;

    padding: 12px 18px;
    display: flex;
    align-items: center;

    transition: background 0.2s ease, color 0.2s ease;
}

/* hover fills full TOC height */
.toc a:hover {
    background-color: rgb(104, 101, 101);
    color: white;
}

/* ================= LAYOUT ================= */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 50px;
    margin-bottom: 60px;
}

/* IMPORTANT: prevents navbar overlap when clicking anchors */
section {
    scroll-margin-top: 120px;
}

/* ================= SECTION BASE ================= */

.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* ================= CARD STYLE ================= */

.card {
    padding: 25px;
}

/* ================= SECTION VARIANTS (FIXED) ================= */
/* These now ONLY affect styling, NOT layout */

.section-1 {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.section-2 {
    background: rgba(255, 255, 255, 0.01);
    border-left: 2px solid rgba(255, 255, 255, 0.03);
}

/* ================= GRID ================= */

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

/* ================= TEXT ================= */

p {
    color: #cfcfcf;
}

ul {
    padding-left: 20px;
    color: #cfcfcf;
}

li {
    margin-bottom: 6px;
}

/* ================= RESPONSIVE ================= */

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

    .toc {
        flex-wrap: wrap;
        gap: 10px;
    }
}