/**
 * Layout Structure CSS
 * 
 * This file provides consistent layout structure with proper header and footer positioning
 * and content containers with appropriate padding to prevent content from being hidden
 * behind fixed elements.
 */

/* Main page structure */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Fixed header with consistent height */
header, .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height, 80px);
    z-index: 1000;
    background: linear-gradient(to bottom,
        rgba(26, 47, 53, 0.95) 0%,
        rgba(26, 47, 53, 0.85) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Main content container - provides padding to prevent content from being hidden */
.main-content {
    flex: 1;
    width: 100%;
    padding-top: var(--header-height, 80px); /* Equal to header height */
    padding-bottom: var(--footer-height, 60px); /* Equal to footer height */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Footer with natural document flow - no fixed positioning */
footer {
    position: relative;
    width: 100%;
    z-index: 10;
    /* Remove fixed positioning to allow natural document flow */
    /* Footer styling handled by footer.css */
}

/* Video background positioning */
.video-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: -1 !important;
    overflow: hidden !important;
}

/* Hero section positioning - let hero-styles.css handle the specific positioning */
.simple-hero {
    width: 100%;
    /* Remove fixed height calculation to prevent conflicts with hero-styles.css */
    /* Hero section styling handled by hero-styles.css */
}

/* Hero container positioning - handled by hero-styles.css */
/* Removed conflicting styles to prevent layout issues */

/* Standard page section */
.page-section {
    width: 100%;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Container for page content */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Portal sections styling */
.portal-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    position: relative;
    z-index: 30;
    visibility: visible;
    opacity: 1;
    justify-content: center;
}

.portal-section {
    flex: 1 1 300px;
    min-width: 250px;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.portal-section h2 {
    margin-bottom: 1.5rem;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .simple-hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-section {
        padding: 3rem 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .portal-sections {
        flex-direction: column;
        align-items: center;
    }
    
    .portal-section {
        width: 100%;
        max-width: 400px;
    }
}
