/* --- CBE ARCHIVE CSS (FIXED LANDSCAPE HEIGHT) --- */

.cbe-events-wrapper {
    width: 100%;
    margin-bottom: 50px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* ---------------------------
   GRID VIEW (Dark Style)
--------------------------- */
.cbe-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.cbe-card-clean {
    background: #0b0b0b; /* Dark Background */
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.cbe-card-clean:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 85, 0.15);
    border-color: #ff0055;
}

/* --- IMAGE HEADER (ADJUSTED HEIGHT) --- */
.cbe-clean-header {
    position: relative;
    /* මෙන්න අලුත් උස: 230px (Landscape නමුත් ටිකක් උසයි) */
    height: 230px; 
    overflow: hidden;
}

.cbe-clean-header img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* පින්තූරය Landscape එකට ලස්සනට මැදින් පෙනේ */
    transition: transform 0.5s;
    filter: brightness(0.9);
}

.cbe-card-clean:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* Date Box */
.cbe-clean-date {
    position: absolute;
    top: 15px; left: 15px;
    background: #ff0055;
    width: 50px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 2;
}
.cbe-clean-date .day {
    display: block; font-size: 1.3rem; font-weight: 800; color: #fff;
    background: rgba(0,0,0,0.1); padding: 2px 0; line-height: 1;
}
.cbe-clean-date .month {
    display: block; font-size: 0.7rem; text-transform: uppercase;
    color: #fff; font-weight: bold; padding: 3px 0;
}

/* Status Badge */
.cbe-clean-status {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid #ff0055;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* --- BODY CONTENT --- */
.cbe-clean-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: linear-gradient(to bottom, #111, #0b0b0b);
    color: #e0e0e0;
}

.cbe-clean-body h4 {
    margin: 5px 0 15px;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
}
.cbe-clean-body h4 a { color: #fff; text-decoration: none; transition: 0.2s; }
.cbe-clean-body h4 a:hover { color: #ff0055; }

.cbe-clean-price {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}
.cbe-clean-price strong { color: #00ff88; font-size: 1.2rem; margin-left: 5px; }

.cbe-clean-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.meta-item { display: flex; flex-direction: column; align-items: center; }
.meta-item .icon { color: #ff0055; font-size: 20px; margin-bottom: 5px; }
.meta-text { display: flex; flex-direction: column; line-height: 1.2; }
.meta-text small { font-size: 0.65rem; color: #666; text-transform: uppercase; }
.meta-text span { font-size: 0.9rem; color: #fff; font-weight: 600; }

.cbe-clean-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}
.cbe-clean-footer i { margin-right: 8px; color: #ff0055; }


/* ---------------------------
   LIST VIEW (UNCHANGED)
--------------------------- */
.cbe-layout-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cbe-card-list {
    display: flex;
    background: #161616;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    min-height: 200px;
}
.cbe-card-list:hover { border-color: #ff0055; }
.cbe-list-image {
    width: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}
.cbe-overlay-date {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,0.8); padding: 5px 10px;
    text-align: center; border-radius: 4px;
    z-index: 2; backdrop-filter: blur(4px);
    border: 1px solid #ff0055;
}
.cbe-overlay-date .d { color: #fff; font-size: 1.2rem; font-weight: bold; line-height: 1; }
.cbe-overlay-date .m { color: #ff0055; font-size: 0.7rem; text-transform: uppercase; }
.cbe-status-badge {
    position: absolute; bottom: 10px; right: 10px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 0.7rem; font-weight: bold; text-transform: uppercase;
    z-index: 2; color: #000; background: #00ff88;
}
.cbe-list-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.cbe-tags .tag { 
    display: inline-block; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; 
    background: #222; color: #ccc; padding: 2px 6px; border-radius: 2px; margin-right: 5px; 
}
.cbe-card-list h3 { margin: 10px 0 15px; font-size: 1.4rem; }
.cbe-card-list h3 a { color: #fff; text-decoration: none; }
.cbe-info-grid-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.list-item { display: flex; align-items: center; color: #ccc; }
.list-item strong { color: #fff; margin-left: 5px; }
.list-item .dashicons { color: #ff0055; margin-right: 5px; }
.list-item.prize strong { color: #00ff88; }
.cbe-btn-arrow.list-btn {
    margin-top: auto;
    background: #ff0055;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    align-self: flex-start;
}
@media (max-width: 768px) {
    .cbe-card-list { flex-direction: column; height: auto; }
    .cbe-list-image { width: 100%; height: 180px; }
    .cbe-info-grid-list { grid-template-columns: 1fr; }
    .cbe-layout-grid { grid-template-columns: 1fr; }
}