/* Site Header Styles */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 1000;
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
}

/* .site-header .container {
    padding: 1rem 0;
} */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    /* margin: 0 auto;
    padding: 0 20px; */
}

.header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    order: 1;
}

.header-content {
    flex: 1;
    padding: 0 20px;
    order: 2;
    text-align: center;
}

.header-coat {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    order: 3;
}

.header-image {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.header-content h3 {
    color: #000000;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.header-content h2 {
    color: #0864af;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.4px;
    line-height: 1.3;
}

.header-title {
    color: #000000;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: none;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #000000;
    background-clip: unset;
    position: relative;
}

.header-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0864af, #0a4d8c);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(8, 100, 175, 0.3);
}

.header-subtitle {
    color: #000000;
    font-size: 1.25rem;
    margin-bottom: 0;
    font-weight: 500;
    text-shadow: none;
    letter-spacing: 0.4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #000000;
    background-clip: unset;
    font-style: italic;
    margin-top: 8px;
}

/* Ensure proper spacing between header and content */
.content-wrapper {
    padding-top: 0;
}

/* Guest content styling */
.guest-content {
    margin: 0;
    margin-top: -1px; /* Overlap with nav to hide sub-pixel gaps/transparent lines */
    padding: 0;
    width: 100%;
    flex: 1;
    height: calc(100vh - 214px); /* Fixed height: Viewport - (Header + Nav) */
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    background-color: transparent; /* Allows landing bio background to show if present */
}

/* Flexbox layout for the entire guest page */
.guest-layout {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Lock to viewport height */
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Consistent light background for all pages */
    overflow: hidden; /* Prevent page-level scrolling */
}

/* Remove any default body margins for guests */
body.guest-page {
    margin: 0;
    padding: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .header-image {
        max-height: 90px;
    }
}

@media (max-width: 768px) {
    .site-header {
        min-height: 80px;
        padding: 10px 0;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 0 10px;
        flex-wrap: nowrap;
    }
    
    .header-logo {
        flex: 0 0 auto;
        order: 1;
    }
    
    .header-content {
        flex: 1;
        order: 2;
        padding: 0 8px;
        text-align: center;
        min-width: 0;
        margin-top: 0;
    }
    
    .header-coat {
        flex: 0 0 auto;
        order: 3;
    }
    
    .header-image {
        max-height: 50px;
    }
    
    .header-content h3 {
        font-size: 0.65rem;
        margin-bottom: 0.05rem;
        line-height: 1.0;
    }
    
    .header-content h2 {
        font-size: 0.7rem;
        margin-bottom: 0.1rem;
        line-height: 1.0;
    }
    
    .header-title {
        font-size: 0.75rem;
        letter-spacing: 0.05px;
        margin-bottom: 0.1rem;
        line-height: 1.0;
    }
    
    .header-title::after {
        width: 30px;
        height: 1.5px;
        bottom: -2px;
    }
    
    .header-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.05px;
        margin-top: 1px;
        line-height: 1.0;
    }
    
    .guest-content {
        min-height: calc(100vh - 160px);
    }
}

@media (max-width: 480px) {
    .site-header {
        min-height: 70px;
        padding: 8px 0;
    }
    
    .header-container {
        padding: 0 8px;
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .header-image {
        max-height: 45px;
    }
    
    .header-content {
        padding: 0 4px;
        margin-top: 0;
        min-width: 0;
    }
    
    .header-content h3 {
        font-size: 0.55rem;
        margin-bottom: 0.03rem;
        line-height: 1.0;
    }
    
    .header-content h2 {
        font-size: 0.6rem;
        margin-bottom: 0.05rem;
        line-height: 1.0;
    }
    
    .header-title {
        font-size: 0.7rem;
        letter-spacing: 0.03px;
        margin-bottom: 0.05rem;
        line-height: 1.0;
    }
    
    .header-title::after {
        width: 25px;
        height: 1px;
        bottom: -1px;
    }
    
    .header-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.03px;
        margin-top: 0.5px;
        line-height: 1.0;
    }
    
    .guest-content {
        min-height: calc(100vh - 150px);
    }
}

/* Extra small screens - phones in portrait */
@media (max-width: 360px) {
    .site-header {
        min-height: 60px;
        padding: 5px 0;
    }
    
    .header-container {
        padding: 0 5px;
        gap: 4px;
        flex-wrap: nowrap;
    }
    
    .header-image {
        max-height: 40px;
    }
    
    .header-content {
        padding: 0 2px;
        margin-top: 0;
        min-width: 0;
    }
    
    .header-content h3 {
        font-size: 0.5rem;
        margin-bottom: 0.02rem;
        line-height: 1.0;
    }
    
    .header-content h2 {
        font-size: 0.55rem;
        margin-bottom: 0.03rem;
        line-height: 1.0;
    }
    
    .header-title {
        font-size: 0.6rem;
        letter-spacing: 0.01px;
        margin-bottom: 0.03rem;
        line-height: 0.95;
    }
    
    .header-title::after {
        width: 20px;
        height: 0.5px;
        bottom: -0.5px;
    }
    
    .header-subtitle {
        font-size: 0.5rem;
        letter-spacing: 0.01px;
        margin-top: 0.3px;
        line-height: 1.0;
    }
    
    .guest-content {
        min-height: calc(100vh - 140px);
    }
}

/* Header overrides for home page layout */
/* Restore proper header container styling to override global resets */
/* .site-header .header-container {
    margin: 0 auto !important;
    padding: 0 20px !important;
    max-width: 1200px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
} */

/* Ensure header images maintain proper sizing */
/* .site-header .header-image {
    max-height: 120px !important;
    width: auto !important;
    object-fit: contain !important;
} */

/* Ensure header content maintains proper spacing */
/* .site-header .header-content {
    flex: 1 !important;
    padding: 0 20px !important;
    text-align: center !important;
} */