/* --- 1. THEME VARIABLES --- */
        :root {
            /* Brand Identity Colors */
            --brand-navy: #022e47;
            --brand-cream: #FAF8F1;
            --brand-orange: #f68f1d;
            --brand-pink: #ea3b60;
            
            /* Default LIGHT Theme Mapping */
            --bg-body: var(--brand-cream);
            --text-main: var(--brand-navy);
            --text-muted: rgba(2, 46, 71, 0.6);
            --nav-bg-scrolled: rgba(250, 248, 241, 0.95);
            --nav-mobile-bg: #FAF8F1;
            --nav-mobile-shadow: rgba(0,0,0,0.1);
            
            /* Footer is always dark */
            --footer-bg: var(--brand-navy);
            
            --vf-grad: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange) 65%, var(--brand-pink) 100%);
            
            --font-display: 'Bakbak One', cursive;
            --font-body: 'Work Sans', sans-serif;
        }

        /* DARK THEME OVERRIDES */
        [data-theme="dark"] {
            --bg-body: #011a2a; 
            --text-main: #e6e6e6;
            --text-muted: rgba(255, 255, 255, 0.6);
            --nav-bg-scrolled: rgba(1, 26, 42, 0.95);
            --nav-mobile-bg: #022e47;
            --nav-mobile-shadow: rgba(0,0,0,0.4);
        }

        /* --- 2. GLOBAL STYLES --- */
        body {
            background-color: var(--bg-body);
            font-family: var(--font-body);
            color: var(--text-main);
            overflow-x: hidden;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-display);
            text-transform: uppercase;
            font-weight: 400; 
        }

        .text-gradient {
            background: var(--vf-grad);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* --- 3. AMBIENT BACKGROUND --- */
        .ambient-light {
            position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
            z-index: -1; pointer-events: none; overflow: hidden;
            background: var(--bg-body);
            transition: background-color 0.3s ease;
        }

        .orb {
            position: absolute; border-radius: 50%;
            filter: blur(80px); opacity: 0.5;
            animation: floatOrb 20s infinite ease-in-out;
        }

        .orb-1 { width: 100vw; height: 100vw; background: var(--brand-orange); top: -10%; left: -10%; opacity: 0.15;}
        .orb-2 { width: 30vw; height: 30vw; background: var(--brand-pink); bottom: 10%; right: -5%; animation-delay: -5s; opacity: 0.15;}
        .orb-3 { width: 60vw; height: 60vw; background: #ff5500; top: 40%; left: 40%; animation-delay: -10s; opacity: 0.1;}

        @keyframes floatOrb {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(30px, -50px) scale(1.1); }
        }

		/* --- 7. HERO SECTION (RESTORED & STYLED) --- */
        .hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            padding-top: 100px; /* Offset for fixed nav */
        }
		
		.hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            padding-top: 100px; /* Offset for fixed nav */
        }
		
		/* --- 7. NEW HERO SECTION STYLING --- */
        .hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            padding-top: 80px; 
            z-index: 1; 
        }

        .hero-title {
            font-size: clamp(2.5rem, 5vw, 4.5rem);
            line-height: 0.9;
            margin-bottom: 20px;
        }

        .hero-subtitle {
            font-size: clamp(1.1rem, 2vw, 1.25rem);
            line-height: 1.2;
            margin-bottom: 30px;
            max-width: 600px;
			font-weight: 600;
        }

        /* Abstract Visual Element */
        .hero-visual-wrapper {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            min-height: 400px;
        }

        .hero-shape {
            width: 350px;
            height: 350px;
            background: var(--vf-grad);
            /* Creating an organic, fluid shape */
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
            animation: morphShape 8s ease-in-out infinite;
            box-shadow: 0 20px 50px rgba(246, 143, 29, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @keyframes morphShape {
            0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
            50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: translateY(-15px); }
            100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
        }

        /* Floating Badges */
        .hero-badge {
            position: absolute;
            padding: 12px 24px;
            border-radius: 50px;
            font-family: var(--font-display);
            font-size: 1.1rem;
            color: var(--text-main);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            letter-spacing: -0.02em;
        }
        
        .hero-badge.b-1 { 
            top: 15%; 
            left: 0%; 
            animation: floatBadge 4s infinite ease-in-out; 
        }
        
        .hero-badge.b-2 { 
            bottom: 20%; 
            right: -5%; 
            animation: floatBadge 5s infinite ease-in-out reverse; 
        }
        
        @keyframes floatBadge {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-12px); }
        }
		
		/* --- 4. PAGE HERO --- */
		.page-hero {
			padding-top: 120px; /* offset fixed nav */
			padding-bottom: 24px;
		}
		.hero-panel {
			border-radius: 26px;
			padding: clamp(20px, 3vw, 44px);
			position: relative;
			overflow: hidden;
			}
		.hero-panel::before {
            content:"";
             position:absolute;
             inset:-2px;
             border-radius: 28px;
            padding: 2px;
            background: var(--vf-grad);
            -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); /* Standard property */
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: .28;
            pointer-events:none;
        }

		.kicker {
			display:inline-flex;
			align-items:center;
			gap:10px;
			font-weight:700;
			letter-spacing: .18em;
			text-transform: uppercase;
			font-size: .78rem;
			opacity:.85;
		}
		.kicker .dot {
			width:8px;height:8px;border-radius:999px;
			background: var(--vf-grad);
			box-shadow: 0 0 0 6px rgba(255,255,255,0.12);
		}
		[data-theme="dark"] .kicker .dot { box-shadow: 0 0 0 6px rgba(255,255,255,0.06); }

		.page-title {
			font-size: clamp(2.0rem, 4vw, 3.3rem);
			line-height: 1.08;
			margin: 14px 0 10px;
		}
		.page-sub {
			max-width: 75ch;
			color: var(--text-muted);
			font-size: 1.05rem;
			line-height: 1.65;
			margin-bottom: 16px;
			font-weight: 500;
		}

    /* --- 5. SERVICES GRID (ALIGN FIXES) --- */
    .section { padding: 22px 0 10px; }

    .section-title {
      font-size: 1.25rem;
      margin-bottom: 10px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
    }
    .section-title .muted { color: var(--text-muted); font-size: .95rem; font-weight: 700; text-transform:none; font-family: var(--font-body); }

    .fade-sep{
      height:1px;
      width:100%;
      background: linear-gradient(90deg, transparent 0%, rgba(2,46,71,0.16) 18%, rgba(2,46,71,0.22) 50%, rgba(2,46,71,0.16) 82%, transparent 100%);
    }
    [data-theme="dark"] .fade-sep{
      background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.14) 18%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.14) 82%, transparent 100%);
    }

	/* --- BRANDED BUTTONS --- */
        
        /* --- HERO PRIMARY BUTTON --- */
.btn-glow {
    background: var(--vf-grad); /* Make sure --vf-grad is defined with your orange-to-pink specs */
    color: white !important;
    padding: 16px 32px;
    border-radius: 100px;
    font-family: var(--font-body); /* Work Sans */
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    box-shadow: 0 10px 20px rgba(246, 143, 29, 0.3); /* Verafede Orange shadow */
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(234, 59, 96, 0.4); /* Shifts to Verafede Pink shadow */
}

/* --- HERO SECONDARY BUTTON (Outline) --- */
.btn-outline-glow {
    background: transparent;
    color: #f68f1d !important; /* Verafede Primary Orange */
    border: 2px solid #f68f1d;
    padding: 14px 30px; /* Reduced by 2px to account for the border and match the exact height of btn-glow */
    border-radius: 100px;
    font-family: var(--font-body); /* Work Sans */
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-outline-glow:hover {
    background: #f68f1d;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(246, 143, 29, 0.4);
}

/* Default / Light Mode: Navy Star */
.btn-outline-glow .fa-star {
    color: #022e47; /* Feel free to swap 'navy' with your specific brand hex code, like #0a2540 */
    transition: color 0.3s ease; /* Adds a smooth fade when switching themes */
}

/* Dark Mode: White Star */
[data-theme="dark"] .btn-outline-glow .fa-star {
    color: white;
}
	
		/* --- 8. NEW SERVICES GRID --- */
  
        .vf-services-header .section-title {
            font-size: clamp(2rem, 4vw, 3rem);
            margin-bottom: 15px;
        }

        .vf-services-header .muted {
            display: block;
            font-size: 1.1rem;
            color: var(--text-muted);
            font-family: var(--font-body);
            text-transform: none;
            line-height: 1.6;
            margin-top: 15px;
        }

        .vf-services-wrapper {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
            align-items: stretch;
            padding-bottom: 2rem;
        }

        
        .vf-svc-card:hover .vf-svc-btn { 
            color: #ec008c; 
        }
			
		/* --- V4 SERVICES REDESIGN (SOFT FLOATING CARDS) --- */
        .vf-services-wrapper-v4 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 40px; /* Extra breathing room */
            margin-top: 50px; /* Space for floating icons */
        }

        .vf-svc-card-v4 {
            background: rgba(25, 25, 25, 0.4);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 24px; /* Softer, highly modern corners */
            padding: 55px 40px 40px;
            position: relative;
            transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
            display: flex;
            flex-direction: column;
            color: var(--text-main);
        }

        /* Light Mode Adaptation */
        [data-theme="light"] .vf-svc-card-v4 {
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
        }

        .vf-svc-card-v4:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
        }
        
        [data-theme="light"] .vf-svc-card-v4:hover {
            box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        }
		
		/* --- V4 SECTION HEADER STYLING --- */
        .vf-section-header-v4 {
            text-align: center;
            margin-bottom: 60px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* The Main Title */
        .vf-main-title-v4 {
            font-family: var(--font-display);
            font-size: clamp(2.5rem, 5vw, 4rem); /* Scales beautifully on mobile */
            font-weight: 800;
            color: var(--text-main);
            margin-bottom: 20px;
            line-height: 1.1;
            letter-spacing: -0.03em;
        }

        .vf-text-gradient-v4 {
            background: linear-gradient(45deg, #ec008c, #f68f1d);
            -webkit-background-clip: text;
            background-clip: text; /* Standard property for compatibility */
            -webkit-text-fill-color: transparent;
            display: inline-block; /* Helps prevent gradient clipping issues */
        }

        /* The Description Text */
        .vf-main-desc-v4 {
            color: var(--text-muted);
            font-size: 1.1rem;
            line-height: 1.7;
            max-width: 750px; /* Constrains the width so it's easy to read */
            margin: 0 auto;
        }

        .vf-main-desc-v4 strong {
            color: var(--text-main); /* Makes keywords pop based on theme */
            font-weight: 600;
        }

        /* Floating Gradient Icon */
        .vf-svc-icon-v4 {
            position: absolute;
            top: -25px;
            left: 40px;
            width: 65px;
            height: 65px;
            background: var(--vf-grad); /* Uses your brand gradient */
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            color: #fff;
            box-shadow: 0 12px 24px rgba(236, 0, 140, 0.3); /* Soft pink shadow */
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }


        .vf-svc-title-v4 {
    font-family: var(--font-display);
    font-size: 2.1rem; /* Increased from 1.8rem */
    margin-top: 10px;
    margin-bottom: 15px;
    line-height: 1.2; /* Slightly adjusted for better scaling */
    letter-spacing: -0.02em;
}

.vf-svc-desc-v4 {
    font-size: 0.95rem; /* Increased from 0.95rem */
    line-height: 1.45; /* Increased from 1.2 to make reading continuous paragraphs easier */
    margin-bottom: 30px;
    min-height: 100px; /* Slightly increased to prevent text from overflowing the card height */
}

/* Clean, Readable List */
.vf-svc-list-v4 {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-grow: 1;
}

.vf-svc-list-v4 li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px; /* Slightly increased spacing between list items */
    font-size: 0.95rem;   /* Increased from 0.95rem */
    color: var(--text-main);
    opacity: 1;          /* Increased from 0.85 to 1.0 for maximum color contrast */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

        .vf-svc-list-v4 li:hover {
            opacity: 1;
            transform: translateX(6px); /* Gentle nudge on hover */
        }

        /* Custom FontAwesome Checkmark */
        .vf-svc-list-v4 li::before {
            content: '\f058'; /* Solid Check Circle */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            top: 1px;
            color: #f68f1d; /* Matches your brand orange */
            font-size: 1.1rem;
            background: -webkit-linear-gradient(45deg, #f68f1d, #ec008c);
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
		
		/* --- SUB-SERVICES LIST STYLING --- */
        .vf-svc-list-v4 ul {
            list-style: none;
            padding-left: 24px;
            margin-top: 12px;
            margin-bottom: 0;
            border-left: 1px solid rgba(255, 255, 255, 0.1); /* Subtle connecting line */
        }

        [data-theme="light"] .vf-svc-list-v4 ul {
            border-left-color: rgba(0, 0, 0, 0.1);
        }

        .vf-svc-list-v4 ul li {
            padding-left: 20px;
            margin-bottom: 10px;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        /* Override the giant checkmark for sub-items, use a clean dot instead */
        .vf-svc-list-v4 ul li::before {
            content: '';
            width: 6px;
            height: 6px;
            background: #f68f1d; /* Brand Orange dot */
            border-radius: 50%;
            position: absolute;
            left: -3px; /* Centers the dot on the connecting line */
            top: 7px;
            background-clip: initial;
            -webkit-text-fill-color: initial;
        }
		
		/* --- SUBTITLE UPGRADE --- */
        .vf-svc-desc-v4 {
            font-weight: 600; /* Makes the subtitle semi-bold */
        }

        /* --- V4 SLIDE-FILL BUTTON --- */
        .vf-svc-btn-v4 {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 24px;
            background: transparent;
            border: 2px solid #ec008c; /* Brand Pink border */
            border-radius: 50px;
            color: var(--text-main);
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            overflow: hidden;
            z-index: 1;
            transition: color 0.4s ease, border-color 0.4s ease;
            margin-top: auto; /* Keeps the button pushed to the bottom of the card */
            width: 100%;
        }

        [data-theme="light"] .vf-svc-btn-v4 {
            color: #111; /* Dark text for light mode */
            border-color: #ec008c;
        }

        /* The sliding color block */
        .vf-svc-btn-v4::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0%;
            height: 100%;
            background: linear-gradient(45deg, #ec008c, #f68f1d); /* Brand gradient fill */
            transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
            z-index: -1;
        }

        /* Hover interactions */
        .vf-svc-card-v4:hover .vf-svc-btn-v4, /* Triggers when hovering the whole card */
        .vf-svc-btn-v4:hover {
            color: #fff !important;
            border-color: transparent;
        }

        .vf-svc-card-v4:hover .vf-svc-btn-v4::before,
        .vf-svc-btn-v4:hover::before {
            width: 100%; /* Slides the color in */
        }

        .vf-svc-btn-v4 i {
            transition: transform 0.4s ease;
        }

        .vf-svc-card-v4:hover .vf-svc-btn-v4 i,
        .vf-svc-btn-v4:hover i {
            transform: translateX(5px); /* Arrow nudges to the right */
        }
		
		/* --- V5 HEADER LAYOUT (Sleek Stacked & Glowing) --- */
        .vf-svc-header-v5 {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            margin-bottom: 20px;
        }

        /* Glowing Gradient Icon */
        .vf-svc-icon-v5 {
            font-size: 2.5rem; /* Larger, bolder icon */
            margin-bottom: 15px;
            background: linear-gradient(45deg, #ec008c, #f68f1d); /* Brand gradient */
            background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0px 8px 16px rgba(236, 0, 140, 0.3)); /* Soft glowing shadow */
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .vf-svc-card-v4:hover .vf-svc-icon-v5 {
            transform: translateY(-5px) scale(1.1); /* Floats up and grows slightly */
        }

        .vf-svc-title-v5 {
            font-family: var(--font-display);
            font-size: 2rem;
            font-weight: 700;
            margin: 0;
            line-height: 1.1;
            letter-spacing: -0.02em;
            color: var(--text-main);
        }

        /* Animated Accent Line */
        .vf-svc-divider {
            height: 4px;
            width: 40px;
            background: linear-gradient(45deg, #ec008c, #f68f1d);
            border-radius: 50px;
            margin-top: 18px;
            transition: width 0.4s ease;
        }

        .vf-svc-card-v4:hover .vf-svc-divider {
            width: 100px; /* Expands on hover */
        }

        .vf-svc-desc-v5 {
            font-weight: 600;
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 30px;
            min-height: 80px;
        }
		
        .vf-section-header-v5 {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            flex-wrap: wrap;
            gap: 40px;
            margin-bottom: 60px;
            padding-bottom: 40px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Clean horizontal grounding line */
        }

        /* Light Mode Adaptation for the border */
        [data-theme="light"] .vf-section-header-v5 {
            border-bottom-color: rgba(0, 0, 0, 0.08);
        }

        .vf-header-title-wrapper {
            display: flex;
            flex-direction: column;
			line-height: 1;
        }

       /* Light title "What we" styling */
		.vf-title-light-v5 {
			font-family: var(--font-display);
			font-size: clamp(2rem, 4.5vw, 3rem); /* Larger size */
			font-weight: 600;
			color: #ffffff; /* Always white */
			margin: 0;
			letter-spacing: -0.01em;
		}

        .vf-title-bold-v5 {
            font-family: var(--font-display);
            font-weight: 800;
            font-size: clamp(3rem, 6vw, 5rem);
            margin: 0;
            line-height: 0.9 !important;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            background: var(--vf-grad); /* Uses your exact brand variable */
            background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
        }

        .vf-main-desc-v5 {
            color: #ffffff !important;
            font-size: 1.05rem !important;
            font-weight: 600 !important;
            line-height: 1.4 !important;
            margin: 0 !important;
        }

        /* Light Mode Override for the Sub-text */
        [data-theme="light"] .vf-main-desc-v5 {
            color: #0a192f !important; /* Elegant, deep navy blue for light mode */
        }
        
        

        /* The right-side description box */
        .vf-header-desc-wrapper-v5 {
            max-width: 550px;
            padding-left: 24px;
            border-left: 2px solid #ec008c; /* Brand pink accent line */
        }
		
		
 
        [data-theme] .vf-section-header-v5 .vf-main-desc-v5 {
            /* This ensures it matches the Hero title's white/dark text */
            color: var(--text-main) !important; 
            font-size: 1.15rem !important;
            font-weight: 600 !important;
            line-height: 1.2 !important;
            margin: 0 !important;
        }

        /* This ensures the gradient works perfectly inside the paragraph */
        .vf-main-desc-v5 .text-gradient {
            background: linear-gradient(45deg, #ec008c, #f68f1d);
           background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline; 
            font-weight: 700;
        }
		
		/* --- V4 INNER LIST BOX --- */
        .vf-svc-list-box-v4 {
            background: rgba(0, 0, 0, 0.2); /* Creates a subtle inset effect */
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 24px; /* Space between the box and the button */
            flex-grow: 1; /* Moves the stretching logic to the box */
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* Light Mode Adaptation */
        [data-theme="light"] .vf-svc-list-box-v4 {
            background: rgba(0, 0, 0, 0.03); /* Soft gray inset for light mode */
            border: 1px solid rgba(0, 0, 0, 0.04);
        }

        /* Update the list margin so it fits perfectly inside the new box */
        .vf-svc-list-v4 {
            margin: 0; /* Removed bottom margin since the box handles it now */
        }
		
        .wins-wall-fullscreen {
            min-height: 100vh; /* Makes the section cover the full screen */
            display: flex;
            flex-direction: column;
            justify-content: center; /* Vertically centers everything */
            padding: 80px 20px; /* Padding just in case the screen is very small */
            box-sizing: border-box;
            position: relative;
        }

        /* --- TRUSTED BY BRAND HEADER --- */

.wins-header-v4 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 3rem 0 2rem; /* Breathing room above the logo grid */
    gap: 1.5rem; /* Space between the text and the lines */
}

/* Creating the subtle flanking lines */
.wins-header-v4::before,
.wins-header-v4::after {
    content: "";
    flex: 1; /* Makes the lines stretch to fill available space */
    height: 1px;
}

/* Fading line from left to right */
.wins-header-v4::before {
    background: linear-gradient(to right, transparent, rgba(100, 116, 139, 0.25));
}

/* Fading line from right to left */
.wins-header-v4::after {
    background: linear-gradient(to left, transparent, rgba(100, 116, 139, 0.25));
}

.wins-title-v4 {
    font-family: var(--font-display, system-ui, -apple-system, sans-serif);
    font-size: 500 px; /* Slightly smaller size is standard for 'Trusted by' headers */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em; /* Wider tracking for a premium feel */
    color: #ea3b60; /* A professional, muted slate gray */
    white-space: nowrap; /* Ensures the one-liner constraint */
    margin: 0;
}

/* Dark Mode Support (Optional) */
html[data-theme="dark"] .wins-title-v4 {
    color: #94a3b8;
}

html[data-theme="dark"] .wins-header-v4::before {
    background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.2));
}

html[data-theme="dark"] .wins-header-v4::after {
    background: linear-gradient(to left, transparent, rgba(148, 163, 184, 0.2));
}

        /* Open, floating layout for the logos */
        .vf-logo-grid-v4 {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: clamp(40px, 6vw, 80px); /* Shrinks/grows the gap based on screen size */
            max-width: 1200px;
            margin: 0 auto;
        }

        .vf-logo-item-v4 {
            display: flex;
            justify-content: center;
        }

        .vf-logo-item-v4 img {
            max-height: 50px;
            max-width: 160px;
            object-fit: contain;
            filter: grayscale(100%) opacity(0.4);
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            cursor: pointer;
        }

        /* Hover Animation */
        .vf-logo-item-v4:hover img {
            filter: grayscale(0%) opacity(1);
            transform: translateY(-5px) scale(1.05);
        }

        /* Light Mode Logo Adaptation */
        [data-theme="light"] .vf-logo-item-v4 img {
            filter: grayscale(100%) opacity(0.5) contrast(120%);
        }
        
        [data-theme="light"] .vf-logo-item-v4:hover img {
            filter: grayscale(0%) opacity(1);
        }

		/* The Carousel Wrapper & Buttons */
		.carousel-wrapper {
			position: relative;
			width: 100%;
			padding: 0 10px; 
		}

		.carousel-nav-btn {
			position: absolute;
			top: 50%;
			transform: translateY(-50%);
			z-index: 10;
			background: rgba(20, 20, 20, 0.9);
			border: 1px solid rgba(255, 20, 147, 0.5); /* Brand pink border */
			color: white;
			width: 55px; height: 55px;
			border-radius: 50%;
			display: inline-flex;
			align-items: center; justify-content: center;
			cursor: pointer;
			transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
			backdrop-filter: blur(10px);
			box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
		}

		.carousel-nav-btn:hover {
			background: var(--brand-pink, #ff1493);
			border-color: var(--brand-pink, #ff1493);
			transform: translateY(-50%) scale(1.15);
			box-shadow: 0 15px 30px rgba(255, 20, 147, 0.3);
		}

		/* Pin to the far edges */
		.carousel-nav-btn.prev-btn { left: -15px; }
		.carousel-nav-btn.next-btn { right: -15px; }

		/* The Scrollable Track */
		.testimonial-track {
			display: flex;
			gap: 24px;
			overflow-x: auto;
			padding: 2rem 1rem 4rem 1rem; 
			scroll-snap-type: x mandatory;
			scroll-behavior: smooth;
			-webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
			scrollbar-width: none; 
			-ms-overflow-style: none;  
		}

		.testimonial-track::-webkit-scrollbar { display: none; }

		/* Individual Cards inside the track */
		.testimonial-card {
			background: var(--brand-orange, #ff5e00) !important;
			border-radius: 24px;
			padding: 40px;
			position: relative;
			overflow: hidden;
			border: 1px solid rgba(255, 255, 255, 0.2);
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
			opacity: 0.5;
			transform: scale(0.85);
		}

		.testimonial-card .quote-icon-bg {
			position: absolute;
			top: -20px;
			right: 20px;
			font-size: 140px;
			font-family: var(--font-display, sans-serif);
			color: rgba(255, 255, 255, 0.15);
			line-height: 1;
			z-index: 0;
			pointer-events: none;
		}

		.testimonial-card > * {
			position: relative;
			z-index: 1;
		}

		.testimonial-card .stars {
			color: #ffffff;
			margin-bottom: 24px;
			font-size: 0.85rem;
			letter-spacing: 3px;
		}

		.testimonial-card .testimonial-text {
			font-size: 1.15rem;
			line-height: 1.6;
			margin-bottom: 30px;
			color: rgba(255, 255, 255, 0.95) !important;
		}

		.testimonial-card .testimonial-text strong {
			font-weight: 700;
			color: #ffffff !important;
			background: rgba(255, 255, 255, 0.2);
			padding: 0 6px;
			border-radius: 4px;
		}

		.testimonial-card .client-info {
			display: flex;
			align-items: center;
			gap: 15px;
			margin-top: auto;
			padding-top: 20px;
			border-top: 1px solid rgba(255, 255, 255, 0.2);
		}

		.testimonial-card .client-avatar {
			width: 56px;
			height: 56px;
			border-radius: 50%;
			object-fit: cover;
			border: 2px solid #ffffff;
			box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
		}

		.testimonial-card .client-info h6 {
			color: #ffffff !important;
			margin-bottom: 4px;
			font-size: 1rem;
			font-weight: 700;
		}

		.testimonial-card .client-info small {
			color: rgba(255, 255, 255, 0.8) !important;
		}

		html[data-theme="light"] .testimonial-card .testimonial-text,
		html[data-theme="light"] .testimonial-card .client-info h6,
		html[data-theme="light"] .testimonial-card .client-info small {
			color: #ffffff !important;
		}
		
		@media (max-width: 767px) {
		.testimonial-track {
			display: flex;
		flex-direction: column;
			gap: 24px;
			overflow: visible;   /* disable horizontal scroll */
			padding: 0;          /* remove extra padding */
		}

		.testimonial-card {
			opacity: 1 !important;
			transform: none !important;
			flex: 1 1 auto;      /* cards expand naturally */
			box-shadow: 0 10px 20px rgba(0,0,0,0.15);
		}

		/* Hide carousel navigation buttons on mobile */
		.carousel-nav-btn {
			display: none !important;
		}
	}

		/* Ensure desktop snapping works beautifully with the center detection */
			@media (min-width: 768px) {
				.testimonial-card {
				flex: 0 0 380px;
				scroll-snap-align: center; 
			}
		}

		.testimonial-card.is-center {
			opacity: 1;
			transform: scale(1) translateY(-10px);
			box-shadow: 0 25px 50px rgba(255, 94, 0, 0.4);
			border-color: rgba(255, 255, 255, 0.6) !important;
		}

		/* Stagger animations so they bob up and down organically */
		.testimonial-card:nth-child(even) { animation-delay: -3s; }

		.testimonial-card:hover {
			border-color: rgba(255, 20, 147, 2.0); 
		}

		.testimonial-card,
		html[data-theme="light"] .testimonial-card,
		html[data-theme="dark"] .testimonial-card {
			background: var(--brand-orange, #ff5e00) !important;
		}

		/* Typography & Layout inside the card */
		.quote-icon-bg {
			position: absolute;
			top: -10px; right: 20px;
			font-family: var(--font-display, sans-serif);
			font-size: 8rem; line-height: 1;
			color: rgba(255, 255, 255, 0.03);
			z-index: -1;
			transition: color 0.4s ease;
		}

		.testimonial-card:hover .quote-icon-bg { color: rgba(255, 20, 147, 0.08); }

		.stars {
			color: var(--brand-orange, #ff5e00);
			font-size: 0.9rem; margin-bottom: 1.5rem; letter-spacing: 2px;
		}

		.testimonial-text {
			color: rgba(255, 255, 255, 0.7);
			font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; flex-grow: 1;
		}

		.testimonial-text strong {
			color: white; font-weight: 600; border-bottom: 1px solid var(--brand-pink, #ff1493);
		}

		.client-info {
			display: flex; align-items: center; gap: 15px;
			border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 1.5rem;
		}

		.client-avatar {
			width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
			padding: 2px; background: linear-gradient(135deg, var(--brand-pink, #ff1493), var(--brand-orange, #ff5e00));
		}

		/* --- BRAND LOGO THEME ADAPTATION --- */
		/* Set a uniform height so it fits cleanly in the navbar */
		.brand-logo {
			height: 70px; /* Adjust this value if you want the logo bigger or smaller */
			width: auto;
		object-fit: contain;
		}

		/* Default (Light Theme) Settings */
		.logo-light {
			display: block;
		}
		.logo-dark {
			display: none;
		}

		/* Dark Theme Settings */
		/* Targets the images when your JS adds data-theme="dark" to the html tag */
		html[data-theme="dark"] .logo-light {
			display: none;
		}
		html[data-theme="dark"] .logo-dark {
			display: block;
		}
		
		/* MOBILE VIEW */
		
		.vf-svc-card-v4.revealed {
			transform: translateY(-10px);
			box-shadow: 0 20px 40px rgba(0,0,0,0.2);
		}
		.vf-svc-card-v4.revealed .vf-svc-btn-v4 {
			color: #ec008c;
		}
		
		@media (max-width: 767px) {
			.vf-logo-item-v4 img {
				filter: grayscale(0%) opacity(1);
				transform: none;
			}
		}
		@media (max-width: 767px) {
			testimonial-card {
				opacity: 1;
				transform: scale(1);
				box-shadow: 0 10px 20px rgba(0,0,0,0.2);
			}
		}
		
		
.vf-logo-item-v4 img {
    max-height: 150px;
    width: auto;
    transition: all 0.3s ease;
}

.vf-logo-item-v4:hover img {
    filter: grayscale(0%);
}

[data-theme="dark"] .vf-logo-item-v4 img {
    filter: invert(1) brightness(2);
}

[data-theme="dark"] .vf-logo-item-v4:hover img {
    filter: invert(1) brightness(2);
}

/* Dark Mode Text Fixes */
[data-theme="dark"] .wins-title-v4 {
    color: #ffffff !important;
}
[data-theme="dark"] .wins-sub-v4 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Container for the logo grid */
.vf-logo-grid-v4 {
    display: grid;
    /* Auto-fit will create as many columns as will fit on the screen. 
       Adjust '120px' based on the physical size of your logos. */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    gap: 30px; /* Adjust spacing between logos */
    align-items: center; 
    justify-items: center;
    margin-top: 1rem; 
}

/* Make sure images never overflow their grid cells */
.vf-logo-item-v4 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.vf-logo-item-v4 img {
    max-width: 100%;
    height: auto;
    object-fit: contain; 
    
    /* Optional: Adds a subtle hover effect if you want to keep the UI interactive */
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

/* 1. The Hover Effect */
.vf-logo-item-v4 img {
    transition: transform 0.3s ease;
}
.vf-logo-item-v4 img:hover {
    transform: scale(1.05);
}

/* 2. Default Light Mode */
img.theme-img-dark {
    display: none !important;
}
img.theme-img-light {
    display: block !important;
}

/* 3. Dark Mode Overrides */
/* Added .dark-mode just in case your JS toggles that instead of .dark-theme */
body.dark-theme img.theme-img-light,
body.dark-mode img.theme-img-light {
    display: none !important;
    opacity: 1 !important;
}

body.dark-theme img.theme-img-dark,
body.dark-mode img.theme-img-dark {
    display: block !important;
    opacity: 1 !important; 
}

html {
    scroll-behavior: smooth;
}

/* --- IMPACT STORY TESTIMONIAL (OVERLAP DESIGN) --- */

.vf-impact-section {
    padding: 4rem 1.5rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.vf-impact-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

/* --- The Image Area --- */
.vf-impact-visual {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Allows natural scaling while preventing it from getting too small */
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
}

html[data-theme="dark"] .vf-impact-visual {
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.vf-impact-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents cropping */
    object-position: center;
    display: block;
}

/* Removed the visual fade overlay entirely */
.vf-visual-overlay {
    display: none;
}

/* --- The Overlapping Card --- */
.vf-impact-card {
    background: var(--bg-body); /* Solid color based on theme */
    backdrop-filter: none;      /* Removed blur */
    -webkit-backdrop-filter: none;
    border-radius: 16px;
    padding: 3rem 2rem;
    position: relative;
    box-shadow: 0 10px 30px var(--nav-mobile-shadow);
    border: 1px solid rgba(150, 150, 150, 0.1); /* Subtle border for separation */
}

/* Gradient Top Border */
.vf-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--vf-grad);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Typography Tweaks */
.vf-quote-icon {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 0;
    display: block;
    margin-bottom: 2rem;
}

.vf-impact-headline {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.vf-impact-body p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.vf-impact-body strong {
    color: var(--text-main);
}

/* --- Metrics Row --- */
.vf-impact-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(150, 150, 150, 0.2);
    border-bottom: 1px solid rgba(150, 150, 150, 0.2);
}

.vf-metric {
    flex: 1;
    min-width: 100px;
}

.vf-metric-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--brand-orange);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.vf-metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 0.5px;
    line-height: 1;
    opacity: 0.8;
}

/* --- Author Details --- */
.vf-impact-author {
    margin-top: 1rem;
}

.vf-author-name {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0 0 0.25rem 0;
}

.vf-author-title {
    font-size: 0.85rem;
    color: var(--brand-pink);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    font-weight: 600;
}

/* --- DESKTOP OVERLAP LAYOUT --- */
@media (min-width: 1024px) {
    .vf-impact-section {
        padding: 6rem 2rem;
    }

    .vf-impact-container {
        grid-template-columns: repeat(12, 1fr);
        align-items: center;
    }

    /* Image spans the left 7 columns */
    .vf-impact-visual {
        grid-column: 1 / 8;
        grid-row: 1;
        height: 100%;
        min-height: 500px;
    }

    /* Card overlaps the image, spanning from column 6 to 13 */
    .vf-impact-card {
        grid-column: 6 / 13;
        grid-row: 1;
        padding: 4rem;
        transform: translateY(20px); /* Slight vertical offset for dynamic feel */
    }
}

/* Target dark mode specifically */
@media (prefers-color-scheme: dark) {
    .brand-logo {
        filter: invert(100%);
    }
}

/* Default state (Light Mode) */
.img-dark {
    display: none;
}
.img-light {
    display: block; /* or inline-block depending on your layout needs */
}

/* Dark Mode state */
/* If your toggler adds a class like <body class="dark-mode"> */
body.dark-mode .img-light {
    display: none;
}
body.dark-mode .img-dark {
    display: block;
}

/* Alternatively, if your toggler uses a data attribute like <html data-theme="dark"> */
[data-theme="dark"] .img-light {
    display: none;
}
[data-theme="dark"] .img-dark {
    display: block;
}