/**
 * Aikya Slider Cards — slider-cards.css
 * Save as: /assets/css/slider-cards.css
 *
 * Fix: arrows are now positioned relative to .asc-section (not .asc-wrapper)
 * so WordPress theme overflow:hidden on inner containers can't clip them.
 * JS sets their top value via positionArrows().
 */

/* ═══════════════════════════════════════════════
   SECTION + OUTER
   ═══════════════════════════════════════════════ */
.asc-section {
    position: relative;  /* arrows are absolute inside here */
    padding: 64px 0;
    background: var(--color-bg-soft, #f8fafa);
    overflow: visible;   /* MUST be visible — arrows sit outside asc-outer */
}

.asc-outer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;     /* 80px leaves room for 44px arrow + 36px breathing */
    box-sizing: border-box;
    overflow: visible;   /* never clip — but arrows no longer depend on this */
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.asc-header {
    text-align: left;
    margin-bottom: 40px;
}

.asc-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-teal-darker, #066f6f);
    margin: 0 0 10px;
    line-height: 1.2;
}

.asc-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted, #6a7c7c);
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

/* ═══════════════════════════════════════════════
   WRAPPER — no longer holds the arrows.
   Plain flex container, no padding needed.
   ═══════════════════════════════════════════════ */
.asc-wrapper {
    position: relative;
    overflow: visible;
}

/* ═══════════════════════════════════════════════
   VIEWPORT — the ONLY element that clips overflow
   ═══════════════════════════════════════════════ */
.asc-viewport {
    overflow: hidden;
    width: 100%;
}

/* ═══════════════════════════════════════════════
   TRACK — JS sets transform on this
   ═══════════════════════════════════════════════ */
.asc-track {
    display: flex;
    align-items: stretch;
}

/* ═══════════════════════════════════════════════
   CARD SHELL — JS sets width + margin-right
   ═══════════════════════════════════════════════ */
.asc-card {
    flex-shrink: 0;
    box-sizing: border-box;
    padding-bottom: 4px;
}

/* ═══════════════════════════════════════════════
   CARD INNER
   ═══════════════════════════════════════════════ */
.asc-card-inner {
    background: #ffffff;
    border: 1.5px solid #e0eaea;
    border-radius: 16px;
    padding: 28px 24px 24px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease,
                box-shadow   0.25s ease,
                transform    0.25s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.asc-card:hover .asc-card-inner {
    border-color: var(--color-primary-teal, #0bb2b2);
    box-shadow:   0 8px 28px rgba(11, 178, 178, 0.14);
    transform:    translateY(-4px);
}

/* ── Image ── */
.asc-card-image {
    width: 100%;
    height: 190px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f0f5f5;
    flex-shrink: 0;
}

.asc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.asc-card:hover .asc-card-image img {
    transform: scale(1.05);
}

/* ── Icon ── */
.asc-card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 178, 178, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(11, 178, 178, 0.18);
}

.asc-card-icon i {
    font-size: 22px;
    color: var(--color-primary-teal, #0bb2b2);
    line-height: 1;
    display: block;
}

/* ── Body ── */
.asc-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.asc-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-teal-darker, #066f6f);
    margin: 0 0 10px;
    line-height: 1.35;
}

.asc-card-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-secondary, #364747);
    margin: 0;
    flex: 1;
}

/* ── CTA ── */
.asc-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-teal, #0bb2b2);
    font-family: 'Poppins', sans-serif;
}

.asc-card-cta i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

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

a.asc-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ═══════════════════════════════════════════════
   ARROW BUTTONS
   ─────────────────────────────────────────────
   • position: absolute on .asc-SECTION (not wrapper)
   • left / right are measured from the section edge
   • JS sets `top` via positionArrows() so they
     vertically centre on the card viewport area
   • z-index: 30 ensures they're above card shadows
   ═══════════════════════════════════════════════ */
.asc-btn-prev,
.asc-btn-next {
    /* Positioning — relative to .asc-section */
    position:   absolute;
    top:        50%;            /* JS overrides with exact pixel value */
    transform:  translateY(-50%);
    z-index:    30;

    /* Size */
    width:      44px;
    height:     44px;
    padding:    0;
    margin:     0;

    /* Always visible — JS toggles disabled prop, never display */
    display:         flex !important;
    visibility:      visible !important;
    align-items:     center;
    justify-content: center;

    /* Appearance */
    background:    #ffffff;
    border:        1.5px solid #c8dede;
    border-radius: 50%;
    color:         var(--color-teal-darker, #066f6f);
    font-size:     14px;
    line-height:   1;
    box-shadow:    0 2px 14px rgba(0, 0, 0, 0.12);
    cursor:        pointer;
    outline:       none;
    -webkit-appearance: none;
    appearance:    none;
    transition:    background   0.2s ease,
                   border-color 0.2s ease,
                   color        0.2s ease,
                   box-shadow   0.2s ease,
                   opacity      0.2s ease;
}

/* Positions — sits in the gutter outside the viewport */
.asc-btn-prev { left:  16px; }
.asc-btn-next { right: 16px; }

.asc-btn-prev:hover:not(:disabled),
.asc-btn-next:hover:not(:disabled) {
    background:   var(--color-primary-teal, #0bb2b2);
    border-color: var(--color-primary-teal, #0bb2b2);
    color:        #ffffff;
    box-shadow:   0 4px 18px rgba(11, 178, 178, 0.35);
    transform:    translateY(-50%); /* keep vertical only */
}

.asc-btn-prev:disabled,
.asc-btn-next:disabled {
    opacity:        0.28;
    cursor:         not-allowed;
    pointer-events: none;
    box-shadow:     none;
}

.asc-btn-prev i,
.asc-btn-next i {
    display:        block;
    pointer-events: none;
    font-size:      14px;
    line-height:    1;
    color:          inherit;
}

/* Nuke any theme button resets */
.asc-section > .asc-btn-prev,
.asc-section > .asc-btn-next {
    display:    flex !important;
    visibility: visible !important;
    overflow:   visible !important;
    opacity:    1 !important;
}
.asc-section > .asc-btn-prev:disabled,
.asc-section > .asc-btn-next:disabled {
    opacity: 0.28 !important;
}

/* ═══════════════════════════════════════════════
   DOTS
   ═══════════════════════════════════════════════ */
.asc-dots {
    display:         flex;
    justify-content: center;
    align-items:     center;
    gap:             8px;
    margin-top:      28px;
    padding:         0;
    list-style:      none;
}

.asc-dot {
    display:       block;
    width:         7px;
    height:        7px;
    padding:       0;
    margin:        0;
    background:    #b8cece;
    border:        none;
    border-radius: 4px;
    cursor:        pointer;
    flex-shrink:   0;
    transition:    width 0.25s ease, background 0.25s ease;
}

.asc-dot:hover    { background: var(--color-teal-soft, #2fc2c2); }
.asc-dot.is-active {
    width:      24px;
    background: var(--color-primary-teal, #0bb2b2);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .asc-outer    { padding: 0 72px; }
    .asc-card-inner { padding: 24px 20px 20px; }
    .asc-btn-prev { left:  12px; }
    .asc-btn-next { right: 12px; }
}

@media (max-width: 767px) {
    .asc-outer    { padding: 0 56px; }
    .asc-section  { padding: 44px 0; }
    .asc-header   { margin-bottom: 28px; }
    .asc-title    { font-size: 1.5rem; }

    .asc-card-inner { padding: 20px 16px 18px; }
    .asc-card-image { height: 160px; }
    .asc-card-title { font-size: 1rem; }
    .asc-card-icon  { width: 44px; height: 44px; }
    .asc-card-icon i { font-size: 18px; }

    .asc-btn-prev,
    .asc-btn-next   { width: 36px; height: 36px; }
    .asc-btn-prev i,
    .asc-btn-next i { font-size: 12px; }
    .asc-btn-prev   { left:  8px; }
    .asc-btn-next   { right: 8px; }
}

@media (max-width: 479px) {
    .asc-outer  { padding: 0 48px; }
    .asc-section { padding: 36px 0; }
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .asc-card-inner,
    .asc-card-image img,
    .asc-card-cta i,
    .asc-btn-prev,
    .asc-btn-next,
    .asc-dot { transition: none !important; }
}