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

body {
    background: #f4f9f6;
    padding: 2rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1f4d3a;
    font-size: 2.2rem;
}

.toc-wrapper {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.toc-card {
    background: #fff;
    padding: 1.5rem 1.8rem;
    border-radius: 14px;
    border-left: 6px solid #27ae60;
    box-shadow: 0 0 20px rgba(0,0,0,.08);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    color: #1f4d3a;
    transition: color .3s;
}

.toc-header:hover {
    color: #27ae60;
}

.toc-arrow {
    font-size: 1.4rem;
    color: #27ae60;
    transition: transform .3s;
}

.toc-content {
    margin-top: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-list li {
    padding: .45rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.toc-list li:last-child {
    border-bottom: none;
}

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

@media (max-width: 800px) {

    .toc-wrapper {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    body {
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

}


@media (max-width: 600px) {

    body {
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

}


/* ==========================================
   TOC PAGE BUTTONS
   ========================================== */

.button-container {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.button-container .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================
   TOC NAVIGATION BUTTONS
   ========================================== */

.button-container {
    width: 100%;
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.button-container .nav-button {
    width: 220px;
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}