/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}



/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    background: #000;
    overflow: hidden;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-section .tagline {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.hero-section .tagline h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fda31b;
}

.hero-section .tagline p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* General Styles for Apply Section */
.apply-section {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Align content and image side-by-side */
    padding: 4rem 8rem;
    background-color: #f9f9f9; /* Default background for desktop */
    color: #333;
    font-family: Arial, sans-serif;
    position: relative;
}

/* Content Styling */
.apply-content {
    max-width: 50%; /* Adjusts the width of the text content */
    z-index: 2;
}

.apply-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fda31b;
}

.apply-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.apply-content ol {
    padding-left: 20px;
    font-size: 1rem;
}

.apply-content ol li {
    margin-bottom: 1rem;
}

.apply-content a {
    color: #fda31b;
    text-decoration: underline;
}

/* Image Styling (Desktop) */
.apply-image {
    max-width: 40%; /* Restricts the image width */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 2rem;
}

.apply-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover; /* Maintains aspect ratio */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .apply-section {
        flex-direction: column; /* Stack content for smaller screens */
        justify-content: center;
        text-align: center;
        padding: 2rem 1rem;
        background-image: url('/img/teacher0.png'); /* Background image for mobile */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: #fff; /* Adjusts text color for better readability */
    }

    .apply-section::before {
        content: ''; /* Adds a semi-transparent overlay */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }

    .apply-content {
        z-index: 2;
        max-width: 100%; /* Ensures content takes full width */
    }

    .apply-content h2,
    .apply-content p,
    .apply-content ol {
        color: #fff;
    }

    .apply-image {
        display: none; /* Hide the separate image in mobile view */
    }
}


/* Responsive Styles */
@media (max-width: 768px) {
    .apply-section {
        padding: 12rem 1rem;
        margin-top: 5rem;
        margin-bottom: 5rem
    }

    .apply-content h2 {
        font-size: 2rem;
    }

    .apply-content p,
    .apply-content ol li {
        font-size: 1rem;
    }
    .apply-image {
        display: none; /* Hides image as a separate element */
    }

    .hero-section{
        height: 40vh;
    }

    .hero-section .tagline {
        top: 12%;
    }
}
/* Highlighted Scholarship Link Style */
.highlight-link {
    background: linear-gradient(135deg, #fda31b 0%, #fd8c1b 50%, #fda31b 100%);
    color: white !important;
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 600;
    border: 3px solid transparent;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transform: translateZ(0);
    overflow: hidden;
}

/* Add shine effect */
.highlight-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    pointer-events: none;
}

.highlight-link:hover::before {
    animation: shine 0.6s ease-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Enhanced Blinking Border Animation - Blended with Website Theme */
.blink {
    animation: blinkBorder 1s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

/* Orange-themed blinking border that matches the button */
@keyframes blinkBorder {
    0%, 45% {
        border-color: #ff8c00;
        box-shadow: 
            0 0 15px rgba(253, 163, 27, 0.8),
            0 0 25px rgba(253, 163, 27, 0.4),
            inset 0 0 10px rgba(255, 255, 255, 0.1);
    }
    50%, 100% {
        border-color: #ffa500;
        box-shadow: 
            0 0 8px rgba(253, 163, 27, 0.6),
            0 0 15px rgba(253, 163, 27, 0.3),
            inset 0 0 5px rgba(255, 255, 255, 0.05);
    }
}

/* Alternative: Professional blue theme for school websites */
.blink-blue {
    animation: blinkBorderBlue 1s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

@keyframes blinkBorderBlue {
    0%, 45% {
        border-color: #2196F3;
        box-shadow: 
            0 0 15px rgba(33, 150, 243, 0.8),
            0 0 25px rgba(33, 150, 243, 0.4),
            inset 0 0 10px rgba(255, 255, 255, 0.1);
    }
    50%, 100% {
        border-color: #64B5F6;
        box-shadow: 
            0 0 8px rgba(33, 150, 243, 0.6),
            0 0 15px rgba(33, 150, 243, 0.3),
            inset 0 0 5px rgba(255, 255, 255, 0.05);
    }
}

/* Subtle orange glow - most website-friendly */
.blink-subtle {
    animation: blinkBorderSubtle 1.5s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

@keyframes blinkBorderSubtle {
    0%, 45% {
        border-color: #fd8c1b;
        box-shadow: 
            0 0 10px rgba(253, 140, 27, 0.6),
            0 0 20px rgba(253, 140, 27, 0.3);
    }
    50%, 100% {
        border-color: #fda31b;
        box-shadow: 
            0 0 5px rgba(253, 163, 27, 0.4),
            0 0 10px rgba(253, 163, 27, 0.2);
    }
}

/* Subtle scale pulse */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Alternative: Pulsing Border (if you prefer smoother effect) */
.blink-pulse {
    animation: pulseBorder 1.5s ease-in-out infinite;
}

@keyframes pulseBorder {
    0% {
        border-color: #ff4444;
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.8);
    }
    70% {
        border-color: #ff4444;
        box-shadow: 0 0 0 6px rgba(255, 68, 68, 0);
    }
    100% {
        border-color: #ff4444;
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* Hover effect with matching theme colors */
.highlight-link:hover {
    animation-play-state: paused;
    border-color: #ff8c00;
    box-shadow: 
        0 0 20px rgba(253, 163, 27, 0.9),
        0 0 35px rgba(253, 163, 27, 0.5),
        0 4px 15px rgba(0,0,0,0.3);
    transform: scale(1.05) translateY(-2px);
    background: linear-gradient(135deg, #fd8c1b 0%, #fda31b 50%, #fd8c1b 100%);
}

/* Enhanced pulsing version */
.blink-enhanced {
    animation: enhancedPulse 1.5s ease-in-out infinite;
}

@keyframes enhancedPulse {
    0% {
        border-color: #ff0044;
        box-shadow: 
            0 0 5px rgba(255, 0, 68, 0.4),
            0 0 10px rgba(255, 0, 68, 0.2);
        transform: scale(1);
    }
    25% {
        border-color: #ff2266;
        box-shadow: 
            0 0 10px rgba(255, 34, 102, 0.6),
            0 0 20px rgba(255, 34, 102, 0.3);
        transform: scale(1.015);
    }
    50% {
        border-color: #ff0044;
        box-shadow: 
            0 0 20px rgba(255, 0, 68, 0.9),
            0 0 30px rgba(255, 0, 68, 0.5),
            0 0 40px rgba(255, 0, 68, 0.2);
        transform: scale(1.03);
    }
    75% {
        border-color: #ff2266;
        box-shadow: 
            0 0 15px rgba(255, 34, 102, 0.7),
            0 0 25px rgba(255, 34, 102, 0.4);
        transform: scale(1.015);
    }
    100% {
        border-color: #ff0044;
        box-shadow: 
            0 0 5px rgba(255, 0, 68, 0.4),
            0 0 10px rgba(255, 0, 68, 0.2);
        transform: scale(1);
    }
}

