:root {
    --ta-primary: var(--site-main-color, #1D4E89);
    --ta-radius: 28px;
}

/* ================= GENERAL ================= */
* {
    box-sizing: border-box;
}

/* ================= TABS ================= */
.ta-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    background: #f0f2f7;
    border-radius: 18px;
    padding: 7px;
    margin-bottom: 35px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    border: 1px solid #e2e6ee;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
}
.ta-tabs::-webkit-scrollbar {
    height: 4px;
}
.ta-tabs::-webkit-scrollbar-track {
    background: transparent;
}
.ta-tabs::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
}
.ta-tab-btn {
    border: none;
    background: transparent;
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 20px 9px 14px;
    color: #888;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* dot before each tab */
.ta-tab-btn::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.ta-tab-btn:hover {
    color: var(--ta-primary);
    background: rgba(var(--site-main-color-rgb, 29, 78, 137), 0.07);
}
.ta-tab-btn:hover::before {
    background: rgba(var(--site-main-color-rgb, 29, 78, 137), 0.45);
}
.ta-tab-btn.ta-active {
    color: #fff;
    font-weight: 700;
    background: var(--ta-primary);
    box-shadow: 0 4px 16px rgba(var(--site-main-color-rgb, 29, 78, 137), 0.38),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
/* glowing white dot on active */
.ta-tab-btn.ta-active::before {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* ================= SLIDER BOX ================= */
.ta-slider-box {
    position: relative;
    width: 75%;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden; /* important to keep content inside */
}

/* Gradient border */
.ta-slider-box::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 7px; /* border width */
    border-radius: 20px;
    background: linear-gradient(
        to bottom,
        rgba(var(--site-main-color-rgb, 29, 78, 137), 0.15) 0%,
        rgba(var(--site-main-color-rgb, 29, 78, 137), 0.4) 35%,
        rgba(var(--site-main-color-rgb, 29, 78, 137), 1) 55%,
        rgba(var(--site-main-color-rgb, 29, 78, 137), 1) 100%
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

/* ================= TRACKS ================= */
.ta-slider-viewport {
    overflow: hidden; /* hide overflow */
    width: 100%;
    transition: height 0.4s ease;
}
.ta-slider-track {
    display: none;
    transition: transform 0.6s ease;
    opacity: 0;
    pointer-events: none;
}
.ta-slider-track.ta-active {
    display: flex;
    align-items: flex-start;
    opacity: 1;
    pointer-events: auto;
}
.ta-slide-item {
    width: 100%;
    flex-shrink: 0;
    align-items: center;
}

/* Remove Bootstrap row/col gutters inside slide */
.ta-slide-item .row {
    margin-left: 0;
    margin-right: 0;
}
.ta-slide-video {
    padding-left: 0;
    padding-right: 0;
}

/* ================= CONTENT ================= */
.ta-slide-content h2 {
    color: var(--ta-primary);
    margin-bottom: 15px;
}
.ta-slide-content p {
    color: #555;
}
.ta-slide-content ul {
    padding-left: 18px;
}
.ta-slide-content ul li {
    margin-bottom: 8px;
}

/* ================= VIDEO ================= */
.ta-slide-video {
    display: flex;
    justify-content: center;
    align-items: center;
}
.ta-slide-video video {
    max-width: 100%;
    border-radius: 18px;
}

/* ================= ARROWS ================= */
.ta-slider-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.ta-nav-arrow {
    background: #fff;
    border: 3px solid var(--ta-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 22px;
    color: var(--ta-primary);
    user-select: none;
    box-shadow: 0 6px 14px rgba(var(--site-main-color-rgb, 29, 78, 137), 0.2);
}

/* Disabled arrows */
.ta-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ================= DEVICE FRAME ================= */
.device-frame {
    position: relative;
    margin: 0 auto;
    display: inline-block;
}

/* ── MOBILE — CSS frame (portrait) ── */
.device-mobile {
    background: #1c1c1e;
    border-radius: 36px;
    padding: 2px 5px 5px 5px;
    box-shadow:
        0 0 0 0px #4a4a4c,
        0 0 0 0px #0d0d0f,
        0 0 0 0px rgba(0, 0, 0, 0.45);
    width: 240px;
}
/* Camera dot at top */
/* .device-mobile::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #252528;
    box-shadow: 0 0 0 2px #3a3a3c;
} */
/* Home bar at bottom */
/* .device-mobile::after {
    content: '';
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 3px;
    background: #3a3a3c;
    border-radius: 2px;
} */
.device-mobile .device-screen {
    border-radius: 33px;
    overflow: hidden;
    background: #000;
    line-height: 0;
}

/* ── BUTTONS BASE ── */
.device-btn {
    position: absolute;
    background: #3a3a3c;
    border-radius: 2px;
}

/* ── MOBILE buttons — vertical on left/right sides ── */
.device-mobile .device-vol-up {
    left: -4px;
    top: 22%;
    width: 4px;
    height: 28px;
}
.device-mobile .device-vol-down {
    left: -4px;
    top: 36%;
    width: 4px;
    height: 28px;
}
.device-mobile .device-power {
    right: -4px;
    top: 28%;
    width: 4px;
    height: 42px;
}

/* ── TABLET buttons — horizontal on top edge ── */
.device-tablet .device-vol-up {
    top: -4px;
    right: 86%;
    width: 28px;
    height: 4px;
}
.device-tablet .device-vol-down {
    top: -4px;
    right: 92%;
    width: 28px;
    height: 4px;
}
.device-tablet .device-power {
    /* top: -4px;
    left: 18%;
    width: 42px;
    height: 4px; */
    left: -4px;
    top: 10%;
    width: 4px;
    height: 28px;
}

/* SVG overlay hidden always (no longer used) */
.device-frame-overlay {
    display: none;
}

/* ── TABLET — CSS frame (landscape) ── */
.device-tablet {
    background: #1c1c1e;
    border-radius: 22px;
    padding: 3px 5px;
    box-shadow:
        0 0 0 0px #4a4a4c,
        0 0 0 0px #0d0d0f,
        0 0 0 0px rgba(0, 0, 0, 0.45);
    width: 100%;
}
/* .device-tablet::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #252528;
    box-shadow: 0 0 0 2px #3a3a3c;
} */
/* .device-tablet::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 3px;
    background: #3a3a3c;
    border-radius: 2px;
} */
.device-tablet .device-screen {
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    line-height: 0;
}

/* VIDEO inside any device frame */
.device-screen .section-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 17px;
    box-shadow: none;
    max-height: none;
}

/* MAIN FIX — video outside frame (fallback) */
.section-video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ================= MOBILE MID (500–700px) ================= */
@media (min-width: 500px) and (max-width: 700px) {
    .ta-slide-video:has(.device-tablet) {
        height: 230px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .device-tablet {
        height: 100%;
        width: 100%;
    }
    .device-tablet .device-screen {
        height: 100%;
    }
    .device-tablet .device-screen .section-video {
        width: 100%;
        height: 100%;
        object-fit: fill;
        display: block;
    }
    .device-tablet .device-vol-up {
        top: -4px;
        right: 83%;
        width: 28px;
        height: 4px;
    }
    .device-tablet .device-vol-down {
        top: -4px;
        right: 70%;
        width: 28px;
        height: 4px;
    }
    .device-tablet .device-power {
        left: -4px;
        top: 10%;
        width: 4px;
        height: 28px;
    }
}

/* ================= MOBILE PORTRAIT ================= */
@media (max-width: 768px) {

    .ta-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
        border-radius: 14px;
        padding: 6px;
    }

    .ta-slider-box {
        width: 100%;
        padding: 20px;
    }

    .ta-slide-video {
        order: -1;
    }

    /* Landscape video (device-tablet class set by JS) — fixed height + fill */
    .ta-slide-video:has(.device-tablet) {
        height: 230px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .device-tablet {
        height: 100%;
        width: 100%;
    }
    .device-tablet .device-screen {
        height: 100%;
    }
    .device-tablet .device-screen .section-video {
        width: 100%;
        height: 100%;
        object-fit: fill;
        display: block;
    }
    .device-tablet .device-vol-up {
        top: -4px;
        right: 83%;
        width: 28px;
        height: 4px;
    }
    .device-tablet .device-vol-down {
        top: -4px;
        right: 70%;
        width: 28px;
        height: 4px;
    }
    .device-tablet .device-power {
        left: -4px;
        top: 10%;
        width: 4px;
        height: 28px;
    }

    .ta-slide-item {
        flex-direction: column;
        gap: 15px;
    }

    .ta-arrow-left { left: -20px; }
    .ta-arrow-right { right: -20px; }

    .ta-slide-video video {
        max-width: 100%;
    }
}

/* ================= MOBILE LANDSCAPE ================= */
@media (max-width: 900px) and (orientation: landscape) {

    .ta-slider-box {
        width: 100%;
        padding: 15px 20px;
    }

    .ta-slide-item {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .ta-slide-content {
        flex: 1;
    }

    .ta-slide-video {
        flex: 1;
    }

    .ta-slide-video video,
    .section-video {
        max-width: 100%;
        max-height: 200px;
        width: auto;
        border-radius: 12px;
    }

    .ta-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
        border-radius: 14px;
        padding: 6px;
        margin-bottom: 15px;
    }

    .ta-slider-arrows {
        margin-top: 12px;
    }
}

h4{
    font-size: 10px;
}
