* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    background-color: white;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

/* Header Section */
header {
    background-color: #1b4773;
    color: #fff;
    padding: 20px 0;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .logo img {
    width: 150px;
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.1);
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

header nav ul li {
    margin-left: 20px;
    position: relative;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    display: block;
    transition: color 0.3s ease, transform 0.3s ease;
}

header nav ul li a:hover {
    color: #e67817;
    transform: translateY(-3px);
}

/* Contact Info */
header .contact-info {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
}

header .contact-info p {
    margin: 5px 0;
}

header .contact-info .call-button {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

header .contact-info .call-button:hover {
    background-color: #c0392b;
}

.slider {
    width: 100%;
    max-width: 100%;
    height: 700px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.list {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    width: max-content;
    transition: 1s;
}

.list .item {

    position: relative;
    width: 100%;
    height: 100%;
}


/* Slider Text and Button */
.slider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    font-family: 'Arial', sans-serif;
    z-index: 10;
}

.slider-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.slider-text p {
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.slider-text .btn {
    background-color: #e74c3c;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
}

.list img {
    width: 1300px;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.buttons {
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
}

.buttons button {
    width: 50px;
    height: 50px;
    border-radius: 505;
    background-color: #fff5;
    color: #fff;
    border: none;
    font-family: monospace;
    font-weight: bold;
}

.dots {
    position: absolute;
    bottom: 10px;
    color: #fff;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    transition: 1s;
}

.dots li {
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: #fff;
    margin: 20px;
    border-radius: 20px;
}

.dots li.active {
    width: 30px;
}


.section {
    padding: 40px 0;
}

.section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

/* About Us Section */
.about-us-details {
    border-top: 5px solid #2980b9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    /* This ensures that elements will stack on smaller screens */
}

.about-us {
    flex: 1;
    padding: 20px;
}

.about-us h1 {
    font-size: 20px;
    color: #E67817;
}

.about-us h2 {
    font-size: 48px;
    /* Larger font size for h2 */
    color: #0e1133;
    text-transform: capitalize;
    margin-bottom: 20px;
    /* Adjust spacing */
    font-weight: 800;
    line-height: 1.2;
    font-family: 'Merriweather', serif;
    /* Serif font for elegance */
    letter-spacing: -1px;
    /* Tighter letter spacing for elegance */
}

.about-us p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    max-width: 600px;
    text-align: justify;
    font-family: 'Lora', serif;
}

.about-us-image {
    flex: 0 0 45%;
    /* Image takes up 45% of the space */
    padding: 20px;
}

.about-us-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/*teachers info section>>>>>>>>>*/
#teacher {
    background-color: #f9f9f9;
    /* Light gray background for a clean feel */
    padding: 60px 20px;
    border-top: 5px solid #2980b9;
    /* Bold blue line at the top for professionalism */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for added depth */
}

#teacher h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    font-family: 'Lora', serif;
    /* Elegant serif font for the section title */
    color: #0e1133;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.teacher-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.teacher-image-container {
    flex: 1;
    max-width: 280px;
    text-align: center;
    margin-bottom: 20px;
}

.teacher-image {
    width: 280px;
    height: 350px;
    border-radius: 15px;
    /* Rounded corners for a box-like effect */
    object-fit: cover;
    border: 4px solid #2980b9;
    /* Soft blue border around the image */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth and focus */
}

.teacher-info {
    flex: 2;
    max-width: 600px;
    text-align: left;
    padding: 0 20px;
}

.teacher-info h3 {
    font-size: 30px;
    color: #2c3e50;
    /* Darker, more professional color */
    margin-bottom: 15px;
    font-family: 'Lora', serif;
    /* Serif font for the teacher's name */
    font-weight: 600;
}

.teacher-role {
    font-size: 20px;
    color: #2980b9;
    /* Soft blue for the role text */
    margin-bottom: 20px;
    font-style: italic;
    font-family: 'Open Sans', sans-serif;
    /* Clear sans-serif font */
}

.teacher-info p {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 25px;
    font-family: 'Lora', serif;
    text-align: justify;
}

.teacher-info strong {
    font-weight: bold;
    color: #333;
    text-align: justify;
}


/*our features section>>>>>>>>*/
#experience {
    background-color: #fff;
    text-align: center;
    padding: 60px 0;
}

#experience h2 {
    font-size: 30px;
    margin-bottom: 40px;
    color: #0e1133;
}

.experience-details {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.experience-item {
    background-color: #e67817;
    padding: 30px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 30px 40px 0px rgba(3, 24, 128, 0.2);
}

.experience-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffffff;

}

.experience-item p {
    font-size: 20px;
    color: #ffffff;
    line-height: 1.5;
    font-family: 'Lora', serif;
}

/* gallery results and achivements Styling */
.student-gallery-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

/* Heading Container */
.heading-container {
    text-align: center;
    margin-bottom: 30px;
}

.page-heading {
    font-size: 38px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

.heading-line {
    width: 50px;
    height: 2px;
    background-color: #e67e22;
    margin: 10px auto;
}


/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

/* Image Container */
.zoom-img-wrapper {
    position: relative;
    display: inline-block;
}

/* Image Styling */
.zoom-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.zoom-img:hover {
    transform: scale(1.05);
}

/* Plus Icon Styling */
.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: white;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 50%;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.zoom-img-wrapper:hover .zoom-icon {
    opacity: 1;
}

.view-all-container {
    text-align: center;
    margin-top: 20px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    background-color: #e67e22;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.view-all-btn:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.view-all-btn i {
    margin-right: 8px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: auto;
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}


/*courses styling section>>>>>>>>>>*/

#courses .container {
    position: relative;
}

#courses .container img {
    position: absolute;
    top: 32px;
    left: 34%;
    right: auto;
    z-index: -1;
    animation: moveImage 2s infinite;
}

@keyframes moveImage {
    0% {
        width: 0%;
    }

    100% {
        width: 30%;
    }
}

.course-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.course-card {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.course-card a {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    background-color: #fd7e14e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.course-card:hover a {
    color: #fff;
}

.course-card i {
    font-size: 24px;
    color: #2b4eff;
    margin-right: 10px;
}

.course-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0e1133;
}

.course-card p {
    font-size: 16px;
    color: #777;
}

/* Optional: Change link color on hover */
.course-card:hover h3,
.course-card:hover p,
.course-card:hover a {
    color: #fff;
}

/* Full Width Card */
.course-card.full-width {
    grid-column: span 2;
    /* Spans both columns */
}



/* Apply Now Section */

.split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.form-container {
    flex: 1;
    min-width: 300px;
}

.image-container {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: 700px;
    border-radius: 10px;
}


/*apply now form section*/
#apply-now {
    background-color: #f9f9f9;
    padding: 60px 20px;
}


#apply-now .container {
    max-width: 1200px;
    margin: 0 auto;
}

#apply-now .apply-text {
    text-align: center;
    margin-bottom: 40px;
}

#apply-now h2 {
    font-size: 36px;
    color: #0e1133;
    font-weight: 700;
}

#apply-now p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
    font-family: 'Lora', serif;
}

#apply-now form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#apply-now input,
#apply-now select,
#apply-now textarea {
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

#apply-now textarea {
    resize: vertical;
}

#apply-now button {
    background-color: #e74c3c;
    color: #fff;
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#apply-now button:hover {
    background-color: #c0392b;
}


/*testimonals section>>>>>>>>>>>>>>>>>*/
#testimonials .container {
    text-align: center;
    padding: 40px 0;
}

#testimonials h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

#testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: #fd7e14;
    border-radius: 5px;
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #fd7e14, #fbd82f);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    width: 270px;
    min-height: 380px;
    font-family: 'Arial', sans-serif;
}

.testimonial-card p {
    font-size: 18px;
    color: #fff;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.student-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    flex-grow: 1;
}

.student-image {
    margin-top: 20px;
}

.student-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.student-name {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}


.testimonial-card:hover {
    transform: translateY(-10px);
    /* Lift effect */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-color: red;
    /* Lighter background on hover */
}

.testimonial-card:hover p {
    color: #333;
}


.testimonial-card i {
    font-size: 30px;
    color: #fff;
    margin-top: 20px;
    transition: color 0.3s ease;
}



/*Contact us section >>>>>>>>>>>>>>>>>>*/

#contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#contact #map {
    width: 100%;
    height: 400px;
    margin-top: 20px;
}

#contact p {
    font-size: 16px;
    color: #333;
}

/*floating button*/
#whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

#whatsapp-button:hover {
    transform: scale(1.1);
}

#whatsapp-button img {
    width: 40px;
    height: 40px;
}


.floating-call-button {
    position: fixed;
    bottom: 90px;
    /* Distance from the bottom */
    right: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 50%;
    border: 2px solid #007bff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.floating-call-button i {
    font-size: 30px;
    color: #007bff;
}

.floating-call-button:hover {
    background-color: #96c2f0;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
}
/*footer section*/
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}



@media (max-width: 768px) {
  /* Ensure testimonial section uses flex or grid layout */
  .testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .testimonial-card {
    width: calc(33.333% - 10px); /* Three cards per row with spacing */
    box-sizing: border-box;
    font-size: 13px;
    padding: 10px;
  }

  /* Optional: Make text smaller for better fit */
  .testimonial-card p {
    font-size: 13px;
  }

  .testimonial-card .student-name {
    font-size: 12px;
  }
}

/*responsive desgin*/
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 10px;
        overflow-x: auto;
    }

    header nav ul {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    header nav ul li {
        margin-left: 10px;
    }

    header .contact-info {
        position: absolute;
        top: 20px;
        right: 10px;
        font-size: 12px;
    }

    footer {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    
    header nav ul li a {
        font-size: 13px;
    }
}