/* Hero Text Mobile Enhancements */

/* General adjustments for hero text on mobile */
@media (max-width: 768px) {
    /* Adjust hero section size and content */
    .hero {
        min-height: 85vh; /* Ensure there's enough space */
        justify-content: flex-start; /* Move content toward top */
        padding-top: 60px; /* Add space at top */
        margin-bottom: 0; /* Ensure no gap after hero section */
    }
    
    .hero-content {
        width: 100%;
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .hero-text {
        /* Create a strong background for visibility */
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 8px;
        padding: 15px;
        margin: 0 auto 20px;
        max-width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    
    .hero h1 {
        /* Reduce font size for better fit */
        font-size: 1.8rem;
        /* Improve letter spacing for readability */
        letter-spacing: 1px;
        /* Ensure text has enough contrast against backgrounds */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        /* Add spacing between lines */
        line-height: 1.4;
        /* Make sure text doesn't overflow */
        width: 100%;
        margin: 0 auto;
    }
    
    /* Specific styling for the text lines */
    .text-first-line {
        display: block;
        font-size: 1.8rem;
        margin-bottom: 5px;
        font-weight: 700;
        text-transform: capitalize;
    }
    
    .text-second-bi {
        display: block;
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 1.3;
        margin: 5px 0;
        text-transform: capitalize;
    } 
    
    .year-highlight {
        display: block;
        margin-top: 8px;
        font-size: 1.5rem;
    }
}

/* Even smaller screens need more adjustment */
@media (max-width: 480px) {
    .hero {
        min-height: 75vh;
        padding-top: 40px;
    }
    
    .hero-text {
        padding: 12px;
    }
    
    .text-first-line {
        font-size: 1.5rem;
    }
    
    .text-second-line {
        font-size: 1.3rem;
    }
    
    .year-highlight {
        font-size: 1.2rem;
    }
    
    /* Ensure scholarship badge doesn't overlap */
    .scholarship-badge {
        margin-top: 20px;
        transform: scale(0.9);
    }
}

/* Extremely small screens */
@media (max-width: 360px) {
    .hero-text {
        padding: 10px;
    }
    
    .text-first-line {
        font-size: 1.3rem;
    }
    
    .text-second-line {
        font-size: 1.1rem;
    }
    
    .year-highlight {
        font-size: 1rem;
    }
}
