:root {
    --primary-color: #1a5f7a; /* Deep blue for brand */
    --secondary-color: #2c88b0; /* Lighter blue for accents */
    --accent-color: #ff6b6b; /* Warm red for CTAs */
    --text-color: #333;
    --light-bg: #f5f9fc;
    --primary-color-rgb: 26, 95, 122; /* RGB values for #1a5f7a */
    --secondary-color-rgb: 44, 136, 176; /* RGB values for #2c88b0 */
}

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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Mobile Menu Button - Initially Hidden */
.mobile-menu-btn {
    display: none; /* Hide by default */
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Regular Navigation Styles */
nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #3498db;
}

.cta-button a {
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

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

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8rem 5% 4rem;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-buttons {
    margin: 2rem 0;
}

.primary-btn,
.secondary-btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.primary-btn {
    background-color: #e74c3c;
    color: white;
}

.secondary-btn {
    border: 2px solid white;
    color: white;
}

.features-section {
    padding: 4rem 5%;
    background-color: #f9f9f9;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--secondary-color);
}

.feature-card p {
    color: #666;
    transition: all 0.3s ease;
}

.feature-card:hover p {
    color: #333;
}

/* Add a subtle background effect on hover */
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(var(--primary-color-rgb), 0.1),
        rgba(var(--secondary-color-rgb), 0.1)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.courses-section {
    padding: 4rem 5%;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

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

.course-info {
    padding: 1.5rem;
}

.price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

.enroll-btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
}

.contact-section {
    padding: 4rem 5%;
    background-color: #f9f9f9;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

input,
textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

footer {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.course-features {
    list-style: none;
    margin: 1rem 0;
}

.course-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.course-features li:before {
    content: "✓";
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.math-formula {
    font-family: "Times New Roman", serif;
    font-style: italic;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin: 1rem;
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block; /* Show only on mobile */
    }

    nav ul {
        display: none; /* Hide regular nav on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav.active ul {
        display: flex; /* Show nav when active class is added */
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .cta-button {
        margin-top: 0.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .map-container {
        margin-top: 2rem;
    }

    .map-container iframe {
        height: 350px;
    }
}

/* Update Testimonials Section Styles */
.testimonials-section {
    padding: 4rem 5%;
    background: linear-gradient(
        135deg,
        rgba(var(--primary-color-rgb), 0.05),
        rgba(var(--secondary-color-rgb), 0.1)
    );
    position: relative;
}

.testimonials-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color)
    );
}

.testimonial-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 1rem;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial {
    min-width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: all 0.5s ease;
    opacity: 0.7;
}

.testimonial.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 15px 40px rgba(var(--primary-color-rgb), 0.15);
}

.testimonial-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.1);
    transition: all 0.3s ease;
}

.testimonial.active .testimonial-img {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testimonial:hover .testimonial-img img {
    transform: scale(1.1);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -2rem;
    left: -1rem;
    font-family: Georgia, serif;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-content h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.testimonial.active .testimonial-content h4 {
    color: var(--accent-color);
}

.student-info {
    color: #666;
    font-size: 0.9rem;
    position: relative;
    padding-top: 0.5rem;
}

.student-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.8rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot:hover {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
    border-color: var(--accent-color);
}

/* Enhanced Animation for testimonial entrance */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.testimonial.active {
    animation: fadeInScale 0.6s ease-out forwards;
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .testimonial {
        padding: 1.5rem;
    }

    .testimonial-img {
        width: 100px;
        height: 100px;
    }

    .testimonial-content p {
        font-size: 1rem;
    }
}

/* Map Container Styles */
.map-section {
    margin-top: 3rem;
    padding: 0 1rem;
}

.map-wrapper {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 1;
    max-width: 350px;
}

.location-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease;
}

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

.location-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-card h3 i {
    color: var(--accent-color);
}

.location-details {
    margin-bottom: 1.5rem;
}

.location-details p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #555;
}

.location-details i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.directions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .map-wrapper {
        height: 600px;
    }

    .map-overlay {
        position: relative;
        top: auto;
        left: auto;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .location-card {
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .map-wrapper {
        height: 500px;
        border-radius: 10px;
    }

    .location-card {
        padding: 1rem;
        margin: 0.5rem;
    }

    .directions-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Login Dropdown Styles */
.login-dropdown {
    position: relative;
}

.login-btn-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.login-btn-nav:hover {
    background: linear-gradient(135deg, #2980b9, #1e6fa3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.login-dropdown-content {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.login-dropdown:hover .login-dropdown-content,
.login-dropdown:focus-within .login-dropdown-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0);
    pointer-events: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333 !important;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid #eee;
}

.login-dropdown-content a:last-child {
    border-bottom: none;
}

.login-dropdown-content a:hover {
    background: #f5f5f5;
    color: #3498db !important;
}

.login-dropdown-content a i {
    width: 20px;
    color: #3498db;
}

/* Mobile login dropdown */
@media (max-width: 768px) {
    .login-dropdown-content {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute;
        top: 100%;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
        min-width: 200px;
        pointer-events: none;
    }
    
    .login-dropdown:hover .login-dropdown-content,
    .login-dropdown.active .login-dropdown-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }
    
    .login-btn-nav {
        width: 100%;
        justify-content: center;
    }
}
