/* =================================================================
   HORIZONTAL SCROLL CARDS - Dr. Mia Services
   ================================================================= */
#ai_body .horizontal-scroll-section {
    position: relative;
    background: #0a0a0a;
    overflow: hidden;
}

#ai_body .pin-wrapper {
    overflow-x: hidden;
}

#ai_body .cards-inner {
    position: relative;
    height: calc(100vh - var(--header-height, 0px));
}

/* Each card positioned absolutely */
#ai_body .horizontal-card {
    position: absolute;
    top: 0;
    width: 100vw;
    height: calc(100vh - var(--header-height, 0px));
    display: flex;
    flex-direction: row;
}

#ai_body .horizontal-card[data-card="0"] {
    left: 0;
    width: 100vw;
}

#ai_body .horizontal-card[data-card="1"] {
    left: 100px;
    width: calc(100vw - 100px);
}

#ai_body .horizontal-card[data-card="2"] {
    left: 200px;
    width: calc(100vw - 200px);
}

#ai_body .horizontal-card[data-card="3"] {
    left: 300px;
    width: calc(100vw - 300px);
}

/* Title Column - Vertical text tab */
#ai_body .card-title-column {
    width: 100px;
    min-width: 100px;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    z-index: 10;
    border-right: 1px solid rgba(212, 175, 55, 0.15);
}

#ai_body .card-title-column:hover {
    background: #1a1a1a;
}

#ai_body .card-title-column h2 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #d4af37;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
}

/* Main content (image + text) */
#ai_body .card-main-content {
    display: flex;
    flex: 1;
    height: 100%;
}

/* Image Column */
#ai_body .card-image-column {
    flex: 1;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

#ai_body .card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

#ai_body .card-number {
    font-size: 80px;
    font-weight: 200;
    line-height: 1;
    color: #dc2626;
    opacity: 0.9;
}

/* Text Content Column */
#ai_body .card-content-column {
    width: 450px;
    min-width: 450px;
    height: 100%;
    background: #f3f4f6;
    padding: 64px 48px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#ai_body .card-content-column > * {
    flex-shrink: 0;
}

#ai_body .card-label {
    display: inline-block;
    padding: 6px 16px;
    background: #0a0a0a;
    color: #d4af37;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 20px;
    width: fit-content;
}

#ai_body .card-content-column h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 20px;
    line-height: 1.3;
}

#ai_body .card-description {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.7;
}

#ai_body .card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

#ai_body .card-features li {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#ai_body .card-bullet {
    color: #d4af37;
    font-size: 10px;
}

#ai_body .card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #d4af37;
    color: #0a0a0a;
    font-family: 'Inter', system-ui, sans-serif;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s ease, background 0.3s ease;
    width: fit-content;
}

#ai_body .card-cta:hover {
    transform: translateY(-2px);
    background: #b8972e;
}

#ai_body .card-cta i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

#ai_body .card-cta:hover i {
    transform: translateX(4px);
}

/* Tablet & Mobile - Stacked full-width cards (carousel only at lg+) */
@media (max-width: 1024px) {
    #ai_body .horizontal-scroll-section {
        background: var(--dark, #0a0a0a);
    }

    #ai_body .horizontal-card {
        left: 0 !important;
        width: 100vw !important;
        min-width: 100vw;
        height: calc(100vh - var(--header-height, 0px)) !important;
        max-height: calc(100vh - var(--header-height, 0px));
        flex-direction: column;
        overflow: hidden;
    }

    #ai_body .card-title-column {
        display: none;
    }

    #ai_body .card-main-content {
        display: grid;
        grid-template-rows: clamp(250px, 45vh, 400px) 1fr;
        width: 100%;
        height: 100%;
        background: var(--dark, #0a0a0a);
    }

    #ai_body .card-image-column {
        width: 100%;
        height: 100%;
        min-height: 0;
        background-position: top center !important;
    }

    #ai_body .card-content-column {
        width: 100%;
        min-width: 100%;
        height: 100%;
        padding: 24px;
        overflow-y: auto;
    }

    #ai_body .card-content-column h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    #ai_body .card-description {
        font-size: 14px;
    }

    #ai_body .card-features li {
        font-size: 14px;
    }

    #ai_body .card-number {
        font-size: 56px;
    }
}

/* Smaller phones */
@media (max-width: 768px) and (max-height: 850px) {
    #ai_body .card-image-column {
        height: 40vh;
        min-height: 220px;
    }

    #ai_body .card-content-column {
        padding: 20px;
    }

    #ai_body .card-content-column h3 {
        font-size: 1.25rem;
    }

    #ai_body .card-description,
    #ai_body .card-features li {
        font-size: 13px;
    }
}
