/* ######################################### Start Header Navbar ######################################*/

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F4F4F9;
}

/* Navbar container */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0E2954;
    /* Dark Blue */
    padding: 20px 40px;
    position: relative;
}

/* Logo Image Styling with Circle */

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #84A7A1;
    padding: 5px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
    /* Slightly enlarges the logo on hover */
}

/* Navbar links */

.nav-links {
    display: flex;
    list-style: none;
    transition: transform 0.3s ease;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #84A7A1;
    /* Light Greyish Blue */
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2E8A99;
    /* Light Teal */
}

/* CTA (Call to Action) Button */

.cta-btn {
    background-color: #1F6E8C;
    /* Teal Blue */
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #2E8A99;
    /* Light Teal */
}

/* Enroll Now Button */

.enroll-now {
    background-color: #FF6F61;
    /* Redish */
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.enroll-now:hover {
    background-color: #FF5733;
    /* Darker Red */
}

/* Menu Toggle Button */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    /* Adjusted to right */
}

.menu-toggle div {
    background-color: #84A7A1;
    height: 3px;
    width: 30px;
    margin: 5px 0;
    transition: transform 0.3s ease;
}

/* Responsive Design */

/* For mobile screens */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #0E2954;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
        /* Reduced padding */
        z-index: 1;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
        /* Reduced margin for a more compact list */
        font-size: 16px;
        /* Reduced font size */
    }
    .nav-links a {
        font-size: 16px;
        /* Consistent font size */
    }
    /* Hamburger Icon Transformation */
    .menu-toggle.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active div:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    /* Adjust Enroll Now Button Position */
    .cta-btn {
        position: absolute;
        right: 60px;
        /* Moves the "Enroll Now" button to the right */
        top: 33px;
    }
}

/* ######################################### End Header Navbar ######################################*/

/* ############################################ Start Slider #########################################*/

/* Style the container */

.slider-container {
    position: relative;
    max-width: 100%;
    height: 500px;
    /* Default height for larger screens */
    margin: 20px auto;
    overflow: hidden;
    border: 5px solid #444;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Style the slider */

.slider {
    display: flex;
    transition: transform 1s ease;
    width: 100%;
}

/* Style for each slide */

.slide {
    flex: 0 0 100%;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image styling */

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

/* Fade effect animation */

.fade {
    opacity: 0;
    animation: fadeEffect 10s infinite;
}

@keyframes fadeEffect {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    80% {
        opacity: 0;
    }
}

/* Responsive adjustments for smaller screens */

@media (max-width: 768px) {
    .slider-container {
        height: 300px;
        /* Reduce height for tablets */
        border: 3px solid #444;
    }
    .slide img {
        border-radius: 3px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 200px;
        /* Reduce height for mobile devices */
        border: 2px solid #444;
    }
    .slide img {
        border-radius: 2px;
    }
}

/* ############################################ End Slider #########################################*/

/* ############################################ Start About #########################################*/

/* About Section Styling */

.about-section {
    background-color: #f5f5f5;
    padding: 50px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Flexbox for aligning content side by side */

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

/* Image Container Styling */

.about-img-container {
    flex: 0 0 40%;
    max-width: 40%;
    margin-right: 20px;
    margin-bottom: 20px;
    /* Added margin for spacing */
}

.about-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.05);
}

/* Text Container Styling */

.about-text {
    flex: 1;
    max-width: 100%;
    text-align: justify;
    display: flex;
    flex-direction: column;
}

.about-title {
    font-size: 36px;
    font-weight: 600;
    color: #1F6E8C;
    margin-bottom: 20px;
    text-align: center;
}

.about-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin-bottom: 20px;
}

/* CTA Button */

.cta-button {
    background-color: #0E2954;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2E8A99;
}

/* Hide image on larger screens (laptops and PCs) */

@media (min-width: 1025px) {
    .about-img-container {
        display: none;
    }
}

/* Show image only on tablets and mobile devices */

@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
    }
    .about-img-container {
        flex: 0 0 100%;
        max-width: 100%;
        margin-right: 0;
        display: block;
    }
    .about-text {
        max-width: 100%;
    }
    .about-title {
        font-size: 30px;
    }
    .about-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 24px;
    }
    .about-description {
        font-size: 14px;
        line-height: 1.6;
    }
    .cta-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* ############################################ End About #########################################*/

/* ############################################ Start Our Courses #########################################*/

/* Courses Section Styling */

.courses-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.courses-section .container {
    width: 80%;
    margin: 0 auto;
    text-align: justify;
}

.courses-section .section-title {
    font-size: 36px;
    font-weight: bold;
    color: #1f6e8c;
    margin-bottom: 20px;
}

.courses-section .section-description {
    font-size: 18px;
    color: #333;
    margin-bottom: 40px;
}

.courses-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    /* Added gap for better spacing */
}

.course-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
    margin-bottom: 30px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: scale(1.05);
    /* Slight hover effect */
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-details {
    padding: 20px;
}

.course-title {
    font-size: 24px;
    color: #0e2954;
    margin-bottom: 10px;
}

.course-description {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.course-link {
    background-color: #1f6e8c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.course-link:hover {
    background-color: #2e8a99;
}

/* Responsive Design */

/* For Tablets and smaller screens (max-width: 1024px) */

@media (max-width: 1024px) {
    .courses-section .section-title {
        font-size: 30px;
    }
    .courses-section .section-description {
        font-size: 16px;
    }
    .courses-container {
        justify-content: center;
    }
    .course-card {
        width: 45%;
    }
}

/* For Mobile Screens (max-width: 768px) */

@media (max-width: 768px) {
    .courses-section .section-title {
        font-size: 24px;
    }
    .courses-section .section-description {
        font-size: 14px;
    }
    .courses-container {
        justify-content: center;
    }
    .course-card {
        width: 90%;
        margin-bottom: 20px;
    }
    .course-title {
        font-size: 20px;
    }
    .course-description {
        font-size: 14px;
    }
    .course-link {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* ############################################ End Our Courses #########################################*/

/* ####################################### Start Scroll to top button #################### */

.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #0E2954;
    color: white;
    border: none;
    padding: 15px;
    font-size: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scroll-to-top:hover {
    background-color: #2e8a99;
}

/* ####################################### End Scroll to top button #################### */

/* ####################################### Start Why Choise us #################### */

/* Section Styles */

.why-choose-us {
    background-color: #f4f7fb;
    padding: 50px 0;
    text-align: center;
}

.container {
    width: 80%;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #0E2954;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #333;
}

/* Features Styles */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature h3 {
    font-size: 1.5em;
    color: #1F6E8C;
    margin-top: 20px;
    margin-bottom: 10px;
}

.feature p {
    font-size: 1em;
    color: #333;
}

.feature i {
    font-size: 3em;
    color: #0E2954;
}

/* Responsive Design */

@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
    }
    .section-description {
        font-size: 1em;
    }
}

/* ####################################### End Why Choise us #################### */

/* ####################################### Start Testimonal #################### */

/* Testimonials Section Styling */

.testimonials {
    background-color: #e3f2fd;
    padding: 50px 0;
    text-align: center;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    /* Allows items to wrap on smaller screens */
}

.testimonial-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    /* Ensures spacing between testimonials */
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: scale(1.05);
    /* Slight hover effect */
}

.student-info {
    text-align: center;
    margin-bottom: 15px;
}

.student-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.student-info h4 {
    font-size: 1.2em;
    font-weight: bold;
    color: #1F6E8C;
}

.student-info p {
    color: #0E2954;
    font-size: 0.9em;
}

.testimonial-item p {
    font-size: 1em;
    color: #555;
    font-style: italic;
}

/* Responsive Design */

/* For Tablets and smaller screens (max-width: 1024px) */

@media (max-width: 1024px) {
    .testimonial-slider {
        justify-content: center;
    }
    .testimonial-item {
        width: 45%;
    }
}

/* For Mobile Screens (max-width: 768px) */

@media (max-width: 768px) {
    .testimonials {
        padding: 30px 0;
    }
    .testimonial-slider {
        gap: 20px;
    }
    .testimonial-item {
        width: 90%;
        margin-bottom: 20px;
    }
    .student-img {
        width: 60px;
        height: 60px;
    }
    .student-info h4 {
        font-size: 1.1em;
    }
    .student-info p {
        font-size: 0.8em;
    }
    .testimonial-item p {
        font-size: 0.9em;
    }
}

/* ####################################### End Testimonal #################### */

/* ####################################### Start contact us #################### */

.contact-us {
    width: 50%;
    margin: 50px auto;
    padding: 20px;
    background-color: #0E2954;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-us h2 {
    text-align: center;
    color: #fff;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #fff;
}

.form-group input,
.form-group textarea {
    width: 95%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.success-message {
    text-align: center;
    color: green;
    font-size: 18px;
    margin-top: 20px;
}

/* ####################################### End contact us #################### */

/* ####################################### Start Footer #################### */

/* Footer Styling */

.footer {
    background-color: #0E2954;
    color: #84A7A1;
    padding: 30px 15px;
    font-family: 'Arial', sans-serif;
    margin-top: 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-about,
.footer-links,
.footer-social {
    width: 30%;
    margin-bottom: 30px;
}

.footer-about h3,
.footer-links h3,
.footer-social h3 {
    font-size: 22px;
    color: #ecf0f1;
}

.footer-about p,
.footer-links ul li,
.footer-social a {
    font-size: 16px;
    color: #bdc3c7;
    line-height: 1.5;
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
}

.footer-links ul li a {
    text-decoration: none;
    color: #3498db;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #ecf0f1;
}

.footer-social .social-icons a {
    font-size: 24px;
    margin-right: 15px;
    color: #3498db;
    transition: color 0.3s;
}

.footer-social .social-icons a:hover {
    color: #ecf0f1;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: #bdc3c7;
}

/* Responsive Design */

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-about,
    .footer-links,
    .footer-social {
        width: 100%;
        text-align: center;
    }
}

.footer-about .highlight-text {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.8;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    margin-top: 15px;
}

.footer-about .highlight-text strong {
    color: #fff;
    font-weight: bold;
}

.footer-about .highlight-text em {
    color: #fff;
    font-style: italic;
}

/* ####################################### End Footer #################### */