/* General Styles */
:root {
    --primary-color: #5C6BC0; /* A pleasant blue-purple */
    --secondary-color: #8D6E63; /* Earthy brown for contrast */
    --accent-color-1: #FFB300; /* Bright yellow/orange */
    --accent-color-2: #4CAF50; /* Green */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
    --bg-dark: #333;
    --border-color: #ddd;
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes extra space below images */
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color-1);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed);
    text-align: center;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background-color: #4C5A9F; /* Slightly darker */
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--accent-color-1);
    color: var(--text-dark);
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
    background-color: #E6A700; /* Slightly darker */
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.section-padded {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Header */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Quicksand', sans-serif;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.logo-highlight {
    color: var(--accent-color-1);
}

.main-nav .nav-list {
    display: flex;
    gap: 30px;
}

.main-nav .nav-item a {
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px 0;
    position: relative;
    transition: color var(--transition-speed);
    display: inline-flex;
    align-items: center;
}

.main-nav .nav-item a:hover {
    color: var(--primary-color);
}

.main-nav .nav-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.main-nav .nav-item a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.8em;
    transition: transform var(--transition-speed);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background-color: #fff;
    box-shadow: var(--shadow-medium);
    border-radius: 5px;
    min-width: 220px;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 5px 0;
}

.dropdown-menu li {
    padding: 10px 20px;
}

.dropdown-menu li a {
    color: var(--text-dark);
    white-space: nowrap;
    display: block;
    padding: 5px 0;
}

.dropdown-menu li a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px; /* Create a buffer zone above the dropdown */
    left: 0;
    width: 100%;
    height: 20px;
    background-color: transparent;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.dropdown-menu:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Add a delay before the dropdown disappears */
.dropdown:not(:hover) .dropdown-menu {
    transition-delay: 0.5s;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7986CB 100%);
    color: var(--text-light);
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content .tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    max-height: 450px;
    object-fit: cover;
}

/* What We Offer Section */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.offer-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed);
}

.offer-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.offer-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: var(--bg-light);
    padding: 10px;
}

.offer-item h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.offer-item p {
    font-size: 1.1rem;
    color: #555;
}

/* Educational Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.benefit-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-speed);
}

.benefit-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-medium);
    background-color: var(--primary-color);
    color: var(--text-light);
}

.benefit-card:hover h3,
.benefit-card:hover p,
.benefit-card:hover .icon-large {
    color: var(--text-light);
}

.icon-large {
    font-size: 3.5rem;
    color: var(--accent-color-2);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 1rem;
    color: #666;
}

/* How It Works Section */
.how-it-works-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.step-item {
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    position: relative;
    padding-top: 50px; /* Space for the number circle */
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--accent-color-1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-light);
    z-index: 2;
}

.step-item img {
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
}

.step-item h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.step-item p {
    font-size: 1.1rem;
    color: #555;
}

/* Perfect For Section */
.perfect-for-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.for-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform var(--transition-speed);
}

.for-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.for-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.for-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.7rem;
    color: var(--primary-color);
}

.for-item p {
    padding: 0 20px 20px;
    color: #555;
}

/* Testimonials */
.testimonial-slider {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling if needed */
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px; /* For scrollbar visibility */
}

.testimonial-card {
    flex: 0 0 350px; /* Fixed width, no shrinking, no growing */
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: center;
    scroll-snap-align: start;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #444;
}

.testimonial-card h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: auto; /* Push to bottom if content is short */
}

/* Call to Action */
.cta-section {
    background: linear-gradient(45deg, #FF7043, #FFCA28); /* Warm gradient */
    color: var(--text-dark);
    text-align: center;
    padding: 80px 20px;
    border-radius: 15px;
    margin: 40px auto;
    max-width: 1000px;
    box-shadow: var(--shadow-medium);
}

.cta-section h2 {
    color: #fff;
    font-size: 2.8rem;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn {
    background-color: #fff;
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-content img {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.about-content div {
    flex: 2;
    min-width: 300px;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2em;
}

.contact-info a {
    color: var(--primary-color);
    font-weight: 600;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 1.8rem;
    color: var(--secondary-color);
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.2);
}

.contact-form button {
    width: auto;
    padding: 12px 30px;
    font-size: 1.1rem;
}

.error-message, .error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.contact-form input:invalid,
.contact-form textarea:invalid {
    border-color: #e74c3c;
}

/* Content Layout */
.content {
    display: flex;
    justify-content: space-between;
    margin-top: 15px; /* Reduced from 30px to reduce gap between menu and h1 */
    gap: 20px;
}

.main-content {
    flex: 1;
    padding: 0 20px; /* Added padding to left and right sides */
    margin-bottom: 30px; /* Added padding between main content and footer */
}

/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    margin-left: 20px;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-color-1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Hide main nav on smaller screens */
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: var(--shadow-medium);
        padding: 20px 0;
        text-align: center;
    }

    .main-nav.active .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .main-nav.active .nav-item {
        margin: 10px 0;
    }

    .main-nav.active .nav-item a {
        padding: 15px 20px;
        display: block;
        width: 100%;
    }

    .dropdown-menu {
        position: static; /* Make dropdown menus expand in place */
        box-shadow: none;
        background-color: var(--bg-light);
        padding-left: 20px;
        opacity: 1;
        transform: none;
        border-radius: 0;
        border-top: 1px solid var(--border-color);
    }

    .hero-section .container {
        flex-direction: column-reverse; /* Image above text on mobile */
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content .tagline {
        font-size: 1.2rem;
    }

    .offer-grid, .benefits-grid, .perfect-for-grid, .how-it-works-steps, .about-content, .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .how-it-works-steps {
        flex-direction: column;
        align-items: center;
    }

    .step-item {
        max-width: 90%;
        width: 100%;
    }

    .testimonial-slider {
        flex-wrap: wrap; /* Allow testimonials to wrap */
        justify-content: center;
    }

    .testimonial-card {
        flex: 0 0 90%; /* Adjust width for better mobile fit */
        max-width: 400px;
    }

    .cta-section {
        margin: 20px auto;
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .main-header {
        padding: 10px 0;
    }

    .logo {
        font-size: 1.8rem;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .tagline {
        font-size: 1rem;
    }

    .section-padded {
        padding: 60px 0;
    }

    .main-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 15px;
    }

    .footer-links a {
        margin: 0 10px;
    }
}
