/* Global Theme: Gunmetal & Vibrant Red */
:root {
    --primary: #EF233C;
    /* Vibrant Red */
    --primary-dark: #D90429;
    /* Darker Red */
    --secondary: #2B2D42;
    /* Gunmetal */
    --accent: #8D99AE;
    /* Cloud Grey */
    --white: #EDF2F4;
    --dark-bg: #1e1e24;
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scroll Progress Bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    width: 0%;
    z-index: 9999;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--primary);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-cta {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cta:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    /* Background Image with Overlay */
    background: linear-gradient(rgba(43, 45, 66, 0.8), rgba(43, 45, 66, 0.8)), url('../img/banner_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.circle-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(43, 45, 66, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.badge {
    background: var(--primary);
    /* Solid Red */
    color: var(--white);
    /* White Text */
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-family: var(--font-head);
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
    /* Updated to white */
}

.text-gradient {
    background: linear-gradient(to right, var(--white), var(--primary));
    /* Updated to White -> Red */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--white);
    /* Updated to white */
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary);
    /* Keep red for pop, or white? Let's use Primary for stats to stand out against white text */
    font-family: var(--font-head);
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.9rem;
    color: var(--white);
    /* Updated to white */
}

/* Hero Form Card */
.hero-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    /* Soft floating shadow */
    width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h3 {
    color: var(--secondary);
    font-family: var(--font-head);
    font-size: 1.5rem;
}

.card-header p {
    font-size: 0.9rem;
    color: var(--primary);
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(239, 35, 60, 0.3);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.form-footer {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 15px;
    color: var(--accent);
}

/* Problem Section */
.problem-section {
    padding: 80px 0;
    background: var(--white);
}

.problem-wrapper {
    display: flex;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
}

.problem-content {
    flex: 1.5;
    padding: 60px;
    background: #fff;
    border-right: 1px solid #eee;
}

.solution-content {
    flex: 1;
    padding: 60px;
    background: var(--secondary);
    color: var(--white);
}

.problem-content h2 {
    font-size: 2rem;
    font-family: var(--font-head);
    margin-bottom: 20px;
    font-weight: 700;
}

.red-text {
    color: var(--primary);
}

.solution-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: var(--font-head);
}

.solution-content p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.text-link {
    color: var(--primary);
    /* Bright red on dark bg */
    font-weight: 600;
    border-bottom: 1px solid var(--primary);
}

/* Premium Services Section */
.premium-services-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.premium-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.premium-card {
    position: relative;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Background Image with Zoom Effect */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 0;
}

.premium-card:hover .card-bg {
    transform: scale(1.1);
}

/* Dark Gradient Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #0f172a 10%, rgba(15, 23, 42, 0.6) 100%);
    opacity: 0.9;
    z-index: 1;
    transition: 0.3s;
}

.premium-card:hover .card-overlay {
    opacity: 0.95;
    background: linear-gradient(to top, #061124 20%, rgba(6, 17, 36, 0.7) 100%);
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--white);
    transform: translateY(0);
    transition: 0.4s;
}

/* Icon Box */
.service-icon {
    font-size: 3.5rem;
    color: #4cc9f0;
    /* Light Blue / Cyan accent */
    margin-bottom: 20px;
    transition: 0.4s;
}

.premium-card:hover .service-icon {
    transform: translateY(-10px);
    color: var(--primary);
    /* Change to Brand Red on hover */
}

.premium-card h3 {
    font-size: 1.8rem;
    font-family: var(--font-head);
    font-weight: 700;
    margin-bottom: 15px;
}

.premium-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 991px) {
    .premium-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .premium-services-grid {
        grid-template-columns: 1fr;
    }

    .premium-card {
        height: 400px;
    }
}

/* Destinations - Unique Horizontal Card Scroll */
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.nav-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--secondary);
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
}

.arrow-btn:hover {
    background: var(--secondary);
    color: var(--white);
}

.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    padding: 50px 20px 80px;
    /* Extra space for hover effects */
    scrollbar-width: none;
    align-items: center;
    justify-content: center;
    /* Center cleanly */
}

.country-card-lg {
    min-width: 340px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    /* Performance Optimization: Specific transitions instead of ALL */
    transition: margin-right 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.6s ease,
        filter 0.6s ease,
        border-color 0.6s ease;

    /* Hint browser for upcoming layout changes */
    will-change: margin-right, transform;

    box-shadow: none;

    /* Overlap Logic */
    margin-right: -280px;

    overflow: hidden;
    z-index: 1;
    background-color: #555;
    /* Removed heavy blend-mode, using filter instead */
    /* background-blend-mode: luminosity; */
    filter: grayscale(100%) contrast(1.2);

    flex-shrink: 0;
    border: 4px solid var(--white);

    /* Hardware acceleration for paint */
    transform: translateZ(0);
}

/* Ensure the last card doesn't pull nothingness */
.country-card-lg:last-child {
    margin-right: 0;
}

.country-card-lg:last-child::after {
    display: none;
}

/* The Moon Shadow Mask */
.country-card-lg::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    border-radius: 50%;
    /* Shift +20% to create Thicker Left Crescent (approx 68px wide) */
    /* Overlap is 340 - 280 = 60px. Moon is 68px. Next card covers the mask start. */
    transform: translate(20%, -50%) scale(1.02);
    transition: transform 0.6s ease;
    z-index: 2;
    pointer-events: none;
    /* Prevent mouse interference */
}

/* Hover: Move Mask Away -> Full Circle */
.country-card-lg:hover::after {
    transform: translate(150%, -50%);
}

.country-card-lg:hover {
    box-shadow: 0 15px 40px rgba(239, 35, 60, 0.3);
    /* Reduced shadow size */
    border: 2px solid var(--primary);

    /* Reset filter instead of blend mode */
    filter: grayscale(0%) contrast(1);
    background-color: transparent;

    transform: translateY(-15px) rotate(0deg) translateZ(0);

    /* Push neighbors */
    margin-right: 40px;
    z-index: 100;
    /* Bring to front context */
    margin-left: 10px;
    /* Add a bit of breathing room on left too */
}

/* Text Overlay */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(43, 45, 66, 0.9);
    padding: 30px 10px;
    border-radius: 50%;
    text-align: center;
    opacity: 0;
    z-index: 3;
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.4s 0.1s;
}

/* Show Text on Hover */
.country-card-lg:hover .overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: rgba(43, 45, 66, 0.85);
}

.overlay h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 5px;
}

.overlay p {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 5px;
    opacity: 1;
    /* Force opacity */
}

.overlay .tag {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: center;
    margin-bottom: 15px;
}

/* Footer Dark */
.footer-dark {
    background: var(--secondary);
    color: var(--white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
}

.f-brand h2 {
    font-family: var(--font-head);
    margin-bottom: 20px;
}

.f-brand span {
    color: var(--primary);
}

.f-brand p {
    opacity: 0.7;
    max-width: 300px;
    margin-bottom: 20px;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: 0.3s;
}

.socials a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.f-links h4,
.f-contact h4 {
    margin-bottom: 25px;
    font-family: var(--font-head);
}

.f-links ul li {
    margin-bottom: 12px;
}

.f-links a {
    opacity: 0.7;
}

.f-links a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--primary);
}

.f-contact p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-container {
        flex-direction: column;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-form-card {
        width: 100%;
        padding: 25px;
        /* Reduce padding on mobile to give inputs more width */
    }

    .problem-wrapper {
        flex-direction: column;
    }
}

/* Info Bar Section */
.info-bar {
    background-color: var(--secondary);
    padding: 80px 0;
    color: var(--white);
    position: relative;
}

.info-bar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.info-text {
    flex: 1;
    max-width: 400px;
}

.info-text h2 {
    font-size: 2.5rem;
    font-family: var(--font-head);
    margin-bottom: 15px;
    line-height: 1.2;
}

.text-primary {
    color: var(--primary);
}

.info-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card-new {
    background: #fff;
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.stat-card-new:hover {
    transform: translateY(-10px);
}

.stat-card-new .icon-box {
    font-size: 2rem;
    color: #61ce70;
    /* Greenish/Teal color from screenshot */
    margin-bottom: 10px;
    background: rgba(97, 206, 112, 0.1);
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-new h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--secondary);
}

.stat-card-new p {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    margin: 0;
}

/* Form Select Styling */
.form-select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #eee;
    border-radius: 8px;
    outline: none;
    appearance: none;
    /* Remove default arrow */
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--secondary);
    max-width: 100%;
    box-sizing: border-box;
    /* Force border-box */
}

/* Ensure input groups don't overflow */
.input-group {
    max-width: 100%;
    box-sizing: border-box;
}

/* Success Stories - Premium Glass & Glow Design */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

/* Background Glow Effect */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(239, 35, 60, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.section-header {
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--white);
    font-family: var(--font-head);
    margin-bottom: 15px;
}

.section-header .sub-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Titles (Left aligned with line) */
.section-title-left h3 {
    font-size: 1.8rem;
    color: var(--white);
    font-family: var(--font-head);
    margin-bottom: 15px;
}

.title-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin-bottom: 30px;
}

.success-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* Left: Text Stories (Glassmorphism) */
.text-stories {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-cards-slider {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 15px;
    /* Custom Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.1);
}

.t-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 20px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.t-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.t-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 25px;
}

.t-user h5 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: var(--font-head);
}

.t-user span {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Right: Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s ease;
}

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(239, 35, 60, 0.3);
    /* Red glow matches brand */
    border-color: var(--primary);
    z-index: 10;
}

.video-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.video-card:hover .video-thumb {
    transform: scale(1.1);
    opacity: 0.7;
    /* Darken bg to make text pop */
}

/* Animated Play Button */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: 0.3s;
    animation: pulse 2s infinite;
}

.video-card:hover .play-btn {
    background: var(--primary);
    border-color: var(--primary);
    transform: translate(-50%, -50%) scale(1.2);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: 0.3s;
}

.video-card:hover .video-info {
    transform: translateY(0);
}

.video-info span {
    display: block;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.video-info small {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 991px) {
    .success-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-cards-slider {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 20px;
    }

    .t-card {
        min-width: 300px;
    }

    .video-grid {
        /* On tablet, maybe 3 is too small? Let's scroll or wrap */
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 20px;
    }

    .video-card {
        min-width: 200px;
        flex-shrink: 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}


@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        /* 1x4 on mobile */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add mobile menu logic later if needed */
    }

    .hamburger {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .f-brand,
    .f-links,
    .f-contact {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .socials {
        justify-content: center;
    }

    /* Mobile Navbar Fixes */
    .btn-cta {
        display: none;
        /* Hide CTA on mobile to make space for hamburger */
    }

    .logo {
        font-size: 1.4rem;
    }

    /* Compact Form Fields on Mobile */
    .input-group input,
    .form-select {
        padding: 12px 12px 12px 40px;
        /* Reduced padding from 15px */
        font-size: 0.9rem;
        /* Slightly smaller text */
    }

    .input-group i {
        font-size: 0.9rem;
        /* Smaller icon */
        left: 12px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 50vh;
        /* Half screen height */
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        /* Center items vertically */
        text-align: center;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        overflow-y: auto;
    }

    .nav-links li {
        margin: 15px 0;
    }

    /* Circle Card Mobile Fixes */
    .horizontal-scroll-wrapper {
        justify-content: flex-start;
        /* Align left for scrolling */
        padding: 30px 10px;
    }

    .country-card-lg {
        min-width: 250px;
        width: 250px;
        /* Resize card */
        height: 250px;
        margin-right: 15px;
        /* Clean gap, no negative margin */
        border-width: 3px;
        /* Re-enable transitions for active state */
        transition: all 0.4s ease;
    }

    .country-card-lg:hover {
        margin-right: 15px;
        margin-left: 0;
        transform: none;
    }

    /* Active State for Mobile Click to Show Text */
    .country-card-lg.active {
        transform: scale(1.05);
        z-index: 10;
        border-color: var(--primary);
    }

    .country-card-lg.active .overlay {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        background: rgba(43, 45, 66, 0.95);
        padding: 20px 5px;
        /* Tighter padding for mobile */
    }

    /* Mobile Text Adjustments */
    .country-card-lg.active .overlay h3 {
        font-size: 1.4rem;
        /* Smaller than desktop 1.8rem */
        margin-bottom: 2px;
    }

    .country-card-lg.active .overlay p {
        font-size: 0.75rem;
        /* Reduced from 0.9rem as requested */
        line-height: 1.3;
        margin-top: 2px;
        white-space: nowrap;
        /* Try to keep on one line if possible, or break cleanly */
    }

    .country-card-lg.active .overlay .tag {
        font-size: 0.7rem;
        padding: 3px 10px;
        margin-bottom: 8px;
    }

    .country-card-lg::after {
        display: none;
        /* Hide mask on all cards for cleanliness on mobile */
    }
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    /* Very light grey */
    position: relative;
    overflow: hidden;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

/* Image Side */
.director-image-box {
    position: relative;
    padding-left: 20px;
}

.image-wrapper {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: #fff;
    padding: 10px;
    /* White frame */
}

.image-wrapper img {
    width: 100%;
    border-radius: 15px;
    display: block;
    transition: transform 0.5s ease;
}

.director-image-box:hover img {
    transform: scale(1.02);
}

/* Floating Badge */
.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 3;
    border-left: 5px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.floating-badge {
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.2;
}

/* Decorative Dots */
.decorative-dots {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--primary) 2px, transparent 2px);
    background-size: 15px 15px;
    z-index: 1;
    opacity: 0.2;
}

/* Content Side */
.choose-content-box .section-heading {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 700;
}

.text-highlight {
    color: #2ec4b6;
    /* Teal/Greenish to match screenshot inspiration 'Ed Plus' style but branded */
}

.sub-heading {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 600;
    font-family: var(--font-body);
    /* More readable */
}

.choose-content-box .description {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.05rem;
}

.benefit-item i {
    color: #2ec4b6;
    /* teal accent */
    font-size: 1.2rem;
}

/* Responsive for Why Choose Us */
@media (max-width: 991px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .director-image-box {
        max-width: 500px;
        margin: 0 auto;
        padding-left: 0;
    }

    .experience-badge {
        left: -10px;
        bottom: 20px;
    }
}

/* Core Features Grid Section */
.features-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle border */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    /* Top accent bar */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #2ec4b6;
    /* Teal accent from screenshot inspiration */
    background: rgba(46, 196, 182, 0.1);
    /* Light teal bg */
    border-radius: 50%;
    transition: all 0.4s ease;
}

.feature-card:hover .icon-wrapper {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(360deg);
    /* Spin effect */
}

.feature-card h3 {
    font-size: 1.35rem;
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Feature Grid Responsive */
@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

/* Partner Universities Section */
.universities-section {
    padding: 80px 0;
    background-color: #f0f2f5;
    overflow: hidden;
    position: relative;
}

.universities-section .section-subtitle {
    color: #2ec4b6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.universities-section .section-title {
    color: var(--secondary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.universities-section .section-desc {
    color: #777;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Marquee Container */
.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    /* Soft fade mask on sides */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 40px;
    animation: scrollMarquee 30s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* University Logo Card */
.uni-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;

    /* Fixed Dimensions for uniformity */
    width: 280px;
    height: 120px;
    min-width: 280px;
    /* Prevent shrinking in flex */

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.uni-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(46, 196, 182, 0.3);
}

.uni-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;

    /* Full color by default */
    /* filter: grayscale(100%); Removed */
    /* opacity: 0.7; Removed */
    transition: transform 0.3s ease;
}



.uni-card:hover img {
    transform: scale(1.05);
    /* Slight zoom on hover instead of color change */
}

/* =========================================
   Footer Area
   ========================================= */
/* =========================================
   Footer Area
   ========================================= */
.footer-dark {
    background: #0b0c10;
    /* Fallback color */
    background-image: linear-gradient(rgba(11, 12, 16, 0.85), rgba(11, 12, 16, 0.9)),
        url('../img/footer_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    padding-top: 80px;
    color: #c5c6c7;
}

/* =========================================
   Insights Section (EdPlus Inspired)
   ========================================= */
.insights-section {
    padding: 100px 0;
    background: #0b0c10;
    /* Dark premium background to Contrast with white cards */
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
    /* Gap before next section */
}

/* Background Pattern */
.insights-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 196, 182, 0.05) 0%, rgba(11, 12, 16, 0) 70%);
    animation: rotateBg 60s linear infinite;
    z-index: 0;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.insights-section .container {
    position: relative;
    z-index: 1;
}

/* Fix visibility on dark background */
.insights-section .section-title {
    color: #ffffff;
}

.insights-section .section-desc {
    color: #c5c6c7;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Featured Card spans 2 columns on large screens if desired, 
   but for 3 items a balanced 3-col grid is cleaner */

.insight-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 450px;
    /* Tall immersive cards */
    background: #1f2833;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(46, 196, 182, 0.2);
}

.insight-card .img-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
}

.insight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Overlay Gradient */
.insight-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.1) 100%);
    transition: background 0.4s ease;
}

.insight-card:hover img {
    transform: scale(1.1);
}

.insight-card:hover::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, rgba(46, 196, 182, 0.2) 100%);
}

.insight-card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    width: 100%;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.insight-card:hover .content {
    transform: translateY(0);
}

.insight-card .category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2ec4b6;
    margin-bottom: 10px;
    display: inline-block;
    background: rgba(46, 196, 182, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(46, 196, 182, 0.3);
}

.insight-card h3 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.insight-card p {
    color: #c5c6c7;
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

.insight-card .read-more {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.insight-card:hover .read-more {
    opacity: 1;
}

.insight-card .read-more i {
    transition: transform 0.3s ease;
}

.insight-card:hover .read-more i {
    transform: translateX(5px);
}

/* Responsiveness */
@media (max-width: 991px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }

    .insight-card {
        height: 350px;
    }

    .insight-card p,
    .insight-card .read-more {
        opacity: 1;
        /* Always show content on mobile */
        transform: translateY(0);
    }

    .insight-card .content {
        transform: translateY(0);
    }
}

/* Animation */
@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 20px));
        /* Move half width + half gap */
    }
}

/* Responsive */
@media (max-width: 768px) {
    .marquee-track {
        gap: 20px;
        animation-duration: 20s;
        /* Faster on mobile */
    }

    .uni-card {
        min-width: 180px;
        padding: 15px 20px;
    }

    .universities-section .section-title {
        font-size: 2rem;
    }
}

/* =========================================
   Global Responsive Helpers (Final Override)
   ========================================= */

@media (max-width: 991px) {

    /* Ensure all grids stack on tablets if they are too cramped */
    .premium-services-grid,
    .success-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {

    /* 1. Global Section Padding Calculation */
    section {
        padding: 60px 0 !important;
    }

    .container {
        padding: 0 20px !important;
    }

    /* 2. Global Typography Adjustments */
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p {
        font-size: 0.95rem !important;
    }

    /* 3. Force Column Layout for Grids */
    .premium-services-grid,
    .success-grid,
    .stats-grid,
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* 4. Card Heights & Spacing */
    .premium-card {
        height: 350px !important;
        /* Smaller height on mobile */
    }

    .t-card,
    .video-card {
        min-width: 100% !important;
        /* Full width cards */
        margin-right: 0 !important;
    }

    /* 5. Hide complex animations or floats if needed */
    .service-icon {
        font-size: 2.5rem !important;
    }
}

/* Fix visibility for 'Trusted by Families' text */
.testimonials-section .highlight {
    color: #2ec4b6 !important;
    /* Teal accent to pop against dark bg */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}