/* General Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* Header */
.header-main {
    background-color: #007bff;
    color: white;
    padding: 3rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem; /* Adds space between logo and title */
}

.header-main .logo {
    max-height: 200px;
}

.header-main .help-title {
    font-weight: lighter;
    font-size: 5.8rem;
    margin: 0;
}

.search-bar-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
    .header-top {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1rem;
    }

    .header-main .logo {
        max-height: 100px;
        margin-bottom: 0;
    }

    .header-main .help-title {
        font-size: 2.5rem;
    }

    .header-main {
        padding: 2rem 0;
    }
}

/* Homepage 'Popular Articles' Grid */
.popular-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.popular-article-card {
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    padding: 1.5rem;
    text-decoration: none;
    color: #212529;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
}

.popular-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    color: #007bff;
}

.popular-article-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Table of Contents */
#table-of-contents .list-group-item {
    border: none;
    padding: 0;
}

#table-of-contents .list-group-item a {
    display: block;
    padding: .75rem 1.25rem;
    color: #212529;
    text-decoration: none;
    border-radius: .25rem;
}

#table-of-contents .list-group-item a:hover {
    background-color: #e9ecef;
}

#table-of-contents .list-group-item a.active {
    background-color: #0d6efd;
    color: white;
}


/* Main Content */
#main-content h1, #main-content h2, #main-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #343a40;
}

#main-content p {
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: #343a40 !important;
} 