/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Variables and Reset */
:root {
    --primary-color: #f7931e; /* Orange from the CTA button/Accent */
    --secondary-color: #34495e; /* Dark Blue/Gray from the header/Hero background */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f4f4f4;
    --accent-blue: #007bff; /* Bright blue for the bubble text */
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* 1. Header and Navigation */
.main-header {
    background: var(--secondary-color);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav ul li a:hover, .main-nav ul li a.active {
    color: var(--primary-color);
}

.login-link {
    background-color: var(--primary-color);
    padding: 8px 15px !important;
    border-radius: 5px;
    color: var(--text-dark) !important;
    margin-left: 10px;
}

.nav-utility i {
    font-size: 1.1em;
    cursor: pointer;
    margin-left: 20px;
    color: var(--text-light);
}

.menu-toggle {
    display: none; /* Hide on desktop */
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5em;
    cursor: pointer;
}


/* 2. Hero Section */
/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--secondary-color);
    /* CORRECTED PATH: Image is inside the uploads folder */
    background-image: url('uploads/school.jpg'); 
    background-size: cover;
    background-position: center;
    padding: 100px 5%; /* Adjust padding for height */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darkens the background image */
    z-index: 1;
}

.hero-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

.text-content {
    color: var(--text-light);
    max-width: 50%;
}

.text-content h1 {
    font-size: 3.5em;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.highlight-text {
    color: var(--primary-color);
}

.text-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Hero Image and Accents */
.image-content {
    position: relative;
    width: 50%;
    text-align: right;
}

.image-content img {
    max-width: 80%;
    height: auto;
    display: block;
    margin-left: auto;
    position: relative;
    z-index: 3; /* Above the blue shape */
}

/* Blue Circle Accent */
.image-content::before {
    content: '';
    position: absolute;
    top: -20%;
    right: 0;
    width: 400px; 
    height: 400px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    opacity: 0.9;
    z-index: 2;
}

/* Bubble Text Styling */
.bubble-text {
    position: absolute;
    top: 10%;
    right: 30%;
    background-color: var(--accent-blue);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    transform: rotate(-10deg);
    z-index: 4;
}

/* Global Button Styling */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #e6831a;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 10px 25px;
}
.btn-secondary:hover {
    background-color: #4b6680;
}

/* 3. General Section Styling */
.section {
    padding: 80px 0;
    text-align: center;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 1.1em;
    color: #777;
    margin-bottom: 40px;
}

/* About Us Section Specifics */
.about-us-section {
    text-align: left;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-text ul {
    list-style: none;
    margin: 20px 0 30px;
}

.about-text ul li {
    padding: 8px 0;
    font-size: 1.1em;
}

.about-text ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Key Features Section Specifics */
.features-section {
    background-color: white;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* 5. Footer Styling */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
    padding-bottom: 30px;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-col p, .footer-col ul {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 5px 0;
    display: block;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col i {
    margin-right: 10px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2em;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 15px 0;
    font-size: 0.85em;
}

/* 6. Media Queries for Mobile Responsiveness */
@media (max-width: 992px) {
    /* Hero Section Adjustments */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .text-content, .image-content {
        max-width: 100%;
        width: 100%;
    }

    .text-content h1 {
        font-size: 2.5em;
        margin-top: 50px;
    }
    
    .image-content {
        order: -1; /* Puts image above text on mobile */
        margin-bottom: 40px;
    }

    .image-content::before { /* Adjust blue circle size for mobile */
        width: 300px;
        height: 300px;
        top: 0;
        right: 50%;
        transform: translateX(50%);
    }

    .image-content img {
        max-width: 60%;
        margin: 0 auto;
    }

    .bubble-text {
        right: 15%;
        top: 0;
    }

    /* General Layout Adjustments */
    .grid-2, .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text {
        text-align: center;
    }

    .about-text ul {
        text-align: left;
    }
    .about-image {
        order: -1;
    }
    
    /* Navigation Adjustments */
    .main-nav {
        display: none; /* Hide main nav by default */
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav ul li a {
        padding: 15px 5%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .login-link {
        margin-left: 0;
        border-radius: 0;
    }

    .menu-toggle {
        display: block;
    }
}