/* ============================================================================
   FILE           : layout.css
   PATH           : /public/css/layout.css
   AUTHOR         : Oluwasegun Adedayo Ogunsola
   VERSION        : 3.1.0
   DATE           : 2026-01-25
   DESCRIPTION    : Unified Responsive Framework (Dynamic & Static)
   COMPATIBILITY  : Chrome, Edge, Firefox, Safari, Opera, IE11+
   ============================================================================ */

.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
    max-width: 1440px;
}

/* GDPR Banner Regulation */
.gdpr-banner {
    position: fixed;
    bottom: -100%;
    left: 20px;
    right: 20px;
    background: #ffffff;
    border-top: 4px solid #0B6E60;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
    padding: 1rem;
    z-index: 10001;
    border-radius: 8px;
    transition: bottom 0.5s ease-in-out;
}

.gdpr-banner.show { bottom: 20px; }

/* Submenu Accordion Regulation */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background: #f8f9fa;
}

.has-submenu.active .submenu {
    max-height: 500px;
}

/* Global Mobile Stacking (@992 and @480) */
@media (max-width: 992px) {
    .grid-container {
        display: flex;
        flex-direction: column;
        padding: 0 15px;
    }
    
    .middle-row { order: 1; }
    .sidebar-left, .sidebar-right { order: 2; width: 100%; }
    
    body.no-scroll {
        overflow: hidden;
        height: 100vh;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .topbar { padding: 0 10px; }
    .brand-link { font-size: 1.1rem; }
}