/* Custom CSS for TeacherList Website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom styles for better compatibility */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu toggle (if needed in future) */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
}

/* Video Modal Styles */
#videoModal {
    animation: fadeIn 0.3s ease-in-out;
}

#videoModal.hidden {
    display: none;
}

#videoModal.flex {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Video container styling */
#howItWorksVideo {
    outline: none;
}

/* Ensure modal is on top */
#videoModal {
    z-index: 9999;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 640px) {
    /* Better text wrapping on mobile */
    h1, h2, h3 {
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Ensure buttons are touch-friendly */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve form inputs on mobile */
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Smooth transitions for mobile menu */
#mobileMenu {
    transition: all 0.3s ease-in-out;
}

/* Video modal responsive improvements */
@media (max-width: 768px) {
    #videoModal .max-w-5xl {
        margin: 1rem;
    }
}
