/* ============================================================
   Tao Post Carousel — Stylesheet
   Author: Tao Mihiranga | Fourpixell
   ============================================================ */

/* ── Reset & Base ── */
.tao-pc-wrapper *,
.tao-pc-wrapper *::before,
.tao-pc-wrapper *::after {
    box-sizing: border-box;
}

.tao-pc-wrapper {
    position: relative;
    width: 100%;
}

.tao-pc-no-posts {
    text-align: center;
    color: #9ca3af;
    padding: 40px 0;
}

/* ── Track Structure ── */
.tao-pc-track-outer {
    display: flex;
    align-items: center;
    gap: 0;
}

.tao-pc-track-clip {
    overflow: hidden;
    width: 100%;
}

.tao-pc-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Slide ── */
.tao-pc-slide {
    flex-shrink: 0;
    padding: 0 10px;
}

/* ── Card ── */
.tao-pc-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tao-pc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* ── Image ── */
.tao-pc-image-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
}

/* Aspect Ratios */
.tao-pc-ar-1-1  { aspect-ratio: 1 / 1; }
.tao-pc-ar-4-3  { aspect-ratio: 4 / 3; }
.tao-pc-ar-16-9 { aspect-ratio: 16 / 9; }
.tao-pc-ar-3-4  { aspect-ratio: 3 / 4; }

.tao-pc-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tao-pc-image-zoom .tao-pc-card:hover .tao-pc-thumbnail {
    transform: scale(1.06);
}

/* ── Overlay Layout ── */
.tao-pc-layout-overlay .tao-pc-image-wrap {
    min-height: 320px;
}

.tao-pc-layout-overlay .tao-pc-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    transition: background 0.3s ease;
    z-index: 1;
}

.tao-pc-layout-overlay .tao-pc-card:hover .tao-pc-image-wrap::after {
    background: rgba(0,0,0,0.5);
}

.tao-pc-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
}

.tao-pc-layout-overlay .tao-pc-category {
    color: rgba(255,255,255,0.8);
}

.tao-pc-layout-overlay .tao-pc-title a {
    color: #fff;
}

/* ── Image Left/Right Layouts ── */
.tao-pc-layout-image_left .tao-pc-card,
.tao-pc-layout-image_right .tao-pc-card {
    flex-direction: row;
}

.tao-pc-layout-image_right .tao-pc-card {
    flex-direction: row-reverse;
}

.tao-pc-layout-image_left .tao-pc-image-wrap,
.tao-pc-layout-image_right .tao-pc-image-wrap {
    width: 40%;
    flex-shrink: 0;
    aspect-ratio: auto;
}

.tao-pc-layout-image_left .tao-pc-content,
.tao-pc-layout-image_right .tao-pc-content {
    flex: 1;
}

/* ── Content ── */
.tao-pc-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Category ── */
.tao-pc-category {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.tao-pc-category:hover {
    color: #5b6af0;
}

/* ── Title ── */
.tao-pc-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #1a1a2e;
}

.tao-pc-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tao-pc-title a:hover {
    color: #5b6af0;
}

/* ── Excerpt ── */
.tao-pc-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0 0 20px;
    flex: 1;
}

/* ── Meta ── */
.tao-pc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #9ca3af;
}

.tao-pc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tao-pc-meta-item i {
    font-size: 11px;
    color: #9ca3af;
}

.tao-pc-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tao-pc-meta a:hover {
    color: #5b6af0;
}

/* ── Button ── */
.tao-pc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    align-self: flex-start;
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: 8px;
    line-height: 1;
}

.tao-pc-btn i {
    font-size: 11px;
}

/* Outline (default) */
.tao-pc-btn-outline {
    color: #1a1a2e;
    background: transparent;
    border-color: #1a1a2e;
}

.tao-pc-btn-outline:hover {
    color: #fff;
    background: #1a1a2e;
}

/* Filled */
.tao-pc-btn-filled {
    color: #fff;
    background: #5b6af0;
    border-color: #5b6af0;
}

.tao-pc-btn-filled:hover {
    background: #3d4ce8;
    border-color: #3d4ce8;
}

/* Text */
.tao-pc-btn-text {
    color: #5b6af0;
    background: transparent;
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.tao-pc-btn-text:hover {
    color: #3d4ce8;
}

/* Pill */
.tao-pc-btn-pill {
    color: #fff;
    background: #5b6af0;
    border-color: #5b6af0;
    border-radius: 9999px;
    padding: 10px 24px;
}

.tao-pc-btn-pill:hover {
    background: #3d4ce8;
    border-color: #3d4ce8;
}

/* ── Arrows ── */
.tao-pc-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #5b6af0;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 10;
    transition: background 0.25s ease, transform 0.2s ease, opacity 0.2s ease;
    outline: none;
}

.tao-pc-arrow:hover {
    background: #3d4ce8;
    transform: scale(1.08);
}

.tao-pc-arrow:focus-visible {
    box-shadow: 0 0 0 3px rgba(91, 106, 240, 0.4);
}

.tao-pc-arrow.tao-pc-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.tao-pc-arrow i {
    font-size: 16px;
    line-height: 1;
}

/* Sides positioning */
.tao-pc-track-outer .tao-pc-arrow {
    margin: 0 8px;
}

/* Top nav */
.tao-pc-nav-top {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

/* Bottom nav */
.tao-pc-nav-bottom {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

/* ── Dots ── */
.tao-pc-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.tao-pc-dot {
    display: block;
    height: 8px;
    width: 8px;
    border-radius: 9999px;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, width 0.3s ease;
    flex-shrink: 0;
}

.tao-pc-dot.active {
    background: #5b6af0;
    width: 24px;
}

/* Square dots style */
.tao-pc-dots-square .tao-pc-dot {
    border-radius: 3px;
}

.tao-pc-dots-square .tao-pc-dot.active {
    border-radius: 3px;
}

/* Line dots style */
.tao-pc-dots-line .tao-pc-dot {
    border-radius: 1px;
    height: 3px;
    width: 20px;
}

.tao-pc-dots-line .tao-pc-dot.active {
    width: 36px;
    background: #5b6af0;
}

/* ── Elementor Editor Padding Fix ── */
.elementor-editor-active .tao-pc-track-clip {
    overflow: visible;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tao-pc-layout-image_left .tao-pc-image-wrap,
    .tao-pc-layout-image_right .tao-pc-image-wrap {
        width: 45%;
    }
}

@media (max-width: 767px) {
    .tao-pc-layout-image_left .tao-pc-card,
    .tao-pc-layout-image_right .tao-pc-card {
        flex-direction: column;
    }

    .tao-pc-layout-image_left .tao-pc-image-wrap,
    .tao-pc-layout-image_right .tao-pc-image-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .tao-pc-content {
        padding: 18px;
    }

    .tao-pc-title {
        font-size: 18px;
    }
}
