/* ==========================================================================
   LAYOUT 1: DPS CLASSIC NAVY & AMBER GOLD ACADEMIC THEME
   Fully Mobile & Desktop Responsive
   ========================================================================== */

:root {
    --l1-primary: #0B5F3D;      /* Deep DPS Forest Navy Green */
    --l1-primary-dark: #07452C;
    --l1-primary-light: #0D7A4F;
    --l1-accent: #FFC63C;       /* Warm Amber Gold */
    --l1-accent-hover: #E5B02E;
    --l1-dark: #1E293B;
    --l1-gray: #64748B;
    --l1-light: #F8FAFC;
    --l1-white: #FFFFFF;
    --l1-border: #E2E8F0;
    --l1-shadow: 0 10px 25px -5px rgba(11, 95, 61, 0.1), 0 8px 10px -6px rgba(11, 95, 61, 0.05);
    --l1-font: 'Jost', sans-serif;
    --l1-heading-font: 'Judson', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.layout1-body {
    font-family: var(--l1-font);
    color: var(--l1-dark);
    background-color: #F1F5F9;
    line-height: 1.6;
    padding-bottom: 70px; /* Space for mobile bottom dock */
}

@media (min-width: 992px) {
    body.layout1-body {
        padding-bottom: 0;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.l1-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar --- */
.l1-topbar {
    background: var(--l1-primary-dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    padding: 8px 0;
}

.l1-topbar-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.l1-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.l1-divider {
    opacity: 0.4;
}

.l1-badge-link {
    background: var(--l1-accent);
    color: var(--l1-primary-dark);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* --- Main Header --- */
.l1-header {
    background: var(--l1-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--l1-border);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

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

.l1-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.l1-logo-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--l1-primary), var(--l1-primary-dark));
    color: var(--l1-accent);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(11, 95, 61, 0.2);
}

.l1-school-name {
    font-family: var(--l1-heading-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--l1-primary);
    line-height: 1.1;
}

.l1-school-tagline {
    font-size: 13px;
    color: var(--l1-gray);
}

.l1-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.l1-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.l1-btn-primary {
    background: var(--l1-accent);
    color: var(--l1-primary-dark);
}

.l1-btn-primary:hover {
    background: var(--l1-accent-hover);
}

.l1-btn-outline {
    background: #F1F5F9;
    color: var(--l1-primary);
    border: 1px solid var(--l1-border);
}

.l1-menu-toggle {
    display: none;
    background: var(--l1-primary);
    color: var(--l1-white);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .l1-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .l1-header-actions .l1-btn {
        display: none;
    }
}

/* --- Navigation --- */
.l1-navbar {
    background: var(--l1-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.l1-nav-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.l1-nav-item {
    display: block;
    padding: 14px 18px;
    color: var(--l1-white);
    font-weight: 500;
    font-size: 15px;
    border-bottom: 3px solid transparent;
}

.l1-nav-item:hover, .l1-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--l1-accent);
    border-bottom-color: var(--l1-accent);
}

.l1-dropdown {
    position: relative;
}

.l1-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--l1-white);
    min-width: 220px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    list-style: none;
    display: none;
    z-index: 100;
}

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

.l1-dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: var(--l1-dark);
    font-size: 14px;
    border-bottom: 1px solid var(--l1-border);
}

.l1-dropdown-menu a:hover {
    background: #F8FAFC;
    color: var(--l1-primary);
}

@media (max-width: 991px) {
    .l1-nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .l1-nav-list.show-mobile {
        display: flex;
    }
    .l1-dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
    }
    .l1-dropdown-menu a {
        color: white;
    }
}

/* --- Hero Section --- */
.web-hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--l1-primary-dark), var(--l1-primary));
    color: white;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.web-hero-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

.web-badge {
    display: inline-block;
    background: rgba(255, 198, 60, 0.2);
    color: var(--l1-accent);
    border: 1px solid var(--l1-accent);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.web-hero-title {
    font-family: var(--l1-heading-font);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.web-hero-sub {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.web-hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.web-btn-gold {
    background: var(--l1-accent);
    color: var(--l1-primary-dark);
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
}

.web-btn-light {
    background: var(--l1-white);
    color: var(--l1-primary);
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
}

/* --- Ticker Marquee Bar --- */
.web-ticker-bar {
    background: #073523;
    color: white;
    padding: 10px 0;
    overflow: hidden;
}

.web-ticker-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.web-ticker-label {
    background: var(--l1-accent);
    color: var(--l1-primary-dark);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.web-ticker-marquee {
    display: flex;
    gap: 30px;
    white-space: nowrap;
    overflow-x: auto;
}

.web-ticker-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.web-ticker-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--l1-accent);
    border-radius: 50%;
    margin-right: 6px;
}

/* --- Content Sections --- */
.web-section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--l1-white);
}

.web-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.web-section-title {
    font-family: var(--l1-heading-font);
    font-size: 32px;
    color: var(--l1-primary);
}

.web-section-sub {
    color: var(--l1-gray);
    font-size: 16px;
}

.web-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.web-card {
    background: var(--l1-white);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: var(--l1-shadow);
    border: 1px solid var(--l1-border);
    transition: transform 0.3s ease;
}

.web-card:hover {
    transform: translateY(-5px);
}

.web-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.color-1 { background: #E0F2FE; color: #0284C7; }
.color-2 { background: #DCFCE7; color: #16A34A; }
.color-3 { background: #FEF3C7; color: #D97706; }
.color-4 { background: #F3E8FF; color: #9333EA; }

/* --- Messages Grid --- */
.web-messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.web-msg-card {
    background: var(--l1-white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--l1-shadow);
    border-top: 5px solid var(--l1-primary);
}

.web-msg-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.web-msg-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--l1-primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.web-msg-avatar.gold {
    background: #D97706;
}

.web-msg-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--l1-primary-dark);
}

.web-msg-role {
    font-size: 14px;
    color: var(--l1-gray);
    font-weight: 500;
}

.web-msg-body {
    font-style: italic;
    color: #334155;
    margin-bottom: 20px;
}

.web-readmore {
    color: var(--l1-primary);
    font-weight: 700;
}

/* --- Stats Strip --- */
.web-stats-strip {
    background: var(--l1-primary-dark);
    color: white;
    padding: 40px 0;
}

.web-stats-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
}

.web-stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--l1-accent);
}

.web-stat-lbl {
    font-size: 15px;
    opacity: 0.9;
}

/* --- Page Banner --- */
.web-page-banner {
    background: linear-gradient(135deg, var(--l1-primary-dark), var(--l1-primary));
    color: white;
    padding: 45px 0;
}

.web-page-title {
    font-family: var(--l1-heading-font);
    font-size: 32px;
}

.web-page-breadcrumb {
    font-size: 14px;
    opacity: 0.8;
}

/* --- Disclosure & Tables --- */
.web-table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: var(--l1-shadow);
    margin-bottom: 30px;
}

.web-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.web-table th, .web-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--l1-border);
}

.web-table th {
    background: #F8FAFC;
    color: var(--l1-primary);
    font-weight: 700;
}

.web-table-btn {
    display: inline-block;
    background: var(--l1-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* --- Form Styles --- */
.web-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .web-form-wrapper {
        grid-template-columns: 1fr;
    }
}

.web-form-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--l1-shadow);
}

.web-form-group {
    margin-bottom: 20px;
}

.web-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.web-input, .web-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--l1-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}

.web-input:focus, .web-textarea:focus {
    outline: none;
    border-color: var(--l1-primary);
    box-shadow: 0 0 0 3px rgba(11, 95, 61, 0.1);
}

.block-btn {
    width: 100%;
    text-align: center;
}

/* --- Alerts --- */
.web-alert-box {
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.web-alert-box.success { background: #DEF7EC; color: #03543F; }
.web-alert-box.error { background: #FDE8E8; color: #9B1C1C; }
.web-alert-box.info { background: #E1EFFE; color: #1E429F; }

/* --- Footer --- */
.l1-footer {
    background: #072B1E;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 50px;
}

.l1-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.l1-footer-title {
    color: var(--l1-white);
    font-size: 18px;
    margin-bottom: 15px;
}

.l1-footer-links {
    list-style: none;
}

.l1-footer-links a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
}

.l1-footer-links a:hover {
    color: var(--l1-accent);
}

.l1-footer-bottom {
    background: #041B13;
    padding: 20px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.l1-bottom-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- Mobile Bottom Dock --- */
.l1-mobile-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--l1-primary-dark);
    border-top: 2px solid var(--l1-accent);
    z-index: 2000;
}

@media (max-width: 991px) {
    .l1-mobile-dock {
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
    }
}

.l1-dock-item {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
}

.l1-dock-item i {
    font-size: 18px;
    margin-bottom: 2px;
}

.l1-dock-item.active {
    color: var(--l1-accent);
}

/* --- Layout 1 Mobile Overrides --- */
@media (max-width: 768px) {
    /* Show top bar cleanly on mobile with wrapping */
    .l1-topbar {
        display: block !important;
        text-align: center;
    }
    .l1-topbar-flex {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 5px 0;
    }
    .l1-top-left, .l1-top-right {
        justify-content: center !important;
        flex-wrap: wrap !important;
        width: 100%;
        gap: 8px !important;
    }
    
    /* Ensure Header content fits tightly */
    .l1-brand {
        max-width: calc(100% - 50px);
        gap: 10px;
    }
    .web-logo-img, .l1-logo-icon {
        height: 44px !important;
        width: 44px !important;
    }
    .l1-school-name {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }
    .l1-school-tagline {
        font-size: 11px !important;
        white-space: normal !important;
    }
    .l1-menu-toggle {
        margin-left: auto;
    }
}
