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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

.banner {
    background-color: #2c3e50;
    color: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-wrapper {
    display: flex;
    flex: 1;
    background-color: #f8f9fa;
}

.directory-menu {
    width: 250px;
    background-color: #ffffff;
    padding: 1.5rem;
    border-right: 1px solid #e9ecef;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.directory-menu ul {
    list-style: none;
    padding: 0;
}

.directory-menu li {
    margin-bottom: 0.8rem;
}

.directory-menu ul ul {
    margin-left: 1.5rem;
    margin-top: 0.8rem;
    border-left: 2px solid #e9ecef;
    padding-left: 0.8rem;
}

.directory-menu ul ul li {
    margin-bottom: 0.4rem;
    font-size: 0.95em;
}

.directory-menu a {
    text-decoration: none;
    color: #2c3e50;
    display: block;
    padding: 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.directory-menu a:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.directory-menu ul ul a {
    padding: 0.4rem 0.8rem;
}

.directory-menu ul ul a:hover {
    transform: translateX(3px);
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
}

main h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.intro {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid #3498db;
    background-color: #ffffff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.intro h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.intro p {
    color: #495057;
    font-size: 1.1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.content-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.content-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.content-card h3 {
    color: #2c3e50;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.content-card ul {
    list-style: none;
    padding: 0;
}

.content-card li {
    margin: 0.8rem 0;
    padding-left: 1.2rem;
    position: relative;
    color: #495057;
}

.content-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
}

.cta {
    text-align: center;
    margin: 2.5rem 0;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cta p {
    font-size: 1.2rem;
    color: #495057;
}

footer {
    background-color: #2c3e50;
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-3px);
}

.back-to-top.visible {
    display: flex;
}

/* Highlight current page in menu */
.directory-menu a[href^="${window.location.pathname}"] {
    background-color: #e9ecef;
    font-weight: bold;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .directory-menu {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 1.5rem;
    }

    .intro, .cta {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }

    .directory-menu .menu-category {
        position: relative;
    }
    
    .directory-menu .submenu {
        transition: all 0.3s ease;
    }
    
    .directory-menu .menu-category.active > a {
        background-color: #e9ecef;
        font-weight: bold;
    }
    
    .directory-menu .menu-category.active > .submenu {
        display: block;
    }
    
    /* Optional: Add visual indicator for categories with submenus */
    .directory-menu .menu-category > a::after {
        content: '›';
        position: absolute;
        right: 1rem;
        transition: transform 0.3s ease;
    }
    
    .directory-menu .menu-category.active > a::after {
        transform: rotate(90deg);
    }
}
