body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.nav-bar a.govt { border-left: 4px solid red; border-bottom: 4px solid red;}
.nav-bar a.history { border-left: 4px solid aqua; border-bottom: 4px solid aqua; }
.nav-bar a.symbols { border-left: 4px solid gold; border-bottom: 4px solid gold;}
.nav-bar a.vocab { border-left: 4px solid blueviolet; border-bottom: 4px solid blueviolet;}
        .nav-bar {
            background-color: #003366;
            padding: 6px;
            border-radius: 4px;
            margin-bottom: 12px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
        }
        
        .nav-section {
            color: #ffffff;
            font-weight: bold;
            font-stretch: condensed;
            margin-right: 5px;
            font-size: 0.9em;
        }
        
        .nav-bar a {
            color: #ffffff;
            text-decoration: none;
            padding: 5px 10px;
            border-radius: 3px;
            font-size: 0.85em;
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        .nav-bar a:hover {
            background-color: #0066cc;
        }
        
        .nav-bar a.current {
            background-color: #0066cc;
            font-weight: bold;
        }
        
/* Home Navigation */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #003366;
    text-decoration: none;
    padding: 8px 16px;
    background-color: white;
    border-radius: 4px;
    border-left: 4px solid #003366;
    border-bottom: 4px solid #003366;
}

.back-link:hover {
    background-color: #e8f4f8;
}
.section {
    background-color: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #003366;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid #003366;
    padding-bottom: 10px;
}

.subsection {
    margin: 20px 0;
    font-weight: bold;
    color: #003366;
    border-bottom: 1px solid #003366;
    padding-bottom: 5px;
}

.question-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 5px;
}

.translation-question, .english-question, .spanish-question {
    padding: 15px;
    border-radius: 5px;
}

.english-question {
    background-color: #e8f4f8;
    border-left: 4px solid #0066cc;
}

.translation-question,.spanish-question {
    background-color: #fff8e8;
    border-left: 4px solid #cc6600;
}

.hidden {
    display: none;
}

.language-label {
    font-weight: bold;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.question-number {
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.question-text {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.4;
}

.answer {
    margin-left: 20px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.audio-controls {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 4px;
}

.audio-player audio {
    width: 100%;
    height: 30px;
}

@media (max-width: 768px) {
    .question-pair {
        grid-template-columns: 1fr;
    }
}
@media print {
    .audio-controls {
        display: none;
    }
}

.translation, .spanish {
    font-family: Arial, sans-serif;
}
.spanish-question.hidden {
    display: none;
}

.translation-content-hidden {
    display: none;
}

/* Question lookup widget */
.question-lookup {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 30px 24px;
    margin-bottom: 24px;
}

.question-lookup h2 {
    color: #003366;
    font-size: 1.1em;
    margin: 0 0 12px 0;
    border-bottom: 2px solid #003366;
    padding-bottom: 8px;
}

.lookup-instructions {
    font-size: 0.95em;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.lookup-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lookup-input-row label {
    font-size: 0.95em;
    color: #333;
}

.lookup-input-row input[type="number"] {
    width: 70px;
    padding: 6px 8px;
    font-size: 1em;
    border: 2px solid #003366;
    border-radius: 4px;
}

.lookup-input-row button {
    padding: 6px 16px;
    min-height: 44px;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95em;
    cursor: pointer;
}

.lookup-input-row button:hover {
    background-color: #0066cc;
}

.lookup-error {
    color: #cc0000;
    font-size: 0.9em;
    margin-top: 8px;
    display: none;
}

.lookup-result {
    margin-top: 16px;
    display: none;
}

.lookup-result-link {
    margin-bottom: 12px;
}

.lookup-result-link a {
    color: #003366;
    font-weight: bold;
    font-size: 1em;
}

.lookup-audio-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lookup-audio-block {
    padding: 10px;
    border-radius: 4px;
}

.lookup-audio-block.english-audio {
    background-color: #e8f4f8;
    border-left: 4px solid #0066cc;
}

.lookup-audio-block.spanish-audio {
    background-color: #fff8e8;
    border-left: 4px solid #cc6600;
}

.lookup-audio-label {
    font-size: 0.85em;
    font-weight: bold;
    color: #666;
    margin-bottom: 6px;
}

.lookup-audio-block audio {
    width: 100%;
    height: 30px;
}

@media (max-width: 600px) {
    .lookup-audio-pair {
        grid-template-columns: 1fr;
    }
}