/* Font imports */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://d2zk50hbjnowpz.cloudfront.net/GTWalsheimPro-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://d2zk50hbjnowpz.cloudfront.net/GTWalsheimPro-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://d2zk50hbjnowpz.cloudfront.net/GTWalsheimPro-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* Global styles */

:root {
    --blue: #007bff;
    --e4usa-blue: #005ea4;
    --e4usa-blue-rgba: rgba(0, 94, 164, 0.8);
    --e4usa-dark-blue: #282e6c;
    --e4usa-dark-blue-rgba: rgba(40, 46, 108, 0.8);
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --orange: #fd7e14;
    --green: #28a745;
    --e4usa-green: #009344;
    --teal: #20c997;
    --cyan: #17a2b8;
    --gray: #666;
    --gray-dark: #222;
    --gray-light: #f7f7f7;
    --primary: #007bff;
    --secondary: #666;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffcc00;
    --danger: #e21833;
    --light: #f7f7f7;
    --dark: #333;
    --light-gray: #f7f7f7;
    --dark-gray: #222;
    --red: #e21833;
    --e4usa-red: #DF393D;
    --yellow: #ffcc00;
    --e4usa-yellow: #F8A41e;
    --e4usa-yellow-rgba: rgba(248, 164, 30, 0.8);
    --white: #fff;
    --black: #000;
}

body {
    font-family: 'GT Walsheim Pro', sans-serif;
    background-color: #f5f7fa;
    color: #003366;
    line-height: 1.6;
}

.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
#mainNav {
    background-color: #003366;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .navbar-inner {
    background: #003366;
    padding: 15px 0;
}

.navbar .brand {
    background: url('https://e4usa.org/sites/all/themes/contrib/e4usa/logo.svg') no-repeat;
    background-size: contain;
    width: 277px;
    /* Width of the SVG */
    height: 54px;
    /* Height of the SVG */
    padding: 0;
    text-indent: -9999px;
    /* Hide any text content */
    margin: 0 20px 0 0;
}

.navbar .nav li a,
.navbar .icon-private-w {
    color: #ffffff;
}

/* Search section */
#docsSearch {
    background-color: #003366;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

#docsSearch h1 {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
}

#searchBar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

#searchBar .search-query {
    flex-grow: 1;
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 4px;
}

#searchBar button {
    padding: 15px 30px;
    font-size: 18px;
    background-color: #F8A41E;
    color: #ffffff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-shadow: none !important;
}

#searchBar button:hover {
    background-color: #e8940e;
}

/* Color bars */
#docsSearch::after {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(to right,
            #DF393D 0%, #DF393D 25%,
            #F8A41E 25%, #F8A41E 50%,
            #005ea4 50%, #005ea4 75%,
            #009344 75%, #009344 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Most Popular Articles */
.most-pop-articles {
    margin-top: 60px;
    padding: 0 15px;
}

.most-pop-articles h2 {
    color: #003366;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.most-pop-articles .popArticles {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
    list-style-type: none;
}

.most-pop-articles .popArticles li {
    margin: 0;
    padding: 0;
}

.most-pop-articles .popArticles .icon-article-doc {
    margin-left: 0px !important;
}

.most-pop-articles .popArticles a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 75px;
    margin: 10px;
    padding: 15px;
    background-color: #ffffff;
    color: #003366;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 1.3;
    word-break: break-word;
}

.most-pop-articles .popArticles a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.most-pop-articles .popArticles a i {
    font-size: 30px;
    margin-right: 10px;
}

.most-pop-articles .popArticles a span {
    font-weight: 500;
}

@media (max-width: 768px) {
    .most-pop-articles .popArticles {
        grid-template-columns: 1fr;
    }
}

/* Categories */
.category-list {
    margin-top: 60px;
}

.category-list .category {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    text-decoration: none;
    color: #003366;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block;
}

.category-list .category:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-list .category h3 {
    color: #003366;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-list .category .article-count {
    color: var(--e4usa-red);
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: 80px;
    text-align: center;
    padding: 40px 0;
    background-color: #f5f7fa;
    color: #003366;
}

footer p {
    margin: 0;
    font-size: 14px;
}

footer a {
    color: var(--e4usa-red);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #docsSearch h1 {
        font-size: 32px;
    }

    #searchBar {
        flex-direction: column;
    }

    #searchBar .search-query,
    #searchBar button {
        width: 100%;
        border-radius: 4px;
    }

    #searchBar button {
        margin-top: 10px;
        text-shadow: none !important;
    }

    .most-pop-articles .popArticles {
        grid-template-columns: 1fr;
    }
}

/* Article page specific styles */
#fullArticle {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#fullArticle h1.title {
    font-size: 32px;
    color: #003366;
    font-weight: 700;
    margin-bottom: 20px;
}

#fullArticle a {
    color: var(--e4usa-red);
    text-decoration: none;
}

#fullArticle a:hover {
    text-decoration: underline;
}

.articleFoot {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Sidebar */
#sidebar h3 {
    color: #003366;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

#sidebar .nav-list {
    padding-left: 0;
}

#sidebar .nav-list a {
    color: #003366;
    text-decoration: none;
    transition: color 0.3s ease;
}

#sidebar .nav-list a:hover {
    color: var(--e4usa-red);
}

#sidebar .nav-list .active a {
    font-weight: 700;
    color: var(--e4usa-red);
}

/* Search results page */
#serp-dd {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#serp-dd .result a {
    color: #003366;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#serp-dd .result>li.active,
#serp-dd .result a:hover {
    background-color: #f0f0f0;
}