/*
 * LBN Cultural Events — Homepage Strip CSS
 * DS v.3 sandy neumorphic. Mirrors cm-strip / vp-strip pattern.
 * Enqueued on all frontend pages (not just the dashboard).
 */

.ce-strip {
    padding: 0;
    font-family: Tajawal, sans-serif;
}

.ce-strip__grid {
    display: grid;
    grid-template-columns: repeat(var(--ce-strip-cols, 3), 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .ce-strip__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .ce-strip__grid { grid-template-columns: 1fr; }
}

/* ── Card ── */
.ce-strip__card {
    display: flex;
    flex-direction: column;
    background: var(--c-sand-100, #faf3e3);
    border-radius: var(--r-md, 14px);
    box-shadow: var(--shadow-raised, 4px 4px 10px rgba(0,0,0,.12), -3px -3px 8px rgba(255,255,255,.7));
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}

.ce-strip__card:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 16px rgba(0,0,0,.16), -4px -4px 12px rgba(255,255,255,.8);
    text-decoration: none;
    color: inherit;
}

/* ── Image area ── */
.ce-strip__card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--primary_color, #285260);
    flex-shrink: 0;
}

.ce-strip__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.ce-strip__card:hover .ce-strip__card-img img {
    transform: scale(1.04);
}

.ce-strip__card-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    opacity: .4;
}

/* ── Date badge (overlaid on image bottom-right) ── */
.ce-strip__card-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary_color, #285260);
    color: var(--c-text-on-primary, #faf3e3);
    border-radius: var(--r-sm, 8px);
    padding: 6px 10px;
    text-align: center;
    min-width: 44px;
    line-height: 1.2;
}

[dir="rtl"] .ce-strip__card-date,
.rtl .ce-strip__card-date {
    right: auto;
    left: 10px;
}

.ce-strip__card-date-day {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
}

.ce-strip__card-date-month {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    opacity: .85;
    text-transform: uppercase;
}

.ce-strip__card-date--tbd .ce-strip__card-date-day {
    font-size: .8rem;
}

/* ── Card body ── */
.ce-strip__card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ce-strip__card-title {
    font-family: Zain, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-sand-900, #2a2118);
    margin: 0;
    line-height: 1.4;
}

.ce-strip__card-loc {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    color: var(--c-text-muted, #8a7050);
}

.ce-strip__card-loc svg {
    flex-shrink: 0;
    color: var(--primary_color, #285260);
}

/* ── CTA button ── */
.ce-strip__card-btn {
    display: inline-block;
    margin-top: auto;
    padding: 7px 18px;
    background: var(--primary_color, #285260);
    color: #fff !important;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    align-self: flex-start;
    transition: background .2s;
}

.ce-strip__card:hover .ce-strip__card-btn {
    background: #1e3d47;
}
