/* Custom */

body {
    font-family: 'Roboto', sans-serif;
}
a {
    color: #004643;
}
h1 a {
    font-family: Oswald, sans-serif;
}
.page-header h2 {
    font-family: Oswald, sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 10px;
}
header.main-header {
    background: #004643 !important;
    color: #FFFFFF !important;
}
/* NAVBAR */
.navbar {
    background: #004643 !important;
}
ul.navbar-nav li a.nav-link {
    line-height: 14px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
}
/* COLOR REPLACEMENTS */
.filter-panel h2 {
    color: #004643;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #004643;
}

.btn-primary {
    background: #004643;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 77, 73, 0.4);
}

.btn-secondary {
    background: white;
    color: #004643;
    border: 2px solid #004643;
}

.btn-secondary:hover {
    background: #f5f7fa;
}

.active-filters h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #004643;
}

.results-count {
    background: #004643;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.term-card:hover {
    border-color: #004643;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}
.term-title a:hover {
    color: #004643;
}

.category-badge {
    background: #004643;
    color: white;
}

.read-more {
    color: #004643;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s;
}

.breadcrumb a {
    color: #004643;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #001a18;
}
.detail-content h2 {
    color: #004643;
    margin-bottom: 1rem;
}
.detail-tags h2 {
    color: #004643;
    margin-bottom: 1rem;
}
/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}
/* GLOSSARY ----------------------------------------- */

.term-card {
    position: relative;
}
.category-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
}
.sources-wrapper.sources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}
.term-definition {
    padding-bottom: 30px;
}
.term-card-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin: 0;
    right:0;
}
.filter-group select {
    background: #FFFFFF;
}
.term-card-footer a.read-more {
    padding: 10px 15px;
    width: 100%;
}
.term-card-footer a.read-more:hover {
    background: rgba(235,235,235,0.3);
}
/* Filter Panel */
.filter-panel {
    border-radius: 0;
}
.filter-panel h2,
.results-header h2 {
    color: #003245;
    font-family: Oswald, sans-serif;
    font-size: 2rem;
}

/* SOURCES ------------------------ */

.source-grid-item {
    flex: 1 1 500px; /* Allows cards to grow, shrink, and have a base width */
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}
ul.source {
    list-style-type: none;
}
ul.source .list-item-title {
    font-weight:400;
    font-size: 1.4rem;
    font-family: 'Oswald', sans-serif;
    padding-bottom: 10px;
}
.source-grid-item ul.source {
    padding-left: 0;
}


/* TERM DETAILS ---------------------------- */
.term-detail {
    background: white;
    padding: 2rem;
}
section.detail-actions {
    padding-top: 1rem;
    height: auto;
}
.term-detail-container .detail-header {
    box-shadow: none;
    position: relative;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    padding-top: 0;
}
.term-detail-container .detail-header h1 {
    font-family: Oswald, sans-serif;
}
section.detail-actions .btn-secondary {
    margin-right: 10px;
    position:relative;
    padding: 0.5rem 1rem;
    display: inline-block;
}
.definition-text {
    font-size: 1rem;
}
ul.term-details {
    list-style-type: none;
    padding-left:0;
}
ul.term-details li {
    display: block;
    padding: 8px 4px;
}
ul.term-details li:nth-child(even) {
    background-color: #f2f2f2;
}
ul.term-details li span.title {
    font-weight: 600;
    display: inline-block;
    width: 15%;
}
ul.term-details li span.value {
    display: inline-block;
    width: 85%;
}



/* Freeze Static Pages ------------------------------- */

.glossary-container.full-width {
    grid-template-columns: 1fr;
}



@media (max-width: 768px) {
    .glossary-container .results-panel .glossary-grid {
        grid-template-columns: 1fr;
    }
    ul.term-details li span.title {
        width: 25%;
    }
    ul.term-details li span.value {
        width: 75%;
    }
     .results-panel {
        padding: 1.5rem;
    }
}
@media (max-width: 480px) {
    .results-panel {
        padding: 1rem;
    }
    ul.term-details li span.title {
        display: block;
        width: 100%;
    }
    ul.term-details li span.value {
        width: 100%;
    }
    header.main-header {
        padding: 1rem 0;
    }
}
