/* Hero Banner Widget - MyLekha Light Style */

.sp-hero-banner {
    background: radial-gradient(circle at 0% 0%, rgba(88, 237, 207, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
    padding-bottom: 40px;
    background-color: #ffffff;
    color: #111827;
    font-family: var(--primaryFont, sans-serif);
    position: relative;
    overflow-x: hidden;
    /* Break out of Elementor Boxed limits */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.sp-hero-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.sp-hero-row {
    display: flex;
    align-items: center;
    /* Side-by-side for Desktop */
    gap: clamp(40px, 6vw, 100px);
    padding-top: 106px;
    padding-bottom: 106px;
}

.sp-hero-text-col {
    flex: 1.1;
    z-index: 2;
    text-align: left;
    /* Default Desktop alignment */
}

.sp-hero-media-col {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* --- Fluid Typography --- */
.sp-hero-tagline {
    background: linear-gradient(24.92deg, #15997E 6.27%, #2ED8B6 94.96%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 700;
    font-size: clamp(16px, 2vw, 24px) !important;
    margin-bottom: 8px;
    display: inline-block;
}

.sp-hero-title {
    font-weight: 800;
    font-size: clamp(32px, 4vw, 48px) !important;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-top: 0;
    margin-bottom: 12px;
    color: #0f172a;
}

.sp-hero-description {
    color: #64748b;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 32px;
    max-width: 500px;
    /* Limits width on desktop for better readability */
}

/* --- Button --- */
.sp-hero-btn {
    background: linear-gradient(24.92deg, #15997E 6.27%, #2ED8B6 94.96%);
    color: white !important;
    font-weight: 700;
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.sp-hero-btn:hover {
    transform: translateY(-3px);
}

.sp-video-container {
    position: relative;
    width: 100%;
}

.sp-video-frame {
    border-radius: 28px;
    overflow: hidden;
    background: #000;
    border: 1px solid #f1f5f9;
    position: relative;
}

.sp-video-frame img {
    width: 100%;
    display: block;
    opacity: 0.9;
    object-fit: cover;
}

.sp-hero-video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: black;
}

.sp-hero-video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.sp-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    z-index: 5;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    border: none;
}

.sp-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.sp-play-button i,
.sp-play-button svg {
    margin-left: 4px;
    /* visually center play icon */
}

/* --- Floating Cards (Desktop Style) --- */
.sp-floating-card {
    background: white;
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    z-index: 10;
    border: 1px solid #f1f5f9;
}

.sp-rev-card {
    top: -10%;
    right: -10%;
    min-width: 180px;
}

.sp-sec-card {
    bottom: -10%;
    left: -10%;
    min-width: 180px;
}

.sp-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-bg-green {
    background: #e6f6f2;
    color: #199e81;
}

.sp-bg-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.sp-card-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
}

.sp-card-value {
    font-weight: 800;
    font-size: 18px;
    color: #111827;
}

/* Partners Area */
.sp-partners-area {
    margin-top: 0;
}

.sp-trust-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 24px;
    font-weight: 500;
}

.sp-trust-header i,
.sp-trust-header svg {
    color: #199e81;
    font-size: 1rem;
}

.sp-trust-header span strong {
    color: #199e81;
}

.sp-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.sp-marquee-container::before,
.sp-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.sp-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.sp-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.sp-marquee-track {
    display: flex;
    width: max-content;
    gap: 6rem;
    animation: sp-scroll-left 40s linear infinite;
    align-items: center;
    min-height: 80px;
}

.sp-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes sp-scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.sp-p-logo {
    font-weight: 700;
    font-size: 1.6rem;
    color: #111827;
    opacity: 1;
    white-space: nowrap;
    letter-spacing: -0.02em;
    transition: all 0.3s;
    background: transparent !important;
    box-shadow: none !important;
}

.sp-partners-area .sp-p-logo img {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
    opacity: 0.5 !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sp-partners-area .sp-p-logo:hover img {
    filter: grayscale(0%) !important;
    -webkit-filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* --- TABLET & MOBILE OVERRIDES --- */

@media (max-width: 1100px) {
    .sp-hero-banner {
        padding-top: 20px;
        padding-bottom: 2.5rem;
    }

    .sp-hero-container {
        padding: 0 20px;
    }

    .sp-hero-row {
        flex-direction: column;
        text-align: center !important;
        gap: 30px;
        /* Reduced gap between text and video */
        padding-top: 20px;
        /* Reduced top padding */
        padding-bottom: 20px;
    }

    .sp-hero-text-col {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        text-align: center !important;
        width: 100%;
    }

    .sp-hero-title,
    .sp-hero-description,
    .sp-hero-tagline {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .sp-hero-title {
        font-size: clamp(28px, 6vw, 42px) !important;
        letter-spacing: -0.03em;
        margin-bottom: 0.75rem;
        /* Tighter title margin */
    }

    .sp-hero-description {
        font-size: clamp(14px, 2vw, 17px);
        line-height: 1.5;
        margin-bottom: 1.5rem;
        /* Tighter description margin */
        max-width: 90%;
    }

    .sp-hero-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 28px;
    }

    .sp-hero-media-col {
        width: 100%;
        max-width: 700px;
        margin-top: 20px;
        /* Further reduced space above video */
    }

    /* Hide floating cards on Tablet/Mobile */
    .sp-floating-card {
        display: none !important;
    }

    /* Partners Spacing Fixes */
    .sp-partners-area {
        margin-top: 24px !important;
        /* Exact 24px space from video */
    }

    .sp-trust-header {
        justify-content: center !important;
        margin-top: 0 !important;
        margin-bottom: 24px !important;
        /* Standardized to 24px */
    }

    .sp-marquee-container {
        padding: 5px 0 !important;
        /* Drastically reduced vertical padding */
    }

    .sp-hero-banner {
        padding-top: 20px;
        padding-bottom: 00px !important;
        /* Exact 40px space below logos */
    }

    .sp-video-frame {
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .sp-hero-media-col {
        margin-left: -20px;
        /* Counter-acting container padding */
        margin-right: -20px;
        width: calc(100% + 40px);
        max-width: 100vw;
    }

    .sp-video-frame {
        border-radius: 0px;
        /* Full-bleed edge for immersive feel */
        border-left: none;
        border-right: none;
    }

    .sp-play-button {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .sp-hero-title {
        font-size: 24px !important;
    }
}