/* Layout Styles - Header, Menu, Footer */

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

html, body {
    height: 100%;
    min-width: 320px;
    min-height: 400px;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header - fixed at top */
.site-header {
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    color: white;
    flex-shrink: 0;
}

.header-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 70px;
    width: auto;
}

.header-text h1 {
    margin: 0;
    font-size: 2em;
    color: white;
}

.header-text p {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

/* Navigation - right side of header */
.header-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-content {
    display: flex;
    gap: 5px;
}

.nav-content a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: background 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    border-radius: 5px;
    white-space: nowrap;
}

.nav-content a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-content a.active {
    background: rgba(255, 255, 255, 0.3);
}

/* Submenu - inside header, below main menu */
.submenu {
    display: flex;
    gap: 10px;
}

.submenu a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.submenu a:hover {
    background: rgba(255, 255, 255, 0.25);
}

.submenu a.active {
    background: rgba(255, 255, 255, 0.35);
}

/* Main Content - scrollable area only */
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #2196F3 #f0f0f0;
}

.main-content::-webkit-scrollbar {
    width: 10px;
}

.main-content::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.main-content::-webkit-scrollbar-thumb {
    background: #2196F3;
    border-radius: 5px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #1976D2;
}

.main-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

/* Footer - fixed at bottom */
.site-footer {
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    color: white;
    padding: 15px 0;
    flex-shrink: 0; /* ✅ Footer never shrinks */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-copyright {
    color: white;
    font-size: 14px;
    white-space: nowrap;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-contact {
    color: white;
    font-size: 14px;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-left {
        width: 100%;
        justify-content: center;
    }
    
    .header-right {
        width: 100%;
        align-items: center;
    }
    
    .nav-content {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        overflow: auto;
        height: auto;
    }
    
    .site-header,
    .site-footer {
        flex-shrink: 1;
        position: static;
    }
    
    .main-content {
        overflow-y: visible;
        flex: none;
    }
    
    .header-logo {
        height: 50px;
    }
    
    .header-text h1 {
        font-size: 1.5em;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-content a {
        border-radius: 0;
    }
    
    .submenu {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
}
