/* Section Backgrounds for Visual Distinction */

/* Hero Section - Restore background image with gradient overlay */
.hero-section {
    background: linear-gradient(rgba(0, 44, 78, 0.8), rgba(0, 44, 78, 0.6)), 
                url('/assets/images/teachers.png') center/cover no-repeat;
}

/* Empleos Destacados - Light blue/white gradient */
.featured-jobs-section {
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    padding: 80px 0;
    position: relative;
}

.featured-jobs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0076c7, transparent);
}

/* Nosotros (Features) - Very light yellow tint */
.features-section {
    background: linear-gradient(180deg, #fffef5 0%, #fff9e6 100%);
    padding: 100px 0;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f7be16, transparent);
}

/* Como Funciona - Light gray gradient (existing style enhanced) */
.how-it-works-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 100px 0 80px 0;
    margin-top: 0; /* Remove margin since sections flow */
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #003b5a, transparent);
}

/* Comentarios (Testimonials) - Light blue tint */
.testimonials-section {
    background: linear-gradient(180deg, #f0f7ff 0%, #e6f2ff 100%);
    padding: 100px 0;
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0076c7, transparent);
}

/* CTA Section - Dark blue gradient */
.cta-section {
    background: linear-gradient(135deg, #003b5a 0%, #0076c7 100%);
    padding: 100px 0;
    position: relative;
}

.cta-section .cta-title,
.cta-section .cta-description {
    color: white !important;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed header when navigating to sections */
section[id] {
    scroll-margin-top: 80px; /* Adjust based on header height */
}

/* Active navigation link highlighting */
.nav-link.active {
    color: #003b5a;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: #f7be16;
    border-radius: 2px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .featured-jobs-section,
    .features-section,
    .how-it-works-section,
    .testimonials-section,
    .cta-section {
        padding: 60px 0;
    }
    
    section[id] {
        scroll-margin-top: 60px;
    }
}

/* Add subtle wave pattern to section transitions */
.featured-jobs-section::after,
.features-section::after,
.how-it-works-section::after,
.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,20 C480,60 960,60 1440,20 L1440,60 L0,60 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
    pointer-events: none;
    opacity: 0.5;
}