/* Hero Tabs Component - Monday.com Style */
.hero-tabs {
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-tabs__nav-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-tabs__nav {
    display: flex;
    gap: 0.5rem;
    background: rgba(25, 41, 102, 0.2);
    border-radius: 50px;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
}

.hero-tabs__nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.hero-tabs__nav-item {
    flex: 1 1 0;
    min-width: 140px;
    padding: 1.2rem 1.5rem;
    font-family: 'Jost', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #192966;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.hero-tabs__nav-item:hover {
    color: #2D3748;
    background: rgba(255, 255, 255, 0.5);
}

.hero-tabs__nav-item.active {
    color: #1F2937;
    background: #3CE6E6;
}

/* Content Panels */
.hero-tabs__content {
    position: relative;
    min-height: 300px;
}

.hero-tabs__panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-tabs__panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel Content Styling */
.hero-tabs__panel-content {
}

/* Two Column Layout for tabs with images */
.hero-tabs__panel-content--split {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.hero-tabs__panel-text {
    flex: 1;
    text-align: left;
    padding-left: 1rem;
}

.hero-tabs__panel-image {
    flex: 1;
    background: #C5CEE0;
    border-radius: 16px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-tabs__panel-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.hero-tabs__panel-title {
    font-family: 'Jost', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 100.1%;
    color: #192966;
    margin-bottom:1rem !important;
}

/* Video Wrapper for HTML5 video */
.hero-tabs__video-wrapper {
    position: relative;
    width: 100%;
    /*max-width: 900px;*/
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
}

.hero-tabs__video-player {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    background: #000;
}

/* Custom Video Play Button Overlay */
.hero-tabs__video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease;
    z-index: 10;
}

.hero-tabs__video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.25);
}

.hero-tabs__play-button {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero-tabs__video-play-overlay:hover .hero-tabs__play-button {
    transform: scale(1.1);
}

.hero-tabs__play-button svg {
    display: block;
}

.hero-tabs__panel-description {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    color: #192966;
    font-size: 22px;
    margin-bottom: 1.5rem;
}

.hero-tabs__panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-tabs__panel-list li {
    font-family: 'Jost', sans-serif;
    color: #192966;
    font-size: 22px;
    line-height: 25px;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.hero-tabs__panel-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1ACCC8;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Scroll Indicators for Mobile */
.hero-tabs__nav-wrapper::before,
.hero-tabs__nav-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-tabs__nav-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #E8EBF0, transparent);
    border-radius: 50px 0 0 50px;
}

.hero-tabs__nav-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #E8EBF0, transparent);
    border-radius: 0 50px 50px 0;
}

.hero-tabs__nav-wrapper.can-scroll-left::before {
    opacity: 1;
}

.hero-tabs__nav-wrapper.can-scroll-right::after {
    opacity: 1;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .hero-tabs {
        padding: 1.75rem;
    }

    .hero-tabs__nav-item {
        flex: 1 1 0;
        min-width: 130px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero-tabs__panel-content {
        padding: 1.5rem;
    }

    .hero-tabs__panel-title {
        font-size: 1.5rem;
    }

    .hero-tabs__panel-description {
        font-size: 1rem;
    }

    .hero-tabs__panel-content--split {
        gap: 2rem;
    }

    .hero-tabs__panel-image {
        min-height: 300px;
    }

    .hero-tabs__video-wrapper {
        max-width: 100%;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-tabs {
        margin-bottom: 2rem;
        padding: 1.5rem;
        border-radius: 20px;
    }

    .hero-tabs__nav-wrapper {
        margin-bottom: 1.5rem;
    }

    .hero-tabs__nav {
        gap: 0.375rem;
        padding: 0.375rem;
        border-radius: 50px;
    }

    .hero-tabs__nav-item {
        flex: 1 1 0;
        min-width: 120px;
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        border-radius: 50px;
    }

    .hero-tabs__content {
        min-height: 150px;
    }

    .hero-tabs__panel-content {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .hero-tabs__panel-title {
        font-size: 1.35rem;
        margin-bottom: 0.875rem;
    }

    .hero-tabs__panel-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .hero-tabs__panel-list li {
        font-size: 0.9rem;
        margin-bottom: 0.625rem;
    }

    .hero-tabs__panel-content--split {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-tabs__panel-image {
        min-height: 250px;
        width: 100%;
    }

    .hero-tabs__video-wrapper {
        max-width: 100%;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero-tabs {
        padding: 1rem;
        border-radius: 16px;
    }

    .hero-tabs__nav {
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .hero-tabs__nav-item {
        flex: 1 1 0;
        min-width: 100px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .hero-tabs__panel-content {
        padding: 1rem;
    }

    .hero-tabs__panel-title {
        font-size: 1.25rem;
    }

    .hero-tabs__panel-description {
        font-size: 0.9rem;
    }

    .hero-tabs__panel-list li {
        font-size: 0.85rem;
    }

    .hero-tabs__panel-image {
        min-height: 220px;
    }

    .hero-tabs__video-wrapper {
        max-width: 100%;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .hero-tabs__nav-item {
        min-height: 44px; /* Touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-tabs__nav-item:active {
        transform: scale(0.98);
    }
}

/* Accessibility */
.hero-tabs__nav-item:focus {
    outline: 2px solid rgba(26, 204, 200, 0.6);
    outline-offset: 2px;
}

.hero-tabs__nav-item:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-tabs__nav-item,
    .hero-tabs__panel {
        transition: none;
        animation: none;
    }

    .hero-tabs__nav {
        scroll-behavior: auto;
    }
}

/* control torn */
.section-torn--secondary {
    padding-block: 13vw;
    margin-block: -11vw -10vw;
}

@media (max-width: 1400px) {
    .section-torn--secondary {
        padding-block: 13vw;
        margin-block: -11vw -20vw;
    }
}
