/* USMF - Header Z-Index and Position Fix */

/* Ensure header stays on top */
.header-modern {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* Fix hero section to not overlap with header */
.hero-modern {
    position: relative !important;
    z-index: 1 !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    /* Header height fix */
    .header-modern {
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .header-content {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Hero section spacing from header */
    .hero-modern {
        padding-top: 80px !important;
        margin-top: 0 !important;
    }
    
    /* First content after hero */
    .hero-modern .container:first-child {
        padding-top: 20px !important;
    }
    
    /* Badges positioning */
    .hero-badges {
        position: relative !important;
        margin-top: 20px !important;
        z-index: 5 !important;
    }
    
    /* Ensure YÖK and AB badges don't go under header */
    .yök-badge,
    .eu-badge {
        position: relative !important;
        z-index: 5 !important;
    }
    
    /* Hero content spacing */
    .hero-content-left {
        padding-top: 10px !important;
    }
    
    /* Trust strip shouldn't overlap */
    .trust-strip {
        position: relative !important;
        z-index: 1 !important;
        margin-top: 0 !important;
    }
}

/* Desktop fixes */
@media (min-width: 769px) {
    .hero-modern {
        padding-top: 100px !important;
    }
    
    .hero-badges {
        position: relative !important;
        z-index: 10 !important;
    }
}

/* Ensure smooth scrolling doesn't cause overlap */
html {
    scroll-padding-top: 80px;
}

/* Fix for navigation menu on mobile */
@media (max-width: 768px) {
    .nav-modern {
        position: fixed !important;
        top: 60px !important;
        z-index: 99998 !important;
    }
    
    .nav-modern.mobile-active {
        display: block !important;
        animation: slideDown 0.3s ease !important;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure all sections have proper spacing */
section {
    position: relative;
    z-index: 1;
}

/* Fix any absolute positioned elements */
.hero-background {
    z-index: 0 !important;
}

.hero-gradient {
    z-index: 0 !important;
}

/* Content should be above background */
.hero-layout {
    position: relative !important;
    z-index: 2 !important;
}

/* Fix notification position */
.notification {
    position: fixed !important;
    top: 80px !important;
    z-index: 999999 !important;
}

/* Fix floating buttons */
.whatsapp-btn,
.back-to-top {
    z-index: 9999 !important;
}