
/* General Body Styles */
body {
    font-family: 'Noto Nastaliq Urdu', serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #444;
    line-height: 1.9;
    font-size: 1.1rem;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation */
header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2em;
    font-weight: 700;
    color: #0056b3;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin-right: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-size: 1.1em;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #0056b3;
}

.menu-btn {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(to bottom, rgba(0, 86, 179, 0.75), rgba(0, 86, 179, 0.75)), url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 0;
}

.hero h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.6em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out;
}

.cta-button {
    background-color: #28a745;
    color: white;
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3em;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: 700;
}

.cta-button:hover {
    background-color: #218838;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* General Section Styles */
.section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: 3em;
    color: #0056b3;
    margin-bottom: 80px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: #0056b3;
    margin: 25px auto 0;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-item {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.feature-item i {
    font-size: 3em;
    color: #0056b3;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.8em;
    color: #0056b3;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Education Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.article-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.article-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.article-content {
    padding: 30px;
}

.article-content h3 {
    font-size: 1.6em;
    color: #0056b3;
    margin-bottom: 15px;
    font-weight: 700;
}

.article-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.read-more {
    text-decoration: none;
    color: #0056b3;
    font-weight: 700;
    transition: color 0.3s;
}

.read-more:hover {
    color: #003d82;
}

/* Testimonials Section */
.testimonial-item {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.testimonial-item p.quote {
    font-size: 1.4em;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-item p.author {
    font-size: 1.2em;
    font-weight: 700;
    color: #0056b3;
}

/* Partners Section */
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}

.partner-logo img {
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease-in-out;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Section */
#contact {
    background-color: #f9f9f9;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.1em;
    transition: box-shadow 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 86, 179, 0.3);
}

.contact-form button {
    width: 100%;
}


/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 40px 0;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 81px); /* Adjust if header height is different */
    padding: 50px 0;
}

.login-box {
    width: 400px;
    padding: 40px;
    background: #fff;
    box-shadow: 0 15px 25px rgba(0,0,0,.1);
    border-radius: 10px;
    text-align: center;
}

.login-box h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #0056b3;
    font-size: 2.5em;
    font-weight: 700;
}

.login-box .input-box {
    position: relative;
    margin-bottom: 30px;
}

.login-box .input-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #333;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background: transparent;
}

.login-box .input-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: .5s;
}

.login-box .input-box input:focus ~ label,
.login-box .input-box input:valid ~ label {
    top: -20px;
    left: 0;
    color: #0056b3;
    font-size: 12px;
}

.login-box .btn {
    background: #0056b3;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    width: 100%;
}

.login-box .btn:hover {
    background: #003d82;
}

/* Logged In User Styles */
.school-name {
    font-weight: 700;
    color: #0056b3;
}

#logout-link {
    font-weight: 700;
    color: #dc3545;
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.3s;
}

#logout-link:hover {
    color: #c82333;
}


/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        right: 0;
        background-color: #fff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin-right: 0;
        text-align: center;
    }

    .nav-links a {
        padding: 20px;
        display: block;
        border-bottom: 1px solid #e0e0e0;
    }

    .menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 3em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .section-title {
        font-size: 2.5em;
    }

    .login-box {
        width: 90%;
        padding: 30px;
    }
}
