/* ============================================
   TX Post CPT Lists Widget — Custom Styles
   ============================================ */

/* --- Meta Styles --- */
.lw-pcl-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 12px;
}
.lw-pcl-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    font-weight: 400;
}
.lw-pcl-meta i {
    font-size: 12px;
    color: #b0a98f;
}
.lw-pcl-meta-overlay {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.lw-pcl-meta-overlay span {
    color: rgba(255,255,255,0.7);
}
.lw-pcl-meta-overlay i {
    color: rgba(255,255,255,0.5);
}
.lw-pcl-meta-center {
    justify-content: center;
    margin-top: 15px;
}
.lw-pcl-meta-masonry {
    margin-top: 8px;
}
.lw-pcl-meta-masonry span {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
}

/* --- Category Badge --- */
.lw-pcl-cat-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #b0a98f;
    margin-bottom: 6px;
}

/* --- Grid Card (View 4) --- */
.lw-pcl-grid-wrap .lw-archive-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}
.lw-pcl-grid-wrap .lw-archive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.lw-pcl-grid-wrap .lw-archive-card-img {
    overflow: hidden;
    position: relative;
}
.lw-pcl-grid-wrap .lw-archive-card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.lw-pcl-grid-wrap .lw-archive-card:hover .lw-archive-card-img img {
    transform: scale(1.05);
}
.lw-pcl-grid-wrap .lw-archive-card-content {
    padding: 24px;
}
.lw-pcl-grid-wrap .card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}
.lw-pcl-grid-wrap .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.lw-pcl-grid-wrap .card-title a:hover {
    color: #b0a98f;
}
.lw-pcl-grid-wrap .card-excerpt {
    font-size: 14px;
    color: #777;
    line-height: 1.65;
    margin-bottom: 15px;
}
.lw-pcl-grid-wrap .card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #b0a98f;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}
.lw-pcl-grid-wrap .card-btn:hover {
    gap: 12px;
    color: #8a7f65;
}
.lw-pcl-grid-wrap .card-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}
.lw-pcl-grid-wrap .card-btn:hover i {
    transform: translateX(3px);
}

/* --- View 1 Features Image --- */
.lw-features-1-img {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}
.lw-features-1-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.lw-features-1-item:hover .lw-features-1-img img {
    transform: scale(1.05);
}

/* --- Navigation Arrows --- */
.lw-pcl-nav-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}
.lw-pcl-nav-arrows .line {
    width: 40px;
    height: 1px;
    background: rgba(0,0,0,0.15);
}
.lw-pcl-nav-arrows-split {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 5;
}

/* --- Scrollbar --- */
.lw-pcl-scrollbar {
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,0.08);
    border-radius: 3px;
    margin-top: 25px;
}
.lw-pcl-scrollbar .swiper-scrollbar-drag {
    background: #b0a98f;
    border-radius: 3px;
}

/* --- Pagination Dots --- */
.lw-pcl-pagination-wrap {
    text-align: center;
    margin-top: 25px;
}
.lw-pcl-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0,0,0,0.15);
    opacity: 1;
    transition: background 0.3s, transform 0.3s;
}
.lw-pcl-pagination .swiper-pagination-bullet-active {
    background: #b0a98f;
    transform: scale(1.2);
}

/* --- Masonry Grid (View 7) --- */
.lw-pcl-masonry-grid .lw-case-studies-item {
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
}
.lw-pcl-masonry-grid .lw-case-studies-item.has-lg-size {
    min-height: 420px;
}
.lw-pcl-masonry-grid .lw-case-studies-item.has-md-size {
    min-height: 380px;
}
.lw-pcl-masonry-grid .lw-case-studies-item.has-sm-size {
    min-height: 280px;
}
.lw-pcl-masonry-grid .lw-case-studies-item.has-xs-size {
    min-height: 260px;
}

/* --- Dark theme support --- */
[data-theme="dark"] .lw-pcl-grid-wrap .lw-archive-card {
    background: #1a1a2e;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
[data-theme="dark"] .lw-pcl-grid-wrap .card-excerpt {
    color: #aaa;
}
[data-theme="dark"] .lw-pcl-meta span {
    color: #aaa;
}

/* --- Center Focus Slider (View 8) --- */
.lw-style-8-slider {
    padding-bottom: 30px;
}
.lw-style-8-slider .lw-cf-item {
    padding-bottom: 70px; /* Space for the overlapping box */
    transition: all 0.4s ease;
}
.lw-style-8-slider .lw-cf-img {
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
}
.lw-style-8-slider .lw-cf-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.lw-style-8-slider .lw-cf-item:hover .lw-cf-img img {
    transform: scale(1.08) !important;
}
.lw-style-8-slider .lw-cf-content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    width: 85%;
    background: #0a0a0a;
    padding: 35px 30px;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s ease !important;
    transition-delay: 0s !important;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 2;
}
.lw-style-8-slider .swiper-slide-active .lw-cf-content,
.lw-style-8-slider .lw-cf-item:hover .lw-cf-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) !important;
}
.lw-style-8-slider .lw-cf-content .title {
    color: #fff;
    margin-bottom: 8px;
    font-size: 22px;
}
.lw-style-8-slider .lw-cf-content .title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.lw-style-8-slider .lw-cf-content .title a:hover {
    color: #b0a98f;
}
.lw-style-8-slider .lw-cf-content .cat {
    color: #b0a98f;
    font-size: 14px;
    margin-bottom: 15px;
}
.lw-style-8-slider .lw-cf-content .excerpt {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
}
.lw-style-8-slider .card-btn {
    margin-bottom: 15px;
}
.lw-style-8-nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    padding: 0 30px; /* Ensures arrows are fully inside the container */
}
.lw-style-8-nav-arrows .lw-slider-btn-3 {
    pointer-events: auto;
}
