/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* Navbar */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #042c9f, #17399f);
    padding: 15px 30px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: fixed; /* Changed to fixed for all devices */
    top: 0;
    width: 100%; 
    z-index: 1000;
}

.navbar .logo img {
    height: 50px;
}

.navbar .contact {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 40px;
}

.navbar .contact .phone-number {
    color: #ffcc00;

}

/* Header / Hero */
header {
    text-align: center;
    color: white;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

header h1 .highlight {
    color: #ffcc00;
}

header p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}


/* Banner Image Section */
.mbbs-image-section {
    text-align: center;
    margin-top: 80px; /* Center the image section */
    padding: 0;
    max-width: 100%; /* Ensure it doesn't exceed the viewport width */
}

.mbbs-image-section .mbbs-image {
    width: 100vw; /* Ensure it spans the full viewport width */
    height: auto;
    object-fit: cover; /* Maintain aspect ratio and cover the area */
    display: block;
    margin: 0; /* Remove auto margin for better alignment */
}

.benefit-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.benefit-section .content {
    flex: 1;
    text-align: left;
}

.benefit-section .content h2 {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 20px;
    font-weight: bold;
}

.benefit-section .content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.benefit-section .content ul {
    list-style: none;
    padding: 0;
}

/* Form Section */
.benefit-section .form {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.benefit-section .form h2 {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}

.benefit-section .form input,
.benefit-section .form textarea,
.benefit-section .form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.benefit-section .form textarea {
    resize: none;
}

.benefit-section .form button {
    background: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.benefit-section .form button:hover {
    background: #0056b3;
}



/* Countries Section */
.flag-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.flag-list li {
    text-align: center;
    flex: 1 1 calc(20% - 20px);
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the text horizontally */
    justify-content: center; /* Center the text vertically */
}

.flag-list img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* Testimonials Section */
.testimonials {
    padding: 40px 20px;
    background: #f4f4f4;
    text-align: center;
}

.testimonial{
    display: inline-block;
    width: 400px;
    margin: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slide 10s infinite linear;
    
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.testimonial img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.testimonial h3 {
    font-size: 1.4rem;
    color: #4234fb;
    margin-bottom: 5px;
}

.testimonial p {
    font-size: 0.9rem;
    color: #000000;
    font-weight: bold;
}

.testimonial-container {
    display: flex;
    animation: slide 10s infinite linear; /* Apply sliding animation */
    width: max-content; /* Ensure the container fits all testimonials */
}

.testimonial {
    flex: 0 0 auto; /* Prevent shrinking or growing */
}

.carousel-buttons {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-around;
    top:-30px; /* Adjust to position above testimonials */
    z-index: 10;
}

.carousel-buttons button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.carousel-buttons button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.carousel-buttons button:focus {
    outline: none;
}


/* Statistics Section */
.statistics {
    display: flex;
    flex-direction: column; /* Stack items vertically by default */
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.statistics .heading {
    font-size: 2rem;
    font-weight: bold;
    color: #4234fb;
    margin-bottom: 20px;
}

.stat-item-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.stat-item {
    flex: 1 1 calc(25% - 40px); /* Adjust width for desktop */
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    background: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}


.stat-item .number {
    font-size: 3rem;
    font-weight: bold;
    color: #4234fb;
    margin-bottom: 10px;
    animation: countUp 2s ease-in-out;
}

.stat-item .label {
    font-size: 1.2rem;
    color: #555;
}

/* Animation for numbers */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
        will-change: opacity, transform;
    }
    to {
        opacity: 1;
        transform: scale(1);
        will-change: opacity, transform;
    }
}
    
/* Section Styling */
section {
    margin: 20px 0; /* Added margin for spacing */
    padding: 40px 20px; /* Adjusted padding for better spacing */
    width: 100%;
    text-align: center;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2.5rem;
    color: #4234fb;
    margin-bottom: 25px;
    font-weight: 700;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #4234fb;
    margin: 10px auto 0;
}
/* enroll now  */

.modal-content h2 {
    font-size: 26px;
    color: #2d2dff;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
  }
  
  .modal-content h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #2d2dff;
    margin: 10px auto 0;
    border-radius: 2px;
  }
  
  #popup-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .input-group input {
    flex: 1;
  }
  
  #popup-contact-form input,
  #popup-contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  #popup-contact-form textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  #popup-contact-form button {
    background-color: #2d2dff;
    color: white;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  
  #popup-contact-form button:hover {
    background-color: #1a1aff;
  }
    

.enroll-now-btn {
    position: fixed;
    bottom: 60px;
    left: 20px;
    background-color: #ff4d4d;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
  }
  
  .enroll-now-btn:hover {
    background-color: #e60000;
  }
  
  .modal {
    display: none; 
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
  }
  
  .modal-content {
    background-color: #fff;
    margin: 8% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  }
  
  .close-btn {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close-btn:hover {
    color: #000;
  }
  


/* Lists */
ul {
    list-style: none;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centered the list items */
    gap: 30px; /* Increased gap for better spacing */
    width: 100%;
    margin-top: 20px; /* Added margin to separate from other sections */
}

ul li {
    flex: 1 1 calc(25% - 30px); /* Adjusted for better alignment */
    background: #ffffff;
    padding: 25px; /* Increased padding for a more spacious look */
    text-align: center;
    border-radius: 15px; /* Slightly more rounded corners */
    transition: 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Enhanced shadow for a modern look */
}

ul li:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow on hover */
    background: #f8f9fa;
}

/* Footer */
footer {
    background: #c0c1c2; /* Changed background color to grey */
    color: rgb(8, 8, 8);
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Space between content */
    align-items: center; /* Align items vertically */
    padding: 10px 20px; /* Adjusted padding for spacing */
    font-size: 1rem;
    align-items: center;
    text-align: center;
}
footer .contact-us-button {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

footer .contact-us-button:hover {
    background: linear-gradient(90deg, #0056b3, #007bff);
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease-in-out;
}


/* Responsive Design */
@media (max-width: 992px) {
    ul li {
        flex: 1 1 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .navbar .logo img {
        margin-bottom: 10px;
    }

    .navbar .contact {
        font-size: 1rem;
    }

    ul li {
        flex: 1 1 calc(50% - 20px);

    }
    .flag-list li {
        flex: 1 1 calc(33.333% - 20px);
    }

    .testimonial {
        width: 80%;
    }
    .mbbs-image-section .mbbs-image {
        max-width: 100%; /* Adjust for smaller screens */
        margin-top: 120px;
    }
    .statistics {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 20px);
    }
    .benefit-section {
        flex-direction: column;
        text-align: center;
    }

    .benefit-section .content,
    .benefit-section .form {
        flex: none;
        width: 100%;
    }
    
    .stat-item-container {
        flex-direction: column; /* Stack items in one line for mobile */
        gap: 20px;
    }

    .stat-item {
        flex: 1 1 100%; /* Full width for mobile */
    }

    
}


@media (max-width: 480px) {
    ul li {
        flex: 1 1 100%;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .cta-button {
        padding: 10px 25px;
    }
    .flag-list li {
        flex: 1 1 calc(50% - 20px);
    }

    .testimonial {
        align-items: center;
        width: 80%;
    }
    .stat-item {
        flex: 1 1 100%;
    }

    .enroll-now-btn {
        position: fixed;
        bottom: 30px;
        right: 20px;
        width: 120px;
        font-weight: bold;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        z-index: 9999;    

    }

    .footer .contact-us-button {
        display: inline-block;
        width: auto; /* Ensure it doesn't stretch unnecessarily */
        padding: 10px 15px; /* Adjust padding for smaller screens */
        font-size: 0.9rem; /* Reduce font size for better fit */
        text-align: center;
        white-space: nowrap; /* Prevent text from wrapping */
    }



}