/**
 * Hark Testimonial Slider Styles
 * Version: 4.6.0
 */

/* Container */
.hark-testimonial-slider {
    --gradient-start: #8d2399;
    --gradient-end: #ff7700;
    --text-color: #ffffff;
    --dot-color: rgba(255,255,255,0.5);
    --dot-active-color: #ffffff;
    --card-offset: 18px;
    --inactive-opacity: 0.7;
    --scale-step: 0.02;
    
    width: 100%;
    position: relative;
    overflow: visible;
    
    /* Hide until JS initializes to prevent FOUC */
    opacity: 0;
    transition: opacity 0.3s ease;
    
    /* Enable touch handling - allow horizontal scroll, capture vertical swipe */
    touch-action: pan-x pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

/* Show slider once initialized */
.hark-testimonial-slider.hark-initialized {
    opacity: 1;
    cursor: grab;
}

.hark-testimonial-slider.hark-initialized:active {
    cursor: grabbing;
}

/* Visual Builder preview styles */
.et-fb .hark-testimonial-slider.hark-vb-preview {
    opacity: 1 !important;
}

.et-fb .hark-testimonial-slider {
    outline: 1px dashed rgba(200,200,200,0.4);
}

.hark-slider-container {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* Cards Wrapper */
.hark-cards-wrapper {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: visible;
}

/* Individual Card */
.hark-testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 20px;
    padding: 50px 80px 50px 50px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center top;
    will-change: transform, opacity;
    cursor: grab;
}

.hark-testimonial-card:active {
    cursor: grabbing;
}

.hark-testimonial-card.active {
    opacity: 1 !important;
}

/* Card with background image */
.hark-testimonial-card.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Card Inner - Two Column Layout */
.hark-card-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    color: var(--text-color);
    height: 100%;
}

/* Author Column - Left Side (1/3 width) */
.hark-author-column {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hark-testimonial-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.hark-testimonial-image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}

.hark-author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hark-testimonial-name {
    font-family: 'Instrument Sans';
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-color);
}

.hark-testimonial-title {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
    font-family: 'Instrument sans';
    line-height: 1.4;
}

.hark-testimonial-company {
    font-size: 2rem;
    margin-top: 10px;
    font-family: instrument serif;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.9;
}

/* Quote Column - Right Side (2/3 width) */
.hark-quote-column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hark-testimonial-quote {
    font-size: 24px;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 400;
    font-family: "Instrument Sans" !important;
}

/* Navigation Dots - Centered on active card */
.hark-nav-dots-wrapper {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    /* Top and height will be set by JS to match active card */
}

.hark-nav-dots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 30px;
    pointer-events: auto;
}

.hark-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dot-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hark-nav-dot:hover {
    background: var(--dot-active-color);
    transform: scale(1.2);
}

.hark-nav-dot.active {
    background: var(--dot-active-color);
    transform: scale(1.3);
}

/* Empty State / Visual Builder Placeholder */
.hark-no-testimonials,
.hark-vb-placeholder {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: #fff;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.hark-vb-placeholder-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.hark-vb-placeholder-inner strong {
    font-size: 1.5rem;
    font-weight: 700;
}

.hark-vb-placeholder-inner span {
    opacity: 0.8;
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .hark-testimonial-card {
        padding: 40px 70px 40px 40px;
    }
    
    .hark-card-inner {
        gap: 30px;
    }
    
    .hark-author-column {
        flex: 0 0 35%;
        max-width: 35%;
    }
    
    .hark-testimonial-image,
    .hark-testimonial-image-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .hark-testimonial-quote {
        font-size: 20px;
    }
    
    .hark-testimonial-company {
        font-size: 1.5rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 680px) {
    .hark-testimonial-slider {
        touch-action: pan-y pinch-zoom; /* Allow vertical scroll, capture horizontal swipe */
        cursor: default !important;
    }
    
    .hark-testimonial-slider:active {
        cursor: default !important;
    }
    
    .hark-testimonial-card {
        padding: 30px;
        padding-bottom: 120px; /* Extra padding at bottom for dots + spacing above and below */
    }
    
    .hark-card-inner {
        flex-direction: column;
        text-align: left;
        gap: 20px;
    }
    
    .hark-author-column {
        flex: none;
        max-width: 100%;
        width: 100%;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hark-quote-column {
        flex: none;
        width: 100%;
    }
    
    .hark-testimonial-image,
    .hark-testimonial-image-placeholder {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
    
    .hark-testimonial-name {
        font-size: 1.1rem;
    }
    
    .hark-testimonial-title {
        font-size: 0.9rem;
    }
    
    .hark-testimonial-company {
        font-size: 1.3rem;
        margin-top: 8px;
    }
    
    .hark-testimonial-quote {
        font-size: 20px;
        line-height: 1.5;
    }
    
    /* Mobile horizontal dots - positioned at bottom of cards-wrapper, overlapping cards */
    .hark-nav-dots-wrapper {
        position: absolute !important;
        top: auto !important;
        right: 0 !important;
        bottom: 30px !important;
        left: 0 !important;
        height: auto !important;
        width: 100% !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 20px 0 !important;
        pointer-events: auto !important;
        z-index: 200 !important;
    }
    
    .hark-nav-dots {
        display: flex !important;
        flex-direction: row !important;
        padding: 0 !important;
        gap: 12px !important;
        pointer-events: auto !important;
    }
    
    .hark-nav-dot {
        width: 12px !important;
        height: 12px !important;
        background: rgba(255,255,255,0.5) !important; /* White for visibility on gradient */
    }
    
    .hark-nav-dot.active {
        background: #ffffff !important; /* Solid white for active */
    }
}

@media (max-width: 480px) {
    .hark-testimonial-card {
        padding: 40px;
        padding-bottom: 120px;
    }
    
    .hark-card-inner {
        gap: 15px;
    }
    
    .hark-testimonial-image,
    .hark-testimonial-image-placeholder {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }
    
    .hark-testimonial-name {
        font-size: 1rem;
    }
    
    .hark-testimonial-title {
        font-size: 0.85rem;
    }
    
    .hark-testimonial-company {
        font-size: 1.1rem;
        margin-top: 5px;
    }
    
    .hark-testimonial-quote {
        font-size: 18px;
    }
    
    .hark-nav-dots {
        gap: 8px;
    }
    
    .hark-nav-dot {
        width: 10px;
        height: 10px;
    }
}

/* Divi Builder */
.et-fb .hark-testimonial-slider {
    pointer-events: auto;
}

.et-fb .hark-nav-dots {
    pointer-events: auto;
}

.et-fb .hark-nav-dot {
    pointer-events: auto;
}

/* Ensure overflow is visible in Divi containers */
.et_pb_module .hark-testimonial-slider,
.et_pb_module .hark-slider-container,
.et_pb_module .hark-cards-wrapper {
    overflow: visible !important;
}

.et_pb_row:has(.hark-testimonial-slider),
.et_pb_column:has(.hark-testimonial-slider) {
    overflow: visible !important;
}

/* ==========================================================================
   Hark Case Study Slider
   ========================================================================== */

.hark-case-study-slider {
    --gradient-start: #DA3A00 !important;
    --gradient-end: #8D2399 !important;
    --card-bg: #0a0a0a !important;
    --text-color: #ffffff !important;
    --border-radius: 20px !important;
    --border-width: 2px !important;
    --card-padding: 40px !important;
    --card-gap: 20px !important;
    --dot-color: #ffffff !important;
    --dot-active-color: #ffffff !important;
    --mobile-breakpoint: 768px !important;
    
    position: relative !important;
    width: 100% !important;
}

/* ==========================================================================
   Desktop Grid Layout
   ========================================================================== */

.hark-cs-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--card-gap) !important;
    align-items: stretch !important;
}

/* Force equal heights through Divi wrapper chain - but not card-inner */
.hark-cs-grid > * {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 0 !important;
}

.hark-cs-grid > * > * {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    margin-bottom: 0 !important;
}

.hark-cs-grid > * > * > .hark-cs-card {
    flex: 1 !important;
}

/* ==========================================================================
   Card Styling with Gradient Border
   ========================================================================== */

.hark-cs-card {
    position: relative !important;
    border-radius: var(--border-radius) !important;
    background: linear-gradient(to bottom, var(--gradient-start) 0%, var(--gradient-end) 100%) !important;
    padding: var(--border-width) !important;
    min-height: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer !important;
    flex: 1 !important;
    box-sizing: border-box !important;
}

.hark-cs-card-inner {
    background: var(--card-bg) !important;
    border-radius: calc(var(--border-radius) - var(--border-width)) !important;
    padding: var(--card-padding) !important;
    display: grid !important;
    grid-template-rows: auto auto 1fr auto !important;
    color: var(--text-color) !important;
    position: relative !important;
    overflow: hidden !important;
    flex: 1 !important;
    box-sizing: border-box !important;
}

/* Gradient overlay for smooth hover transition */
.hark-cs-card-inner::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to bottom, var(--gradient-start) 0%, var(--gradient-end) 100%) !important;
    opacity: 0 !important;
    -webkit-transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: calc(var(--border-radius) - var(--border-width)) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* Card Hover - Fade in gradient */
.hark-cs-card:hover .hark-cs-card-inner::before {
    opacity: 1 !important;
}

/* Ensure content stays above the gradient overlay */
.hark-cs-logo,
.hark-cs-title,
.hark-cs-bullets,
.hark-cs-link {
    position: relative !important;
    z-index: 1 !important;
}

/* Card link wrapper takes full height */
.hark-cs-card-link {
    display: contents !important;
    text-decoration: none !important;
    color: inherit !important;
}

.hark-cs-card-link:hover,
.hark-cs-card-link:focus,
.hark-cs-card-link:active,
.hark-cs-card-link:visited {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
}

/* ==========================================================================
   Logo Styling
   ========================================================================== */

.hark-cs-logo {
    margin-bottom: 20px !important;
}

.hark-cs-logo img {
    height: auto !important;
    display: block !important;
}

/* ==========================================================================
   Title Styling
   ========================================================================== */

.hark-cs-title {
    font-size: 2.25rem !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
    margin: 0 0 25px 0 !important;
    color: var(--text-color) !important;
    letter-spacing: -0.01em !important;
}

/* ==========================================================================
   Bullet Points
   ========================================================================== */

.hark-cs-bullets {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hark-cs-bullets li {
    position: relative !important;
    padding-left: 18px !important;
    margin-bottom: 6px !important;
    font-family: "Instrument Sans", sans-serif !important;
    font-size: 15.479px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: normal !important;
    color: var(--text-color) !important;
    list-style: none !important;
}

.hark-cs-bullets li::before {
    content: '·' !important;
    position: absolute !important;
    left: 4px !important;
    color: var(--text-color) !important;
    font-size: 1.5em !important;
    line-height: 1 !important;
    top: 0 !important;
}

.hark-cs-bullets li::marker {
    content: none !important;
    display: none !important;
}

/* ==========================================================================
   Link/CTA Styling
   ========================================================================== */

.hark-cs-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: var(--text-color) !important;
    text-decoration: none !important;
    font-family: "Instrument Sans", sans-serif !important;
    font-size: 25px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 36px !important;
    padding-top: 30px !important;
    align-self: end !important;
    justify-self: end !important;
}

/* ==========================================================================
   Arrow with Smooth Triple Arrow Animation
   ========================================================================== */

.hark-cs-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 24px !important;
    height: 24px !important;
    margin-left: 10px !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
}

/* Base arrow (always visible) */
.hark-cs-arrow svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
    stroke: none !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    z-index: 2 !important;
    -webkit-transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Second arrow (appears on hover - goes bottom-left) */
.hark-cs-arrow::before {
    content: '' !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6136 4.97906L2.06239 17.5303L0 15.468L12.5513 2.91667H1.4887V0H17.5303V16.0417H14.6136V4.97906Z' fill='white'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    opacity: 0 !important;
    z-index: 1 !important;
    -webkit-transform: translate(0, 0) !important;
    transform: translate(0, 0) !important;
    -webkit-transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.05s, -webkit-transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.05s !important;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.05s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.05s !important;
}

/* Third arrow (appears on hover - goes top-right) */
.hark-cs-arrow::after {
    content: '' !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6136 4.97906L2.06239 17.5303L0 15.468L12.5513 2.91667H1.4887V0H17.5303V16.0417H14.6136V4.97906Z' fill='white'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    opacity: 0 !important;
    z-index: 3 !important;
    -webkit-transform: translate(0, 0) !important;
    transform: translate(0, 0) !important;
    -webkit-transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, -webkit-transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s !important;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s !important;
}

/* Hover state - fan out from center */
.hark-cs-card:hover .hark-cs-arrow svg {
    opacity: 0.6 !important;
}

.hark-cs-card:hover .hark-cs-arrow::before {
    opacity: 0.3 !important;
    -webkit-transform: translate(-6px, 6px) !important;
    transform: translate(-6px, 6px) !important;
}

.hark-cs-card:hover .hark-cs-arrow::after {
    opacity: 1 !important;
    -webkit-transform: translate(6px, -6px) !important;
    transform: translate(6px, -6px) !important;
}

/* Reset on hover out - smooth return */
.hark-cs-card:not(:hover) .hark-cs-arrow::before {
    -webkit-transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hark-cs-card:not(:hover) .hark-cs-arrow::after {
    -webkit-transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ==========================================================================
   Navigation Dots (Hidden on Desktop)
   ========================================================================== */

.hark-cs-nav-dots {
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 30px !important;
}

.hark-cs-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: none !important;
    background: var(--dot-color) !important;
    opacity: 0.4 !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
}

.hark-cs-dot:hover {
    opacity: 0.7 !important;
}

.hark-cs-dot.active {
    opacity: 1 !important;
    background: var(--dot-active-color) !important;
}

/* ==========================================================================
   Mobile Slider Layout
   ========================================================================== */

@media (max-width: 768px) {
    .hark-case-study-slider {
        overflow: visible !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }
    
    .hark-cs-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        position: relative !important;
        width: 100% !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: stretch !important;
    }
    
    /* Handle both direct cards and Divi-wrapped cards */
    .hark-cs-grid > *,
    .hark-cs-grid > .hark-cs-card,
    .hark-cs-grid > .et_pb_module {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
        margin: 0 !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .hark-cs-grid > .et_pb_module .hark-cs-card {
        min-height: 300px !important;
        height: auto !important;
    }
    
    .hark-cs-nav-dots {
        display: flex !important;
    }
    
    .hark-cs-title {
        font-size: 1.75rem !important;
    }
    
    .hark-cs-card-inner {
        padding: calc(var(--card-padding) * 0.75) !important;
        height: auto !important;
        min-height: auto !important;
    }
}

/* Touch/swipe indicator */
@media (max-width: 768px) {
    .hark-case-study-slider {
        touch-action: pan-y pinch-zoom !important;
    }
    
    .hark-cs-grid {
        cursor: grab !important;
    }
    
    .hark-cs-grid:active {
        cursor: grabbing !important;
    }
}

/* Override Divi dot styling */
@media (max-width: 768px) {
    .hark-cs-dot,
    .hark-cs-dot:focus,
    .hark-cs-dot:active {
        outline: none !important;
        box-shadow: none !important;
    }
}

/* ==========================================================================
   Builder Preview Adjustments
   ========================================================================== */

.et-fb .hark-case-study-slider,
.et_fb_preview_active .hark-case-study-slider {
    overflow: visible !important;
}

.et-fb .hark-cs-card,
.et_fb_preview_active .hark-cs-card {
    pointer-events: auto !important;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.hark-cs-dot:focus {
    outline: 2px solid var(--dot-active-color) !important;
    outline-offset: 2px !important;
}

.hark-cs-link:focus {
    outline: 2px solid var(--text-color) !important;
    outline-offset: 4px !important;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hark-cs-card,
    .hark-cs-arrow,
    .hark-cs-arrow::before,
    .hark-cs-arrow::after,
    .hark-cs-dot {
        transition: none !important;
    }
}

/**
 * Hark Flip Box Styles
 */

/* Wrapper */
.dfbm-flip-box-wrapper {
    perspective: 1000px;
    width: 100%;
    position: relative;
}

/* Add padding for shadow space */
.dfbm-flip-box-wrapper.dfbm-has-shadow {
    padding-bottom: 25px;
}

/* Image-based shadow */
.dfbm-flip-box-wrapper.dfbm-has-shadow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 60px;
    background-image: url('../images/shadow.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: -1;
}

/* Main flip box container */
.dfbm-flip-box {
    position: relative;
    width: 100%;
    height: 400px;
}

/* Inner container that flips */
.dfbm-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Flipped state */
.dfbm-flip-box-wrapper.dfbm-flipped .dfbm-flip-inner {
    transform: rotateY(180deg);
}

/* Horizontal reverse flip */
.dfbm-flip-box-wrapper.dfbm-direction-horizontal-reverse.dfbm-flipped .dfbm-flip-inner {
    transform: rotateY(-180deg);
}

/* Vertical flip */
.dfbm-flip-box-wrapper.dfbm-direction-vertical.dfbm-flipped .dfbm-flip-inner {
    transform: rotateX(-180deg);
}

/* Vertical reverse flip */
.dfbm-flip-box-wrapper.dfbm-direction-vertical-reverse.dfbm-flipped .dfbm-flip-inner {
    transform: rotateX(180deg);
}

/* Hover flip on desktop */
@media (min-width: 981px) {
    .dfbm-flip-box-wrapper.dfbm-hover-flip:hover .dfbm-flip-inner {
        transform: rotateY(180deg);
    }
    
    .dfbm-flip-box-wrapper.dfbm-hover-flip.dfbm-direction-horizontal-reverse:hover .dfbm-flip-inner {
        transform: rotateY(-180deg);
    }
    
    .dfbm-flip-box-wrapper.dfbm-hover-flip.dfbm-direction-vertical:hover .dfbm-flip-inner {
        transform: rotateX(-180deg);
    }
    
    .dfbm-flip-box-wrapper.dfbm-hover-flip.dfbm-direction-vertical-reverse:hover .dfbm-flip-inner {
        transform: rotateX(180deg);
    }
}

/* Front and back sides */
.dfbm-flip-front,
.dfbm-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    border-radius: 20px;
    color: #ffffff !important;
}

/* Ensure all text within flip box is white */
.dfbm-flip-front *,
.dfbm-flip-back * {
    color: #ffffff !important;
}

/* Front side */
.dfbm-flip-front {
    z-index: 2;
}

/* Back side - rotated by default */
.dfbm-flip-back {
    transform: rotateY(180deg);
}

/* Vertical flip back side rotation */
.dfbm-direction-vertical .dfbm-flip-back,
.dfbm-direction-vertical-reverse .dfbm-flip-back {
    transform: rotateX(180deg);
}

/* Content wrapper */
.dfbm-side-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
}

/* Front side content */
.dfbm-front-content {
    /* Alignment controlled by module settings */
}

/* Back side content */
.dfbm-back-content {
    /* Alignment controlled by module settings */
}

/* Alignment variations - removed as now controlled by inline styles */

/* Front Logo */
.dfbm-logo {
    margin-bottom: 10px;
}

.dfbm-logo img {
    width: 80px;
    height: auto;
    display: block;
}

/* Back Header (logo + title row) */
.dfbm-back-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    width: 100%;
}

.dfbm-back-logo {
    flex-shrink: 0;
}

.dfbm-back-logo img {
    width: 50px;
    height: auto;
    display: block;
}

.dfbm-back-title {
    color: #ffffff !important;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

.dfbm-back-title em,
.dfbm-back-title i {
    font-style: italic;
}

/* Content */
.dfbm-content {
    color: #ffffff !important;
    width: 100%;
}

.dfbm-content h1,
.dfbm-content h2,
.dfbm-content h3,
.dfbm-content h4,
.dfbm-content h5,
.dfbm-content h6 {
    color: #ffffff !important;
    margin-bottom: 15px;
}

.dfbm-content p {
    color: #ffffff !important;
    margin-bottom: -15px;
}

.dfbm-content p:last-child {
    margin-bottom: 0;
}

.dfbm-content a {
    color: #ffffff !important;
    text-decoration: underline;
}

.dfbm-content a:hover {
    opacity: 0.8;
}

/* Back side list styling */
.dfbm-back-content .dfbm-content ul,
.dfbm-back-content .dfbm-content ol {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

.dfbm-back-content .dfbm-content ul li,
.dfbm-back-content .dfbm-content ol li {
    position: relative;
    padding-left: 18px;
    font-size: 16px !important;
    margin-bottom: 0px;
    color: #ffffff !important;
    list-style: none !important;
}

.dfbm-back-content .dfbm-content ul li::before {
    content: '■';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.6em;
    line-height: 3.3;
}

.dfbm-back-content .dfbm-content ul li::marker,
.dfbm-back-content .dfbm-content ol li::marker {
    content: none !important;
    display: none !important;
}

.dfbm-back-content .dfbm-content ul li:last-child,
.dfbm-back-content .dfbm-content ol li:last-child {
    margin-bottom: 0;
}

/* Flip Button */
.dfbm-flip-button {
    position: absolute;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    outline: none;
    pointer-events: auto !important;
}

.dfbm-flip-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dfbm-flip-button:active {
    transform: scale(0.95);
}

.dfbm-flip-button svg {
    fill: #ffffff;
    width: 50%;
    height: 50%;
    transition: transform 0.3s ease;
}

.dfbm-flip-button:hover svg {
    transform: rotate(180deg);
}

/* Button positions */
.dfbm-flip-button.dfbm-button-bottom-right {
    bottom: 20px;
    right: 20px;
}

.dfbm-flip-button.dfbm-button-bottom-left {
    bottom: 20px;
    left: 20px;
}

.dfbm-flip-button.dfbm-button-top-right {
    top: 20px;
    right: 20px;
}

.dfbm-flip-button.dfbm-button-top-left {
    top: 20px;
    left: 20px;
}

/* Flip animation keyframes for extra flair */
@keyframes dfbm-flip-bounce {
    0%, 100% {
        transform: rotateY(180deg);
    }
    50% {
        transform: rotateY(190deg);
    }
}

/* Grainy texture overlay (optional - matches the screenshot style) */
.dfbm-flip-front::after,
.dfbm-flip-back::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none !important;
    opacity: 0.03;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    border-radius: inherit;
}

/* Divi Builder visual builder compatibility */
.et-fb .dfbm-flip-box-wrapper {
    perspective: 1000px;
}

.et-fb .dfbm-flip-back {
    opacity: 0.5;
    pointer-events: none;
}

.et-fb .dfbm-flip-box-wrapper.dfbm-flipped .dfbm-flip-front {
    opacity: 0.5;
    pointer-events: none;
}

.et-fb .dfbm-flip-box-wrapper.dfbm-flipped .dfbm-flip-back {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 980px) {
    .dfbm-flip-box {
        height: 350px;
    }
    
    .dfbm-side-content {
        padding: 30px;
    }
    
    .dfbm-logo img {
        width: 60px;
    }
    
    .dfbm-back-logo img {
        width: 40px;
    }
    
    .dfbm-back-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .dfbm-flip-box {
        height: 300px;
    }
    
    .dfbm-side-content {
        padding: 25px;
    }
    
    .dfbm-back-header {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .dfbm-back-logo img {
        width: 35px;
    }
    
    .dfbm-back-title {
        font-size: 16px;
    }
    
    .dfbm-flip-button {
        width: 36px;
        height: 36px;
    }
    
    .dfbm-flip-button.dfbm-button-bottom-right,
    .dfbm-flip-button.dfbm-button-bottom-left {
        bottom: 15px;
    }
    
    .dfbm-flip-button.dfbm-button-bottom-right,
    .dfbm-flip-button.dfbm-button-top-right {
        right: 15px;
    }
    
    .dfbm-flip-button.dfbm-button-bottom-left,
    .dfbm-flip-button.dfbm-button-top-left {
        left: 15px;
    }
    
    .dfbm-flip-button.dfbm-button-top-right,
    .dfbm-flip-button.dfbm-button-top-left {
        top: 15px;
    }
    
    .dfbm-back-content .dfbm-content ul li,
    .dfbm-back-content .dfbm-content ol li {
        font-family: "Instrument Sans" !important;
        font-size: 16px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 26px !important;
    }
}

/* Print styles */
@media print {
    .dfbm-flip-box-wrapper {
        perspective: none;
    }
    
    .dfbm-flip-inner {
        transform: none !important;
    }
    
    .dfbm-flip-back {
        display: none;
    }
    
    .dfbm-flip-button {
        display: none;
    }
    
    .dfbm-flip-box-wrapper.dfbm-has-shadow::after {
        display: none;
    }
    
    .dfbm-flip-box-wrapper.dfbm-has-shadow {
        padding-bottom: 0;
    }
}

/**
 * Hark Team Members - Styles
 * Version: 1.0.0
 */

/* ===== CSS Variables (Defaults) ===== */
.hark-team-grid {
    --htg-columns: 3;
    --htg-gap: 20px;
    --htg-border-radius: 16px;
    --htg-aspect-ratio: 1/1;
    --htg-animation-duration: 400ms;
    --htg-hover-scale: 1.03;
    --htg-card-bg: #ffffff;
    --htg-text-color: #ffffff;
    --htg-expanded-bg: #ffffff;
    --htg-expanded-text: #1a1a1a;
    --htg-overlay-gradient: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 40%, transparent 100%);
}

/* ===== Grid Layout ===== */
.hark-team-grid {
    display: grid;
    grid-template-columns: repeat(var(--htg-columns), 1fr);
    gap: var(--htg-gap);
    position: relative;
    width: 100%;
    align-items: start;
}

/* ===== Team Member Card ===== */
.hark-team-member {
    position: relative;
    grid-column: span 1;
    grid-row: span 1;
}

.htm-card {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--htg-border-radius);
    background: var(--htg-card-bg);
}

.hark-team-member.is-expanded .htm-card {
    visibility: hidden;
}

/* On mobile, keep the card visible since modal is in body */
@media screen and (max-width: 767px) {
    .hark-team-member.is-expanded .htm-card {
        visibility: visible;
    }
}

.htm-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: var(--htg-aspect-ratio);
    overflow: hidden;
}

.htm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.htm-card:hover .htm-card-image img {
    transform: scale(1.06);
}

/* ===== Card Hover Overlay ===== */
.htm-card-overlay {
    position: absolute;
    inset: 0;
    background: var(--htg-overlay-gradient);
    pointer-events: none;
    overflow: hidden;
}

/* Gradient overlay that slides in on hover */
.htm-card-overlay::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at var(--gradient-origin, bottom left), 
        var(--htg-gradient-color-1, rgba(141, 35, 153, 0.95)) 0%, 
        var(--htg-gradient-color-1, rgba(141, 35, 153, 0.85)) 25%, 
        var(--htg-gradient-color-2, rgba(255, 119, 0, 0.5)) 55%, 
        transparent 80%);
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Direction: Bottom Left (default) */
.htm-card-overlay::after,
[data-gradient-direction="bottom-left"] .htm-card-overlay::after {
    --gradient-origin: bottom left;
    left: -50%;
    bottom: -50%;
    transform: translate(-30%, 30%);
}
.htm-card:hover .htm-card-overlay::after,
[data-gradient-direction="bottom-left"] .htm-card:hover .htm-card-overlay::after {
    transform: translate(0%, 0%);
}

/* Direction: Bottom Right */
[data-gradient-direction="bottom-right"] .htm-card-overlay::after {
    --gradient-origin: bottom right;
    right: -50%;
    left: auto;
    bottom: -50%;
    transform: translate(30%, 30%);
}
[data-gradient-direction="bottom-right"] .htm-card:hover .htm-card-overlay::after {
    transform: translate(0%, 0%);
}

/* Direction: Bottom */
[data-gradient-direction="bottom"] .htm-card-overlay::after {
    --gradient-origin: bottom center;
    left: -50%;
    bottom: -50%;
    transform: translate(0%, 50%);
}
[data-gradient-direction="bottom"] .htm-card:hover .htm-card-overlay::after {
    transform: translate(0%, 0%);
}

/* Direction: Top Left */
[data-gradient-direction="top-left"] .htm-card-overlay::after {
    --gradient-origin: top left;
    left: -50%;
    top: -50%;
    bottom: auto;
    transform: translate(-30%, -30%);
}
[data-gradient-direction="top-left"] .htm-card:hover .htm-card-overlay::after {
    transform: translate(0%, 0%);
}

/* Direction: Top Right */
[data-gradient-direction="top-right"] .htm-card-overlay::after {
    --gradient-origin: top right;
    right: -50%;
    left: auto;
    top: -50%;
    bottom: auto;
    transform: translate(30%, -30%);
}
[data-gradient-direction="top-right"] .htm-card:hover .htm-card-overlay::after {
    transform: translate(0%, 0%);
}

/* Direction: Top */
[data-gradient-direction="top"] .htm-card-overlay::after {
    --gradient-origin: top center;
    left: -50%;
    top: -50%;
    bottom: auto;
    transform: translate(0%, -50%);
}
[data-gradient-direction="top"] .htm-card:hover .htm-card-overlay::after {
    transform: translate(0%, 0%);
}

/* Direction: Left */
[data-gradient-direction="left"] .htm-card-overlay::after {
    --gradient-origin: center left;
    left: -50%;
    top: -50%;
    transform: translate(-50%, 0%);
}
[data-gradient-direction="left"] .htm-card:hover .htm-card-overlay::after {
    transform: translate(0%, 0%);
}

/* Direction: Right */
[data-gradient-direction="right"] .htm-card-overlay::after {
    --gradient-origin: center right;
    right: -50%;
    left: auto;
    top: -50%;
    transform: translate(50%, 0%);
}
[data-gradient-direction="right"] .htm-card:hover .htm-card-overlay::after {
    transform: translate(0%, 0%);
}

/* Disable hover gradient */
.hark-team-grid.no-hover-gradient .htm-card-overlay::after {
    display: none;
}

.htm-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: var(--htg-text-color);
    z-index: 2;
}

.htm-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
    color: #ffffff !important;
}

.htm-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.htm-card:hover .htm-arrow {
    transform: translate(3px, -3px);
}

.htm-arrow svg {
    width: 24px;
    height: 24px;
}

.htm-card-title {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
    color: #fff !important;
}

/* ===== Expanded View ===== */
.htm-expanded {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--htg-expanded-bg);
    border-radius: var(--htg-border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 
                0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 100;
    flex-direction: column;
}

/* Expand left (for right-side columns) */
.hark-team-member.expand-left .htm-expanded {
    left: auto;
    right: 0;
}

/* Expand up (for bottom rows) */
.hark-team-member.expand-up .htm-expanded {
    top: auto;
    bottom: 0;
}

.hark-team-member.is-expanded {
    z-index: 100;
}

.hark-team-member.is-expanded .htm-expanded {
    display: flex;
    animation: expandFadeIn 0.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes expandFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hark-team-member.is-collapsing .htm-expanded {
    animation: expandFadeOut 0.1s ease-out forwards;
}

@keyframes expandFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

.htm-expanded-inner {
    position: relative;
    padding: 35px;
    flex: 1;
    overflow-y: auto;
    color: var(--htg-expanded-text);
    display: flex;
    flex-direction: column;
}

.htm-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: var(--htg-expanded-text);
    z-index: 15;
    padding: 0;
}

.htm-close:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.htm-close svg {
    width: 24px;
    height: 24px;
}

.htm-expanded-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-right: 40px;
}

.htm-expanded-photo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.htm-expanded-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.htm-expanded-info {
    flex: 1;
    padding-top: 5px;
}

.htm-expanded-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    line-height: 1.2;
    color: inherit;
}

.htm-expanded-title {
    font-size: 1rem;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.htm-social-links {
    display: flex;
    gap: 12px;
}

.htm-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    color: #1a1a1a;
    border-radius: 0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.htm-social-link:hover {
    transform: translateY(-2px);
    color: #0077b5;
}

.htm-social-link.htm-linkedin:hover {
    color: #0077b5;
}

.htm-social-link.htm-email:hover {
    color: #333333;
}

.htm-social-link svg {
    width: 18px;
    height: 18px;
}

.htm-expanded-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    flex: 1;
}

.htm-expanded-bio p {
    margin: 0 0 1em 0;
}

.htm-expanded-bio p:last-child {
    margin-bottom: 0;
}

/* Mobile bio text styles */
@media (max-width: 768px) {
    .htm-expanded-bio p {
        font-family: "Instrument Sans" !important;
        font-size: 16px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 22px !important;
    }
}

/* ===== Tablet Styles ===== */
@media screen and (max-width: 1024px) {
    .hark-team-grid {
        --htg-columns: 2 !important;
    }
}

/* ===== Mobile Styles ===== */
@media screen and (max-width: 767px) {
    .hark-team-grid {
        --htg-columns: 1 !important;
    }
    
    .htm-card-name {
        font-size: 1.1rem;
    }
    
    .htm-card-title {
        font-size: 0.85rem;
    }
}

/* ===== Mobile Expanded Modal - When appended to body ===== */
body > .htm-expanded {
    position: fixed !important;
    display: flex !important;
    flex-direction: column !important;
    top: 1.5vh !important;
    height: 97vh !important;
}

body > .htm-expanded .htm-expanded-inner {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 60px 20px 20px 20px !important;
}

body > .htm-expanded .htm-expanded-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
    margin-bottom: 0 !important;
    padding-right: 0 !important;
}

body > .htm-expanded .htm-expanded-photo {
    width: 100px !important;
    height: 100px !important;
}

body > .htm-expanded .htm-social-links {
    justify-content: center !important;
}

body > .htm-expanded .htm-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 10 !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    width: 40px !important;
    height: 40px !important;
}

/* ===== Desktop Mobile Styles (fallback) ===== */
@media screen and (max-width: 767px) {
    /* Dark overlay backdrop - tappable to close */
    .hark-team-grid.has-expanded::before {
        display: none !important;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Animation Entrance Effects ===== */
.hark-team-member {
    opacity: 0;
    transform: translateY(30px);
}

.hark-team-member.animate-in {
    animation: memberSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Disable entrance animation */
.hark-team-grid.no-entrance-animation .hark-team-member {
    opacity: 1;
    transform: none;
    animation: none;
}

@keyframes memberSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Divi Builder Preview Styles ===== */
.et-fb .hark-team-member {
    opacity: 1;
    transform: none;
    animation: none;
}

.et-fb .hark-team-member.animate-in {
    animation: none;
}

.et-fb .htm-expanded {
    display: none;
}

.et-fb .hark-team-member.is-expanded .htm-expanded {
    display: flex;
    opacity: 1;
    transform: none;
}

/**
 * Hark Fancybox Styles
 * Version: 1.0.0
 */

/* ==========================================================================
   Grid Layout - Desktop
   ========================================================================== */

.hark-fancybox-grid-wrapper {
    width: 100%;
    position: relative;
}

.hark-fancybox-grid-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px !important;
    border-radius: 25px;
}

/* ==========================================================================
   Individual Fancybox Item - ALWAYS VISIBLE
   ========================================================================== */

.hark-fancybox-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 300px;
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
}

a.hark-fancybox-item,
.hark-fancybox-link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hark-fancybox-link:hover {
    text-decoration: none !important;
}

/* ==========================================================================
   Background Image with Zoom Effect
   ========================================================================== */

.hark-fancybox-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    z-index: 0;
}

.hark-fancybox-item:hover .hark-fancybox-bg {
    transform: scale(1.1);
}

/* ==========================================================================
   Gradient Overlay (Optional)
   ========================================================================== */

.hark-fancybox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.hark-fancybox-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 30px;
    box-sizing: border-box;
    flex: 1;
}

/* ==========================================================================
   Eyebrow Text (h6)
   ========================================================================== */

h6.hark-fancybox-eyebrow,
.hark-fancybox-item h6.hark-fancybox-eyebrow,
.hark-fancybox-eyebrow {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #ffffff !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 1.4 !important;
}

/* ==========================================================================
   3-Arrow Animation
   ========================================================================== */

.hark-fancybox-arrow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 22px;
    height: 22px;
    margin-bottom: 5px;
    overflow: visible !important;
}

.hark-fancybox-arrow svg {
    position: absolute;
    width: 22px !important;
    height: 22px !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    fill: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arrow 1 - main arrow, stays in place */
.hark-fancybox-arrow .arrow-1 {
    opacity: 1;
}

/* Arrow 2 - hidden, will go to bottom-left on hover */
.hark-fancybox-arrow .arrow-2 {
    opacity: 0;
}

/* Arrow 3 - hidden, will go to top-right on hover */
.hark-fancybox-arrow .arrow-3 {
    opacity: 0;
}

/* Hover: arrow-1 stays in place (0.6 opacity - middle) */
.hark-fancybox-item:hover .hark-fancybox-arrow .arrow-1 {
    opacity: 0.6;
    transform: translate(-50%, -50%);
}

/* Hover: arrow-2 goes bottom-left (0.3 opacity) */
.hark-fancybox-item:hover .hark-fancybox-arrow .arrow-2 {
    opacity: 0.3;
    transform: translate(calc(-50% - 6px), calc(-50% + 6px));
    transition-delay: 0.05s;
}

/* Hover: arrow-3 goes top-right (1 opacity) */
.hark-fancybox-item:hover .hark-fancybox-arrow .arrow-3 {
    opacity: 1;
    transform: translate(calc(-50% + 6px), calc(-50% - 6px));
    transition-delay: 0.1s;
}

/* ==========================================================================
   Title (h3) and Subtitle
   ========================================================================== */

.hark-fancybox-title-wrap {
    padding-top: 0;
    text-align: left;
}

h3.hark-fancybox-title,
.hark-fancybox-item h3.hark-fancybox-title,
.hark-fancybox-title {
    display: block !important;
    font-size: 34px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hark-fancybox-title em,
.hark-fancybox-title i,
.hark-fancybox-title span.italic,
.hark-fancybox-item .hark-fancybox-title em,
.hark-fancybox-item .hark-fancybox-title i {
    font-style: italic !important;
    font-weight: 400 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Navigation Dots - HIDDEN on Desktop
   ========================================================================== */

.hark-fancybox-nav-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.hark-fancybox-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #999999;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hark-fancybox-dot:hover {
    opacity: 0.8;
}

.hark-fancybox-dot.active {
    opacity: 1;
    background: #666666;
}

/* ==========================================================================
   Tablet Styles
   ========================================================================== */

@media (max-width: 980px) {
    .hark-fancybox-grid-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hark-fancybox-item {
        min-height: 280px;
    }
    
    h3.hark-fancybox-title,
    .hark-fancybox-title {
        font-size: 30px !important;
    }
    
    .hark-fancybox-title em,
    .hark-fancybox-title i,
    .hark-fancybox-title span.italic {
        font-size: 30px !important;
    }
    
    .hark-fancybox-content {
        padding: 25px;
    }
}

/* ==========================================================================
   Mobile Slider - Show ONE item at a time
   JS handles display:none for non-active slides
   ========================================================================== */

@media (max-width: 767px) {
    /* Fix for mobile width */
    .et_pb_module_inner {
        position: relative !important;
        width: 100% !important;
    }
    
    /* Wrapper must be full width */
    .hark-fancybox-grid-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Grid becomes single column, full width */
    .hark-fancybox-grid-inner {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 25px !important;
        position: relative !important;
    }
    
    /* Each slide = 100% width */
    .hark-fancybox-grid-inner > *,
    .hark-fancybox-grid-inner > a,
    .hark-fancybox-grid-inner > .hark-fancybox-link {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .hark-fancybox-item,
    a.hark-fancybox-item,
    .hark-fancybox-link {
        width: 100% !important;
        min-height: 400px !important;
        border-radius: 25px !important;
    }
    
    /* Show dots on mobile */
    .hark-fancybox-nav-dots {
        display: flex !important;
    }
    
    h3.hark-fancybox-title,
    .hark-fancybox-title {
        font-size: 28px !important;
    }
    
    .hark-fancybox-title em,
    .hark-fancybox-title i,
    .hark-fancybox-title span.italic {
        font-size: 28px !important;
    }
    
    .hark-fancybox-content {
        padding: 20px;
    }
    
    h6.hark-fancybox-eyebrow,
    .hark-fancybox-eyebrow {
        font-size: 11px !important;
    }
    
    .hark-fancybox-arrow {
        width: 20px;
        height: 20px;
    }
    
    .hark-fancybox-arrow svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* ==========================================================================
   Scroll Animation - Desktop only, after JS loads
   Items are VISIBLE by default - JS adds .hark-animate-ready to enable animation
   ========================================================================== */

@media (min-width: 768px) {
    /* Only animate if JS has loaded and added the class */
    .hark-fancybox-grid-inner.hark-animate-ready > * {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .hark-fancybox-grid-inner.hark-animate-ready > *.hark-visible {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* Stagger - 150ms */
    .hark-fancybox-grid-inner.hark-animate-ready > *:nth-child(1) { transition-delay: 0ms; }
    .hark-fancybox-grid-inner.hark-animate-ready > *:nth-child(2) { transition-delay: 150ms; }
    .hark-fancybox-grid-inner.hark-animate-ready > *:nth-child(3) { transition-delay: 300ms; }
    .hark-fancybox-grid-inner.hark-animate-ready > *:nth-child(4) { transition-delay: 450ms; }
    .hark-fancybox-grid-inner.hark-animate-ready > *:nth-child(5) { transition-delay: 600ms; }
    .hark-fancybox-grid-inner.hark-animate-ready > *:nth-child(6) { transition-delay: 750ms; }
    
    /* Without JS, items stay visible (no .hark-animate-ready class) */
}

/* ==========================================================================
   Visual Builder - Always show items
   ========================================================================== */

.et-fb .hark-fancybox-grid-inner {
    display: grid !important;
}

.et-fb .hark-fancybox-item,
.et-fb .hark-fancybox-link,
.et-fb .et_pb_hark_fancybox_grid .hark-fancybox-item {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* ==========================================================================
   Touch Device - Disable hover effects
   ========================================================================== */

@media (hover: none) {
    .hark-fancybox-item:hover .hark-fancybox-bg {
        transform: scale(1);
    }
    
    .hark-fancybox-item:hover .hark-fancybox-arrow .arrow-1 {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    
    .hark-fancybox-item:hover .hark-fancybox-arrow .arrow-2,
    .hark-fancybox-item:hover .hark-fancybox-arrow .arrow-3 {
        opacity: 0;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .hark-fancybox-bg,
    .hark-fancybox-arrow svg,
    .hark-fancybox-item,
    .hark-fancybox-link {
        transition: none !important;
    }
}

/**
 * Hark Mobile Carousel Styles
 */

.hark-mobile-carousel {
    --hark-columns-desktop: 3;
    --hark-columns-tablet: 2;
    --hark-dot-color: #cccccc;
    --hark-dot-active-color: #0073e6;
    --hark-arrow-color: #333333;
    --hark-column-gap: 30px;
    position: relative;
    width: 100%;
}

.hark-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.hark-carousel-track {
    display: grid;
    grid-template-columns: repeat(var(--hark-columns-desktop), 1fr);
    gap: var(--hark-column-gap);
    transition: transform 0.3s ease-out;
}

.hark-slide {
    min-width: 0;
    box-sizing: border-box;
}

.hark-slide-title {
    margin: 0 0 10px 0;
    padding: 0;
}

.hark-slide-content {
    margin: 0;
}

.hark-slide-content p:last-child {
    margin-bottom: 0;
}

/* Navigation Arrows */
.hark-carousel-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
    color: var(--hark-arrow-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, transform 0.2s;
    padding: 0;
}

.hark-carousel-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.hark-carousel-arrow:focus {
    outline: 2px solid var(--hark-dot-active-color);
    outline-offset: 2px;
}

.hark-arrow-prev {
    left: 10px;
}

.hark-arrow-next {
    right: 10px;
}

.hark-carousel-arrow svg {
    display: block;
}

/* Navigation Dots */
.hark-carousel-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 0;
}

.hark-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: var(--hark-dot-color);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s, transform 0.2s;
}

.hark-dot:hover {
    transform: scale(1.2);
}

.hark-dot:focus {
    outline: 2px solid var(--hark-dot-active-color);
    outline-offset: 2px;
}

.hark-dot.active {
    background-color: var(--hark-dot-active-color);
}

/* Tablet Styles */
@media (max-width: 980px) {
    .hark-carousel-track {
        grid-template-columns: repeat(var(--hark-columns-tablet), 1fr);
    }
}

/* Mobile Styles - Carousel Mode */
@media (max-width: 767px) {
    .hark-mobile-carousel.carousel-active .hark-carousel-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
    }

    .hark-mobile-carousel.carousel-active .hark-slide {
        flex: 0 0 100%;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .hark-mobile-carousel.carousel-active .hark-carousel-dots {
        display: flex;
    }

    .hark-mobile-carousel.carousel-active .hark-carousel-arrow {
        display: flex;
    }

    /* Touch-friendly adjustments */
    .hark-mobile-carousel.carousel-active .hark-carousel-wrapper {
        touch-action: pan-y pinch-zoom;
    }
}

/* Transition state */
.hark-mobile-carousel.is-transitioning .hark-carousel-track {
    transition: transform 0.3s ease-out;
}

.hark-mobile-carousel:not(.is-transitioning) .hark-carousel-track {
    transition: none;
}

/* Visual Builder Preview */
.et-fb .hark-mobile-carousel .hark-carousel-dots {
    display: flex;
}

.et-fb .hark-mobile-carousel .hark-carousel-arrow {
    display: flex;
}

/* ========================================
   HARK CASE STUDY GRID
   ======================================== */

.hark-case-study-grid {
    --hcsg-columns: 2;
    --hcsg-row-gap: 60px;
    --hcsg-column-gap: 40px;
    --hcsg-image-size: 200px;
    --hcsg-image-radius: 16px;
    --hcsg-title-color: #333333;
    --hcsg-arrow-color: #333333;
    
    display: grid;
    grid-template-columns: repeat(var(--hcsg-columns), 1fr);
    row-gap: var(--hcsg-row-gap);
    column-gap: var(--hcsg-column-gap);
}

.hcsg-item {
    display: flex;
    align-items: center;
    gap: 25px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.hcsg-item:hover {
    transform: translateY(-2px);
}

.hcsg-image-wrapper {
    flex-shrink: 0;
    width: var(--hcsg-image-size);
    height: var(--hcsg-image-size);
    border-radius: var(--hcsg-image-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 
                0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.hcsg-item:hover .hcsg-image-wrapper {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 
                0 4px 12px rgba(0, 0, 0, 0.06);
}

.hcsg-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hcsg-content {
    flex: 1;
}

.hcsg-title {
    font-family: "Instrument Sans" !important;
    font-size: 28px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 30px !important;
    color: #000 !important;
    margin: 0;
    padding: 0;
    display: inline;
    transition: color 0.3s ease;
}

.hcsg-item:hover .hcsg-title {
    color: #8d2399 !important;
}

.hcsg-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25em;
    position: relative;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.hcsg-arrow svg {
    width: 18px;
    height: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hcsg-arrow svg path {
    fill: #000;
    transition: fill 0.3s ease;
}

/* Triple arrow setup - all start at center position */
.hcsg-arrow svg:nth-child(1) {
    opacity: 1;
}

.hcsg-arrow svg:nth-child(2) {
    opacity: 0;
}

.hcsg-arrow svg:nth-child(3) {
    opacity: 0;
}

/* Hover state - fan out from center with purple shades */
.hcsg-item:hover .hcsg-arrow svg:nth-child(1) {
    opacity: 0.3;
    transform: translate(calc(-50% - 5px), calc(-50% + 5px));
}

.hcsg-item:hover .hcsg-arrow svg:nth-child(1) path {
    fill: #8d2399;
}

.hcsg-item:hover .hcsg-arrow svg:nth-child(2) {
    opacity: 0.6;
    transform: translate(-50%, -50%);
}

.hcsg-item:hover .hcsg-arrow svg:nth-child(2) path {
    fill: #8d2399;
}

.hcsg-item:hover .hcsg-arrow svg:nth-child(3) {
    opacity: 1;
    transform: translate(calc(-50% + 5px), calc(-50% - 5px));
}

.hcsg-item:hover .hcsg-arrow svg:nth-child(3) path {
    fill: #8d2399;
}

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .hark-case-study-grid {
        --hcsg-columns: 2;
        --hcsg-image-size: 160px;
    }
    
    .hcsg-title {
        font-size: 24px !important;
        line-height: 28px !important;
    }
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
    .hark-case-study-grid {
        --hcsg-columns: 1 !important;
        --hcsg-row-gap: 40px;
    }
    
    .hcsg-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .hcsg-image-wrapper {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }
    
    .hcsg-content {
        width: 100%;
    }
    
    .hcsg-title {
        font-size: 22px !important;
        line-height: 26px !important;
    }
    
    .hcsg-arrow {
        width: 20px;
        height: 20px;
    }
    
    .hcsg-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .hcsg-title {
        font-size: 20px !important;
        line-height: 24px !important;
    }
    
    .hcsg-arrow {
        width: 18px;
        height: 18px;
    }
    
    .hcsg-arrow svg {
        width: 14px;
        height: 14px;
    }
}

/* Divi Builder Preview */
.et-fb .hark-case-study-grid {
    min-height: 100px;
}

.et-fb .hcsg-item {
    pointer-events: none;
}

/* ========================================
   HARK FEATURED CASE STUDY
   ======================================== */

.hark-featured-case-study {
    --hfcs-image-width: 50%;
    --hfcs-image-radius: 16px;
    --hfcs-tag-bg: #f0f0f0;
    --hfcs-tag-color: #333333;
    
    display: flex;
    align-items: flex-start;
    gap: 60px;
    transition: transform 0.2s ease;
}

.hark-featured-case-study:hover {
    transform: translateY(-2px);
}

.hfcs-image-link {
    flex-shrink: 0;
    width: var(--hfcs-image-width);
    display: block;
}

.hfcs-image-link .hfcs-image-wrapper {
    width: 100%;
}

.hfcs-image-wrapper {
    flex-shrink: 0;
    width: var(--hfcs-image-width);
    border-radius: var(--hfcs-image-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 
                0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.hark-featured-case-study:hover .hfcs-image-wrapper,
.hfcs-image-link:hover .hfcs-image-wrapper {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 
                0 4px 12px rgba(0, 0, 0, 0.06);
}

.hfcs-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.hfcs-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hfcs-title-link {
    text-decoration: none;
    display: inline;
    cursor: pointer;
}

.hfcs-title {
    font-family: "Instrument Sans" !important;
    font-size: 37.289px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 37px !important;
    color: #000 !important;
    margin: 0;
    padding: 0;
    display: inline;
    transition: color 0.3s ease;
}

.hfcs-title-link:hover .hfcs-title {
    color: #8d2399 !important;
}

.hfcs-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25em;
    position: relative;
    width: 36px;
    height: 36px;
    vertical-align: middle;
}

.hfcs-arrow svg {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 0;
    left: 0;
    color: #000;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

/* Triple arrow setup - all start at center position */
.hfcs-arrow svg:nth-child(1) {
    opacity: 1;
    transform: translate(0, 0);
}

.hfcs-arrow svg:nth-child(2) {
    opacity: 0;
    transform: translate(0, 0);
}

.hfcs-arrow svg:nth-child(3) {
    opacity: 0;
    transform: translate(0, 0);
}

/* Hover state - fan out from center with purple shades */
.hfcs-title-link:hover .hfcs-arrow svg:nth-child(1) {
    opacity: 0.3;
    transform: translate(-6px, 6px);
    color: #8d2399;
}

.hfcs-title-link:hover .hfcs-arrow svg:nth-child(2) {
    opacity: 0.6;
    transform: translate(0, 0);
    color: #8d2399;
}

.hfcs-title-link:hover .hfcs-arrow svg:nth-child(3) {
    opacity: 1;
    transform: translate(6px, -6px);
    color: #8d2399;
}

/* Tags container - grid for strict 2 columns */
.hfcs-tags {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 12px;
    justify-content: start;
}

/* Individual tag pill */
.hfcs-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hfcs-tag-bg);
    color: #5D5D5D;
    text-align: center;
    font-family: "Instrument Sans";
    font-size: 13.312px;
    font-style: normal;
    font-weight: 400;
    line-height: 18.105px;
    letter-spacing: -0.399px;
    padding: 10px 20px;
    border-radius: 50px;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .hark-featured-case-study {
        gap: 40px;
    }
    
    .hfcs-title {
        font-size: 30px !important;
        line-height: 32px !important;
    }
    
    .hfcs-arrow {
        width: 30px;
        height: 30px;
    }
    
    .hfcs-arrow svg {
        width: 30px;
        height: 30px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
    .hark-featured-case-study {
        flex-direction: column;
        gap: 24px;
    }
    
    .hfcs-image-wrapper {
        width: 100% !important;
    }
    
    .hfcs-image-link {
        width: 100% !important;
    }
    
    .hfcs-title {
        font-size: 24px !important;
        line-height: 28px !important;
    }
    
    .hfcs-arrow {
        width: 26px;
        height: 26px;
    }
    
    .hfcs-arrow svg {
        width: 26px;
        height: 26px;
    }
    
    .hfcs-tags {
        grid-template-columns: repeat(2, auto);
    }
    
    .hfcs-tag {
        font-size: 12px;
        line-height: 16px;
        padding: 8px 16px;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .hfcs-title {
        font-size: 20px !important;
        line-height: 26px !important;
    }
    
    .hfcs-tag {
        font-size: 11px;
        line-height: 15px;
        padding: 8px 12px;
    }
}

/* Divi Builder Preview */
.et-fb .hark-featured-case-study {
    min-height: 100px;
}

.et-fb .hfcs-title-link {
    pointer-events: none;
}
