/* =====================================================
   Portfolio / Events — New Layout
   Sidebar Filters + Horizontal Cards
   Extracted from Portfolio/Index.cshtml
===================================================== */

@keyframes pvtReveal {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

[data-animate] {
    animation: pvtReveal 0.4s cubic-bezier(0.4, 0, 0.2, 1) var(--card-delay, 0ms) both;
}

@keyframes ldPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.6); opacity: 0.5; }
}

/* ─── Page ─── */
.pvt-page {
    background: #f1f5f9;
    padding: 56px 0 90px;
    min-height: 60vh;
}

/* ─── Two-panel layout ─── */
.pvt-layout {
    display: flex;
    gap: 26px;
    align-items: flex-start;
}

/* ═══════════════════════════════════
   SIDEBAR (first in DOM = right in RTL)
═══════════════════════════════════ */
.pvt-sidebar {
    width: 264px;
    min-width: 264px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

/* Sidebar header */
.pvt-sidebar__head {
    background: linear-gradient(150deg, #1a2451 0%, #263370 55%, #0d6fa0 100%);
    border-radius: 20px 20px 0 0;
    padding: 26px 22px 22px;
    position: relative;
    overflow: hidden;
}

.pvt-sidebar__head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 15% 60%, rgba(93,208,240,0.14) 0%, transparent 60%);
}

.pvt-sidebar__head-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-bottom: 14px;
    position: relative;
}

.pvt-sidebar__head h3 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    position: relative;
}

.pvt-sidebar__head p {
    font-size: 11.5px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    position: relative;
}

/* Sidebar body */
.pvt-sidebar__body {
    background: #fff;
    border-radius: 0 0 20px 20px;
    border: 1px solid rgba(226,232,240,0.8);
    border-top: none;
    padding: 18px;
    box-shadow: 0 8px 28px rgba(38,51,112,0.08);
}

/* Filter group */
.pvt-fgroup {
    margin-bottom: 20px;
}

.pvt-fgroup:last-child { margin-bottom: 0; }

.pvt-fgroup__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Filter button */
.pvt-fbtn {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: right;
    margin-bottom: 2px;
    position: relative;
}

.pvt-fbtn__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.pvt-fbtn:hover {
    background: #f1f5f9;
    color: #263370;
}

.pvt-fbtn:hover .pvt-fbtn__dot { background: #0c7fae; transform: scale(1.2); }

.pvt-fbtn.active {
    background: rgba(38,51,112,0.07);
    color: #263370;
    font-weight: 700;
}

.pvt-fbtn.active .pvt-fbtn__dot { background: #263370; transform: scale(1.2); }

.pvt-fgroup__sep {
    height: 1px;
    background: #f1f5f9;
    margin: 14px 0;
}

/* ═══════════════════════════════════
   MAIN AREA
═══════════════════════════════════ */
.pvt-main { flex: 1; min-width: 0; }

.pvt-main__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pvt-main__title {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
}

.pvt-main__title span {
    color: #263370;
    font-weight: 800;
}

/* Event list */
.pvt-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ═══════════════════════════════════
   HORIZONTAL EVENT CARD
═══════════════════════════════════ */
.pvt-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(38,51,112,0.06), 0 0 0 1px rgba(226,232,240,0.7);
    display: flex;
    height: 192px;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.35s ease;
    position: relative;
    text-decoration: none;
}

.pvt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(38,51,112,0.13), 0 0 0 1px rgba(12,127,174,0.1);
}

/* Accent left strip (start side in RTL = right) */
.pvt-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #263370, #0c7fae);
    border-radius: 0 20px 20px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[dir="ltr"] .pvt-card::before { right: auto; left: 0; border-radius: 20px 0 0 20px; }
.pvt-card:hover::before { opacity: 1; }

/* ── Image column ── */
.pvt-card__img {
    width: 260px;
    min-width: 260px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.pvt-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pvt-card:hover .pvt-card__img img { transform: scale(1.07); }

/* Type badge */
.pvt-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 50px;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pvt-type-badge.online { background: rgba(5,150,105,0.88); color: #fff; }
.pvt-type-badge.onsite { background: rgba(37,99,235,0.88);  color: #fff; }

[dir="ltr"] .pvt-type-badge { right: auto; left: 12px; }

/* Date strip (bottom of image) */
.pvt-date-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10,15,40,0.88) 0%, transparent 100%);
    padding: 22px 14px 10px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    z-index: 2;
}

.pvt-date-strip__day {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.pvt-date-strip__month {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin-bottom: 3px;
}

/* ── Content column ── */
.pvt-card__content {
    flex: 1;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

/* Status pills */
.pvt-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 9px;
}

.pvt-sbadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 50px;
    white-space: nowrap;
}

.pvt-sbadge .ld {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pvt-sbadge.upcoming { background: rgba(245,158,11,0.1); color: #b45309; }
.pvt-sbadge.upcoming .ld { background: #f59e0b; animation: ldPulse 1.4s infinite; }
.pvt-sbadge.ongoing  { background: rgba(16,185,129,0.1); color: #047857; }
.pvt-sbadge.ongoing .ld  { background: #10b981; animation: ldPulse 1.4s infinite; }
.pvt-sbadge.ended    { background: rgba(100,116,139,0.09); color: #64748b; }

.pvt-rbadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 50px;
    white-space: nowrap;
}

.pvt-rbadge.open   { background: rgba(16,185,129,0.1); color: #047857; }
.pvt-rbadge.closed { background: rgba(239,68,68,0.08); color: #dc2626; }

/* Title */
.pvt-card__title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.25s;
}

.pvt-card:hover .pvt-card__title { color: #0c7fae; }

/* Footer */
.pvt-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.pvt-card__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    flex-wrap: wrap;
}

.pvt-cat-badge {
    font-size: 11px;
    font-weight: 700;
    color: #0c7fae;
    background: rgba(12,127,174,0.08);
    border: 1px solid rgba(12,127,174,0.14);
    padding: 3px 11px;
    border-radius: 50px;
}

.pvt-det-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #263370, #0c7fae);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 50px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: box-shadow 0.25s, transform 0.25s;
    flex-shrink: 0;
}

.pvt-det-btn:hover {
    box-shadow: 0 6px 18px rgba(38,51,112,0.3);
    transform: translateY(-1px);
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
    .pvt-layout { flex-direction: column; }
    .pvt-sidebar { width: 100%; min-width: 100%; position: static; }
    .pvt-sidebar__head { border-radius: 16px 16px 0 0; }
    .pvt-card { height: auto; flex-direction: column; }
    .pvt-card__img { width: 100%; min-width: 100%; height: 200px; }
    .pvt-card::before { right: 0; left: 0; bottom: auto; width: 100%; height: 4px; border-radius: 16px 16px 0 0; }
    [dir="ltr"] .pvt-card::before { right: 0; left: 0; }
}

@media (max-width: 575px) {
    .pvt-page { padding: 36px 0 60px; }
    .pvt-card__content { padding: 14px 16px; }
}
