/* Base styles  */
:root {
    /* Sage color palette */
    --sage-green-light: #8d9e88;
    --sage-green: #80938a;
    --sage-green-dark: #687664;
    --sage-beige: #c2bfb1;
    --sage-navy: #1c476c;
    --sage-blue: #5e7c96;
    --sage-gold: #f2ce8a;
    --sage-light-gray: #e0e6e9;
    --sage-dark-gray: #374f59;
    --sage-cream: #f2ede6;
    --sage-mint: #9fc2aa;
    --sage-teal: #9ab3ac;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--sage-light-gray);
    margin: 0;
    padding: 0;
}

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

/* Header styles */
header {
    background-color: var(--sage-navy);
    color: white;
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links a.active {
    border-bottom: 2px solid white;
}

/* Search bar styles */
.search-container {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-dropdown {
    margin: 0 10px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.filter-button {
    background-color: var(--sage-green-dark);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-button:hover {
    background-color: var(--sage-navy);
}

/* Search results styling */
.no-results-message {
    background: white;
    border-radius: 8px;
    margin: 2rem 0;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #666;
}

.no-results-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.no-results-message h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

/* Search input focus effect */
.search-input:focus {
    border-color: var(--sage-green);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

.search-dropdown:focus {
    border-color: var(--sage-green);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

/* Search button styling */
.search-button {
    background-color: var(--sage-green-dark);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.search-button:hover {
    background-color: var(--sage-navy);
}

/* Hide inactive grade content during search */
.search-active .grade-content:not(.active) {
    display: none;
}

/* Search highlight for matching text */
.search-highlight {
    background-color: yellow;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Grade tabs styles */
.grade-tabs {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.grade-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.grade-tab:hover {
    background-color: var(--sage-light-gray);
}

.grade-tab.active {
    border-bottom: 3px solid var(--sage-navy);
    font-weight: bold;
}

/* Grade content styles */
.grade-content {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.grade-content.active {
    display: block;
}

.grade-title {
    color: var(--sage-navy);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.grade-description {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links {
        margin-top: 1rem;
        flex-direction: column;
    }
    
    .nav-links li {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
    
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-dropdown, .filter-button {
        margin-top: 0.5rem;
    }
}
