:root {
    --primary: #2f9163;
    --white: #ffffff;
    --green-light: #77eed2;
    --green-dark: #175841;
    --text-dark: #333333;
    --text-light: #777777;
    --bg-light: #f9f9f9;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow-x: hidden;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* Header Styles */
.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(images/sch-back.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2% 6%;
    background-color: rgba(4, 9, 30, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.5s;
}

nav.scrolled {
    background-color: var(--primary);
    box-shadow: var(--shadow);
}

.logo-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-links {
    flex: 1;
    text-align: right;
    position: relative;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 15px;
    position: relative;
}

.nav-links ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: var(--green-light);
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}


/* Login Button Styles */
.login-container {
     margin-left: 20px;
     display: flex;
     align-items: center;
}

.login-btn {
     background: linear-gradient(135deg, var(--green-light), var(--primary));
     color: var(--white) !important;
     padding: 10px 25px;
     border-radius: 30px;
     font-weight: 600;
     text-decoration: none;
     text-transform: uppercase;
     letter-spacing: 1px;
     font-size: 14px;
     transition: all 0.3s ease;
     box-shadow: 0 4px 15px rgba(47, 145, 99, 0.3);
     display: inline-block;
     border: none;
     cursor: pointer;
     position: relative;
     overflow: hidden;
}

.login-btn:hover {
     transform: translateY(-3px);
     box-shadow: 0 6px 20px rgba(47, 145, 99, 0.4);
     background: linear-gradient(135deg, var(--primary), var(--green-dark));
}

.login-btn:active {
     transform: translateY(1px);
}

.login-btn i {
     margin-right: 8px;
     font-size: 16px;
}

/* Mobile responsiveness for login button */
@media (max-width: 768px) {
     .login-container {
         margin: 15px 0 0 0;
         width: 100%;
         justify-content: center;
     }
     
     .login-btn {
         padding: 12px 35px;
         font-size: 15px;
     }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 3, 13, 0.9);
    width: 200px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 5;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu li {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    color: var(--white);
    font-size: 14px;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    color: var(--green-light);
    padding-left: 10px;
}

.dropdown > a i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

.text-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    color: var(--white);
}

.text-box h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.text-box p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin: 0 auto 40px;
    max-width: 700px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 12px 34px;
    font-size: 16px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.5s;
}

.hero-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Academics Section */
.academics {
    width: 80%;
    margin: auto;
    text-align: center;
    padding: 100px 0;
}

h1, h2, h3, h4 {
    color: var(--primary);
}

h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 20px;
}

p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.course-col {
    flex: 1 1 300px;
    background: var(--green-light);
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.5s;
}

.course-col:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.view-btn {
    display: inline-block;
    text-decoration: none;
    color: var(--white);
    background-color: var(--primary);
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background-color: var(--green-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.about-container {
    width: 80%;
    margin: 0 auto;
}



.about-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.about-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.about-details {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 60%;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.feature {
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.feature h4 {
    margin-bottom: 10px;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 10px;
}

.gallery-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background-color: var(--green-dark);
}

.gallery-cta {
    text-align: center;
    margin-top: 30px;
}

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.cta-btn:hover {
    background-color: transparent;
    color: var(--primary);
}

/* Testimonials Section */
.testimonial {
    width: 80%;
    margin: auto;
    padding: 100px 0;
    text-align: center;
}

.testimonial-col {
    flex: 1 1 300px;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #cfeef8;
    padding: 30px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease;
}

.testimonial-col:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.testimonial-col img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-col p {
    padding: 0;
    margin-bottom: 10px;
}

.testimonial-col h3 {
    margin-top: 0;
    text-align: left;
}

.stars {
    color: gold;
    margin-top: 10px;
}

/* Call to Action Section */
.cta {
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(images/studentsraisinghands);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}

.cta h1 {
    color: var(--white);
    margin-bottom: 40px;
}

/* Footer Section */
.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background-color: var(--primary);
    color: var(--white);
}

.footer h4 {
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
    color: white;
}
.footer p{

    color: white;
}
.icons {
    margin: 20px 0;
}

.icons a {
    color: var(--white);
    margin: 0 15px;
    font-size: 24px;
    transition: color 0.3s ease;
}

.icons a:hover {
    color: var(--green-light);
}

.contact-info {
    margin: 20px 0;
}

.contact-info p {
    margin: 10px 0;
    color: var(--white);
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--green-light);
    text-decoration: underline;
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(8, 1, 1, 0.7);
}

/* Sub Header Styles */
.sub-header {
    height: 40vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(images/sch-back.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: var(--white);
    padding-top: 100px;
}

.sub-header h1 {
    margin-top: 50px;
    font-size: 2.5rem;
}

/* About Us Page Specific Styles */
.about-us {
    width: 80%;
    margin: auto;
    padding: 80px 0;
}

.about-us .row {
    align-items: center;
}

.about-col {
    flex-basis: 48%;
    padding: 20px;
}

.about-col h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-col p {
    margin-bottom: 15px;
}

.about-col img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.red-btn {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.red-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Mission Section */
.mission {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.mission .row {
    align-items: center;
}

.mission-col {
    flex-basis: 48%;
    padding: 20px;
}

.mission-col img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.mission-col ul {
    margin: 20px 0;
    padding-left: 20px;
}

.mission-col li {
    margin-bottom: 10px;
}

/* Values Section */
.values {
    padding: 80px 0;
    text-align: center;
}

.values h1 {
    margin-bottom: 20px;
}

.values p {
    margin-bottom: 40px;
}

.values-col {
    flex-basis: 30%;
    padding: 30px 20px;
    border-radius: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.values-col:hover {
    transform: translateY(-10px);
}

.values-col i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.values-col h3 {
    margin-bottom: 15px;
}
/* ===== MAIN HEADER STYLES ===== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 60px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
    position: relative;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #1a5276;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    margin: 0;
    padding: 10px 20px;
}

.dropdown-menu a {
    color: #555;
    display: block;
}

.dropdown-menu a:hover {
    color: #1a5276;
    background: #f5f5f5;
}

.fa-bars, .fa-times {
    font-size: 24px;
    cursor: pointer;
    display: none;
}



/* Footer Styles */
.contact-footer {
    background: #145a32;
    color: white;
    padding: 50px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #e67e22;
}

.footer p, .footer li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #e67e22;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-bottom {
    background: #215a39;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-nav ul {
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        background: #1a5276;
        flex-direction: column;
        padding-top: 80px;
        transition: right 0.5s;
    }

    .main-nav li {
        margin: 15px 0;
    }

    .main-nav a {
        color: white;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
    }

    .fa-bars, .fa-times {
        display: block;
        color: #333;
    }

    .contact-header {
        height: 50vh;
        margin-top: 60px;
    }
    
    .contact-header h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}















/* Responsive Adjustments */
@media (max-width: 768px) {
    .sub-header h1 {
        font-size: 2rem;
        margin-top: 30px;
    }
    
    .about-col, .mission-col {
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    
    .values-col {
        flex-basis: 100%;
        margin-bottom: 20px;
    }
}

/* Mobile Menu */
nav .fa {
    display: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .testimonial-col {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .testimonial-col h3 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        background: var(--primary);
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2000;
        transition: right 0.5s;
    }
    
    .nav-links ul li {
        display: block;
        margin: 20px 0;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none;
        background-color: rgba(0,0,0,0.1);
        box-shadow: none;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
        transform: none;
    }
    
    nav .fa {
        display: block;
        margin: 10px;
    }
    
    .about-details {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        min-width: 100%;
    }
    
    .row {
        flex-direction: column;
    }
    
    .course-col {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .text-box h1 {
        font-size: 2rem;
    }
    
    .cta {
        padding: 60px 20px;
    }
    
    .cta h1 {
        font-size: 1.5rem;
    }
}