/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 100px; /* adjust to match header height */

}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}



.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    z-index: 999 !important;
    pointer-events: auto !important;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn.secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn.secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.container {
    justify-content: space-between; /* Keeps logo and nav links on opposite ends */
    align-items: center; /* Aligns items vertically */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-nav {
    display: flex;
    justify-content: space-between; /* Keeps logo and nav links on opposite ends */
    align-items: center; /* Aligns items vertically */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}




/* Media query for mobile display */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%; /* Hide off-screen */
        top: 70px;
        flex-direction: column; /* Stack vertically */
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-links.active {
        right: 0; /* Show when active */
    }

    .hamburger {
        display: flex; /* Show hamburger on mobile */
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 65px; /* Adjust height as needed */
    width: auto;
    margin-right: 10px; /* Space between logo and text */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05); /* Subtle hover effect */
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

.hamburger {
    display: none; /* Show on mobile */
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}


/* Media query for responsive design */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide links initially */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        right: 0;
        background: white; /* Background for dropdown */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        width: 100%;
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .hamburger {
        display: flex; /* Show hamburger */
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 18px;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 16px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* Vision Mission */
.vision-mission {
    padding: 80px 0;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #667eea;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.counter {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-item p {
    font-size: 18px;
    opacity: 0.9;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
    background: #f8f9fa;
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* School Life Intro */
.school-life-intro {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.intro-content {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 450px;
}

.intro-text {
    height: 500px;
    flex: 1.5;
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 15px 0 0 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.intro-text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: #ddd;
}

.intro-text h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.intro-text p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
}

.intro-text p:first-of-type::before {
    content: '"';
    font-size: 4em;
    color: #667eea;
    position: absolute;
    top: -10px;
    left: -20px;
    font-family: Georgia, serif;
    opacity: 0.6;
}

.intro-text p:first-of-type {
    font-style: italic;
    padding-left: 60px;
}

.intro-text p:last-of-type {
    font-weight: 600;
    color: #667eea;
    text-align: right;
    font-style: normal;
}

.intro-image {
    flex: 1;
     height: 500px;
    background: white;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.intro-image img:hover {
    transform: scale(1.05);
}

/* Departments */
.departments {
    padding: 80px 0;
    background: #f8f9fa;
}

.departments h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.department-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.department-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.department-content {
    padding: 25px;
}

.department-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #667eea;
}

/* Curriculum Overview */
.curriculum-overview {
    padding: 80px 0;
}

.curriculum-overview h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.curriculum-overview p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
    line-height: 1.6;
}

.curriculum-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.highlight-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.highlight-item i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.highlight-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* Departments Detailed */
.departments-detailed {
    padding: 80px 0;
    background: #f8f9fa;
}

.departments-detailed h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.departments-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.department-detail {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.department-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.department-header i {
    font-size: 32px;
    color: #667eea;
    margin-right: 15px;
}

.department-header h3 {
    font-size: 24px;
    color: #333;
}

.department-detail ul {
    list-style: none;
    padding-left: 0;
}

.department-detail li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.department-detail li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

/* Academic Support */
.academic-support {
    padding: 80px 0;
}

.academic-support h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.support-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.support-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #667eea;
}

/* News Section */
.news-section {
    padding: 80px 0;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.news-date {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
}

/* Events Section */
.events-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.events-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.events-list {
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    background: white;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateX(5px);
}

.event-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    min-width: 80px;
}

.event-date .month {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.event-content {
    padding: 20px;
    flex: 1;
}

.event-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.event-time {
    color: #667eea;
    font-weight: 600;
    margin-top: 10px;
}

/* Admission Process */
.admission-process {
    padding: 80px 0;
}

.admission-process h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-right: 30px;
    flex-shrink: 0;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: #333;
}

/* Requirements */
.requirements {
    padding: 80px 0;
    background: #f8f9fa;
}

.requirements h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.requirement-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.requirement-card h3 {
    margin-bottom: 20px;
    color: #667eea;
}

.requirement-card ul {
    list-style: none;
}

.requirement-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.requirement-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

/* Application Forms */
.application-forms {
    padding: 80px 0;
}

.application-forms h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.form-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.form-item:hover {
    transform: translateY(-5px);
}

.form-item i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.form-item h3 {
    margin-bottom: 15px;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    margin-bottom: 15px;
    color: #667eea;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Contact Info */
.contact-info {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-details h2 {
    margin-bottom: 30px;
    font-size: 32px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    color: #667eea;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h3 {
    margin-bottom: 5px;
    color: #333;
}

.contact-form h2 {
    margin-bottom: 30px;
    font-size: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #667eea;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ccc;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }


    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }
    section {
    position: relative;
    z-index: 1;
}

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content,
    .intro-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .departments-grid,
    .news-grid,
    .requirements-grid,
    .forms-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-number {
        margin: 0 auto 20px;
    }

    .process-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .event-item {
        flex-direction: column;
    }

    .event-date {
        text-align: center;
    }
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
section:not(.page-hero) {
    opacity: 0;
    transform: translateY(30px);
}


section.animate {
    opacity: 1;
    transform: translateY(0);
}