/* ==========================================================================
   LAYOUT 4: VIBRANT INDIGO & CORAL
   ========================================================================== */

:root {
    --theme-primary: #4338CA;
    --theme-primary-dark: #312E81;
    --theme-accent: #F97316;
    --theme-bg: #F5F3FF;
    --theme-card-bg: #FFFFFF;
    --theme-text: #1E1B4B;
    --theme-subtext: #475569;
    --theme-border: #DDD6FE;
    --theme-heading-font: 'Outfit', sans-serif;
}

body.layout4-body {
    font-family: var(--theme-heading-font);
    background: var(--theme-bg);
    color: var(--theme-text);
    line-height: 1.6;
}

/* Header */
.l4-header {
    background: var(--theme-primary);
    padding: 18px 0;
    color: white;
    box-shadow: 0 4px 15px rgba(67, 56, 202, 0.15);
}

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

.l4-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
}

.l4-icon {
    font-size: 26px;
    color: var(--theme-accent);
}

.l4-name {
    font-size: 22px;
    font-weight: 800;
}

.l4-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.l4-nav a {
    color: #E0E7FF;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.l4-btn {
    background: var(--theme-accent);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

/* Layout 4 Topbar & Dropdowns */
.l4-topbar {
    background: var(--theme-primary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 0;
    font-size: 12px;
    color: #C7D2FE;
}

.l4-topbar a {
    color: #E0E7FF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.l4-topbar a:hover {
    color: var(--theme-accent);
}

.l4-dropdown {
    position: relative;
    display: inline-block;
}

.l4-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    border: 1px solid var(--theme-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 210px;
    z-index: 1000;
    text-align: left;
}

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

.l4-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--theme-text) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap;
}

.l4-dropdown-menu a:hover {
    background: #F5F3FF;
    color: var(--theme-primary) !important;
}

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

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

.web-card, .web-feature-card, .web-msg-card, .web-form-card, .web-teacher-card {
    border-radius: 18px !important;
    border-color: var(--theme-border) !important;
}

/* Footer */
.l4-footer {
    background: #1E1B4B;
    color: #C7D2FE;
    padding: 35px 0;
    text-align: center;
}
