:root {
    --main-font: "Nunito Sans", sans-serif;
    --sec-font: "Comfortaa", serif;
}
    
body {
    font-family: var(--main-font);
}

.hero-section {
    position: relative;
    color: white;
    padding: 150px 0;
    text-align: center;
    overflow: hidden;
    height: 80vh;
    width: 100vw;
}

nav {
    display: flex;
    justify-content:space-between;
    align-items: center;
    z-index: 997;
}

.proceedbtn {
    font-weight: 600;
    margin-right: 25px;
    text-decoration: underline;
}

.proceedbtn:hover {
    color: #BA141A;
    cursor: pointer;
}

.logo-holder {
    position: relative;
    height: auto;
    width: 150px;
    z-index: 99;
    overflow: hidden;
}

.main_logo {
    padding: 15px;
}

.overlay-warning {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: #000000c0;
    z-index: 998;
    display: none;
}

.popupbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    max-width: 400px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 20px;
    text-align: center;
    font-family: 'Nunito Sans', sans-serif;
    display: none;
}


.popupbox h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #333;
}

.popupbox p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.popupbox em {
    font-style: italic;
    color: #BA141A;
    font-size: 0.9rem;
}

.continue-btn {
    background-color: #BA141A;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.continue-btn:hover {
    background-color: #9a0f15; /* Slightly darker shade on hover */
}

.continue-btn:focus {
    outline: none;
}

/* Close button styling */
.close-btn {
    background: transparent;
    border: none;
    color: #333;
    font-size: 1.5rem;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #BA141A; /* Change color on hover */
}

.close-btn:focus {
    outline: none;
}







.hero-section img {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    filter: blur(2px) brightness(0.5);
}

.overlay-red {
    position: absolute;
    background: linear-gradient(90deg, #ff0000, #7e0101);
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0.5;
}

@keyframes headerappear {
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.hero-section .text-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    z-index: 9;
    margin: 10px;
    opacity: 0;
    animation: headerappear 1s ease forwards;
}

.hero-section h1 {
    font-family: var(--sec-font);
    font-size: 3rem;
    font-weight: bolder;
    margin-bottom: 20px;
    text-transform: uppercase;
    z-index: 2;
}
    
.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    z-index: 2;
}

.buttononhero {
    font-weight: 600;
    box-shadow: 4px 8px 20px #000000a2;
}

.buttononhero:hover {
    color: #BA141A;
    font-weight: 600;
    box-shadow: 4px 15px 20px #00000054;
    transform: translateY(-5px);
    transition: all ease 500ms;
}

.benefits-section {
    margin-top: -5rem;
    padding: 50px 20px;
    background: #ececec;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    box-shadow: 0px -10px 10px #0000003b;
    z-index: 10;
}

.benefit-item {
    text-align: center;
    padding: 20px;
    border-right: 2px #BA141A solid;
}

.benefit-item:last-child {
    border-right: none;
}

.benefit-item i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
}

.timeline-section {
    padding: 50px 20px;
    background-color: #ececec;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0px -10px 10px #0000003b;
}

.timeline-step {
    text-align: center;
    padding: 20px;
    border-right: 2px #BA141A solid;
}

.timeline-step:last-child {
    border-right: none;
}

.form-container {
    max-width: 500px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

footer {
    background: #BA141A;
    color: white;
    padding: 20px;
    text-align: center;
}

.howitworks {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.scholarship-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: inset -2px 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 100px;
}

.scholarship-section h2 {
    font-size: 2rem;
    color: #BA141A;
    margin-bottom: 20px;
}

.scholarship-section p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}





/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0;
        height: 60vh;
    }

    .hero-section h1 {
        font-size: 2.2rem; /* Reduce font size */
    }

    .hero-section p {
        font-size: 1rem; /* Reduce font size */
    }

    .buttononhero {
        font-size: 1rem; /* Smaller button text */
    }

    .benefits-section {
        margin-top: -25px;
    }

    .benefits-section, .timeline-section {
        padding: 40px 20px;
    }

    .benefit-item, .timeline-step {
        padding: 15px;
    }

    .benefit-item i {
        font-size: 2.5rem; /* Smaller icons */
    }

    .form-container {
        max-width: 100%;
        padding: 20px;
    }

    footer {
        padding: 10px;
        font-size: 0.9rem;
    }

    .howitworks {
        width: 95%;
        padding: 10px;
    }

    .scholarship-section h2 {
        font-size: 1.5rem;
    }

    .scholarship-section p {
        font-size: 1rem;
    }
}

/* Further adjustments for small devices (phones) */
@media (max-width: 480px) {
    .popupbox {
        width: 300px;
    }
    
    .hero-section {
        padding: 80px 0;
        height: 80vh;
    }

    .hero-section h1 {
        font-size: 1.8rem; /* Even smaller font size */
    }

    .hero-section p {
        font-size: 0.9rem; /* Even smaller font size */
    }

    .buttononhero {
        font-size: 0.9rem;
    }

    .benefits-section {
        margin-top: -50px;
    }

    .benefits-section, .timeline-section {
        padding: 30px 10px;
    }

    .benefit-item, .timeline-step {
        padding: 10px;
    }

    .benefit-item i {
        font-size: 2rem; /* Even smaller icons */
    }

    .scholarship-section {
        font-size: 0.7rem;
        width: 90vw;
        margin-bottom: 100px;
    }

    footer {
        font-size: 0.8rem;
    }
}
