/* ===================================== */
/* ========== IMPORTS & RESET ========= */
/* ===================================== */
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&display=swap');

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Dosis', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================== */
/* ========== BASE STYLES ============= */
/* ===================================== */
body {
    color: #333;
    background: #f8f7f7;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

h1,h2,h3,h4,h5,h6{
    font-size: initial;
}

/* ===================================== */
/* ========== LAYOUT & UTILITIES ====== */
/* ===================================== */
/* Container */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Responsive Containers */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ===================================== */
/* ========== ANIMATIONS ============== */
/* ===================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-scale {
    animation: scaleIn 0.5s ease forwards;
}

/* ===================================== */
/* ========== HEADER COMPONENTS ======= */
/* ===================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 444;
    background-color: transparent;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 5px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo Adjustments */

/* Navigation Menu */
nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #333;
    transition: all 0.3s ease;
}

/* ===================================== */
/* ========== MAIN SECTIONS =========== */
/* ===================================== */
/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: url('2-1.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 48px;
    margin: 0;
}

.hero p {
    font-size: 18px;
    margin: 10px 0;
}

/* Programs Section */
.programs .container {
    display: flex;
    justify-content: space-between;
}

.program-box {
    background: white;
    padding: 15px;
    border-radius: 10px;
}

.program-box img {
    width: 100%;
    border-radius: 10px;
}

/* ===================================== */
/* ========== FOOTER COMPONENTS ======= */
/* ===================================== */
footer {
    background-color: #1e1e1e;
    color: #888;
    padding: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px 10%;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 15px;
}

.contact-info p {
    margin: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.contact-info i {
    color: #ffca00;
    margin-top: 5px;
}

/* ===================================== */
/* ========== UTILITY COMPONENTS ====== */
/* ===================================== */
/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 0.3s ease forwards 1s;
}

/* ===================================== */
/* ========== RESPONSIVE DESIGN ======= */
/* ===================================== */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Added specific styles for 640px-768px range */
@media (min-width: 640px) and (max-width: 767px) {

    /* Fix section display for the specific 640-768px range */
    section.relative.w-full.h-screen.hidden.sm\:flex {
        display: none !important;
        /* Force desktop section to display */
    }

    section.flex.md\:hidden.relative.w-full.h-\[30vh\] {
        display: flex !important;
        /* Force mobile section to hide */
    }

    /* Adjust desktop section elements for this range */
    .absolute.top-20.right-20 h1 {
        font-size: 3.5rem;
    }

    .absolute.bottom-12.left-20 p:first-child {
        font-size: 2.5rem;
    }

    .absolute.bottom-12.left-20 p:last-child {
        font-size: 2.5rem;
    }

    .w-48.h-48 {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.95);
        transition: 0.3s ease-in-out;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    nav ul li {
        margin: 15px 0;
    }
}

form input,
form textarea {
    background-color: #ebeaea;
    transition: 0.25s all ease-in-out;
}

form input:focus ,form textarea:focus {
    outline-color: #ff0000;
}