        /* Prevent horizontal scrolling on all devices */
        html {
            overflow-x: hidden;
            max-width: 100%;
            position: relative;
        }
        
        * {
            max-width: 100%;
        }
        
        body {
            background-color: #f8f9fa;
            color: #212529;
            font-family: 'Lexend', sans-serif;
            overflow-x: hidden; /* Prevent horizontal scroll */
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            max-width: 100vw;
            position: relative;
        }

        /* Hero section */
        .hero-section {
            background: linear-gradient(145deg, #1e3a5f 0%, #0d2137 45%, #0a1929 100%);
            color: white;
            padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem);
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCAwIEwxMDAgMTAwIE0xMDAgMCBMMCAxMDAiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4=');
            opacity: 0.12;
        }

        /* Soft spotlight + edge vignette for depth (keeps text readable) */
        .hero-section::after {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                radial-gradient(ellipse 85% 55% at 50% -5%, rgba(64, 156, 255, 0.14), transparent 55%),
                radial-gradient(ellipse 120% 80% at 50% 100%, rgba(0, 0, 0, 0.35), transparent 50%);
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero-title {
            font-size: clamp(1.65rem, 2.8vw + 1.1rem, 3.85rem);
            font-weight: 600;
            margin-bottom: 1.5rem;
            line-height: 1.18;
            letter-spacing: -0.02em;
            text-wrap: balance;
        }

        .hero-title .hero-line {
            display: inline-block;
        }

        @media (min-width: 992px) {
            .hero-title .hero-line {
                white-space: nowrap;
            }
        }

        /* Keep "on the market." together on narrow screens (avoid "the" / "market." split) */
        @media (max-width: 767.98px) {
            .hero-title .hero-phrase-market {
                white-space: nowrap;
            }
        }

        .hero-subtitle {
            font-size: clamp(1rem, 1.1vw + 0.85rem, 1.55rem);
            font-weight: 300;
            margin-bottom: 2rem;
            font-family: 'Lexend', sans-serif;
            line-height: 1.45;
            max-width: 38rem;
            margin-left: auto;
            margin-right: auto;
            opacity: 0.95;
            letter-spacing: 0.01em;
        }

        @media (min-width: 992px) {
            .hero-subtitle {
                margin-bottom: 2.25rem;
            }
        }

        /* Search box styling */
        .search-container {
            background-color: white;
            border-radius: 15px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            margin-top: 2rem;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .search-title {
            font-size: 1.5rem;
            font-weight: 500;
            margin-bottom: 1.5rem;
            color: #212529;
            text-align: center;
        }

        .search-form {
            display: flex;
            flex-direction: column;
        }

        .search-input {
            padding: 1rem 1.5rem;
            font-size: 1.1rem;
            border: 1px solid #dee2e6;
            border-radius: 10px;
            margin-bottom: 1rem;
        }

        .search-button {
            background-color: #1e3a5f;
            color: white;
            border: none;
            border-radius: 10px;
            padding: 1rem;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            min-height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-button:hover {
            background-color: #153250;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        .search-button:disabled {
            cursor: not-allowed;
            opacity: 0.7;
        }
        
        /* Logo Spinner Styles */
        .search-spinner {
            display: none;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 10;
        }
        
        .spinner-logo {
            width: 28px;
            height: 28px;
            animation: spin 1s linear infinite;
            display: block;
        }
        
        @keyframes spin {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }
        
        #search-button-text {
            display: inline-flex;
            align-items: center;
        }
        
        .search-submit-btn.loading #search-button-text {
            opacity: 0;
        }
        
        .search-submit-btn.loading #search-button-spinner {
            display: flex;
        }
        
        /* Scanning Logo Animation Styles - Rocket Mode! */
        .scanning-logo-container {
            position: fixed;
            pointer-events: none;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            display: none;
        }
        
        .scanning-logo-container.active {
            opacity: 1;
            visibility: visible;
            display: block;
        }
        
        .scanning-logo {
            width: 45px;
            height: 45px;
            filter: drop-shadow(0 0 20px rgba(30, 58, 95, 0.9)) 
                    drop-shadow(0 0 40px rgba(30, 58, 95, 0.5));
            transition: transform 0.1s ease-out;
        }
        
        .scanning-logo.flying {
            animation: rocket-pulse 0.15s ease-in-out infinite alternate;
        }
        
        @keyframes rocket-pulse {
            from {
                filter: drop-shadow(0 0 20px rgba(30, 58, 95, 0.9)) 
                        drop-shadow(0 0 40px rgba(255, 165, 0, 0.6));
            }
            to {
                filter: drop-shadow(0 0 30px rgba(30, 58, 95, 1)) 
                        drop-shadow(0 0 60px rgba(255, 100, 0, 0.8));
            }
        }
        
        /* Rocket exhaust trail */
        .rocket-trail {
            position: fixed;
            pointer-events: none;
            z-index: 9998;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            animation: trail-shrink 0.5s ease-out forwards;
        }
        
        .rocket-trail.fire {
            background: radial-gradient(circle, rgba(255, 200, 50, 0.9) 0%, rgba(255, 100, 0, 0.7) 40%, transparent 70%);
        }
        
        .rocket-trail.smoke {
            background: radial-gradient(circle, rgba(100, 100, 100, 0.5) 0%, rgba(150, 150, 150, 0.3) 50%, transparent 70%);
            width: 8px;
            height: 8px;
        }
        
        @keyframes trail-shrink {
            0% {
                opacity: 1;
                transform: scale(1);
            }
            100% {
                opacity: 0;
                transform: scale(0.2);
            }
        }
        
        /* Sparkle effect */
        .rocket-sparkle {
            position: fixed;
            pointer-events: none;
            z-index: 9997;
            width: 6px;
            height: 6px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8);
            animation: sparkle-fade 0.4s ease-out forwards;
        }
        
        @keyframes sparkle-fade {
            0% {
                opacity: 1;
                transform: scale(1) translate(0, 0);
            }
            100% {
                opacity: 0;
                transform: scale(0) translate(var(--sparkle-x, 10px), var(--sparkle-y, -10px));
            }
        }
        
        /* Impact burst when landing on badge */
        .impact-burst {
            position: fixed;
            pointer-events: none;
            z-index: 9996;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(30, 58, 95, 0.6) 0%, transparent 70%);
            animation: impact-expand 0.4s ease-out forwards;
        }
        
        @keyframes impact-expand {
            0% {
                opacity: 1;
                transform: scale(0.3);
            }
            100% {
                opacity: 0;
                transform: scale(2);
            }
        }
        
        /* Launch effect */
        .launch-burst {
            position: fixed;
            pointer-events: none;
            z-index: 9996;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 165, 0, 0.7) 0%, rgba(255, 100, 0, 0.4) 30%, transparent 60%);
            animation: launch-expand 0.5s ease-out forwards;
        }
        
        @keyframes launch-expand {
            0% {
                opacity: 1;
                transform: scale(0.2);
            }
            50% {
                opacity: 0.8;
            }
            100% {
                opacity: 0;
                transform: scale(1.5);
            }
        }
        
        /* Badge scanning effect */
        .property-badge {
            position: relative;
            transition: all 0.3s ease;
            overflow: hidden;
        }
        
        .property-badge::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: left 0.5s ease;
        }
        
        .property-badge.scanned {
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(30, 58, 95, 0.4);
        }
        
        .property-badge.scanned::after {
            left: 100%;
        }
        
        #badge-for-sale.scanned {
            background-color: rgba(40, 167, 69, 0.35) !important;
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
        }
        
        #badge-under-contract.scanned {
            background-color: rgba(255, 193, 7, 0.35) !important;
            box-shadow: 0 4px 15px rgba(255, 193, 7, 0.5);
        }
        
        #badge-foreclosure.scanned {
            background-color: rgba(220, 53, 69, 0.35) !important;
            box-shadow: 0 4px 15px rgba(220, 53, 69, 0.5);
        }
        
        #badge-sheriff-sale.scanned {
            background-color: rgba(111, 66, 193, 0.35) !important;
            box-shadow: 0 4px 15px rgba(111, 66, 193, 0.5);
        }
        
        
        /* Check mark animation on badges */
        .property-badge .scan-check {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 20px;
            height: 20px;
            background: #28a745;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 10px;
            opacity: 0;
            transform: scale(0);
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        .property-badge.scanned .scan-check {
            opacity: 1;
            transform: scale(1);
        }

        /* Features section */
        .features-section {
            padding: 5rem 0;
            background-color: white;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 600;
            margin-bottom: 3rem;
            text-align: center;
            color: #212529;
        }

        .feature-card {
            background-color: #f8f9fa;
            border-radius: 15px;
            padding: 2rem;
            margin-bottom: 2rem;
            height: 100%;
            transition: all 0.3s ease;
            border: 1px solid #e9ecef;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
            border-color: #dee2e6;
        }

        .feature-icon {
            font-size: 2.5rem;
            color: #1e3a5f;
            margin-bottom: 1.5rem;
        }

        .feature-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #212529;
        }

        .feature-description {
            color: #6c757d;
            font-size: 1rem;
            line-height: 1.6;
        }

        /* How it works section */
        .how-it-works-section {
            padding: 5rem 0;
            background-color: #ffffff;
            border-top: 1px solid #e9ecef;
        }

        .step-card {
            background-color: white;
            border-radius: 15px;
            padding: 2rem;
            margin-bottom: 2rem;
            height: 100%;
            transition: all 0.3s ease;
            border: 1px solid #e9ecef;
            position: relative;
        }

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

        .step-number {
            position: absolute;
            top: -15px;
            left: -15px;
            width: 40px;
            height: 40px;
            background-color: #1e3a5f;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.2rem;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .step-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #212529;
        }

        .step-description {
            color: #6c757d;
            font-size: 1rem;
            line-height: 1.6;
        }

        /* Testimonials section */
        .testimonials-section {
            padding: 5rem 0;
            background-color: white;
        }

        .testimonial-card {
            background-color: #f8f9fa;
            border-radius: 15px;
            padding: 2rem;
            margin-bottom: 2rem;
            height: 100%;
            transition: all 0.3s ease;
            border: 1px solid #e9ecef;
        }

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

        .testimonial-text {
            font-size: 1.1rem;
            font-style: italic;
            color: #495057;
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .testimonial-author {
            font-weight: 600;
            color: #212529;
        }

        .testimonial-role {
            color: #6c757d;
            font-size: 0.9rem;
        }

        /* Research Report Banner */
        .research-banner {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            padding: 1.25rem 0;
            position: relative;
            overflow: hidden;
        }
        
        .research-banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            opacity: 0.5;
        }
        
        .research-banner .container {
            position: relative;
            z-index: 1;
        }
        
        .research-banner-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }
        
        .research-banner-badge {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            padding: 0.35rem 0.9rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            animation: badgePulse 2s ease-in-out infinite;
        }
        
        @keyframes badgePulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
            50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
        }
        
        .research-banner-text {
            color: white;
            font-size: 1rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .research-banner-text i {
            color: #60a5fa;
        }
        
        .research-banner-btn {
            background: linear-gradient(135deg, #1e3a5f 0%, #153250 100%);
            color: white;
            padding: 0.6rem 1.5rem;
            border-radius: 25px;
            font-size: 0.9rem;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            border: none;
        }
        
        .research-banner-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(30, 58, 95, 0.4);
            color: white;
        }
        
        @media (max-width: 768px) {
            .research-banner {
                padding: 1rem 0;
            }
            
            .research-banner-content {
                flex-direction: column;
                gap: 0.75rem;
                text-align: center;
            }
            
            .research-banner-text {
                font-size: 0.9rem;
            }
            
            .research-banner-btn {
                width: 100%;
                max-width: 280px;
                justify-content: center;
            }
        }

        /* Guides + strategy paths (single home block) */
        .home-resources-section {
            scroll-margin-top: 5rem;
            padding: 2.75rem 0 3rem;
            background: #f8f9fa;
            border-top: 1px solid #e9ecef;
            border-bottom: 1px solid #e9ecef;
        }
        .home-resources-lead {
            font-size: 0.95rem;
            max-width: 36rem;
            margin-bottom: 1.75rem;
            line-height: 1.55;
        }
        .home-resources-subsection {
            margin-bottom: 0;
        }
        .home-resources-subheading {
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #6c757d;
            margin-bottom: 1rem;
            text-align: center;
        }
        .home-resources-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, #dee2e6 15%, #dee2e6 85%, transparent);
            margin: 2rem 0 2.25rem;
        }
        .home-resource-card {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            padding: 1.25rem 1.15rem;
            flex: 1 1 auto;
            min-height: 0;
            width: 100%;
            display: flex;
            flex-direction: column;
            transition: box-shadow 0.2s ease, border-color 0.2s ease;
        }
        .home-resource-card:hover {
            box-shadow: 0 6px 20px rgba(30, 58, 95, 0.08);
            border-color: rgba(30, 58, 95, 0.18);
        }
        .home-resource-card-title {
            font-size: 1.02rem;
            font-weight: 600;
            color: #1e3a5f;
            margin-bottom: 0.5rem;
            line-height: 1.35;
        }
        .home-resource-card-text {
            font-size: 0.9rem;
            color: #495057;
            line-height: 1.5;
            margin-bottom: 1rem;
            flex-grow: 1;
        }
        .btn-home-resource {
            font-size: 0.875rem;
            font-weight: 600;
            border-radius: 8px;
            color: #1e3a5f;
            border: 1px solid #1e3a5f;
            background: #fff;
            padding: 0.45rem 0.75rem;
            transition: background 0.2s ease, color 0.2s ease;
        }
        .btn-home-resource:hover {
            background: #1e3a5f;
            color: #fff;
        }

        /* Resource/persona cols as column flexboxes so cards fill row height and align CTAs */
        .home-resources-section .row > [class^="col"],
        .home-resources-section .row > [class*=" col"] {
            display: flex;
            flex-direction: column;
        }

        .home-resource-card .btn-home-resource {
            margin-top: auto;
            align-self: stretch;
        }

        /* Persona cards (nested in home-resources-section) */
        .persona-card {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 14px;
            padding: 1.15rem 1.1rem;
            flex: 1 1 auto;
            width: 100%;
            min-height: 0;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            transition: box-shadow 0.2s ease, border-color 0.2s ease;
            text-align: center;
        }

        .persona-card .btn-home-resource {
            margin-top: auto;
            align-self: stretch;
        }
        .persona-card:hover {
            box-shadow: 0 8px 22px rgba(30, 58, 95, 0.08);
            border-color: rgba(30, 58, 95, 0.18);
        }
        .home-resources-section .persona-card .persona-icon {
            width: 44px;
            height: 44px;
            margin: 0 auto 0.65rem;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
        }
        .persona-icon-neutral {
            background: rgba(30, 58, 95, 0.08);
            color: #1e3a5f;
        }
        .persona-card h3 {
            font-size: 1rem;
            font-weight: 600;
            color: #1e3a5f;
            margin-bottom: 0.35rem;
            line-height: 1.3;
        }
        .persona-card p {
            font-size: 0.82rem;
            color: #6c757d;
            line-height: 1.45;
            margin-bottom: 0;
        }

        /* CTA section */
        .cta-section {
            padding: 5rem 0;
            background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%);
            color: white;
            text-align: center;
        }

        .cta-title {
            font-size: 2.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
        }

        .cta-description {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-button {
            background-color: white;
            color: #1e3a5f;
            border: none;
            border-radius: 50px;
            padding: 1rem 2.5rem;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-block;
        }

        .cta-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            background-color: #f8f9fa;
        }

        /* Testimonials */
        .testimonials-section {
            background: #f8f9fa;
            color: #212529;
            padding: 4rem 0;
            margin-bottom: 2rem;
        }

        .testimonial-card {
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 20px;
            padding: 2.5rem;
            text-align: center;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .testimonial-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
        }

        .testimonial-quote {
            font-size: 1.3rem;
            font-style: italic;
            line-height: 1.6;
            margin-bottom: 2rem;
            position: relative;
        }

        .testimonial-quote::before {
            content: '"';
            font-size: 4rem;
            color: rgba(255, 255, 255, 0.3);
            position: absolute;
            top: -1rem;
            left: -1rem;
            font-family: serif;
        }

        .testimonial-quote::after {
            content: '"';
            font-size: 4rem;
            color: rgba(255, 255, 255, 0.3);
            position: absolute;
            bottom: -2rem;
            right: -1rem;
            font-family: serif;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 2rem;
            margin-top: 1rem;
        }

        .testimonial-author-info h5 {
            margin: 0;
            font-weight: 600;
            font-size: 1.3rem;
            color: #212529;
        }

        .testimonial-author-info p {
            margin: 0;
            color: #6c757d;
            font-size: 1rem;
        }

        .testimonial-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 4px solid #1e3a5f;
            object-fit: cover;
            display: block;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .testimonials-title {
            text-align: center;
            margin-bottom: 3rem;
            font-size: 2.5rem;
            font-weight: 600;
        }

        .testimonials-subtitle {
            text-align: center;
            margin-bottom: 3rem;
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .testimonial-quote-short {
            font-size: 1.3rem;
            font-style: italic;
            line-height: 1.6;
            margin-bottom: 1rem;
            position: relative;
            color: #495057;
        }

        .testimonial-quote-full {
            font-size: 1.2rem;
            font-style: italic;
            line-height: 1.6;
            margin-bottom: 1rem;
            position: relative;
            display: none;
            color: #495057;
        }

        .testimonial-quote-short::before {
            content: '"';
            font-size: 4rem;
            color: rgba(30, 58, 95, 0.2);
            position: absolute;
            top: -1rem;
            left: -1rem;
            font-family: serif;
        }

        .testimonial-quote-full::before {
            content: '"';
            font-size: 4rem;
            color: rgba(30, 58, 95, 0.2);
            position: absolute;
            top: -1rem;
            left: -1rem;
            font-family: serif;
        }

        .testimonial-quote-short::after {
            content: '"';
            font-size: 4rem;
            color: rgba(30, 58, 95, 0.2);
            position: absolute;
            bottom: -2rem;
            right: -1rem;
            font-family: serif;
        }

        .testimonial-quote-full::after {
            content: '"';
            font-size: 4rem;
            color: rgba(30, 58, 95, 0.2);
            position: absolute;
            bottom: -2rem;
            right: -1rem;
            font-family: serif;
        }

        .read-more-btn {
            background: #1e3a5f;
            border: 1px solid #1e3a5f;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 1rem 0;
        }

        .read-more-btn:hover {
            background: #153250;
            border-color: #153250;
            transform: translateY(-1px);
        }

        /* Carousel Styling */
        .carousel-control-prev,
        .carousel-control-next {
            width: 50px;
            height: 50px;
            background: rgba(30, 58, 95, 0.8);
            border-radius: 50%;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0.8;
            transition: all 0.3s ease;
        }

        .carousel-control-prev:hover,
        .carousel-control-next:hover {
            background: rgba(30, 58, 95, 1);
            opacity: 1;
        }

        .carousel-control-prev {
            left: -25px;
        }

        .carousel-control-next {
            right: -25px;
        }

        .carousel-indicators {
            bottom: -50px;
        }

        .carousel-indicators button {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(30, 58, 95, 0.3);
            border: none;
            margin: 0 5px;
        }

        .carousel-indicators button.active {
            background-color: #1e3a5f;
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: #1e3a5f;
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            box-shadow: 0 4px 15px rgba(30, 58, 95, 0.4);
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .back-to-top:hover {
            background: #153250;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(30, 58, 95, 0.5);
        }
        
        @media (max-width: 768px) {
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 1rem;
            }
        }

        /* Footer */
        footer {
            background-color: #212529;
            color: white;
            padding: 3rem 0;
        }

        .footer-logo {
            font-size: 1.8rem;
            font-weight: 300;
            margin-bottom: 1rem;
            color: white;
            font-family: 'Lexend', sans-serif;
        }

        .footer-logo span {
            font-weight: 250;
        }

        .footer-description {
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 2rem;
            font-size: 0.9rem;
            line-height: 1.6;
        }

        .footer-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: white;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: white;
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 2rem;
            margin-top: 2rem;
            text-align: center;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.9rem;
        }

        /* Search Input Group - Desktop & Mobile */
        .search-input-group {
            display: flex;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            border-radius: 12px;
        }
        
        .search-address-input {
            width: 100%;
            padding: 1.25rem 1.5rem;
            font-size: 1.1rem;
            border: 2px solid #e9ecef;
            border-right: none;
            border-radius: 12px 0 0 12px;
            outline: none;
            color: #212529;
            background-color: #fff;
            min-width: 0; /* Allow shrinking on mobile */
        }
        
        .search-address-input:focus {
            border-color: #1e3a5f;
            box-shadow: inset 0 0 0 1px #1e3a5f;
        }
        
        .search-address-input::placeholder {
            color: #6c757d;
        }
        
        /* Autocomplete Dropdown Styles */
        .search-input-wrapper {
            position: relative;
            flex: 1;
            min-width: 0;
        }
        
        .autocomplete-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #dee2e6;
            border-top: none;
            border-radius: 0 0 12px 12px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.15);
            max-height: 300px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
        }
        
        .autocomplete-dropdown.show {
            display: block;
        }
        
        .autocomplete-item {
            padding: 12px 16px;
            cursor: pointer;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background-color 0.15s ease;
        }
        
        .autocomplete-item:last-child {
            border-bottom: none;
            border-radius: 0 0 12px 12px;
        }
        
        .autocomplete-item:hover {
            background-color: #f8f9fa;
        }
        
        .autocomplete-item.selected {
            background-color: #e7f1ff;
            border-left: 3px solid #1e3a5f;
            padding-left: 13px;
        }
        
        .autocomplete-item .address-text {
            font-size: 0.95rem;
            color: #212529;
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-right: 10px;
        }
        
        .autocomplete-item .status-badge {
            font-size: 0.7rem;
            padding: 3px 8px;
            border-radius: 10px;
            font-weight: 500;
            white-space: nowrap;
        }
        
        .autocomplete-item .status-badge.for-sale {
            background-color: rgba(40, 167, 69, 0.15);
            color: #28a745;
        }
        
        .autocomplete-item .status-badge.under-contract {
            background-color: rgba(255, 193, 7, 0.15);
            color: #856404;
        }
        
        .autocomplete-item .status-badge.foreclosure {
            background-color: rgba(220, 53, 69, 0.15);
            color: #dc3545;
        }
        
        .autocomplete-item .status-badge.sheriff {
            background-color: rgba(111, 66, 193, 0.15);
            color: #6f42c1;
        }
        
        .autocomplete-item .status-badge.sold {
            background-color: rgba(108, 117, 125, 0.15);
            color: #6c757d;
        }
        
        .autocomplete-item .status-badge.off-market {
            background-color: rgba(23, 162, 184, 0.15);
            color: #17a2b8;
        }
        
        .autocomplete-loading {
            padding: 12px 16px;
            text-align: center;
            color: #6c757d;
            font-size: 0.9rem;
        }
        
        .autocomplete-no-results {
            padding: 12px 16px;
            text-align: center;
            color: #6c757d;
            font-size: 0.9rem;
        }

        /* Hero Tabs Styling */
        .hero-tabs {
            margin-bottom: 1.5rem;
        }
        
        .hero-tabs .nav-item {
            margin: 0 0.5rem;
        }
        
        .hero-tabs .nav-link {
            background: rgba(255, 255, 255, 0.2);
            color: white !important;
            border-radius: 50px;
            padding: 14px 28px;
            font-weight: 500;
            font-size: 1rem;
            border: 2px solid rgba(255, 255, 255, 0.3);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .hero-tabs .nav-link:hover {
            background: rgba(255, 255, 255, 0.35);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
        }
        
        .hero-tabs .nav-link.active {
            background: white;
            color: #1e3a5f !important;
            border-color: white;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        }
        
        .hero-tabs .nav-link i {
            font-size: 1rem;
        }
        
        /* Hero Tab Content */
        .hero-tab-content {
            width: 100%;
        }
        
        .hero-tab-content .tab-pane {
            animation: fadeIn 0.3s ease-out;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Neighborhoods Tab Specific Styles */
        .neighborhoods-tab-container {
            background-color: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
        }
        
        .neighborhood-heatmap-preview {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }
        
        .neighborhood-heatmap-preview img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.3s ease;
        }
        
        .neighborhood-heatmap-preview:hover img {
            transform: scale(1.02);
        }
        
        .grade-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: center;
            margin: 1rem 0;
        }
        
        .grade-badge {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        
        .grade-badge.grade-a { background: #198754; color: white; }
        .grade-badge.grade-b { background: #20c997; color: white; }
        .grade-badge.grade-c { background: #ffc107; color: #212529; }
        .grade-badge.grade-d { background: #dc3545; color: white; }
        
        .factors-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            justify-content: center;
            margin: 1rem 0;
        }
        
        .factor-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.85rem;
            color: #495057;
            background: #f8f9fa;
            padding: 6px 12px;
            border-radius: 20px;
        }
        
        .factor-item i {
            color: #1e3a5f;
        }
        
        /* Mobile Hero Tabs */
        @media (max-width: 768px) {
            .hero-tabs {
                flex-direction: column;
                gap: 0.75rem;
            }
            
            .hero-tabs .nav-item {
                margin: 0;
                width: 100%;
            }
            
            .hero-tabs .nav-link {
                width: 100%;
                justify-content: center;
                padding: 12px 20px;
                font-size: 0.95rem;
            }
            
            .neighborhoods-tab-container {
                padding: 1.5rem;
            }
            
            .grade-legend {
                gap: 0.35rem;
            }
            
            .grade-badge {
                padding: 5px 10px;
                font-size: 0.75rem;
            }
            
            .factors-list {
                gap: 0.5rem;
            }
            
            .factor-item {
                font-size: 0.75rem;
                padding: 5px 10px;
            }
        }
        
        @media (max-width: 576px) {
            .hero-tabs .nav-link {
                padding: 10px 16px;
                font-size: 0.9rem;
            }
            
            .neighborhoods-tab-container {
                padding: 1.25rem;
            }
        }
        
        .search-submit-btn {
            padding: 1.25rem 2rem;
            font-size: 1.1rem;
            font-weight: 600;
            background-color: #1e3a5f;
            color: white;
            border: none;
            border-radius: 0 12px 12px 0;
            cursor: pointer;
            transition: background-color 0.2s;
            white-space: nowrap;
            position: relative;
        }
        
        .search-submit-btn:hover {
            background-color: #153250;
        }
        
        .search-submit-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        /* Mobile responsiveness */
        @media (max-width: 768px) {
            /* Lock horizontal scrolling on mobile */
            html, body {
                overflow-x: hidden !important;
                max-width: 100vw !important;
                width: 100% !important;
            }
            
            .container, .container-fluid, .row {
                max-width: 100% !important;
                overflow-x: hidden !important;
                margin-left: auto !important;
                margin-right: auto !important;
            }
            
            .hero-section {
                padding: 1.75rem 0 2.25rem;
            }
            
            .hero-title {
                font-size: clamp(1.55rem, 4.5vw + 0.65rem, 2rem);
                line-height: 1.25;
            }
            
            .hero-subtitle {
                font-size: clamp(1rem, 0.8vw + 0.85rem, 1.12rem);
                margin-bottom: 1.15rem !important;
            }
            
            .search-container {
                padding: 1.5rem !important;
                border-radius: 15px !important;
                margin-top: 0.75rem !important;
            }
            
            .search-container h3 {
                font-size: 1.2rem !important;
            }
            
            .search-input-group {
                flex-direction: column;
                box-shadow: none;
                border-radius: 0;
                overflow: visible;
            }
            
            .search-address-input {
                border-radius: 10px;
                border: 2px solid #e9ecef;
                border-right: 2px solid #e9ecef;
                margin-bottom: 0.75rem;
                padding: 1rem;
                font-size: 16px; /* Prevents iOS zoom on focus */
                width: 100%;
                box-sizing: border-box;
            }
            
            .search-address-input:focus {
                border-color: #1e3a5f;
                box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
            }
            
            .search-address-input::placeholder {
                font-size: 14px;
            }
            
            .search-submit-btn {
                border-radius: 10px;
                width: 100%;
                padding: 1rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
            
            .cta-title {
                font-size: 2rem;
            }
            
            .cta-description {
                font-size: 1rem;
            }
            
            .cta-button {
                padding: 0.8rem 2rem;
                font-size: 1rem;
            }
            
            .hero-video-container {
                max-width: 100%;
            }
        }
        
        @media (max-width: 576px) {
            .hero-section {
                padding: 1.5rem 0 2rem;
            }
            
            .hero-title {
                font-size: clamp(1.45rem, 4.8vw + 0.55rem, 1.85rem);
            }
            
            .hero-subtitle {
                font-size: clamp(0.95rem, 0.75vw + 0.8rem, 1.05rem);
            }
            
            .search-container {
                padding: 1.25rem !important;
            }
            
            .search-container h3 {
                font-size: 1rem !important;
                margin-bottom: 1rem !important;
            }
            
            .search-container .badge {
                padding: 5px 8px !important;
                font-size: 0.65rem !important;
            }
            
            .search-address-input {
                padding: 0.875rem;
                font-size: 16px;
            }
            
            .search-address-input::placeholder {
                font-size: 13px;
            }
            
            .search-submit-btn {
                padding: 0.875rem;
                font-size: 1rem;
            }
        }

        /* Checklist styling */
        .feature-checklist {
            list-style-type: none; 
            padding-left: 0;
            margin-bottom: 0;
            text-align: left;
        }
        
        .feature-checklist li {
            margin-bottom: 1.25rem;
            display: flex;
            align-items: flex-start;
            font-size: 0.95rem;
        }
        
        .feature-checklist li i {
            color: #1e3a5f;
            margin-right: 0.75rem;
            margin-top: 0.25rem;
            flex-shrink: 0;
            font-size: 1.1rem;
            width: 1.5rem;
            text-align: center;
        }

        .feature-checklist li div {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .feature-checklist .feature-title {
            font-weight: 600;
            color: #212529;
            margin-bottom: 0.25rem;
            font-size: 1.05rem;
            display: block;
            width: 100%;
            line-height: 1.3;
        }

        .feature-checklist .feature-description {
            color: #6c757d;
            font-size: 0.9rem;
            line-height: 1.4;
        }

        

        @media (max-width: 768px) {
            .feature-checklist li {
                margin-bottom: 1.5rem;
            }
            
            .feature-checklist .feature-title {
                font-size: 1rem;
            }
            
            .feature-checklist .feature-description {
                font-size: 0.85rem;
            }
        }

        /* Neighborhood Classes Feature Section */
        .neighborhood-classes-section {
            position: relative;
            overflow: hidden;
        }

        .neighborhood-classes-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(30, 58, 95, 0.05) 0%, transparent 70%);
            border-radius: 50%;
            z-index: 0;
        }

        .neighborhood-classes-section .container {
            position: relative;
            z-index: 1;
        }

        .map-showcase-container {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .map-showcase-container:hover {
            transform: translateY(-5px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
        }

        @media (max-width: 991px) {
            .neighborhood-classes-section {
                padding: 3rem 0 !important;
            }

            .neighborhood-classes-section .section-title {
                font-size: 2rem !important;
                text-align: center !important;
            }

            .neighborhood-classes-section .lead {
                text-align: center;
            }

            .neighborhood-classes-section .d-flex {
                justify-content: center;
            }
        }

        /* Map showcase section styling */
        .map-showcase-section {
            background-color: white;
            position: relative;
        }

        .map-showcase-section .section-title {
            font-size: 2.2rem;
            font-weight: 600;
            color: #212529;
        }

        @media (max-width: 768px) {
            .map-showcase-section .section-title {
                font-size: 1.8rem;
                text-align: center !important;
            }
            
            .map-showcase-panel {
                margin-top: 1.5rem;
            }
        }

        .feature-list-container {
            margin-bottom: 1.5rem;
        }

        .map-showcase-section .section-title {
            font-size: 2.2rem;
            font-weight: 600;
            color: #212529;
        }

        @media (max-width: 768px) {
            .map-showcase-section .section-title {
                font-size: 1.8rem;
                text-align: center !important;
                margin-bottom: 1.5rem;
            }
            
            .feature-list-container {
                background-color: #f8f9fa;
                padding: 1.5rem;
                border-radius: 10px;
                margin-bottom: 2rem;
            }
        }

        .search-container {
            border: 1px solid rgba(0,0,0,0.1);
        }
        
        .card {
            margin-bottom: 12px !important;
        }
        
        .form-label {
            margin-bottom: 0.25rem !important;
        }
        
        .mb-3 {
            margin-bottom: 0.75rem !important;
        }

        /* Scrollbar styling */
        .profile-config-container::-webkit-scrollbar {
            width: 6px;
        }
        
        .profile-config-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }
        
        .profile-config-container::-webkit-scrollbar-thumb {
            background: #1e3a5f;
            border-radius: 10px;
        }
        
        .profile-config-container::-webkit-scrollbar-thumb:hover {
            background: #153250;
        }
        
        .profile-config-container {
            scrollbar-width: thin;
            scrollbar-color: #1e3a5f #f1f1f1;
        }
        
        /* Enhanced configuration styling */
        .form-range::-webkit-slider-thumb {
            background: #1e3a5f;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            cursor: pointer;
            -webkit-appearance: none;
            margin-top: -8px;
            box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.2);
        }
        
        .form-range::-moz-range-thumb {
            background: #1e3a5f;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.2);
        }
        
        .form-range {
            height: 8px;
        }
        
        .form-range::-webkit-slider-runnable-track {
            height: 6px;
            border-radius: 3px;
            background: #e9ecef;
        }
        
        .form-range::-moz-range-track {
            height: 6px;
            border-radius: 3px;
            background: #e9ecef;
        }
        
        .slider-value-display {
            font-weight: 600;
            color: #1e3a5f;
            background-color: rgba(30, 58, 95, 0.1);
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        .form-check-input:checked {
            background-color: #1e3a5f;
            border-color: #1e3a5f;
            box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.25);
        }
        
        .form-select {
            border: 1px solid #ced4da;
            border-radius: 6px;
            padding: 0.375rem 2.25rem 0.375rem 0.75rem;
            transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        }
        
        .form-select:focus {
            border-color: #86b7fe;
            box-shadow: 0 0 0 0.25rem rgba(30, 58, 95, 0.25);
        }
        
        .card {
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            transition: box-shadow 0.3s ease;
        }
        
        .card:hover {
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .card h6 {
            font-weight: 600;
            font-size: 1rem;
        }
        
        .card h6 i {
            background-color: rgba(30, 58, 95, 0.1);
            padding: 8px;
            border-radius: 8px;
            margin-right: 8px;
        }
        
        .form-label {
            font-weight: 500;
            color: #495057;
        }
        
        .option-label {
            font-size: 0.75rem;
            color: #6c757d;
            font-weight: 500;
        }
        
        .slider-ticks {
            display: flex;
            justify-content: space-between;
            padding: 0 10px;
            margin-top: -12px;
        }
        
        .slider-tick {
            width: 1px;
            height: 5px;
            background-color: #adb5bd;
            position: relative;
        }

        /* Agent Contact Button Styling */
        .card-body .btn-primary.btn-lg {
            transition: all 0.3s ease;
            font-weight: 600;
        }
        
        .card-body .btn-primary.btn-lg:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(30, 58, 95, 0.3);
        }

        /* Hero Video Section Styling */
        .hero-video-container {
            max-width: 600px;
        }
        
        /* Align video section with co-pilot config section on desktop */
        /* JavaScript will dynamically set the margin-top for perfect alignment */

        .hero-video-wrapper {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
        }

        .hero-video-wrapper:hover {
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
            transform: translateY(-3px);
        }

        .hero-video-wrapper video {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 12px;
        }

        .hero-video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            z-index: 2;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .hero-video-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .hero-play-button {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.95);
            border: none;
            color: #1e3a5f;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            padding-left: 3px; /* Optical alignment for play icon */
        }

        .hero-play-button:hover {
            background: white;
            transform: scale(1.1);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
        }

        .hero-play-button i {
            font-size: 1.6rem;
        }

        .hero-video-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgba(30, 58, 95, 0.9);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .hero-video-controls {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            gap: 8px;
            z-index: 3;
        }

        .hero-control-btn {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            color: #1e3a5f;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }

        .hero-control-btn:hover {
            background: white;
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .hero-control-btn i {
            font-size: 1rem;
        }

        /* Hide default video controls when overlay is visible */
        .hero-video-wrapper video::-webkit-media-controls {
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .hero-video-wrapper:hover video::-webkit-media-controls,
        .hero-video-wrapper.playing video::-webkit-media-controls {
            opacity: 1;
        }

        /* Responsive hero video styling */
        @media (max-width: 768px) {
            .hero-video-container {
                max-width: 480px;
                margin: 0 auto;
            }
            
            .hero-video-wrapper {
                border-radius: 10px;
            }
            
            .hero-play-button {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
            }
            
            .hero-play-button i {
                font-size: 1.3rem;
            }
            
            .hero-video-badge {
                font-size: 0.7rem;
                padding: 3px 10px;
            }

            .hero-control-btn {
                width: 30px;
                height: 30px;
                font-size: 0.8rem;
            }

            .hero-control-btn i {
                font-size: 0.9rem;
            }
        }

        @media (max-width: 576px) {
            .hero-video-container {
                max-width: 420px;
            }
            
            .hero-play-button {
                width: 45px;
                height: 45px;
                font-size: 1rem;
            }
            
            .hero-play-button i {
                font-size: 1.1rem;
            }

            .hero-control-btn {
                width: 28px;
                height: 28px;
                font-size: 0.7rem;
            }

            .hero-control-btn i {
                font-size: 0.8rem;
            }
        }
