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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    background-color: #001f3f;
    padding: 10px 0;
    border-bottom: 1px solid #e7e7e7;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-social a {
    margin-right: 15px;
    color: #fff;
    font-size: 16px;
}

.top-bar-contact a {
    margin-left: 20px;
    color: #fff;
    font-size: 14px;
}

.top-bar-contact i {
    margin-right: 5px;
    color: #3498db;
}

header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.enquiry-now-btn {
    background-color: #e67e22;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.enquiry-now-btn:hover {
    background-color: #d35400;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

#hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    transition: background-image 1s ease-in-out;
}

.hero-container h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-container p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #e67e22;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

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

#info-cards {
    background-color: #f0f8ff;
    padding: 80px 0;
}

.info-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: -180px auto 0;
    position: relative;
    z-index: 10;
}

.info-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.info-card i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

#about {
    padding: 80px 0;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.about-container h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

#courses {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title .tittle {
    font-size: 18px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title .tittle i {
    margin-right: 10px;
    color: #3498db;
}

.section-title .sub-tittle {
    font-size: 36px;
    color: #333;
}

.slider-container {
    position: relative;
}

.course-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    -ms-overflow-style: none;  
}

.course-cards::-webkit-scrollbar {
    display: none; 
}

.course-cards .card {
    flex: 0 0 calc(33.333% - 20px);
    margin-right: 30px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.course-cards .card:last-child {
    margin-right: 0;
}

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

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

.card-content {
    padding: 20px;
}

.card-content h3 {
    display: flex;
    align-items: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.card-content h3 i {
    margin-right: 10px;
    color: #3498db;
}

.course-description {
    max-height: 50px; 
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.course-description.expanded {
    max-height: 500px; 
}

.course-read-more-btn, .testimonial-read-more-btn {
    background: none;
    border: none;
    color: #e67e22;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slider-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-button.prev {
    left: -25px;
}

.slider-button.next {
    right: -25px;
}

#our-services {
    padding: 80px 0;
}

#our-services .info-cards-container {
    margin-top: 0;
}


#beyond-admissions {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.beyond-admissions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.beyond-admissions-image {
    background-image: url('../images/beyond-admissions.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    border-radius: 10px;
}

.service-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.service-icon {
    font-size: 32px;
    color: #3498db;
    margin-right: 20px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

#why-choose-us {
    background-color: #3498db;
    color: #fff;
    padding: 80px 0;
}

#why-choose-us .section-title .tittle,
#why-choose-us .section-title .sub-tittle {
    color: #fff;
}

.why-choose-us-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.why-choose-us-container h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
}

.stat-card i {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 10px;
}

#testimonials {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonial-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 30px;
}

.testimonial-cards::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.testimonial-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #3498db;
}

.testimonial-content .testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 16px;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.testimonial-content h4 {
    font-size: 18px;
    font-weight: bold;
}

.testimonial-content span {
    color: #555;
}

.testimonial-slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.testimonial-slider-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.testimonial-slider-button.prev {
    left: -10px;
}

.testimonial-slider-button.next {
    right: -10px;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 60%; 
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#counseling {
    padding: 80px 0;
    background-color: #f0f8ff;
}

.counseling-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background-color: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.counseling-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

#free-counseling-form .form-row {
    display: flex;
    gap: 20px;
}

#free-counseling-form .form-group {
    position: relative;
    margin-bottom: 20px;
    flex: 1;
}

#free-counseling-form .form-group i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
}

#free-counseling-form input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#free-counseling-form button {
    width: 100%;
    padding: 15px;
    background-color: #e67e22;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#free-counseling-form button:hover {
    background-color: #d35400;
}

.split-background-container {
    background: none;
}

#education-loan {
    padding: 80px 0;
    background-color: #fff;
}

#top-institutions {
    padding: 80px 0;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

#top-institutions .section-title .tittle,
#top-institutions .section-title .sub-tittle {
    color: #333;
}

#top-institutions .section-title .tittle i {
    color: #3498db;
}

.bank-logo-slider, .institution-logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.bank-logos, .institution-logos {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.bank-logos img {
    height: 60px;
    margin: 0 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.institution-logos img {
    height: 60px;
    margin: 0 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.bank-logos img:hover, .institution-logos img:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

#contact {
    padding: 80px 0;
    background-color: #f0f8ff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: flex-start;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3, .contact-info h3 {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
}

.contact-form h3::after, .contact-info h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

#contact-form .form-group {
    position: relative;
    margin-bottom: 15px;
}

#contact-form .form-group i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

#contact-form input:focus, #contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

#contact-form textarea {
    height: 100px;
    resize: vertical;
}

#contact-form button {
    width: 100%;
    padding: 15px;
    background-color: #e67e22;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #d35400;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    font-size: 15px;
}

.contact-info i {
    font-size: 20px;
    color: #3498db;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.map-container {
    margin-top: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0,0,0,0.08);
}

.footer {
    background: #001f3f;
    color: #fff;
    padding: 100px 0 0;
    border-top-left-radius: 100px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding: 0 50px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: #ddd;
    line-height: 1.8;
}

.social-links a {
    color: #fff;
    margin-right: 20px;
    font-size: 22px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
    transform: translateY(-3px);
}

.footer h4 {
    font-size: 22px;
    margin-bottom: 30px;
    text-transform: uppercase;
    position: relative;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

.footer-links ul li, .footer-courses ul li {
    margin-bottom: 18px;
}

.footer-links a, .footer-courses a {
    color: #ddd;
    transition: all 0.3s ease;
}

.footer-links a:hover, .footer-courses a:hover {
    color: #fff;
    padding-left: 8px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    color: #ddd;
}

.footer-contact i {
    font-size: 20px;
    margin-right: 18px;
    padding-top: 5px;
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    margin-top: 80px;
    background-color: rgba(0, 0, 0, 0.2);
}

#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #e67e22;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .course-cards .card {
        flex: 0 0 calc(50% - 15px);
    }

    .beyond-admissions-container {
        grid-template-columns: 1fr;
    }

    .counseling-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .footer-about,
    .footer-links,
    .footer-courses,
    .footer-contact {
        text-align: left;
    }

    .footer-contact ul li {
        justify-content: flex-start;
    }

    .social-links {
        justify-content: flex-start;
    }

    .testimonial-card {
        flex: 0 0 100%;
    }
    
    .contact-wrapper {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .course-cards .card {
        flex: 0 0 100%;
    }

    .footer-about,
    .footer-links,
    .footer-courses,
    .footer-contact {
        text-align: center;
        padding-left: 0;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
        padding-left: 0;
    }
}

.testimonial-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.testimonial-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.testimonial-close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
}

.testimonial-close-btn:hover,
.testimonial-close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
