@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #2176BC;
    --primary-dark: #1a5ea0;
    --primary-light: #e8f1f8;
    --text-color: #1A1A1A;
    --text-secondary: #636E72;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-radius: 20px;
    --container-width: 1540px;
    --section-spacing: 120px;
    --box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 4%;
}

@media (min-width: 1600px) {
    .container {
        padding: 0 8%;
    }
}

.section {
    padding: var(--section-spacing) 0;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(226, 27, 35, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    display: block;
}

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

.nav-links {
    display: flex !important;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-color);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-cta .btn {
    padding: 10px 24px;
    font-size: 14px;
}

.nav-links {
    margin-left: auto;
    margin-right: 40px;
}

.mobile-only-cta {
    display: none;
}

/* New IDP-Style Hero Banner */
.hero-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.hero-banner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid #eee;
    min-height: 550px;
    margin-top: 20px;
}

/* Slider Style */
.slider-wrapper {
    position: relative;
    overflow: hidden;
}

.slides {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    padding: 60px;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.2) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
}

.slide-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.slide-content h2 span {
    color: var(--primary-color);
    display: block;
}

.slide-content p {
    margin-bottom: 30px;
    color: #000000;
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 10px;
}

/* Form Side Style */
.form-wrapper {
    padding: 50px 40px;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.form-wrapper p {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

.form-wrapper .form-group {
    margin-bottom: 20px;
}

.form-wrapper .btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    font-size: 16px;
}

@media (max-width: 992px) {
    .hero-banner {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        border-left: none;
        border-top: 1px solid #eee;
    }

    .slide {
        padding: 40px;
    }
}

/* Form Card */
.form-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 500px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-card button {
    width: 100%;
}

/* Trust Indicators Redesign */
.trust-indicators {
    background: white;
    padding: 80px 0;
}

.trust-header {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 5px solid var(--primary-color);
}

.trust-header h2 {
    font-size: 28px;
    color: #1a1a1a;
}

.trust-container {
    background: transparent;
    padding: 20px 0;
}

/* On Desktop: Show as Grid, Not Carousel */
@media (min-width: 1025px) {
    .trust-container {
        padding: 0;
        margin: 0;
        overflow: visible;
    }

    .trust-carousel .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        transform: none !important;
    }

    .trust-carousel .swiper-slide {
        width: 100% !important;
        height: auto;
    }

    .trust-carousel .swiper-pagination {
        display: none !important;
    }
}

/* On Mobile/Tablet: Swiper Styles */
@media (max-width: 1024px) {
    .trust-container {
        padding-bottom: 50px;
        margin: 0 -10px;
    }
}

.trust-carousel .swiper-slide {
    height: auto;
}

.trust-item {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    background: #FFF5EC;
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.trust-icon {
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.trust-item h3 {
    font-size: 20px;
    margin: 0;
    color: #1a1a1a;
}

.trust-item p {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 992px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.courses-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Services Carousel Styles */
.services-carousel {
    padding: 20px 0;
}

/* On Desktop: Show as Grid, Not Carousel */
@media (min-width: 1025px) {
    .services-carousel {
        padding: 0;
        margin: 0;
        overflow: visible;
    }

    .services-carousel .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        transform: none !important;
        /* Disable Swiper transform */
    }

    .services-carousel .swiper-slide {
        width: 100% !important;
        height: auto;
    }

    .services-carousel .swiper-pagination {
        display: none !important;
    }
}

/* On Mobile/Tablet: Swiper Styles */
@media (max-width: 1024px) {
    .services-carousel {
        padding: 20px 10px 60px 10px;
        margin: -20px -10px;
    }

    .services-carousel .swiper-slide {
        height: auto;
        display: flex;
    }
}

.services-carousel .service-card {
    height: 100%;
    width: 100%;
}

@media (max-width: 768px) {
    .services-carousel {
        padding-bottom: 50px;
    }
}

/* Courses Carousel Styles */
.courses-carousel {
    padding: 20px 10px 60px 10px;
    margin: -20px -10px;
}

.courses-carousel .swiper-slide {
    height: auto;
    display: flex;
}

.courses-carousel .service-card {
    height: 100%;
    width: 100%;
    margin-bottom: 0;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 25px;
    border-radius: 10px;
}

.courses-carousel .swiper-button-next,
.courses-carousel .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.courses-carousel .swiper-button-next::after,
.courses-carousel .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.courses-carousel .swiper-button-next {
    right: 10px;
}

.courses-carousel .swiper-button-prev {
    left: 10px;
}

@media (max-width: 768px) {
    .courses-carousel {
        padding-bottom: 50px;
    }

    .courses-carousel .swiper-button-next,
    .courses-carousel .swiper-button-prev {
        display: none;
    }
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background-color: transparent;
    /* Fix: Allow background image to show through */
    color: white;
}

.service-card:hover::before {
    opacity: 1;
    background-color: var(--primary-color);
    /* Fallback */
    background-image: linear-gradient(rgba(33, 118, 188, 0.7), rgba(26, 94, 160, 0.9)), var(--card-bg);
    background-size: cover;
    background-position: center;
}

.service-card:hover h3 {
    color: white;
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.service-card img {
    transition: var(--transition);
}

.service-card:hover img {
    opacity: 0.3;
}

.service-card:hover .btn-outline {
    border-color: white;
    color: white;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Tabbed Section */
.tabs-container {
    text-align: center;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 12px 30px;
    border-radius: 50px;
    background: #f0f0f0;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Countries Carousel Redesign */
.countries-section {
    background: white;
    padding: 80px 0;
}

.countries-carousel {
    padding: 10px 10px 50px 10px;
    margin: -10px -10px;
}

.countries-header {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 5px solid var(--primary-color);
}

.countries-header h2 {
    font-size: 28px;
    color: #1a1a1a;
}

.country-card {
    position: relative;
    height: 180px;
    /* Reduced height for 'small' card */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.country-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.9);
}

.country-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.country-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country-overlay h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.country-overlay i {
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.country-card:hover .country-overlay i {
    opacity: 1;
    transform: translateX(0);
}

/* Obsolete countries-grid styles removed */


/* Testimonials Carousel Styles */
.testimonials-carousel {
    padding: 20px 10px 60px 10px;
    margin: -20px -10px;
}

.testimonials-carousel .swiper-slide {
    display: flex;
}

.testimonials-carousel .testimonial-card {
    height: 100%;
    width: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.testimonials-carousel .testimonial-card p {
    flex-grow: 1;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.student-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.student-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.rating {
    color: #ff9f43;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
    padding: 30px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.contact-details h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.contact-details p {
    color: #666;
    margin-bottom: 40px;
}

.contact-info-list {
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-item h4 {
    margin-bottom: 5px;
    font-size: 18px;
    color: #1a1a1a;
}

.contact-info-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.contact-form-side h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #1a1a1a;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        border-radius: 0;
        margin: 0 -20px;
        width: calc(100% + 40px);
        padding: 40px 20px;
        box-shadow: none;
    }

    .contact-details h2 {
        font-size: 28px;
    }
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ddd;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.social-icons a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .hero-banner {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        border-left: none;
        border-top: 1px solid #eee;
        padding: 40px 20px;
    }

    .slide {
        height: 400px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
    }

    .container {
        padding: 0 20px;
    }

    nav {
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex: 0 1 auto;
    }

    .mobile-menu-btn {
        display: block;
        color: var(--primary-color);
        z-index: 1001;
    }

    .nav-links {
        display: none !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-cta {
        display: none;
    }

    .mobile-only-cta {
        display: block;
        width: 100%;
        padding: 0 10px;
    }

    .section {
        padding: var(--section-spacing) 0;
    }

    .hero-section {
        padding: 20px 0;
    }

    .hero-banner {
        border-radius: 0;
        margin: 0 -20px;
        width: calc(100% + 40px);
        box-shadow: none;
        border: none;
    }

    .slide-content {
        padding: 40px 20px;
        text-align: center;
    }

    .slide-content h2 {
        font-size: 26px;
    }

    .form-wrapper {
        padding: 30px 20px;
    }

    .services-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
    }
}

/* Lead Capture Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 20px;
    position: relative;
    max-width: 500px;
    width: 90%;
    transform: translateY(30px);
    transition: var(--transition);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 5px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.modal-content p {
    color: #666;
    margin-bottom: 30px;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content .btn-primary {
    width: 100%;
    padding: 16px;
}

/* WhatsApp Floating Button */
.whatsapp-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-bubble:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-bubble {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}