/* ============================================
   MedVidesh - Premium Medical Consultancy CSS
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #3399ff;
    --primary-gradient: linear-gradient(135deg, #0066cc 0%, #00a8ff 100%);

    /* Secondary Colors */
    --secondary: #00c9a7;
    --secondary-dark: #00a88a;
    --secondary-light: #4ddfca;

    /* Accent Colors */
    --accent: #ff6b35;
    --accent-light: #ff8c5a;
    --gold: #ffd700;

    /* Neutral Colors */
    --dark: #0a1628;
    --dark-light: #1a2940;
    --gray-900: #1a1a2e;
    --gray-800: #2d2d44;
    --gray-700: #404055;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-400: #c4c4c4;
    --gray-300: #e5e5e5;
    --gray-200: #f0f0f0;
    --gray-100: #f8f9fa;
    --white: #ffffff;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(0, 102, 204, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo .logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.preloader-logo .accent {
    color: var(--secondary);
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    margin: 20px auto 0;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: var(--gray-400);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    display: none;
}

@media (min-width: 768px) {
    .top-bar {
        display: block;
    }
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 1.5rem;
}

.top-bar-left a {
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-left a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.social-links a:hover {
    color: var(--secondary);
}

/* Main Header */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.main-header.scrolled {
    box-shadow: var(--shadow-xl);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-text .accent {
    color: var(--primary);
}

.logo-image {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

/* Navigation Menu */
.nav-menu {
    display: none;
    list-style: none;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
    color: var(--primary);
    background: rgba(0, 102, 204, 0.08);
}

.nav-menu>li>a i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.nav-menu>li:hover>a i {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    list-style: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 1.25rem;
}

/* Nav CTA */
.nav-cta {
    display: none;
}

@media (min-width: 1024px) {
    .nav-cta {
        display: block;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Active State */
@media (max-width: 1024px) {
    .nav-menu.active {
        display: flex !important;
        position: fixed;
        top: 70px;
        /* Adjust based on header height */
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        z-index: 2000;
        overflow-y: auto;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        animation: slideInLeft 0.3s ease;
    }

    .nav-menu.active>li {
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-menu.active>li>a {
        padding: 1rem;
        font-size: 1.125rem;
        width: 100%;
        justify-content: space-between;
    }

    .nav-menu.active .dropdown-menu {
        position: relative;
        top: 0;
        box-shadow: none;
        padding-left: 1.5rem;
        background: var(--gray-100);
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-menu.active .has-dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-menu.active .has-dropdown>a i {
        transform: rotate(0deg);
        transition: transform 0.3s;
    }

    .nav-menu.active .has-dropdown.active>a i {
        transform: rotate(180deg);
    }

    @keyframes slideInLeft {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.45);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

.hero-slider .swiper {
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-wrapper {
    height: 100%;
}

.hero-slider .swiper-slide {
    height: 100%;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 85vh;
        min-height: 500px;
    }
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    animation: heroZoom 20s ease infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    width: 100%;
    max-width: 900px;
    padding: 2rem 1.5rem;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title span {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-countries {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.hero-countries .country-flag {
    font-size: 1.75rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.hero-countries .country-flag:hover {
    transform: scale(1.3);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Slider Navigation */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--secondary);
    width: 30px;
    border-radius: 6px;
}

.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.25rem;
}

@media (max-width: 768px) {

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}

/* Section Styling */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-sm {
    padding: var(--space-3xl) 0;
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-gray {
    background: var(--gray-100);
}

.section-gradient {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-dark .section-badge {
    background: rgba(0, 201, 167, 0.2);
    color: var(--secondary);
}

.section-title {
    margin-bottom: 1rem;
}

.section-dark .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.section-dark .section-subtitle {
    color: var(--gray-400);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.card-text {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.card-link i {
    transition: transform var(--transition-fast);
}

.card-link:hover i {
    transform: translateX(5px);
}

/* Service Card */
.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.service-title {
    margin-bottom: 1rem;
}

.service-text {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* Country Card */
.country-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 350px;
    cursor: pointer;
}

.country-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.country-card:hover .country-card-bg {
    transform: scale(1.1);
}

.country-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, transparent 60%);
}

.country-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: var(--white);
}

.country-flag {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.country-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.country-info {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-400);
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 600;
}

.testimonial-name {
    font-weight: 600;
    color: var(--dark);
}

.testimonial-info {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* FAQ Accordion */
.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: transform var(--transition-fast);
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer-wave {
    margin-bottom: -1px;
}

.footer-wave svg {
    display: block;
    width: 100%;
}

.main-footer {
    background: var(--dark);
    color: var(--gray-400);
}

.footer-main {
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .footer-logo {
        justify-content: center;
    }
}

.footer-logo .logo-icon {
    background: var(--primary-gradient);
    color: var(--white);
}

.footer-logo .logo-text {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo .accent {
    color: var(--secondary);
}

.footer-about {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-social {
        justify-content: center;
    }
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 0.5rem;
}

.footer-links a i {
    font-size: 0.75rem;
    color: var(--primary);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .footer-contact li {
        justify-content: center;
    }
}

.footer-contact i {
    color: var(--primary);
    margin-top: 0.25rem;
}

.footer-contact a {
    color: var(--gray-400);
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

.developer-credit {
    font-size: 0.875rem;
}

.developer-credit a {
    color: var(--secondary);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.developer-credit a:hover {
    color: var(--primary);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 1rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
    }
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: var(--gray-500);
    font-size: 0.75rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary);
}

/* More Menu Modal */
.more-menu-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.more-menu-modal.active {
    opacity: 1;
    visibility: visible;
}

.more-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.more-menu-content {
    position: relative;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.more-menu-modal.active .more-menu-content {
    transform: translateY(0);
}

.more-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.more-menu-header h4 {
    color: var(--dark);
    margin: 0;
}

.more-menu-close {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.more-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.more-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.more-menu-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.more-menu-item span {
    font-size: 0.75rem;
    text-align: center;
}

.more-menu-item:hover {
    background: var(--primary);
    color: var(--white);
}

.more-menu-item:hover i {
    color: var(--white);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

@media (min-width: 769px) {
    .back-to-top {
        bottom: 30px;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 55px;
    height: 55px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse 2s infinite;
}

@media (min-width: 769px) {
    .whatsapp-float {
        bottom: 30px;
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* Page Transition */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--primary-gradient);
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: top;
    pointer-events: none;
}

.page-transition.active {
    transform: scaleY(1);
}

/* Page Hero */
.page-hero {
    position: relative;
    padding: 8rem 0 5rem;
    background: var(--dark);
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff" stroke-width="0.2" opacity="0.1"/></svg>');
    background-size: 100px;
    opacity: 0.5;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    color: var(--gray-400);
    font-size: 1.125rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--gray-400);
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb span {
    color: var(--secondary);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-md);
}

.mb-2 {
    margin-bottom: var(--space-lg);
}

.mb-3 {
    margin-bottom: var(--space-xl);
}

.mt-1 {
    margin-top: var(--space-md);
}

.mt-2 {
    margin-top: var(--space-lg);
}

.mt-3 {
    margin-top: var(--space-xl);
}

/* Countries Showcase */
.countries-showcase {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .countries-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .countries-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .countries-showcase {
        grid-template-columns: 1fr;
    }
}

.country-card-v2 {
    position: relative;
    height: 280px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.country-card-v2-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.country-card-v2:hover .country-card-v2-bg {
    transform: scale(1.1);
}

.country-card-v2-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.3) 100%);
}

.country-card-v2-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: var(--white);
    text-align: center;
}

.country-flag-big {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.country-card-v2-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.country-fee {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.country-duration {
    color: var(--gray-400);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.country-card-v2:hover .explore-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
}

.feature-card h4 {
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Section */
.cta-section {
    background: var(--primary-gradient);
    padding: 5rem 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-100);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.cta-countries {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
}

.cta-countries span {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.cta-countries span:hover {
    transform: scale(1.3);
}

/* University Logos in Country Card */
.university-logos {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    align-items: center;
}

.uni-logo-placeholder {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.uni-logo-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.uni-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: auto;
}

/* Card Image Portrait Fix */
.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg);
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   ============================================ */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .section {
        padding: var(--space-3xl) 0;
    }

    .section-sm {
        padding: var(--space-2xl) 0;
    }

    .page-hero {
        padding: 5rem 0 3rem;
    }

    /* Reduce all inline gap: 4rem to 2rem on tablets */
    .grid-2[style*="gap: 4rem"],
    .grid-2[style*="gap: 3rem"] {
        gap: 2rem !important;
    }

    .country-card {
        height: 280px;
    }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Base spacing reductions */
    .section {
        padding: var(--space-2xl) 0;
    }

    .section-sm {
        padding: var(--space-xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .container {
        padding: 0 1rem;
    }

    /* Page Hero - reduce padding for mobile */
    .page-hero {
        padding: 4rem 0 2.5rem;
    }

    .page-hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .page-hero-subtitle {
        font-size: 0.95rem;
    }

    /* Gallery page header override */
    .page-header {
        padding: 60px 0 !important;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1rem !important;
    }

    /* All grid-2 must become single column on mobile with reduced gap */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Country cards - reduce height */
    .country-card {
        height: 250px;
    }

    .country-card-v2 {
        height: 220px;
    }

    .country-name {
        font-size: 1.25rem;
    }

    /* Stats section */
    .stat-item {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    /* Service cards */
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }

    /* Feature cards */
    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    /* Card sizing */
    .card-image {
        height: 180px;
    }

    .card-body {
        padding: 1.25rem;
    }

    /* Buttons */
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* CTA Section */
    .cta-section {
        padding: 3rem 0;
    }

    /* Testimonials */
    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    /* FAQ */
    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }

    .faq-answer-content {
        padding: 0 1rem 1rem;
    }

    /* Footer */
    .footer-main {
        padding: 2.5rem 0 2rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    /* Contact Info Items (inline styled flex items) */
    ul[style*="list-style: none"] li[style*="display: flex"] {
        flex-wrap: nowrap;
    }

    /* Map iframe */
    iframe {
        height: 250px !important;
    }

    /* Table scroll on mobile */
    table {
        font-size: 0.85rem;
    }

    table th,
    table td {
        padding: 0.75rem !important;
        white-space: nowrap;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 1rem !important;
    }

    .video-grid {
        grid-template-columns: 1fr !important;
    }

    .gallery-tabs {
        gap: 0.5rem !important;
    }

    .gallery-tab {
        padding: 0.6rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Hero Slider */
    .hero-slider {
        min-height: 450px;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .hero-countries {
        flex-wrap: wrap;
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .hero-countries .country-flag {
        font-size: 1.5rem;
    }

    /* University logo on country pages */
    .university-logo-wrapper {
        width: 60px !important;
        height: 60px !important;
    }

    /* Inline images with fixed height */
    img[style*="height: 350px"] {
        height: 250px !important;
    }

    /* WhatsApp & Back to Top - adjust for bottom nav */
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        bottom: 80px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 80px;
    }

    /* More menu grid on smaller screens */
    .more-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- Small Mobile (max-width: 480px) --- */
@media (max-width: 480px) {

    .container {
        padding: 0 0.75rem;
    }

    .page-hero {
        padding: 3.5rem 0 2rem;
    }

    .page-hero-title {
        font-size: 1.5rem;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    /* Even smaller stat values */
    .stat-value {
        font-size: 1.75rem;
    }

    .stat-item {
        padding: 1rem;
    }

    /* Gallery grid - single column */
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    /* Country cards */
    .country-card {
        height: 220px;
    }

    .country-card-v2 {
        height: 200px;
    }

    /* Country info grid on country pages (inline grid-2 with 1rem gap) */
    .grid-2[style*="gap: 1rem"] {
        grid-template-columns: 1fr !important;
    }

    /* More menu */
    .more-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero */
    .hero-slider {
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.25rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }
}