* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: #333;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

.apply-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
}

/* ========== HAMBURGER MENU STYLES ========== */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

/* ========== HERO SECTION ========== */

.hero {
    margin-top: 80px;
    height: 90vh;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.slide1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slide3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.slide4 {
    background-image: url('../images/c4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.slide4 .hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero1 {
    font-size: 4.5rem;
    color: black;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero1 p {
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.95);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.carousel-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    width: 40px;
    border-radius: 6px;
    background: white;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-arrow.prev {
    left: 2rem;
}

.carousel-arrow.next {
    right: 2rem;
}

/* ========== STATS SECTION ========== */

.stats {
    background: #f8f9ff;
    padding: 4rem 2rem;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* ========== PROGRAMS SECTION ========== */

.programs {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.program-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s;
}

.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.program-image {
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.program-content {
    padding: 2rem;
}

.program-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.program-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.program-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.program-features li {
    padding: 0.5rem 0;
    color: #555;
}

.program-features li::before {
    content: '✓ ';
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========== FACILITIES SECTION (FLIP CARDS) ========== */

.facilities-design3 {
    background: #f8f9ff;
    padding: 6rem 2rem;
}

.facilities-container3 {
    max-width: 1400px;
    margin: 0 auto;
}

.facilities-grid3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.facility-card3 {
    height: 320px;
    perspective: 1000px;
}

.facility-card-inner3 {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.facility-card3:hover .facility-card-inner3 {
    transform: rotateY(180deg);
}

.facility-card-front3,
.facility-card-back3 {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.facility-card-front3 {
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.facility-icon3 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: float3 3s ease-in-out infinite;
}

@keyframes float3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.facility-title3 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
}

.facility-card-back3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    text-align: center;
}

.facility-description3 {
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.learn-more-btn {
    background: white;
    color: #667eea;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.learn-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255,255,255,0.3);
}

/* ========== CTA SECTION ========== */

.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 2rem;
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* ========== FOOTER ========== */

footer {
    background: #1a1a2e;
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}



/* ========== MOBILE RESPONSIVE (SINGLE COMBINED SECTION) ========== */

@media (max-width: 768px) {
    /* Hamburger Menu */
    .hamburger {
        display: flex;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 320px;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -5px 0 25px rgba(0,0,0,0.2);
        transition: right 0.4s ease-in-out;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        list-style: none;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 0.5rem;
        display: block;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        color: #667eea;
        padding-left: 1rem;
        background: #f8f9ff;
    }

    /* Logo adjustments */
    .logo {
        font-size: 1rem;
    }

    .logo-img {
        height: 40px;
    }

    .logo span {
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .carousel-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }

    /* Programs */
    .programs-grid {
        grid-template-columns: 1fr;
    }

    /* Facilities - Disable flip on mobile */
    .facility-card3 {
        height: auto;
        perspective: none;
    }

    .facility-card-inner3 {
        transform: none !important;
    }

    .facility-card-front3 {
        position: relative;
        padding-bottom: 1rem;
    }

    .facility-card-back3 {
        position: relative;
        transform: none;
        border-radius: 0 0 25px 25px;
        margin-top: -25px;
    }

    .facility-icon3 {
        font-size: 3rem;
        animation: none;
    }

    .facility-title3 {
        font-size: 1.2rem;
    }

    .facilities-grid3 {
        grid-template-columns: 1fr;
    }
}