/* =========================================
   PREMIUM SCHOOL HERO: GLASS CARD UI
   ========================================= */
.school-hero-premium {
    /* --- PALETTE --- */
    --p-primary: #3b82f6;   /* Bright Blue */
    --p-dark: #1e3a8a;      /* Deep Navy */
    --p-accent: #f59e0b;    /* Academic Gold */
    --p-glass: rgba(15, 23, 42, 0.6); /* Darker glass for contrast against bright bg */
    --p-border: rgba(255, 255, 255, 0.1);
    --p-text: #f1f5f9;
    
    position: relative;
    width: 100%;
    /* Flexible height that adapts to content */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    background-color: #020617; /* Fallback dark */
    
    /* SAFE ZONES: Prevents header overlap */
    padding-top: clamp(120px, 15vh, 160px); 
    padding-bottom: clamp(80px, 10vh, 120px); 
    
    overflow: hidden; /* Clips 3D elements */
    box-sizing: border-box;
}

.school-hero-premium * { box-sizing: border-box; }

/* --- BACKGROUND LAYERS --- */
.hero-bg-wrapper {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
}

.hero-bg-img {
    width: 100%; height: 100%; object-fit: cover;
    /* Subtle Ken Burns Effect */
    animation: panZoom 40s infinite alternate ease-in-out;
    opacity: 0.85; /* Increased visibility (was 0.6) */
    will-change: transform; /* Performance optimization */
}
@keyframes panZoom { from { transform: scale(1); } to { transform: scale(1.1); } }

.hero-overlay-scrim {
    position: absolute; inset: 0;
    /* Diagonal gradient: Lighter now to show more BG */
    background: linear-gradient(135deg, 
        rgba(2, 6, 23, 0.85) 0%, 
        rgba(30, 58, 138, 0.6) 50%, 
        rgba(2, 6, 23, 0.2) 100%);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Floating Geometric Shapes (Replaces Icons for clearer UI) */
.hero-floating-icons { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.float-icon {
    position: absolute; color: rgba(255,255,255,0.03);
    font-size: clamp(60px, 10vw, 120px);
    animation: floatRotate 12s infinite linear;
    will-change: transform;
}
.icon-1 { top: 10%; left: 5%; }
.icon-2 { bottom: 20%; right: 10%; animation-direction: reverse; }
.icon-3 { top: 40%; left: 45%; font-size: 200px; opacity: 0.02; }

@keyframes floatRotate {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* --- MAIN LAYOUT GRID --- */
.hero-grid {
    position: relative; z-index: 10;
    width: 100%; max-width: 1320px; margin: 0 auto;
    padding: 0 24px;
    display: grid;
    /* 60% Text Card, 40% Visual */
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 60px;
    align-items: center;
}

/* --- GLASS CARD (THE UI UPGRADE) --- */
.hero-content {
    background: var(--p-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--p-border);
    border-radius: 24px;
    padding: clamp(18px, 4vw, 28px); /* Tighter padding */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    
    display: flex; flex-direction: column; align-items: flex-start;
    animation: cardSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative; z-index: 20;
    will-change: transform, opacity;
}

/* Badge */
.hero-badge-glass {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 6px 14px; border-radius: 50px;
    color: var(--p-accent);
    font-weight: 700; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Typography Optimized (Smaller Size) */
.hero-title-premium {
    font-family: 'Urbanist', sans-serif;
    /* Reduced size: Min 24px, Max 48px */
    font-size: clamp(24px, 3.5vw, 48px);
    font-weight: 800; line-height: 1.2;
    color: #ffffff; margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0px;
}


.hero-desc-premium {
    font-size: clamp(10px, 1.1vw, 12px);
    line-height: 1.6;
    color: #cbd5e1; /* Slate 300 for readability */
    margin-bottom: 30px; max-width: 95%;
    align-self: center;
}

/* Modern Buttons */
.hero-cta-wrapper { display: flex; flex-wrap: wrap; gap: 16px; width: 100%; }

.btn-premium-solid, .btn-premium-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 12px;
    font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px;
    text-decoration: none; transition: 0.3s ease;
    cursor: pointer;
}

.btn-premium-solid {
    background: var(--p-primary);
    color: #fff; border: 1px solid transparent;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
}
.btn-premium-solid:hover {
    background: #2563eb; transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.7); color: #fff;
}

.btn-premium-outline {
    background: transparent; color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-premium-outline:hover {
    background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-3px);
}

/* --- VISUAL COLUMN --- */
.hero-visual-col {
    position: relative; height: 100%; width: 100%;
    display: flex; align-items: flex-end; justify-content: center;
}

.hero-student-img {
    width: auto; max-width: 120%; /* Allows slight overlap */
    max-height: 80vh; /* Keeps it within view */
    object-fit: contain;
    /* 3D Pop Effect */
    filter: drop-shadow(20px 10px 40px rgba(0,0,0,0.6));
    margin-bottom: -40px; /* Anchors firmly to curve */
    position: relative; z-index: 15;
    animation: slideInRight 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

/* --- BOTTOM 3D CURVE --- */
.hero-stage-bottom {
    position: absolute; bottom: -2px; left: 0; width: 100%;
    line-height: 0; z-index: 14; pointer-events: none;
}
.hero-stage-bottom svg {
    display: block; width: 100%; height: auto;
    filter: drop-shadow(0 -10px 30px rgba(0,0,0,0.3));
}
.curve-fill { fill: #ffffff; }

/* --- ANIMATIONS --- */
@keyframes cardSlideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* =========================================
   RESPONSIVE DESIGN (Fluid & Optimized)
   ========================================= */

/* Tablet (Max 1024px) */
@media (max-width: 1024px) {
    .school-hero-premium {
        display: block; /* Stack Layout */
        height: auto; min-height: auto;
        padding-top: 140px; /* Header Space */
        padding-bottom: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr; /* 1 Col */
        gap: 40px;
        padding: 0 20px;
    }

    /* Adjust Glass Card for Mobile */
    .hero-content {
        padding: 30px;
        align-items: center; text-align: center;
        width: 100%;
    }

    .hero-cta-wrapper { justify-content: center; }
    .hero-desc-premium { margin: 0 auto 30px; }

    /* Image Positioning */
    .hero-visual-col {
        height: 450px; /* Dedicated space */
        align-items: flex-end;
        overflow: visible;
        margin-top: -20px; /* Slight overlap with text card looks cool */
    }
    
    .hero-student-img {
        max-height: 480px; width: 85%;
        margin-bottom: -20px;
    }
}

/* Mobile (Max 600px) */
@media (max-width: 600px) {
    .hero-grid { padding: 0 15px; gap: 30px; }
    
    .hero-content {
        padding: 25px 20px;
        border-radius: 20px;
        backdrop-filter: blur(12px); /* Lighter blur for performance */
    }

    .hero-title-premium { margin-bottom: 15px; }
    
    /* Buttons Full Width */
    .hero-cta-wrapper { flex-direction: column; gap: 12px; }
    .btn-premium-solid, .btn-premium-outline { width: 100%; max-width: 100%; }

    .hero-visual-col { height: 350px; }
    .hero-student-img { max-height: 380px; width: 95%; }
}