/*
standard.css
Modernized Full-Width UI - Optimized for Mobile
*/

:root {
    --header-height: 80px; 
    
    --glass-bg: rgba(0, 0, 0, 0.7); 
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* --- Layout Container --- */

.standard-section {
    position: relative;

    /* 🔧 CHANGED: flexible height instead of hard 100vh */
    min-height: clamp(70vh, 85vh, 100vh);

    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;

    /* 🔧 KEEP header offset, but avoid excess */
    padding-top: var(--header-height);
    padding-bottom: 2rem;

      background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../images/standard.png'); /* relative path from CSS file */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.standard-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    z-index: 10;
}

/* --- Full Width Text Card --- */

.standard-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 4rem; 

    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    text-align: center;
    animation: fadeInUp 1s ease-out forwards;
}

.standard-text h1 {
    font-size: clamp(1.8rem, 5vw, 3.8rem);
    color: #ffffff;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 auto;
    text-shadow: var(--text-shadow);
    letter-spacing: -0.02em;
    max-width: 900px;
}

.standard-text p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.8;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: var(--text-shadow);
    max-width: 800px;
}

/* --- MOBILE VIEW FIXES --- */

@media (max-width: 768px) {
    .standard-section {
        /* 🔧 Let content define height */
        min-height: unset;
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 3rem;
    }

    .standard-content {
        padding: 1.5rem;
    }

    .standard-text {
        padding: 3rem 2rem;
        border-radius: 24px;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .standard-section {
        /* 🔧 REMOVED display:block (keeps centering intact) */
        padding-top: calc(var(--header-height) + 1.5rem);
        padding-bottom: 2.5rem;
        height: auto;
    }

    .standard-content {
        padding: 1rem;
    }

    .standard-text {
        padding: 2rem 1.25rem;
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.75); 
    }

    .standard-text h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .standard-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
