/* Basic Styles */
.gsap-overflow-hidden {
    overflow: hidden;
    display: inline-block;
    /* Helps with reveal */
}

/* Ensure shape is behind content */
.mygsap-grow-shape {
    pointer-events: none;
}

/* Draggable Widget Styles */
.mygsap-draggable-widget {
    position: relative;
    width: 100%;
}

/* Navigation */
.mygsap-nav-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.mygsap-nav-buttons {
    display: flex;
    gap: 8px;
}

/* Force override of Elementor button styles */
.mygsap-nav-btn {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 50% !important;
    background: transparent;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    min-width: 44px !important;
    /* Prevent shrinking */
}

/* Specific SVG targeting to beat Elementor globals */
.mygsap-nav-btn svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    color: #1a1a1a !important;
    /* Force strong color */
    stroke: currentColor;
    stroke-width: 1.5px !important;
    display: block !important;
    margin: 0 !important;
}

/* Drag Container */
.mygsap-drag-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    cursor: grab;
}

.mygsap-drag-container:active {
    cursor: grabbing;
}

.mygsap-drag-wrapper {
    display: flex;
    gap: 32px;
    /* gap-8 */
    align-items: center;
    touch-action: pan-y;
}

/* Cards */
.mygsap-card {
    width: 300px;
    height: 400px;
    background-color: #fff;
    padding: 32px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 12px;
    /* rounded-xl */
    user-select: none;
    flex-shrink: 0;
    transition: box-shadow 0.3s;
}

@media (min-width: 768px) {
    .mygsap-card {
        width: 350px;
    }
}

.mygsap-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.mygsap-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mygsap-card-icon {
    width: 48px;
    height: 48px;
    background-color: #f3f4f6;
    /* gray-100 - can be overridden by Elementor */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.mygsap-card-icon svg,
.mygsap-card-icon i {
    width: 24px;
    height: 24px;
    color: #c9a574;
    /* accent color - can be overridden by Elementor */
    font-size: 24px;
}

.mygsap-card-title {
    font-size: 24px;
    font-family: serif;
    font-style: italic;
    margin-bottom: 16px;
    margin-top: 0;
    line-height: 1.2;
}

.mygsap-card-desc {
    color: #6b7280;
    /* gray-500 */
    font-weight: 300;
    line-height: 1.625;
}

/* Video Scroll Synced Content */
[data-mygsap-sync="yes"] {
    will-change: opacity, transform;
    /* Performance optimization */
}

/* When auto-center is enabled, ensure proper stacking and visibility */
[data-mygsap-sync-center="yes"] {
    pointer-events: auto;
    /* Allow interaction when visible */
}

/* ============================================
   GSAP HEADING STYLES
   ============================================ */

/* Heading wrapper for proper alignment */
.mygsap-heading-wrapper {
    width: 100%;
    display: block;
}

/* Heading element */
.mygsap-heading {
    margin: 0;
    padding: 0;
}

/* Text reveal character/word spans */
.gsap-char,
.gsap-word,
.gsap-space {
    display: inline-block;
    will-change: color, opacity, transform;
}

/* Preserve whitespace handling */
.gsap-space {
    white-space: pre;
}