:root {
    --primary-color: #3498db;
    --secondary-color: #ecf0f1;
    --text-color: #2c3e50;
    --accent-color: #e74c3c;
    --message-bg-color: #34495e;
    --message-text-color: #ecf0f1;
    --navbar-bg-color: rgba(255, 255, 255, 0.9);
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

a {
    color: var(--accent-color);
}

a:hover,
a:focus {
    text-decoration: underline;
}

.top-bar {
    background: linear-gradient(to right, black, var(--accent-color));
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
}

.top-bar .contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar .contact-info span {
    margin-right: 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.top-bar .contact-info i {
    margin-right: 5px;
}

.top-bar .social-media {
    display: flex;
    align-items: center;
}

.top-bar .social-media a {
    color: white;
    margin-left: 15px;
    font-size: 20px;
    transition: color 0.3s, transform 0.3s;
}

.top-bar .social-media a:hover {
    color: #f1f1f1;
    transform: scale(1.2);
}

/* Navbar Styles */
.navbar {
    background-color: var(--navbar-bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.3s;
    flex-wrap: wrap;
}

.navbar img {
    width: 250px;
    height: 80px;
    transition: transform 0.3s ease;
}

.navbar img:hover {
    transform: scale(1.05);
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.navbar ul li {
    margin: 30px;
}

.navbar ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.navbar ul li a:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    border-radius: 5px;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar .toggle-button {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar .toggle-button div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

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

.navbar .dropdown-menu {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0;
    margin: 0;
    width: 200px;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar .dropdown-menu li {
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar .dropdown-menu li a {
    display: block;
    padding: 10px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.navbar .dropdown-menu li a:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    transform: scale(1.02);
}

.navbar .dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: scale(1) translateY(0);
}

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

/* Staggered Effect */
.navbar .dropdown:hover .dropdown-menu li:nth-child(1) { transition-delay: 0.1s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(2) { transition-delay: 0.2s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(3) { transition-delay: 0.3s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(4) { transition-delay: 0.4s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(5) { transition-delay: 0.5s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(6) { transition-delay: 0.6s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(7) { transition-delay: 0.7s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(8) { transition-delay: 0.8s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(9) { transition-delay: 0.9s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(10) { transition-delay: 1s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(11) { transition-delay: 1.1s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(12) { transition-delay: 1.2s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(13) { transition-delay: 1.3s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(14) { transition-delay: 1.4s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(15) { transition-delay: 1.5s; }
/* Continue this pattern for as many items as you need */

.navbar .dropdown-menu li a {
    animation: none;
}

.navbar .dropdown:hover .dropdown-menu li a {
    animation: bounce 0.3s ease forwards;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-2.5px);
    }
}



/* Responsive Styles */
@media (max-width: 992px) {
    .top-bar .contact-info {
        font-size: 12px;
        /* Adjusted for smaller screens */
    }

    .top-bar .contact-info span {
        margin-right: 10px;
        /* Adjusted for smaller screens */
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
        top: 0;
        /* Adjusted for fixed positioning */
    }

    .navbar img {
        width: 150px;
        /* Adjusted for smaller screens */
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        /* Adjusted to appear below the navbar */
        left: 0;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .navbar ul.show {
        display: flex;
    }

    .navbar .toggle-button {
        display: flex;
    }

    .navbar .toggle-button div {
        background-color: var(--primary-color);
    }

    .navbar ul li {
        margin: 0;
    }

    .navbar ul li a {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .navbar ul li a:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 10px;
        flex-direction: column;
    }

    .top-bar .contact-info {
        margin-bottom: 10px;
    }

    .top-bar .contact-info span {
        font-size: 12px;
    }

    .top-bar .social-media a {
        font-size: 18px;
    }
}


.hero-section {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: black;
    overflow: hidden;
    margin-top: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.hero-section img {
    position: absolute;
    right: -50px;
    top: 0;
    height: 100%;
    width: auto;
    object-fit: cover;
    filter: brightness(90%);
    animation: fadeInImage 2s ease-out;
}

@keyframes fadeInImage {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}



.hero-section .overlay-text {
    position: relative;
    color: white;
    padding: 20px;
    max-width: 50%;
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    animation: fadeInText 2s ease-out;
    -webkit-animation: fadeInText 2s ease-out;

}

.math-coaching {
    background-color: #f9f9f9;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.math-coaching-box {
    background-color: #fff;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    box-shadow: 0 4px 8px rgba(1, 1, 1, 1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    animation: fadeInUp 1s ease-out;
}

.math-coaching-box:hover {
    transform: translateY(-8px);
    /*Lifteffectonhover*/
    box-shadow: 0 6px 12px rgba(0, 0, 0, 1.5);
    -webkit-transform: translateY(-8px);
    -moz-transform: translateY(-8px);
    -ms-transform: translateY(-8px);
    -o-transform: translateY(-8px);
}

.math-coaching h1 {
    color: black;
    font-family: "Bungee Tint";
    font-weight: 400;
    font-style: normal;
    text-decoration: underline solid red;


}

.math-coaching p {
    color: black;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

.math-coaching ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-size: 18px;
    color: #333;

}

.math-coaching ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    transition: color 0.3s ease;

}

.math-coaching ul li::before {
    content: '•';
    color: #e74c3c;
    position: absolute;
    left: 0;
    font-size: 24px;
    line-height: 1;

}

.math-coaching .cta-button {
    display: inline-block;

    margin-left: 40%;
    padding: 20px 24px;
    font-size: 18px;
    color: #fff;
    background-color: #e74c3c;
    text-decoration: none;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;

}

.math-coaching .cta-button:hover {
    background-color: #c0392b;
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 01);
}

.math-coaching img {
    display: block;
    position: relative;
    margin-left: 500px;
    margin-top: -180px;
    width: 300px;
    border-radius: 25px;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    -o-border-radius: 25px;
    box-shadow: 0 4px 8px rgba(1, 1, 1, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.math-coaching img:hover {
    transform: translateY(-8px);
    -webkit-transform: translateY(-8px);
    -moz-transform: translateY(-8px);
    -ms-transform: translateY(-8px);
    -o-transform: translateY(-8px);
    box-shadow: 0 6px 12px rgba(1, 1, 1, 1.5);
}



.accounts-coaching {
    background-color: #f9f9f9;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.accounts-coaching-box {
    background-color: #fff;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    box-shadow: 0 4px 8px rgba(1, 1, 1, 1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    animation: fadeInUp 1s ease-out;
}

.accounts-coaching-box:hover {
    transform: translateY(-8px);
    /*Lifteffectonhover*/
    box-shadow: 0 6px 12px rgba(0, 0, 0, 1.5);
    -webkit-transform: translateY(-8px);
    -moz-transform: translateY(-8px);
    -ms-transform: translateY(-8px);
    -o-transform: translateY(-8px);
}

.accounts-coaching h1 {
    color: black;
    font-family: "Bungee Tint";
    font-weight: 400;
    font-style: normal;
    text-decoration: underline solid red;


}

.accounts-coaching p {
    color: black;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

.accounts-coaching ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-size: 18px;
    color: #333;

}

.accounts-coaching ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    transition: color 0.3s ease;

}

.accounts-coaching ul li::before {
    content: '•';
    color: #e74c3c;
    position: absolute;
    left: 0;
    font-size: 24px;
    line-height: 1;

}

.accounts-coaching .cta-button {
    display: inline-block;

    margin-left: 40%;
    padding: 20px 24px;
    font-size: 18px;
    color: #fff;
    background-color: #e74c3c;
    text-decoration: none;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;

}

.accounts-coaching .cta-button:hover {
    background-color: #c0392b;
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 01);
}

.accounts-coaching img {
    display: block;
    position: relative;
    margin-left: 400px;
    margin-top: -200px;
    width: 350px;
    border-radius: 25px;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    -o-border-radius: 25px;
    box-shadow: 0 4px 8px rgba(1, 1, 1, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accounts-coaching img:hover {
    transform: translateY(-8px);
    -webkit-transform: translateY(-8px);
    -moz-transform: translateY(-8px);
    -ms-transform: translateY(-8px);
    -o-transform: translateY(-8px);
    box-shadow: 0 6px 12px rgba(1, 1, 1, 1.5);
}

.achievements {
    background-color: #f0f0f0;
    padding: 50px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;

}

.achievement-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(1, 1, 1, 1.5);
    padding: 40px;
    flex: 1;
    /* Allows the boxes to grow equally */
    margin: 0 10px;
    /* Adjust margin to space boxes */
    max-width: 230px;
    /* Set a max-width to keep them from becoming too large */
    text-align: center;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;

}

.achievement-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(1, 1, 1, 1.5);
}

.success-rate {
    background-color: #007bff;
    color: white;
}

.students-enrolled {
    background-color: #6f42c1;
    color: white;
}

.certified-teachers {
    background-color: #ffc107;
    color: black;
}

.completed-courses {
    background-color: #e83e8c;
    color: white;
}

.achievement-box h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.achievement-box p {
    font-size: 16px;

}

.testimonials {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.testimonial-box {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.testimonial-box h2 {
    color: #333;
    font-size: 36px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.testimonial-box p {
    color: #555;
    font-size: 18px;
    margin-bottom: 20px;
}

.testimonial {
    font-style: italic;
    color: #666;
    margin-top: 20px;
}

.testimonial strong {
    display: block;
    margin-top: 10px;
    color: #e74c3c;
}

#staff {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem;
    background-color: red;
}

.staff-member {
    background-color: black;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(1, 1, 1, 1.5);
    margin: 1rem;
    padding: 1rem;
    width: 250px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;

}

.staff-member img {
    border-radius: 50%;
    width: 190px;
    height: 240px;
    object-fit: cover;
}

.staff-member h2 {
    color: white;
    margin: 1rem 0 0.5rem;
}

.staff-member p {
    color: white;

}

.staff-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(1, 1, 1, 1.5);
}

.swiper-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
    padding: 20px 0;

}

.swiper-wrapper {
    display: flex;
    align-items: center;

}


.swiper-slide {
    flex: 0 0 auto;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    max-width: 500px;
    height: auto;

    transition: opacity 0.3s;

}

.contact-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 2px 6px 15px rgba(1 1, 1, 1.5);
    background-image: linear-gradient(to bottom right, #ffffff, #f9f9f9);
    animation: fadeIn 1s ease-out;
}

.contact-container h1 {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 600;
    animation: slideIn 1s ease-out;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 1.1em;
    color: #555;
}


.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.5);
    outline: none;
    transform: scale(1.02);
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
    height: 50px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form input[type="submit"] {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-form input[type="submit"]:hover {
    background-color: #c0392b;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(1, 1, 1, 1.5);
}

.contact-form input[type="submit"]:focus {
    outline: none;
}

@media (max-width: 600px) {
    .contact-container {
        padding: 20px;
    }

    .contact-form label {
        font-size: 1em;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }

    .contact-form input[type="submit"] {
        font-size: 16px;
    }
}





 /* Footer Section */
 footer {
    background-color: red;
    color: #fff;
    padding: 30px 20px;
    font-size: 14px;
}

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

.footer-section {
    flex: 1;
    margin: 0 15px;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #e74c3c;
}

.footer-section p,
.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

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

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #444;
}

.footer-bottom p {
    margin: 0px;
    font-size: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInImage {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 0;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}