/* ==========================================================================
   LAYOUT 3: ROYAL CRIMSON HERITAGE
   ========================================================================== */

:root {
    --theme-primary: #800020;
    --theme-primary-dark: #4A0012;
    --theme-accent: #D4AF37;
    --theme-bg: #FFFDF9;
    --theme-card-bg: #FFFFFF;
    --theme-text: #2D1515;
    --theme-subtext: #5A3A3A;
    --theme-border: #E8D7C3;
    --theme-heading-font: 'Cinzel', serif;
}

body.layout3-body {
    font-family: 'Lora', serif;
    background: var(--theme-bg);
    color: var(--theme-text);
    line-height: 1.7;
}

/* Header */
.l3-header {
    background: var(--theme-primary);
    color: #F7E7CE;
    padding: 30px 0 20px;
    text-align: center;
    border-bottom: 4px solid var(--theme-accent);
}

.l3-crest {
    font-size: 38px;
    color: var(--theme-accent);
    margin-bottom: 8px;
}

.l3-title {
    font-family: var(--theme-heading-font);
    font-size: 32px;
    letter-spacing: 1px;
    color: #F7E7CE;
}

.l3-subtitle {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--theme-accent);
    text-transform: uppercase;
    margin-top: 4px;
}

.l3-nav {
    margin-top: 25px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.l3-nav a {
    color: #F7E7CE;
    text-decoration: none;
    font-family: var(--theme-heading-font);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    transition: color 0.2s ease;
}

.l3-nav a:hover {
    color: var(--theme-accent);
}

/* Layout 3 Dropdowns */
.l3-dropdown {
    position: relative;
    display: inline-block;
}

.l3-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #4A0012;
    border: 1px solid var(--theme-accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-radius: 6px;
    padding: 10px 0;
    min-width: 220px;
    z-index: 1000;
    text-align: left;
}

.l3-dropdown:hover .l3-dropdown-menu {
    display: block;
}

.l3-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #F7E7CE !important;
    font-size: 13px !important;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.l3-dropdown-menu a:hover {
    background: var(--theme-primary);
    color: var(--theme-accent) !important;
}

/* Page Components Overrides for Royal Crimson */
.web-page-banner, .web-hero-section:not(.has-slider) {
    background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary)) !important;
}

.web-card, .web-feature-card, .web-msg-card, .web-form-card, 
.web-teacher-card, .web-notice-card, .web-c-card, .web-map-box {
    border-color: var(--theme-border) !important;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.05) !important;
}

.web-section-title, .web-section-header h2, .web-group-heading {
    font-family: var(--theme-heading-font) !important;
    color: var(--theme-primary) !important;
}

.web-btn-gold {
    background: var(--theme-accent) !important;
    color: #000000 !important;
}

/* Footer */
.l3-footer {
    background: #3B000E;
    color: #F7E7CE;
    padding: 40px 0 20px;
    text-align: center;
    border-top: 3px solid var(--theme-accent);
}

.l3-foot-title {
    font-family: var(--theme-heading-font);
    font-size: 20px;
    color: var(--theme-accent);
    margin-bottom: 8px;
}
