/*
Theme Name: TensorAct Theme
Theme URI: https://tensoract.com
Description: A modern, minimal WordPress theme for TensorAct - data annotation platform with Tailwind CSS
Author: TensorAct Team
Author URI: https://tensoract.com
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tensor-act-theme
Domain Path: /languages
*/

/* ========================================
   FONT IMPORTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500&family=Neue+Montreal:wght@500&display=swap');

/* ========================================
   CSS VARIABLES - Brand Colors & Theme
   ======================================== */
:root {
    --primary-color: #785dff;
    --primary-dark: #6245d8;
    --primary-light: #9b8fd9;
    --text-primary: #15100d;
    --text-secondary: #666666;
    --text-muted: rgba(21, 16, 13, 0.75);
    --bg-light: #f5efec;
    --bg-white: #ffffff;
    --bg-dark: #1f1a16;
    --bg-card: #faf8f5;
    --border-light: #e8ddd3;
    --border-subtle: rgba(31, 26, 22, 0.25);
    --accent: #877ccf;
    --accent-light: #e6ddee;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    line-height: 1.6;
    font-size: 16px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Neue Montreal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.75rem;
    }
}

h2 {
    font-size: 2rem;
}

@media (min-width: 768px) {
    h2 {
        font-size: 3rem;
    }
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   CUSTOM COLOR & UTILITY CLASSES
   ======================================== */

/* Background Colors */
.bg-primary {
    background-color: var(--primary-color);
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

.bg-primary-light {
    background-color: var(--primary-light);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.bg-card {
    background-color: var(--bg-card);
}

.bg-accent-light {
    background-color: var(--accent-light);
}

/* Text Colors */
.text-primary {
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-white {
    color: #ffffff;
}

.text-primary-color {
    color: var(--primary-color);
}

/* Border Colors */
.border-light {
    border-color: var(--border-light);
}

.border-subtle {
    border-color: var(--border-subtle);
}

/* ========================================
   BUTTON STYLES
   ======================================== */
button,
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(120, 93, 255, 0.3);
}

.btn-secondary {
    background-color: rgba(120, 93, 255, 0.05);
    border: 1px solid rgba(120, 93, 255, 0.15);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(120, 93, 255, 0.1);
}

.btn-outline {
    border: 2px solid white;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   SPACING UTILITIES
   ======================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 4rem;
    }
}

/* Padding */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Margins */
.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   LAYOUT & DISPLAY
   ======================================== */
.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-12 {
    gap: 3rem;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 767px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RESPONSIVE VISIBILITY
   ======================================== */
.hidden {
    display: none;
}

.md\:flex {
    display: flex;
}

.md\:grid {
    display: grid;
}

@media (max-width: 767px) {

    .md\:flex,
    .md\:grid,
    .md\:px-16 {
        display: none;
    }
}

/* ========================================
   BORDER & SHADOW STYLES
   ======================================== */
.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border: 1px solid var(--border-light);
}

.border-t {
    border-top: 1px solid var(--border-light);
}

.border-b {
    border-bottom: 1px solid var(--border-light);
}

.shadow-lg {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ========================================
   OPACITY & TRANSITIONS
   ======================================== */
.opacity-5 {
    opacity: 0.05;
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-50 {
    opacity: 0.5;
}

.transition {
    transition: all 0.3s ease;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover\:text-white:hover {
    color: white;
}

/* ========================================
   WORDPRESS CORE CLASSES
   ======================================== */
.wp-block-image {
    margin: 1.5rem 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wp-caption {
    margin: 1rem 0;
}

.wp-smiley {
    display: inline-block;
    margin: 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* ========================================
   GRADIENTS
   ======================================== */
.bg-gradient-to-r {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
}

.bg-gradient-to-br {
    background: linear-gradient(135deg, rgba(120, 93, 255, 0.05) 0%, transparent 100%);
}

/* ========================================
   FORMS
   ======================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

input::placeholder,
textarea::placeholder {
    color: rgba(21, 16, 13, 0.5);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(120, 93, 255, 0.1);
}

/* ========================================
   MEDIA QUERIES
   ======================================== */
@media (max-width: 639px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }

    .sm\:gap-4 {
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:grid {
        display: grid;
    }

    .md\:px-16 {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .md\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .md\:gap-4 {
        gap: 1rem;
    }

    .md\:mb-24 {
        margin-bottom: 6rem;
    }

    .md\:mb-32 {
        margin-bottom: 8rem;
    }

    .md\:scale-105 {
        transform: scale(1.05);
    }
}

@media (min-width: 1024px) {
    .lg\:flex-row {
        flex-direction: row;
    }

    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:gap-12 {
        gap: 3rem;
    }
}

/* ========================================
   CAROUSEL STYLING - REUSABLE COMPONENTS
   ======================================== */

/* Container to center carousel items */
.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Main carousel item box styling */
.carousel-item-box {
    background-color: transparent;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: 1000px;
    height: 496px;
    max-width: 100%;
    gap: 6px;
    opacity: 1;
    transform: rotate(0deg);
}

/* Left column in carousel */
.carousel-left-col {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-light);
}

/* Right column in carousel */
.carousel-right-col {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient wrapper for carousel images */
.carousel-image-wrapper {
    background: linear-gradient(135deg, #9b8fd9 0%, #7a6fc4 100%);
    width: 100%;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    box-shadow: 0 8px 24px rgba(122, 111, 196, 0.15);
}

/* Decorative corner markers */
.corner-marker {
    position: absolute;
    color: #d4ccc2;
    font-size: 12px;
}

.corner-marker.top-left {
    top: -8px;
    left: -8px;
}

.corner-marker.top-right {
    top: -8px;
    right: -8px;
}

.corner-marker.bottom-left {
    bottom: -8px;
    left: -8px;
}

.corner-marker.bottom-right {
    bottom: -8px;
    right: -8px;
}

/* Carousel tab buttons container */
.carousel-tabs-container {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    background-color: #EAE5E3;
    padding: 4px;
    border-radius: 10px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border-color: #2D2D2D;
    border: 1px;
}

/* ========================================
   DATA CAROUSEL - IMAGE STYLING
   ======================================== */
.data-carousel-image {
    width: 497px;
    height: 496px;
    border-radius: 6px;
    opacity: 1;
    transform: rotate(0deg);
    object-fit: cover;
}


/* ========================================================================= */
/* REUSABLE CATEGORY FILTER / NAV STYLES                                     */
/* ========================================================================= */

/* Desktop Pill Container Styling */
.blog-pill-bar {
    width: 73.5%;
    padding: 4px;
    background-color: rgba(28, 49, 46, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
/* ==========================================================================
   BLOG PAGE CUSTOM STYLES
   ========================================================================== */

/* Base Desktop Button Styles */
.blog-pill-bar .category-btn {
    padding: 8px 16px;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    border-radius: 8px;
    min-width: 180px;
    text-align: center;
    color: rgba(21, 16, 13, 0.7);
    transition: all 0.2s ease-in-out;
    background: transparent;
    border: none;
    cursor: pointer;
}

.blog-pill-bar .category-btn:hover {
    color: rgba(21, 16, 13, 1);
}

/* Active Highlighted Desktop State */
.blog-pill-bar .category-btn.active {
    background-color: #785DFF;
    color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Mobile Dropdown Layout Wrapper */
.blog-dropdown-wrapper {
    max-width: 260px;
}

/* Mobile Dropdown Trigger Button */
.blog-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #785DFF;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.blog-dropdown-trigger:hover {
    background-color: #6346eb;
}

/* Mobile Dropdown Flyout Card Wrapper */
.blog-dropdown-menu {
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 40;
}

/* Mobile Item Buttons inside panel */
.blog-dropdown-menu .mobile-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    font-size: 0.875rem;
    color: rgba(21, 16, 13, 0.8);
    background-color: transparent;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.blog-dropdown-menu .mobile-menu-item:hover {
    background-color: #f9fafb; /* gray-50 */
}

/* Active Highlighted Mobile State */
.blog-dropdown-menu .mobile-menu-item.active {
    background-color: #f9fafb; /* gray-50 */
    color: #15100D;
    font-weight: 600;
}

/* ==========================================================================
   MOBILE CAROUSEL / SLIDER STYLES (MISSING PREVIOUSLY)
   ========================================================================== */

.mobile-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.mobile-slider-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.mobile-slider-slide {
    width: 100%;
    flex-shrink: 0;
}

/* Dots Navigation */
.mobile-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: rgba(21, 16, 13, 0.2);
    transition: all 0.2s ease;
}

.mobile-dot.active {
    width: 20px;
    background-color: #785DFF;
}

/* Navigation Buttons */
.mobile-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid rgba(135, 124, 207, 0.3);
    background-color: #ffffff;
    color: #15100D;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mobile-nav-btn:hover:not(:disabled) {
    background-color: #785DFF;
    color: #ffffff;
    border-color: #785DFF;
}

.mobile-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ========================================================================= */
/* MOBILE NAVIGATION AND HAMBURGER COMPONENT STYLES                         */
/* ========================================================================= */

/* Round Soft-Purple Hamburger Square Block UI Container */
/* ========================================================================= */
/* MOBILE HAMBURGER CORRECTION STYLES                                        */
/* ========================================================================= */

.custom-mobile-hamburger-btn {
    width: 48px;
    height: 48px;
    background-color: #785DFF;
    color: #ffffff;
    border-radius: 12px;
    display: inline-flex;
    /* Ensures correct baseline math */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(120, 93, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Force the SVG child element to strictly remain centered with no horizontal drift */
.custom-mobile-hamburger-btn .svg-icon {
    display: block;
    margin: 0 auto;
}

/* Adjust transform vectors slightly to match the longer paths cleanly when open */
.custom-mobile-hamburger-btn.active .line-1 {
    transform: translateY(6px) rotate(45deg);
}

.custom-mobile-hamburger-btn.active .line-2 {
    opacity: 0;
}

.custom-mobile-hamburger-btn.active .line-3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Full Width Mobile Menu Drawer Setup Stack */
.mobile-nav-drawer-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-drawer-menu:not(.-translate-y-full) {
    transform: translateY(0);
}

/* ========================================================================= */
/* WIREFRAME MOBILE CAROUSEL STYLES                                          */
/* ========================================================================= */

.mobile-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.mobile-slider-track {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.mobile-slider-slide {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 440px;
}

/* Pagination Control Dots Track */
.mobile-dot {
    height: 8px;
    width: 8px;
    border-radius: 9999px;
    background-color: rgba(120, 93, 255, 0.2);
    transition: all 0.3s ease;
}

.mobile-dot.active {
    width: 40px;
    background-color: #785DFF;
}

/* Navigation Arrow Trigger Elements */
.mobile-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: #785DFF;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-nav-btn:active {
    transform: scale(0.95);
}

.mobile-nav-btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Feature Carousel Inner Elements styling */
.carousel-left-col .carousel-meta {
    color: #785dff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: block;
    margin-top: -36%;
}

.carousel-left-col .carousel-heading {
    color: #15100d;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
}

.carousel-left-col .carousel-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================================
   TENSORACT HOME PAGE — MOBILE RESPONSIVE OVERRIDES
   Paste this block at the END of your style.css.
   Everything here is scoped to max-width queries, so desktop (1440px) is untouched.
   ========================================================================= */

/* ---------- Global safety net ---------- */
@media (max-width: 767px) {

    body,
    .site-main {
        overflow-x: hidden;
    }
}

/* =========================================================================
   HERO SECTION — MOBILE (390px target)
   Uses the exact container spec provided: padding 48px 16px, column flex,
   centered, 24px gap. Height is intentionally NOT forced — Figma's
   1087.9357px is a snapshot of that specific content/font rendering, and
   hard-coding it would clip real content on slightly narrower/wider phones
   (375px, 393px, etc.) or if translations change text length. If you need
   it forced for a pixel audit, uncomment the min-height line below.
   ========================================================================= */
@media (max-width: 767px) {

    /* Failsafe: something outside this stylesheet appears to be hiding the
       hero section below 768px (a stray "hidden md:block" wrapper, a
       page-builder "hide on mobile" toggle, or stale cached CSS). This
       forcibly overrides display/visibility/opacity/height so the section
       renders regardless. If it STILL doesn't show, the conflicting rule
       is also !important with equal-or-higher specificity — inspect the
       element in devtools and send me the winning selector/file so I can
       target it directly instead of guessing. */
    .hero-section {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 48px 16px !important;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        align-self: stretch;
        width: 100%;
        /* min-height: 1087.9357px; */
    }

    .hero-inner>div {
        margin-bottom: 0 !important;
    }

    .hero-cta-row button {
        flex: 0 1 auto;
    }
}

/* ---------- Logo grid (Trusted by teams...) ---------- */
@media (max-width: 640px) {
    .logo-grid {
        column-gap: 1.5rem;
        row-gap: 1rem;
    }
}

/* =========================================================================
   WHY TENSORACT — RESPONSIVE INTEGRATIONS
   ========================================================================= */

/* Core Functional State Engine Rules */
.carousel-item.active-slide {
    display: grid !important;
}

.carousel-item.hidden-slide {
    display: none !important;
}

/* Desktop Pill Bar Elements Style Definitions */
.desktop-tab-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    background-color: transparent;
    color: #4b5563;
    transition: all 0.2s ease-in-out;
}

.desktop-tab-btn.active {
    background-color: #785dff;
    color: #ffffff;
}

/* Base structural adjustments for Mobile Viewports (< 768px) */
@media (max-width: 767px) {
    .container-wireframe-wrapper {
        height: auto !important;
        min-height: 520px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Stack visual media items on top of text components */
    .carousel-item.active-slide {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        width: 100% !important;
    }

    .carousel-left-col {
        order: 2 !important;
        width: 100% !important;
        padding: 24px 20px 32px 20px !important;
        text-align: left !important;
    }

    .carousel-right-col {
        order: 1 !important;
        width: 100% !important;
        padding: 28px 20px 12px 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .carousel-image-wrapper {
        width: 100% !important;
        max-height: 240px !important;
    }

    .data-carousel-image {
        width: 100% !important;
        max-height: 230px !important;
        object-fit: contain !important;
    }

    .carousel-meta {
        font-size: 12px !important;
        letter-spacing: 0.075em !important;
    }

    .carousel-heading {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-top: 8px !important;
        font-weight: 700 !important;
    }

    .carousel-description {
        font-size: 14px !important;
        line-height: 1.5 !important;
        color: rgba(21, 16, 13, 0.7) !important;
    }

    /* Target UI elements matching requirements for the 390px spec layout graphic */
    .mobile-carousel-controls {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .mobile-action-nav-arrow {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        background-color: #9880ff !important;
        color: #ffffff !important;
        border-radius: 8px !important;
        transition: background-color 0.2s ease;
        flex-shrink: 0 !important;
    }

    .mobile-action-nav-arrow:active {
        background-color: #785dff !important;
    }

    .mobile-active-indicator-pill {
        display: block !important;
        width: 100% !important;
        padding: 10px 16px !important;
        background-color: #836aff !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        border-radius: 10px !important;
        text-align: center !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
        border: 2px solid #cac7c6 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* =========================================================================
   EVERY DATA TYPE SECTION
   ========================================================================= */
@media (max-width: 767px) {
    .data-type-tabs {
        max-width: 100%;
    }

    .tab-content.why-carousel-item-box {
        height: auto !important;
        min-height: 0 !important;
    }

    /* Force image on top, text on bottom for mobile carousel items */
    .why-carousel-item-box {
        flex-direction: column-reverse !important;
    }

    /* Ensure both components span the full width of the 358px container */
    .why-carousel-item-box>div {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ensure the image scales properly up to full container width */
    .why-data-carousel-image {
        width: 100% !important;
        object-fit: contain;
        /* Replaced margin-bottom with margin-top since text is now below the image */
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    /* Hide desktop tabs */
    .why-data-type-tabs.hidden.md:flex {
        display: none !important;
    }
}

/* =========================================================================
   HOW IT WORKS SECTION (Orange block Carousel)
   ========================================================================= */
@media (max-width: 767px) {
    .how-it-works-section {
        min-height: 0 !important;
        padding-top: 48px;
        padding-bottom: 48px;
        width: 100% !important;
    }

    /* Center layout elements correctly */
    .how-it-works-section>div.max-w-\[83\.3\%\] {
        max-width: 100% !important;
        width: 100% !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        gap: 1.5rem !important;
    }

    /* Optimize header text scaling for mobile */
    .how-it-works-section h2 {
        font-size: 1.875rem !important;
        line-height: 1.35 !important;
        padding-left: 8px;
        padding-right: 8px;
    }

    .how-it-works-section p.text-white\/80 {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Mobile Carousel Wrapper Setup */
    .how-it-works-section .grid {
        max-width: 358px !important;
        width: 100% !important;
        display: block !important;
        /* Switch from grid layout on mobile */
    }

    /* Handle hiding/showing cards */
    .how-step-box {
        width: 100% !important;
        max-width: 358px !important;
        height: auto !important;
        min-height: 244px !important;
        padding: 24px !important;
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column !important;
    }

    /* Class added by JS to show the current active block */
    .how-step-box.active-mobile-step {
        display: flex !important;
    }

    .how-step-box h3 {
        font-size: 1.125rem !important;
    }

    .how-step-box p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
}

/* ==========================================================================
   Desktop Layout Restoration (Min-width: 769px)
   ========================================================================== */
@media screen and (min-width: 769px) {

    /* Provide a dedicated structural height for desktop so absolute assets do not collapse it */
    .usecase-section {
        min-height: 720px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .usecase-inner {
        min-height: 600px !important;
    }
}

/* ==========================================================================
   Mobile Responsive Adjustments (Max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* Define fixed 798px layout frame and background color canvas override */
    .usecase-section {
        height: 798px !important;
        min-height: 798px !important;
        max-height: 798px !important;
        padding: 0 !important;
        background-color: #F8F5F2 !important;
        background-image: none !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Bounding Inner Container with the 80px x 16px padding layout requirement */
    .usecase-inner {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        padding: 80px 16px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        z-index: 20 !important;
    }

    /* Core typography container alignment properties */
    .usecase-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        height: 100% !important;
        justify-content: space-between !important;
        position: relative !important;
        z-index: 30 !important;
    }

    .usecase-text-block {
        order: 1 !important;
        margin-top: auto !important;
        margin-bottom: auto !important;
    }

    /* Keep navigation wrapper strictly safe and on top */
    .usecase-nav-wrapper {
        order: 2 !important;
        margin-top: auto !important;
        width: 100% !important;
        z-index: 50 !important;
        position: relative !important;
        padding-bottom: 10px !important;
    }

    /* Text elements scale structure matching layout specifications */
    #carousel-title {
        font-size: 24px !important;
        line-height: 120% !important;
        font-weight: 700 !important;
        color: #121417 !important;
        padding: 0 4px !important;
    }

    #carousel-desc {
        font-size: 15px !important;
        line-height: 145% !important;
        color: #6C727A !important;
        padding: 12px 12px 18px 12px !important;
    }

    /* Badge Pills Grid Wrap Formatting */
    #carousel-badges {
        max-width: 320px;
        margin: 0 auto;
        gap: 8px 6px !important;
    }

    #carousel-badges span {
        background-color: #EDE9FE !important;
        color: #7C3AED !important;
        font-size: 13px !important;
        padding: 6px 14px !important;
        border-radius: 8px !important;
        font-weight: 500 !important;
    }

    /* Navigation component display configurations */
    .usecase-tabs-pill {
        border-radius: 24px !important;
        padding: 6px !important;
        background: #F0EBE6 !important;
        box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.04) !important;
        border: 2px solid #E5DEC9 !important;
        max-width: 180px !important;
        height: auto !important;
        justify-content: center !important;
    }

    .usecase-tabs-pill button {
        display: none !important;
    }

    .usecase-tabs-pill button[class*="bg-[#785DFF]"] {
        display: flex !important;
        width: 100% !important;
        border-radius: 18px !important;
        padding: 8px 16px !important;
        box-shadow: 0px 4px 12px rgba(120, 93, 255, 0.2) !important;
    }

    /* Absolute context layer mapping */
    #img-top-left,
    #img-top-right,
    #img-far-right,
    #img-mid-left-sm,
    #img-bottom-left,
    #img-bottom-right {
        display: block !important;
        position: absolute !important;
        opacity: 1 !important;
        z-index: 10 !important;
    }

    #img-far-left {
        display: none !important;
    }

    /* Image 2763: Top Left */
    #img-top-left {
        width: 90px !important;
        height: 115px !important;
        left: 16px !important;
        top: 45px !important;
    }

    /* Image 2764: Top Right */
    #img-top-right {
        width: 110px !important;
        height: 140px !important;
        left: auto !important;
        right: 16px !important;
        top: 35px !important;
    }

    /* Image 2765: Far Right Edge Peek */
    #img-far-right {
        width: 32px !important;
        height: 65px !important;
        left: auto !important;
        right: 0px !important;
        top: 240px !important;
        border-top-left-radius: 8px !important;
        border-bottom-left-radius: 8px !important;
        opacity: 0.6 !important;
    }

    /* Image 2769: Mid Floating Fragment */
    #img-mid-left-sm {
        width: 45px !important;
        height: 45px !important;
        left: 24px !important;
        top: 420px !important;
        opacity: 0.7 !important;
    }

    /* Image 2767: Bottom Left - Tucked up high into the text gutters so it never crashes into the row layout below */
    #img-bottom-left {
        width: 95px !important;
        height: 120px !important;
        left: 12px !important;
        top: 475px !important;
    }

    /* Image 2766: Bottom Right - Tucked up high into the text gutters so it never crashes into the row layout below */
    #img-bottom-right {
        width: 80px !important;
        height: 100px !important;
        left: auto !important;
        right: 16px !important;
        top: 485px !important;
    }
}

/* ==========================================================================
   Mobile Responsive Structural Overrides (Max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* Main carousel dynamic sliding track setting */
    .mobile-carousel-container {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        gap: 0 !important;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Hide standard horizontal system scrollbar elements gracefully */
    .mobile-carousel-container::-webkit-scrollbar {
        display: none;
    }

    .mobile-carousel-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Isolate card boundaries to perfectly align with layout wireframes */
    .pricing-card-wp {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Progress pill adjustments */
    .indicator-pill {
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    }
}


/* ==========================================================================
   Mobile Responsive Adjustments For About us (Max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* Define fixed 798px layout frame and background color canvas override */
    .about-usecase-section {
        height: 798px !important;
        min-height: 798px !important;
        max-height: 798px !important;
        padding: 0 !important;
        background-color: #F8F5F2 !important;
        background-image: none !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Bounding Inner Container with the 80px x 16px padding layout requirement */
    .about-usecase-inner {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        padding: 80px 16px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        z-index: 20 !important;
    }

    /* Core typography container alignment properties */
    .about-usecase-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        height: 100% !important;
        justify-content: space-between !important;
        position: relative !important;
        z-index: 30 !important;
    }

    .about-usecase-text-block {
        order: 1 !important;
        margin-top: auto !important;
        margin-bottom: auto !important;
    }

    /* Keep navigation wrapper strictly safe and on top */
    .about-usecase-nav-wrapper {
        order: 2 !important;
        margin-top: auto !important;
        width: 100% !important;
        z-index: 50 !important;
        position: relative !important;
        padding-bottom: 10px !important;
    }

    /* Text elements scale structure matching layout specifications */
    #about-carousel-title {
        font-size: 36px !important;
        line-height: 110% !important;
        font-weight: 500 !important;
        font-style: normal;
        color: #FFFFFF !important;
        padding: 0 4px !important;
        color: #FFF;
        text-align: center;
        /* 39.6px */
        letter-spacing: -0.36px;
        margin-bottom: 24px;
    }

    #about-carousel-desc {
        font-size: 18px !important;
        line-height: 145% !important;
        color: #FFFFFF/70 !important;
        padding: 0px 16px !important;
        line-height: 150%;
        font-weight: 500 !important;

    }

    /* Absolute context layer mapping */
    #about-img-top-left,
    #about-img-top-right,
    #about-img-far-right,
    #about-img-mid-left-sm,
    #about-img-bottom-left,
    #about-img-bottom-right {
        display: block !important;
        position: absolute !important;
        opacity: 1 !important;
        z-index: 10 !important;
    }

    #about-img-far-left {
        display: none !important;
    }

    /* Image 2763: Top Left */
    #about-img-top-left {
        width: 106px !important;
        height: 138px !important;
        left: 25.3px !important;
        top: 93px !important;
        border-radius : 0px !important;
    }

    /* Image 2764: Top Right */
    #about-img-top-right {
        width: 127px !important;
        height: 166px !important;
        left: auto !important;
        right: -31.406px !important;
        top: 38.5px !important;
        border-radius : 0px !important;
    }

    /* Image 2765: Far Right Edge Peek */
    #about-img-far-right {
        width: 53px !important;
        height: 69px !important;
        left: auto !important;
        right: 0px !important;
        top: 255px !important;
        border-top-left-radius: 8px !important;
        border-bottom-left-radius: 8px !important;
        opacity: 0.25 !important;
    }

    /* Image 2769: Mid Floating Fragment */
    #about-img-mid-left-sm {
        width: 53px !important;
        height: 68px !important;
        left: 141px !important;
        bottom: 160px !important;
        opacity: 0.25 !important;
        position: absolute;
    }

    /* Image 2767: Bottom Left - Tucked up high into the text gutters so it never crashes into the row layout below */
    #about-img-bottom-left {
        width: 113px !important;
        height: 147px !important;
        position: absolute !important;
        left: 15px !important;
        bottom: 26px !important;
    }

    /* Image 2766: Bottom Right - Tucked up high into the text gutters so it never crashes into the row layout below */
    #about-img-bottom-right {
        width: 89px !important;
        height: 116px !important;
        left: auto !important;
        right: 14.25px !important;
        position: absolute;
        bottom: 93.31px !important;
    }
}

/* ==========================================================================
   Mobile Responsive Adjustments (Max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* Hide scrollbars for native touch swiping */
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }
    .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Carousel Snap Track on Mobile */
    .culture-cards-wrapper {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    /* Force single card visibility per view on mobile */
    .culture-card {
        scroll-snap-align: center;
        flex: 0 0 100%;
    }
}
