/* ======================== */
/* GLOBAL STYLES      */
/* ======================== */

/* A simple reset to ensure consistent styling across browsers */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Base styles for headings */
h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: bold;
    color: #004d99; /* A deep blue for a professional look */
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2.5em;
    text-align: center;
}

/* Base styles for buttons and links */
.cta-button {
    display: inline-block;
    background-color: #ff6600; /* A vibrant orange for attention */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e65c00;
}

.learn-more-link {
    color: #004d99;
    text-decoration: none;
    font-weight: bold;
}


/* ======================== */
/* HEADER SECTION       */
/* ======================== */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a img {
    height: 60px; /* Adjust as needed */
}

.desktop-nav ul {
    list-style: none;
    display: flex;
}

.desktop-nav ul li {
    margin-left: 25px;
}

.desktop-nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.desktop-nav ul li a:hover {
    color: #ff6600;
}

/* Hide hamburger menu by default on desktop */
.hamburger-menu {
    display: none;
}

/* ======================== */
/* HERO SECTION */
/* ======================== */
.hero-section {
    background-image: url('academic background special.jpg'); /* This is the new line */
    background-color: #004d99; /* This will be a fallback color */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center; /* Centers the image within the section */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero-section h1 {
    color: #fff;
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}


/* ======================== */
/* SOLUTIONS SECTION    */
/* ======================== */
.solutions-section {
    padding: 80px 0;
    text-align: center;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.solution-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
}

.solution-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.solution-card h3 {
    font-size: 1.5em;
    color: #004d99;
    margin-bottom: 10px;
}

.solution-card p {
    margin-bottom: 20px;
    color: #666;
}

/* ======================== */
/* ABOUT SECTION */
/* ======================== */
.about-section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

/* ======================== */
/* FOOTER STYLES */
/* ======================== */
footer {
    background-image: url('academic background special.jpg'); /* New line for the image */
    background-color: #333; /* Fallback color */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center; /* Centers the image within the section */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    color: #fff;
    padding: 50px 0 20px;
}


.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links,.footer-contact,.footer-social {
    flex: 1;
    min-width: 200px;
}

footer h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #ff6600;
}

.footer-contact p,.footer-social a {
    margin-bottom: 10px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #ff6600;
}

.footer-social img {
    height: 24px;
    margin-right: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

/* ======================== */
/* MEDIA QUERIES       */
/* ======================== */
@media (max-width: 768px) {
    /* Hide desktop navigation and show hamburger menu */
    .desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: relative;
        z-index: 100;
    }

    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
        transition: all 0.3s ease-in-out;
    }
}


@media (max-width: 768px) {
    /* ... (your existing media query code) ... */

    /* Style the nav when the 'show-menu' class is active */
    .desktop-nav.show-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .desktop-nav.show-menu ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .desktop-nav.show-menu ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .desktop-nav.show-menu ul li:last-child {
        border-bottom: none;
    }

    .desktop-nav.show-menu ul li a {
        padding: 15px 0;
        display: block;
    }

    /* Prevent scrolling when menu is open */
    .no-scroll {
        overflow: hidden;
    }
}

/* ======================== */
/* ACADEMIC SOLUTIONS PAGE */
/* ======================== */
.inner-hero {
    padding: 80px 20px;
    background-color: #004d99;
    color: #fff;
    text-align: center;
}

.inner-hero h1 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.academic-services {
    padding: 60px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #004d99;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.detailed-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.detailed-section:nth-of-type(odd) {
    background-color: #fff;
}

.faq-card {
    background-color: #fff;
    padding: 20px;
    border-left: 5px solid #ff6600;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-card h3 {
    margin-bottom: 5px;
    color: #333;
}

.contact-cta {
    background-color: #004d99;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    margin-top: 50px;
}

.contact-cta h2 {
    color: #fff;
}

/* /* --- Contact Form Section --- */
.contact-section {
    padding: 4rem 0;
    text-align: center;
    background: #f9f9f9;
}

.contact-section h2 {
    margin-bottom: 2rem;
}

#contactForm {
    max-width: 600px;
    margin: auto;
    text-align: left;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't affect total width */
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.cta-button {
    /* Existing button styles from previous CSS */
    display: inline-block;
    width: auto;
    cursor: pointer;
}

/* --- Media Queries for smaller screens --- */
@media (max-width: 768px) {
    #contactForm {
        padding: 1.5rem;
    }
}

/* ======================== */
/* PARALLAX EFFECT */
/* ======================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Outstanding.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

/* Fallback for the background color if image isn't available */
.hero-section {
    background-color: #004d99;
}


/* ======================== */
/* SCROLL-TO-TOP BUTTON */
/* ======================== */
#scroll-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    font-size: 24px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

#scroll-to-top:hover {
    opacity: 0.8;
}
