/* ce-featured.css v2.0 — houzez-child/css/ce-featured.css */

.ce-featured-wrap { font-family:'Segoe UI',Arial,sans-serif; width:100%; }

/* Header */
.ce-featured-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; flex-wrap:wrap; gap:10px; }
.ce-featured-title { font-size:22px !important; font-weight:800 !important; color:#0a1628 !important; margin:0 !important; padding:0 !important; border:none !important; }
.ce-featured-viewall { font-size:13px; font-weight:700; color:#1a6fc4 !important; text-decoration:none !important; border:1.5px solid #1a6fc4; padding:7px 18px; border-radius:6px; white-space:nowrap; transition:all 0.15s; }
.ce-featured-viewall:hover { background:#1a6fc4; color:#fff !important; }

/* Carousel wrapper */
.ce-feat-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Track — slides horizontally */
.ce-feat-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Each card — fixed width based on columns */
.ce-feat-card {
    flex: 0 0 calc(25% - 12px) !important;
    min-width: calc(25% - 12px) !important;
    max-width: calc(25% - 12px) !important;
}

/* Featured star badge */
.ce-feat-star {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #c9a84c;
    color: #0a1628;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.3px;
}

/* Gold hover for featured cards */
.ce-feat-card:hover {
    border-color: #c9a84c !important;
    box-shadow: 0 6px 20px rgba(201,168,76,0.2) !important;
}

/* Arrows */
.ce-feat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a1628;
    z-index: 10;
    transition: all 0.15s;
}
.ce-feat-arrow:hover { background:#1a6fc4; color:#fff; border-color:#1a6fc4; }
.ce-feat-prev { left: -20px; }
.ce-feat-next { right: -20px; }

/* Dots */
.ce-feat-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}
.ce-feat-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}
.ce-feat-dot.is-active { background: #c9a84c; width: 24px; border-radius: 4px; }

/* Tablet — 3 cards */
@media (max-width:1024px) {
    .ce-feat-card { flex:0 0 calc(33.33% - 11px) !important; min-width:calc(33.33% - 11px) !important; max-width:calc(33.33% - 11px) !important; }
    .ce-feat-prev { left:-12px; }
    .ce-feat-next { right:-12px; }
}

/* Mobile — 1.2 cards visible (peek) */
@media (max-width:767px) {
    .ce-featured-title { font-size:18px !important; }
    .ce-feat-card { flex:0 0 84vw !important; min-width:84vw !important; max-width:84vw !important; }
    .ce-feat-arrow { width:32px; height:32px; font-size:18px; }
    .ce-feat-prev { left:-8px; }
    .ce-feat-next { right:-8px; }
}

@media (max-width:480px) {
    .ce-feat-card { flex:0 0 88vw !important; min-width:88vw !important; max-width:88vw !important; }
}
