﻿/* Modern CSS Variables */
:root {
    --primary: #1a4b8c;
    --secondary: #f5a623;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
/*    --header-height: 90px;*/
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark);
    background-color: #f5f7fa;
    overflow-x: hidden;
/*    padding-top: var(--header-height, 100px) !important;*/

}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background-color: #0d3a73;
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.btn-secondary {
    background-color: var(--secondary);
    color: var(--dark);
}

    .btn-secondary:hover {
        background-color: #e6950f;
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.section {
        padding: 90px 0;
/*    scroll-margin-top: 90px;*/
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    text-align: center;
}

    .section-title:after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background: var(--secondary);
        margin: 15px auto;
    }

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    height:90px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 50px;
        margin-right: 10px;
    }

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--dark);
}



nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 10px; 
}

    nav ul li {
        position: relative;
    }


.nav-link, .policy-nav-link, .gallery-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-radius: 5px;
    white-space: nowrap;
    position: relative;
}

    .nav-link:hover,
    .nav-link.active,
    .policy-nav-link:hover,
    .policy-nav-link.active,
    .gallery-nav-link:hover,
    .gallery-nav-link.active{
        color: var(--primary);
        /*        background: #f8f9fa;*/
    }


    .nav-link:after, .policy-nav-link:after, .gallery-nav-link:after{
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        background: var(--secondary);
        bottom: 8px;
        left: 20px;
        transition: var(--transition);
    }

    .nav-link:hover:after,
    .nav-link.active:after,
    .policy-nav-link:hover:after,
    .policy-nav-link.active:after,
    .gallery-nav-link:hover:after,
    .gallery-nav-link.active:after{
        width: calc(100% - 40px);
    }



/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    border: 1px solid #e9ecef;
    padding: 10px 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
    font-weight: 500;
    font-size: 14px;
    position: relative; /* For proper underline */
}

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background: #f8f9fa;
        color: var(--primary);
        padding-left: 25px;
    }

    .dropdown-item i {
        width: 16px;
        text-align: center;
        color: var(--primary);
        font-size: 14px;
    }

/* Dropdown arrow */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid #e9ecef;
    border-left: 1px solid #e9ecef;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}
body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    /*    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;*/
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 90px;
    scroll-margin-top: 90px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeIn 1.5s ease;
}

/* Slider Styles */
.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

    .slide.active {
        opacity: 1;
    }

    .slide::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    }

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .slider-dot.active {
        background-color: white;
        transform: scale(1.2);
    }

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2;
}

.slider-nav-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    visibility: hidden;
}

    .slider-nav-btn:hover {
        background-color: rgba(255, 255, 255, 0.4);
    }


/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.about-img {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

    .about-text h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        color: var(--primary);
    }

    .about-text p {
        margin-bottom: 15px;
    }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

    .feature-card:hover {
        transform: translateY(-10px);
    }

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Gallery Section Styles */
/*.photo-gallery {
    padding: 40px 20px;
    background-color: #f8f9fa;
    scroll-margin-top: 120px;
}*/

/* Header */
.gallery-header {
    background: linear-gradient(135deg, var(--primary), #2c5fa8);
    color: white;
    padding: 10px 0;
    margin-bottom: 40px;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

/*.gallery-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}
*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
}

    .gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    }

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Modal for Image View */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .modal-close:hover {
        background: rgba(0,0,0,0.8);
    }



/* Admissions Section */
.admissions {
    background-color: #f5f7fa;
}

.admission-steps, .withdrawal-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

    .step-card:hover {
        transform: translateY(-5px);
    }

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    background: var(--secondary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.form-container {
    background: white;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.2);
    }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

    .contact-info h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        color: var(--primary);
    }

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    margin-right: 15px;
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.contact-map {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .contact-map iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-col h4:after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50px;
        height: 2px;
        background: var(--secondary);
    }

.footer-col ul {
    list-style: none;
}

    .footer-col ul li {
        margin-bottom: 10px;
    }

        .footer-col ul li a {
            transition: var(--transition);
        }

            .footer-col ul li a:hover {
                color: var(--secondary);
                padding-left: 5px;
            }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: var(--transition);
    }

        .social-links a:hover {
            background: var(--secondary);
            color: var(--dark);
            transform: translateY(-3px);
        }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tabbed Content */
.tab-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    position: relative;
    transition: var(--transition);
    border-radius: 5px 5px 0 0;
}

    .tab-btn.active {
        color: var(--primary);
        background: white;
        box-shadow: 0 -3px 5px rgba(0, 0, 0, 0.1);
    }

    .tab-btn:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background: var(--secondary);
        transition: var(--transition);
    }

    .tab-btn.active:after {
        width: 100%;
    }

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .tab-content.active {
        display: block;
    }

/* Policy Navigation Styles */
#policy-nav {
    display: none;
    list-style: none;
    gap: 15px;
    align-items: center;
}

    /* Show policy nav when active */
    #policy-nav.active {
        display: flex;
    }



/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

   #policy-nav {
        gap: 12px;
    }
    
    #policy-nav .policy-nav-link {
        padding: 8px 15px;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    #policy-nav .policy-nav-link i {
        font-size: 16px;
    }
}




    @media (max-width: 768px) {
        /* Hide navigation by default on mobile */
        nav ul {
            display: none !important;
            flex-direction: column;
            background: var(--light);
            position: fixed;
            top: 80px;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1000;
            overflow-y: auto; /* ✅ menu scrolls */
            max-height: 100vh;
            padding: 20px 0;
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
            -webkit-overflow-scrolling: touch; /* ✅ smooth scroll on iOS */
        }

            nav ul.show {
                display: flex !important;
            }

            nav ul li {
                margin: 0;
                text-align: center;
                padding: 12px 0;
                border-bottom: 1px solid #f0f0f0;
            }

                nav ul li:last-child {
                    border-bottom: none;
                }

        .mobile-menu-btn {
            display: block;
            position: absolute;
            right: 20px;
            top: 20px;
            z-index: 1001;
        }

        .hero h1 {
            font-size: 2.2rem;
        }

        .hero p {
            font-size: 1rem;
        }

        .hero-btns {
            flex-direction: column;
            gap: 10px;
        }

        .btn {
            width: 100%;
        }

        #policy-nav {
            flex-direction: column;
            gap: 8px;
            width: 100%;
            margin-top: 15px;
        }

            #policy-nav .policy-nav-link {
                padding: 12px 15px;
                font-size: 15px;
                width: 100%;
                text-align: center;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
            }

                #policy-nav .policy-nav-link i {
                    font-size: 16px;
                }

       
            
        .nav-link {
            justify-content: center !important;
            text-align: center !important;
            width: 100%;
            display: flex;
            align-items: center;
            padding: 15px 20px !important;
        }
        .nav-item, .nav-link {
            position: relative;
        }

            .dropdown-menu {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                border: none;
                padding: 0;
                margin: 0;
                display: none;
                background: #f8f9fa;
            }

                .dropdown-menu.show {
                    display: block;
                }

            .dropdown-item {
                padding: 15px 20px;
                border-bottom: 1px solid #e9ecef;
                justify-content: center;
            }

            
            .dropdown-menu::before {
                display: none;
            }

            
            .dropdown-item {
                width: 100%;
                text-align: center;
            }

        .gallery-grid {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        }

        .slider-nav-btn {
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
        }
        
    }




@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .form-container {
        padding: 20px;
    }

    #policy-nav {
        flex-direction: column;
        gap: 6px;
        width: 100%;
        margin-top: 10px;
    }

        #policy-nav .policy-nav-link {
            padding: 10px 12px;
            font-size: 14px;
            width: 100%;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

            #policy-nav .policy-nav-link i {
                font-size: 14px;
            }

    .gallery-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
    }  
}




