:root {
    --primary-green: #8dc63f;
    --secondary-green: #009444;
    --dark-text: #333333;
    --light-bg: #f4f9f4;
    --white: #ffffff;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-family: var(--heading-font);
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--secondary-green);
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('banner-etda.png') no-repeat center center/cover;
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Sidebar ToC */
aside {
    position: sticky;
    top: 100px;
    height: max-content;
}

.toc {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-green);
}

.toc h3 {
    font-family: var(--heading-font);
    margin-bottom: 1rem;
    color: var(--secondary-green);
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 0.8rem;
}

.toc a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.toc a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

/* Main Content */
main {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

section {
    margin-bottom: 4rem;
    scroll-margin-top: 120px;
}

h2 {
    font-family: var(--heading-font);
    color: var(--secondary-green);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 0.5rem;
}

h3 {
    font-family: var(--heading-font);
    color: var(--dark-text);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

p,
li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Interactive Elements */
.callout {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 5px solid;
}

.callout.info {
    background: #e8f5e9;
    border-color: var(--primary-green);
}

.callout.warning {
    background: #fff3e0;
    border-color: #ff9800;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    background: #f9f9f9;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-content {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--white);
}

.accordion-content.active {
    padding: 1rem;
    max-height: 1000px;
    /* Arbitrary large height */
}

/* Footer */
footer {
    background: var(--dark-text);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer a {
    color: var(--primary-green);
    text-decoration: none;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--secondary-green);
    color: var(--white);
    font-family: var(--heading-font);
}

tr:hover {
    background: #f1f8e9;
}

/* Mobile Nav Styles */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-green);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    aside {
        display: none;
        /* Hide sidebar on mobile */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    main {
        padding: 1.5rem;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        /* Header height */
        left: 0;
        width: 100%;
        background: var(--white);
        border-top: 1px solid #eee;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        /* Hidden by default */
        transition: clip-path 0.4s ease-in-out;
    }

    nav ul.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        /* Fully visible */
    }

    nav ul li {
        text-align: center;
        margin: 0.5rem 0;
    }

    nav a {
        display: block;
        padding: 0.5rem;
    }

    table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
    }
}