/*
 * Kontentainment Events Frontend Styles - Phase 2
 */

:root {
    --ke-primary: #1b212c;
    --ke-secondary: #606770;
    --ke-accent: #111827; /* Rich Monochrome Black */
    --ke-bg-soft: #f4f6f8;
    --ke-border: #eaedf2;
    --ke-radius: 8px;
    --ke-shadow: 0 2px 10px rgba(0,0,0,0.04);
    --ke-top-spacing: 50px;
}

/* Layout Spacing & Wrappers - Scoped to avoid takeover */
.ke-isolated-wrap {
    width: 100%;
    margin: 0 auto;
}

.ke-isolated-wrap .ke-frontend-main {
    padding-top: var(--ke-top-spacing);
}

@media (max-width: 1024px) {
    .ke-isolated-wrap .ke-frontend-main {
        --ke-top-spacing: 30px;
    }
}

/* Base Layout Integration - Scoped */
.ke-isolated-wrap .ke-foxiz-aware {
    width: 100%;
    margin-bottom: 60px;
}

.ke-isolated-wrap .ke-main-content-area {
    width: 100%;
}

/*
 * Premium Editorial Hero - Two-Row Split Model
 */
.ke-hero-section {
    margin-bottom: 60px;
}

/* Row 1: Category & Title Header */
.ke-hero-upper {
    margin-bottom: 40px;
}

.ke-hero-category {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ke-accent);
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

.ke-hero-title {
    font-size: 44px;
    line-height: 1.1;
    font-weight: 800;
    margin: 0;
    color: #1a1e26;
    letter-spacing: -0.01em;
}

/* Row 2: Image & Meta Split Header */
.ke-hero-split {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.ke-hero-poster-col {
    flex: 0 0 440px;
    max-width: 100%;
}

.ke-poster-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: block;
}

.ke-hero-meta-col {
    flex: 1;
    min-width: 320px;
}

/* Meta Vertical Stack (Aligned with Image Top) */
.ke-meta-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ke-meta-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ke-meta-icon-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--ke-accent);
    margin-top: 4px;
}

.ke-meta-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ke-meta-info label {
    font-size: 15px;
    font-weight: 800;
    color: #1a1e26;
    line-height: 1.2;
}

.ke-meta-info strong {
    font-size: 14px;
    font-weight: 400;
    color: #4b5563; /* Lighter, calmer value text */
    line-height: 1.4;
    display: block;
}

.ke-venue-address {
    font-size: 14px;
    color: #94a3b8; /* Secondary text color */
    line-height: 1.3;
    display: block;
    margin-top: 2px;
}

.ke-meta-info strong a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.ke-meta-info strong a:hover {
    color: var(--ke-accent);
}

.ke-register-btn {
    display: inline-block;
    background: #1a1e26;
    color: #fff;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
    text-align: center;
}

.ke-register-btn:hover {
    background: #4b5563; /* Medium grey hover for buttons */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/*
 * Single Event Hero - Editorial Alignment Fix
 */
.ke-single-hero-foxiz {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    background: transparent;
    padding: 20px 0;
    align-items: flex-start;
}

/* Featured Image Column */
.ke-single-hero-foxiz .ke-poster-box {
    flex: 0 0 420px;
    max-width: 100%;
    margin-top: 100px; /* Aligns its top with the meta starting point */
}

/* Info Section Column */
.ke-single-hero-foxiz .ke-info-box {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
}

/* Category & Title Sit HIGHER */
.ke-info-box .ke-cat-chip {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ke-accent);
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

.ke-info-box .ke-title-large {
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 35px 0;
    color: var(--ke-primary);
    font-weight: 800;
}

/* Divider before Meta Detail block */
.ke-title-divider {
    width: 60px;
    height: 3px;
    background: #111827; /* Monochrome Divider */
    margin-bottom: 40px;
}

/* Meta Details - Begins AT IMAGE TOP line (image has margin-top: 100px) */
/* This block is replaced by the new .ke-meta-stack definition */

/* Sections */
/* Section Content Titles */
.ke-foxiz-section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 35px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ke-foxiz-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #eef0f3;
}

.ke-content-body {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 50px;
}

/* Grid & Cards */
.ke-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

/* --- REDESIGNED PREMIUM EVENT CARD --- */
.ke-event-card-rb {
    background: #ffffff;
    border-radius: 16px; /* Slightly more rounded for premium feel */
    border: 1px solid rgba(0,0,0,0.05); /* Soft border */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); /* Very soft shadow */
}

.ke-event-card-rb:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border-color: #111827;
}

.ke-rb-img {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    width: 100%;
}

/* Default ratio if none specified */
.ke-rb-img { aspect-ratio: 16/9; }

/* Support Ratio Classes from Wrapper */
.ke-ratio-1-1 .ke-rb-img { aspect-ratio: 1/1 !important; }
.ke-ratio-4-3 .ke-rb-img { aspect-ratio: 4/3 !important; }
.ke-ratio-16-9 .ke-rb-img { aspect-ratio: 16/9 !important; }
.ke-ratio-3-4 .ke-rb-img { aspect-ratio: 3/4 !important; }
.ke-ratio-2-1 .ke-rb-img { aspect-ratio: 2/1 !important; }
.ke-ratio-9-16 .ke-rb-img { aspect-ratio: 9/16 !important; }

.ke-rb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
    display: block;
}

.ke-event-card-rb:hover .ke-rb-img img {
    transform: scale(1.1);
}

.ke-rb-body {
    padding: 16px 18px 12px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
}


.ke-card-title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #1a1e26;
}

.ke-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.ke-card-title a:hover {
    color: var(--ke-accent);
}

/* Meta Footer Row */
.ke-rb-meta-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    margin-top: 0;
    border-top: 1px solid #f1f5f9;
}

.ke-rb-meta-node {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.ke-meta-icon {
    display: flex;
    align-items: center;
    color: #94a3b8;
    line-height: 1;
}

.ke-svg-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

/* Editorial Category Overlay Label */
.ke-card-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #111827;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 400; /* Lighter, more elegant weight */
    letter-spacing: 0.02em;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

/* Page Header with Line */
.ke-page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.ke-page-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1;
}

.ke-title-line {
    flex: 1;
    height: 1px;
    background: #eef2f7;
    margin-top: 8px;
}

/* --- REDESIGNED PREMIUM DISCOVERY INTERFACE --- */
.ke-discovery-filter {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #eef2f6;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    margin-bottom: 50px;
}

.ke-filter-layer {
    margin-bottom: 25px;
}

.ke-filter-layer:last-of-type {
    margin-bottom: 0;
}

.ke-filter-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 15px;
    letter-spacing: 0.12em;
}

/* Layer 1: Navigation Tabs */
.ke-tabs-scroll-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.ke-nav-scroll {
    display: flex;
    overflow-x: auto;
    align-items: center;
    gap: 35px;
    scrollbar-width: none;
    flex: 1;
}
.ke-nav-scroll::-webkit-scrollbar { display: none; }

.ke-nav-item {
    background: none;
    border: none;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s;
}

.ke-nav-item:hover {
    color: var(--ke-accent);
}

.ke-nav-item.active {
    color: var(--ke-accent);
}

.ke-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ke-accent);
    border-radius: 10px;
}

.ke-refine-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 800;
    color: #1a1e26;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.ke-refine-toggle-btn:hover {
    background: #fff;
    border-color: var(--ke-accent);
    box-shadow: 0 4px 12px rgba(51, 167, 224, 0.12);
}

.ke-refine-toggle-btn.is-active {
    background: #1a1e26;
    color: #fff;
    border-color: #1a1e26;
}

.ke-toggle-icon {
    display: flex;
    width: 16px;
    height: 16px;
}

/* Layer 2: Location Discovery Pills */
.ke-pills-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 2px 0 10px 0;
    scrollbar-width: none;
}
.ke-pills-scroll::-webkit-scrollbar { display: none; }

.ke-pill-item {
    background: #ffffff;
    border: 1px solid #eef2f7;
    padding: 10px 26px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.ke-pill-item:hover {
    border-color: var(--ke-accent);
    color: var(--ke-accent);
}

.ke-pill-item.active {
    background: #111827; /* Monochrome Active Pill */
    color: #ffffff;
    border-color: #111827;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Layer 3: Refinement Control Area */
.ke-refinement-area {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px dashed #eef2f7;
    transition: all 0.4s ease;
}

.ke-refinement-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 20px;
    align-items: flex-end;
}

.ke-refine-node label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

.ke-field-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.ke-field-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.ke-refine-node input, 
.ke-styled-select {
    width: 100%;
    height: 52px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.3s;
}

.ke-node-search input {
    padding-left: 48px;
}

.ke-refine-node input:focus, 
.ke-styled-select:focus {
    background: #fff;
    border-color: var(--ke-accent);
    box-shadow: 0 0 0 4px rgba(51,167,224,0.06);
    outline: none;
}

.ke-apply-btn {
    height: 52px;
    padding: 0 35px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

@media (max-width: 1120px) {
    .ke-refinement-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ke-node-search { grid-column: span 2; }
    .ke-node-submit { grid-column: span 2; }
}

@media (max-width: 768px) {
    .ke-discovery-filter {
        padding: 20px;
        border-radius: 16px;
        margin-bottom: 40px;
    }
    .ke-nav-scroll { gap: 20px; }
    .ke-nav-item { font-size: 14px; }
    .ke-refine-toggle-btn span:last-child { display: none; }
    .ke-refine-toggle-btn { padding: 10px; }
    .ke-tabs-scroll-wrapper { gap: 15px; }
    
    .ke-refinement-grid {
        grid-template-columns: 1fr;
    }
    .ke-node-search, .ke-node-submit { grid-column: span 1; }
}

/* --- ARCHIVE GRID & LAYOUT REFINEMENTS --- */
/* REMOVED: .post-type-archive-event .rb-container override as it corrupts Foxiz layout */

.ke-isolated-wrap .ke-archive-grid-wrapper {
    margin-top: 50px;
}

/* Fallback for legacy grids */
.ke-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Ensure the main column has enough breathing room */
.ke-main-col {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

/* Header Tweaks */
.ke-rb-archive-header {
    margin-bottom: 40px;
}

.ke-rb-archive-header .ke-foxiz-section-title {
    margin-top: 0;
    font-size: 28px;
    letter-spacing: -0.02em;
}


@media (max-width: 768px) {
    .ke-card-grid {
        grid-template-columns: 1fr;
    }
    .ke-rb-body { padding: 20px; }
}

/* Sidebar Wrapper */
.ke-layout-sidebar {
    display: flex;
    gap: 40px;
}

.ke-main-col { flex: 1; min-width: 0; }
.ke-sidebar-col { flex: 0 0 340px; }

.ke-sidebar-inner {
    padding-left: 30px;
    border-left: 1px solid var(--ke-border);
    height: 100%;
}

/* Responsive */
@media (max-width: 1120px) {
    .ke-layout-sidebar { flex-direction: column; }
    .ke-sidebar-col { flex: 1; width: 100%; }
    .ke-sidebar-inner { 
        padding-left: 0; 
        border-left: none; 
        border-top: 1px solid var(--ke-border);
        padding-top: 40px;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    /* Hide Sidebar on Mobile */
    .ke-sidebar-col {
        display: none !important;
    }
    .ke-main-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Add Horizontal Gutter / Breathing Room - Scoped to Plugin only */
    .ke-isolated-wrap .ke-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
    
    /* Hero Title Alignment */
    .ke-hero-title {
        font-size: 30px !important;
    }
}

@media (max-width: 1024px) {
    .ke-single-hero-foxiz .ke-poster-box { flex: 0 0 100%; }
}

@media (max-width: 768px) {
    .ke-hero-title { 
        font-size: 32px; 
        line-height: 1.2; 
        margin-bottom: 25px !important;
    }
    .ke-hero-upper { 
        margin-bottom: 20px; 
    }
    .ke-hero-split { 
        display: flex;
        flex-direction: column;
        gap: 0; 
    }
    .ke-hero-poster-col { 
        flex: 0 0 100%; 
        order: 1;
        margin-bottom: 25px;
    }
    .ke-poster-image {
        border-radius: 16px;
    }
    .ke-hero-meta-col { 
        flex: 0 0 100%; 
        min-width: 0; 
        order: 2;
    }
    
    /* 2x2 Mobile Meta Grid */
    .ke-meta-stack {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        background: #f8fafc;
        padding: 20px;
        border-radius: 16px;
    }
    .ke-meta-block {
        gap: 12px;
    }
    .ke-meta-info strong {
        font-size: 14px;
    }
    .ke-meta-info label {
        font-size: 9px;
    }
    .ke-meta-icon-box {
        width: 16px;
        height: 16px;
    }
    
    .ke-hero-actions {
        grid-column: span 2;
        margin-top: 10px !important;
    }
    .ke-register-btn {
        width: 100%;
    }

    /* Related Sections - 2 Columns on Mobile */
    .ke-loop-wrapper.ke-columns-3,
    .ke-loop-wrapper.ke-columns-tablet-2,
    .ke-card-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }

    /* Mobile Card Refinements */
    .ke-rb-body {
        padding: 12px 10px 15px 10px !important;
    }

    .ke-card-title {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
    .ke-rb-meta-footer {
        padding-top: 10px !important;
        gap: 8px !important;
    }
    .ke-rb-meta-node {
        font-size: 11px !important;
    }
    .ke-svg-icon {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 639px) {
    .ke-rb-body { padding: 20px; }
    .ke-card-grid { grid-template-columns: 1fr; }
}

/* Updated Archive Header & Filters */
.ke-archive-header {
    margin-bottom: 40px;
}

.ke-archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.ke-filters {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.ke-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: flex-end;
}

.ke-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ke-filter-item label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.05em;
}

.ke-filter-item input[type="text"],
.ke-filter-item select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    width: 100%;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ke-filter-item input:focus,
.ke-filter-item select:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.ke-filter-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 20px;
    margin-top: 10px;
}

.ke-buttons {
    display: flex;
    gap: 12px;
}

.ke-submit-btn,
.ke-load-more-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.ke-submit-btn:hover,
.ke-load-more-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.ke-reset-btn {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.ke-reset-btn:hover {
    background: #e5e7eb;
}

.ke-featured-toggle {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #374151;
}

/* Grid Layout */
.ke-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    transition: opacity 0.3s ease;
}

/* Loading Overlay */
.ke-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.ke-loading-overlay.is-active {
    display: flex;
}

.ke-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ef4444;
    border-radius: 50%;
    animation: ke-spin 1s linear infinite;
}

@keyframes ke-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Load More Section */
.ke-archive-footer {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 40px;
}

.ke-pagination-fallback {
    margin-top: 40px;
}

.ke-load-more-btn.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
    padding-right: 48px;
}

.ke-load-more-btn.is-loading::after {
    content: '';
    position: absolute;
    right: 18px;
    top: calc(50% - 9px);
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ke-spin 0.6s linear infinite;
}

/* Empty State */
.ke-empty-state {
    grid-column: 1 / -1;
    padding: 100px 40px;
    text-align: center;
    background: #f9fafb;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

.ke-empty-icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.ke-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}

.ke-empty-message {
    color: #6b7280;
    margin-bottom: 30px;
}

/* Status Dot in Loop */
.ke-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 5px;
}

.ke-status-upcoming { background: #10b981; }
.ke-status-ongoing { background: #3b82f6; }
.ke-status-past { background: #9ca3af; }
.ke-status-cancelled { background: #ef4444; }

/* --- GRID & SHARED LAYOUT SYSTEM --- */
.ke-loop-wrapper {
    display: grid;
    gap: 30px;
    width: 100%;
}

/* Gap Variations */
.ke-gap-large { gap: 40px; }
.ke-gap-medium { gap: 30px; }
.ke-gap-small { gap: 20px; }
.ke-gap-none { gap: 0; }

/* 1 Column */
.ke-columns-1 { grid-template-columns: 1fr; }

/* 2 Columns */
.ke-columns-2 { grid-template-columns: repeat(2, 1fr); }

/* 3 Columns (Archive Default) */
.ke-columns-3 { grid-template-columns: repeat(3, 1fr); }

/* 4 Columns */
.ke-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* 5 Columns */
.ke-columns-5 { grid-template-columns: repeat(5, 1fr); }

/* Stabilize Grid Item Heights */
.ke-loop-wrapper > div { height: auto; display: flex; } /* Allow natural card heights unless explicitly stretched */
.ke-loop-wrapper .ke-card,
.ke-loop-wrapper .ke-event-card-rb { flex: 1; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
.ke-loop-wrapper .ke-rb-img { flex: 1; display: flex; flex-direction: column; min-height: 200px; height: 100%; aspect-ratio: auto !important; }
.ke-loop-wrapper .ke-rb-body { flex: 0 0 auto; margin-top: auto; }
.ke-loop-wrapper .ke-card-content { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.ke-loop-wrapper .ke-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0; 
    margin-bottom: 8px !important;
}
.ke-loop-wrapper .ke-card-meta,
.ke-loop-wrapper .ke-rb-meta-footer { margin-top: 0 !important; }

/* Tablet Overrides (max-width: 1024px) */
@media (max-width: 1024px) {
    .ke-loop-wrapper[class*="ke-columns-tablet-3"] { grid-template-columns: repeat(3, 1fr); }
    .ke-loop-wrapper[class*="ke-columns-tablet-2"] { grid-template-columns: repeat(2, 1fr); }
    .ke-loop-wrapper[class*="ke-columns-tablet-1"] { grid-template-columns: 1fr; }
    
    /* Force 2-col if it is a 3+ col grid but no explicit tablet class */
    .ke-columns-3:not([class*="ke-columns-tablet-"]) { grid-template-columns: repeat(2, 1fr); }
    .ke-columns-4:not([class*="ke-columns-tablet-"]) { grid-template-columns: repeat(2, 1fr); }
    .ke-columns-5:not([class*="ke-columns-tablet-"]) { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile Overrides (max-width: 768px) */
@media (max-width: 768px) {
    .ke-loop-wrapper[class*="ke-columns-mobile-1"] { grid-template-columns: 1fr; }
    
    /* Default everything to 1-col on mobile unless explicitly overriden */
    .ke-loop-wrapper:not([class*="ke-columns-mobile-"]) { grid-template-columns: 1fr; }
    .ke-columns-2, .ke-columns-3, .ke-columns-4, .ke-columns-5 { grid-template-columns: 1fr; }
}

/* Boxed Mode */
.ke-boxed .ke-card {
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    background-color: var(--ke-card-bg, #fff);
    border-radius: 8px;
    padding: 16px;
}

/* Image Ratios */
.ke-card-image { position: relative; overflow: hidden; }
.ke-ratio-1-1 .ke-card-image { aspect-ratio: 1/1; }
.ke-ratio-4-3 .ke-card-image { aspect-ratio: 4/3; }
.ke-ratio-16-9 .ke-card-image { aspect-ratio: 16/9; }
.ke-ratio-3-4 .ke-card-image { aspect-ratio: 3/4; }
.ke-ratio-2-1 .ke-card-image { aspect-ratio: 2/1; }
.ke-ratio-9-16 .ke-card-image { aspect-ratio: 9/16; }

.ke-card-image img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

/* Horizontal Scroll */
.ke-horizontal-scroll {
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 20px;
}
.ke-horizontal-scroll .ke-card {
    min-width: 280px;
    scroll-snap-align: start;
}

/* Pagination Styling */
.ke-pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.ke-load-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s;
}

.ke-load-more-btn:hover { background: #374151; }

.ke-pagination-style-boxed .ke-load-more-btn {
    background: transparent;
    border: 2px solid #111827;
    color: #111827;
}

/* Dark Mode Overrides */
.ke-scheme-dark {
    --ke-card-bg: #1a1a1a;
    --ke-text-primary: #ffffff;
    --ke-text-secondary: #a0a0a0;
}

.ke-hidden-item {
    display: none !important;
}

.ke-show-more-wrapper {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.ke-show-more-btn {
    display: inline-block;
    background: #1a1e26;
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ke-show-more-btn:hover {
    background: #4b5563; /* Neutral grey hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ke-item-revealed {
    animation: ke-fade-up 0.5s ease forwards;
}

@keyframes ke-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.ke-scheme-dark .ke-card-title a { color: var(--ke-text-primary); }
.ke-scheme-dark .ke-card-meta { color: var(--ke-text-secondary); }

/* Foxiz Dark Mode Compatibility */
body.foxiz-dark-mode .ke-elementor-widget:not(.ke-scheme-light) {
    --ke-text-primary: #ffffff;
    --ke-text-secondary: #a0a0a0;
}

@media (max-width: 768px) {
    .ke-archive-title { font-size: 1.75rem; }
}

/* --- WIDGET PRESETS STYLING --- */

/* Premium List View Redesign (List 1) */
.ke-preset-list_1 .ke-loop-wrapper { display: flex; flex-direction: column; gap: 30px; }
.ke-preset-list_1 .ke-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 32px;
    border-bottom: 1px solid var(--ke-border);
    padding-bottom: 30px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.ke-preset-list_1 .ke-card-thumb,
.ke-preset-list_1 .ke-card-image {
    width: 240px;
    flex-shrink: 0;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
}
.ke-preset-list_1 .ke-card-image img,
.ke-preset-list_1 .ke-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ke-preset-list_1 .ke-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 5px 0;
    min-height: auto;
}
.ke-preset-list_1 .ke-card-cat-eyebrow {
    font-size: 10px;
    font-weight: 800;
    color: var(--ke-accent);
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}
.ke-preset-list_1 .ke-card-title {
    font-size: 24px;
    margin-bottom: 20px;
    -webkit-line-clamp: 2;
    min-height: 0;
}
.ke-preset-list_1 .ke-card-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}
.ke-preset-list_1 .ke-card-meta-node {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
}
.ke-preset-list_1 .ke-meta-icon { width: 16px; height: 16px; color: #111827; }
.ke-svg-icon { stroke-width: 2.2; }

/* Compact List View (List 2) */
.ke-preset-list_2 .ke-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--ke-border);
}
.ke-preset-list_2 .ke-card-date-badge {
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ke-accent);
}

/* Flex Overlay Correction (True Overlay) */
.ke-preset-flex_overlay .ke-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    padding: 0;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.ke-preset-flex_overlay .ke-card-bg-image,
.ke-preset-flex_overlay .ke-card-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ke-preset-flex_overlay .ke-card-bg-image img,
.ke-preset-flex_overlay .ke-card-image img { width: 100%; height: 100%; object-fit: cover; }
.ke-preset-flex_overlay .ke-card-overlay-gradient,
.ke-preset-flex_overlay .ke-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
}
.ke-preset-flex_overlay .ke-card-content {
    position: relative;
    z-index: 10;
    padding: 30px;
    background: transparent;
}
.ke-preset-flex_overlay .ke-card-cat-eyebrow { color: #fff; opacity: 0.8; }
.ke-preset-flex_overlay .ke-card-title { color: #fff; font-size: 24px; min-height: 0; margin-bottom: 15px; }
.ke-preset-flex_overlay .ke-card-title a { color: #fff; }
.ke-preset-flex_overlay .ke-card-meta { border-top-color: rgba(255,255,255,0.2); gap: 15px; }
.ke-preset-flex_overlay .ke-rb-meta-node { color: #ddd; }
.ke-preset-flex_overlay .ke-meta-icon { color: #fff; opacity: 0.6; }

/* Grid Adjustments */
.ke-preset-grid_1 .ke-card,
.ke-preset-minimal_grid .ke-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}
.ke-preset-grid_1 .ke-card-content { padding: 20px 0; }
.ke-preset-grid_2 .ke-card {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ke-border);
}
.ke-preset-editorial_grid .ke-card-title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }

/* Highlight / Hero Layout */
.ke-preset-highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
}
.ke-preset-highlight .ke-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}
.ke-preset-highlight .ke-card:nth-child(1) .ke-card-title { font-size: 28px; font-weight: 800; }
.ke-preset-highlight .ke-card:not(:nth-child(1)) .ke-card-image { aspect-ratio: 16/9; }

@media (max-width: 768px) {
    .ke-preset-list_1 .ke-card, .ke-preset-list_2 .ke-card {
        flex-direction: column;
        gap: 15px;
    }
    .ke-preset-list_1 .ke-card-image, .ke-preset-list_2 .ke-card-image { width: 100%; }
    .ke-preset-highlight { grid-template-columns: 1fr; }
    .ke-preset-highlight .ke-card:nth-child(1) { grid-column: span 1; grid-row: span 1; }
}

/* --- ELEMENTOR SWIPER CAROUSEL --- */
.ke-carousel-container {
    position: relative;
    padding-bottom: 40px;
}
.ke-carousel-container.ke-hide-arrows-mobile .swiper-button-prev,
.ke-carousel-container.ke-hide-arrows-mobile .swiper-button-next {
    display: flex;
}
.ke-carousel-container .swiper {
    width: 100%;
    overflow: hidden;
}
/* Override any conflicting grid layout when in carousel mode */
.ke-carousel-container .swiper-wrapper.ke-loop-wrapper {
    display: flex;
    align-items: stretch;
    grid-template-columns: none !important;
}
.ke-carousel-container .swiper-slide {
    flex-shrink: 0;
    height: auto;
}
/* Ensure the inner cards stretch to fill slide height naturally */
.ke-carousel-container .swiper-slide .ke-card,
.ke-carousel-container .swiper-slide .ke-event-card-rb {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.ke-preset-flex_overlay.swiper-wrapper .ke-card { justify-content: flex-end; }
.ke-preset-list_1.swiper-wrapper .ke-card { flex-direction: column; } /* Enforce vertical in carousel */
.ke-preset-list_1.swiper-wrapper .ke-card-image { width: 100%; }

/* Navigation & Pagination Styling */
.ke-carousel-pagination {
    bottom: 0 !important;
}
.ke-carousel-pagination .swiper-pagination-bullet-active {
    background: var(--ke-accent, #111827);
}
.ke-carousel-prev, .ke-carousel-next {
    color: var(--ke-accent, #111827);
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-50%);
    margin-top: -20px;
}
.ke-carousel-prev:after, .ke-carousel-next:after {
    font-size: 16px;
    font-weight: bold;
}
.ke-carousel-prev { left: 10px; }
.ke-carousel-next { right: 10px; }

@media (max-width: 768px) {
    .ke-carousel-container.ke-hide-arrows-mobile .swiper-button-prev,
    .ke-carousel-container.ke-hide-arrows-mobile .swiper-button-next {
        display: none !important;
    }
    .ke-carousel-container {
        padding-bottom: 30px;
    }
    .ke-filters { padding: 16px; }
    .ke-filter-inner { grid-template-columns: 1fr; gap: 15px; }
    .ke-filter-grid { grid-template-columns: 1fr; gap: 16px; }
    .ke-archive-title { font-size: 2rem; }
    .ke-loop-wrapper[class*="ke-columns-mobile-1"] { grid-template-columns: 1fr !important; }
    .ke-loop-wrapper[class*="ke-columns-mobile-2"] { grid-template-columns: repeat(2, 1fr) !important; }
    .ke-loop-wrapper {
        grid-template-columns: 1fr; /* Default to 1 col */
    }
    .ke-filter-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
    .ke-filters-bar { padding: 20px; margin-bottom: 30px; }

    /* Forces 2-up even if legacy rules try to flatten it */
    .ke-mobile-2-up .ke-loop-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .ke-mobile-2-up .ke-card-title {
        font-size: 14px !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
        min-height: 2.5em !important;
    }
    
    .ke-mobile-2-up .ke-rb-body {
        padding: 10px 8px 12px 8px !important;
    }

    .ke-mobile-2-up .ke-rb-meta-node {
        font-size: 11px !important;
        gap: 5px !important;
    }
    
    .ke-mobile-2-up .ke-meta-icon svg {
        width: 12px !important;
        height: 12px !important;
    }

    .ke-events-mobile-webview {
        margin-bottom: 30px;
    }

    /* Show More / Reveal Logic */
    .ke-hidden-item {
        display: none !important;
    }

    .ke-show-more-wrapper {
        text-align: center;
        margin-top: 50px;
        width: 100%;
        display: block;
        clear: both;
    }

    .ke-show-more-btn {
        background: #111827;
        color: #fff;
        padding: 16px 40px;
        border-radius: 4px;
        border: none;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .ke-show-more-btn:hover {
        background: #000;
        transform: translateY(-3px);
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    }

    .ke-item-revealed {
        animation: keFadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

    @keyframes keFadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Mobile App Feed & Webview Enforcement */
@media (max-width: 767px) {
    .ke-isolated-wrap.ke-mobile-only-enforced {
        padding: 0 10px;
    }
    
    .ke-mobile-2-up .ke-loop-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .ke-mobile-2-up .ke-event-card-rb {
        border-radius: 12px;
    }

    .ke-mobile-2-up .ke-card-title {
        font-size: 13px !important;
        height: 2.6em;
        overflow: hidden;
    }

    .ke-mobile-2-up .ke-rb-meta-footer {
        gap: 6px;
    }

    .ke-mobile-2-up .ke-rb-meta-node {
        font-size: 10px !important;
    }
}

/* Ensure hidden correctly in desktop if enforced */
@media (min-width: 768px) {
    .ke-mobile-only-enforced {
        display: none !important;
    }
}

/* --- Single Event Page Layout Fix --- */
.ke-single-event-page {
    padding-top: 80px !important;
    padding-bottom: 80px;
    background: #ffffff;
}
@media (max-width: 1024px) {
    .ke-single-event-page {
        padding-top: 40px !important;
    }
}
.ke-foxiz-aware {
    margin-top: 0;
}

/* --- Carousel & Swiper Layout Fixes --- */
.ke-carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.ke-swiper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ke-carousel-container .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

.ke-carousel-container .swiper-slide img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Premium Swiper Arrows */
.ke-carousel-container .swiper-button-next,
.ke-carousel-container .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #111827;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.ke-carousel-container .swiper-button-next:after,
.ke-carousel-container .swiper-button-prev:after {
    font-size: 18px;
    font-weight: 900;
}

.ke-carousel-container .swiper-button-next:hover,
.ke-carousel-container .swiper-button-prev:hover {
    background: #111827;
    color: #ffffff;
    transform: scale(1.1);
}

.ke-carousel-container .swiper-pagination-bullet-active {
    background: #111827;
}

/* Slider Hero Specifics */
.ke-preset-hero_slider .swiper-slide {
    height: 500px;
}

/* Integrated High-Performance Single Layout */
.ke-integrated-mode .ke-eyebrow-new { text-transform: uppercase; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: #111827; margin-bottom: 20px; }
.ke-integrated-mode .ke-title-new { font-size: 54px; font-weight: 900; margin: 0 0 50px 0; letter-spacing: -0.02em; line-height: 1.1; color: #111827; }
.ke-integrated-mode .ke-hero-split-new { display: flex; gap: 60px; align-items: flex-start; margin-bottom: 60px; }
.ke-integrated-mode .ke-poster-image-wrap-new { flex: 1.2; }
.ke-integrated-mode .ke-poster-image-wrap-new img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); display: block; }
.ke-integrated-mode .ke-details-side-new { flex: 1; display: flex; flex-direction: column; gap: 30px; padding-top: 10px; }
.ke-integrated-mode .ke-meta-node-new { display: flex; gap: 20px; align-items: center; }
.ke-integrated-mode .ke-meta-icon-new { width: 50px; height: 50px; background: #f3f4f6; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #4b5563; flex-shrink: 0; }
.ke-integrated-mode .ke-meta-icon-new svg { width: 22px; height: 22px; }
.ke-integrated-mode .ke-meta-label-new { font-size: 14px; font-weight: 800; color: #111827; text-transform: uppercase; letter-spacing: 0.05em; }
.ke-integrated-mode .ke-meta-value-new { font-size: 16px; color: #4b5563; font-weight: 500; }
.ke-integrated-mode .ke-section-title-new { font-size: 28px; font-weight: 800; margin-bottom: 25px; border-bottom: 2px solid #f3f4f6; padding-bottom: 15px; }

@media (max-width: 1024px) {
    .ke-integrated-mode .ke-hero-split-new { flex-direction: column; gap: 30px; }
    .ke-integrated-mode .ke-title-new { font-size: 34px; }
}

/* --- Single Event Page (Mobile-First) --- */
.ke-single-entry-page { background: #fff; padding: 40px 0; }
.ke-page-row { display: flex; gap: 40px; flex-wrap: wrap; }
.ke-col-main { flex: 2; min-width: 310px; padding: 0 15px; } 
.ke-col-sidebar { flex: 1; min-width: 300px; padding: 0 15px; }

.ke-eyebrow-text { text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 0.15em; color: #111827; margin-bottom: 12px; }
.ke-single-title { font-size: 38px; font-weight: 900; margin: 0 0 35px 0; line-height: 1.15; color: #111827; letter-spacing: -0.01em; }

.ke-hero-grid { display: flex; gap: 40px; margin-bottom: 50px; }
.ke-hero-poster { flex: 1.2; }
.ke-main-img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 12px 24px rgba(0,0,0,0.06); display: block; }
.ke-hero-details { flex: 1; display: flex; flex-direction: column; gap: 20px; padding-top: 5px; }

.ke-detail-item { display: flex; gap: 15px; align-items: center; }
.ke-detail-icon { width: 44px; height: 44px; background: #f9fafb; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #6b7280; flex-shrink: 0; }
.ke-detail-label { font-size: 13px; font-weight: 800; color: #111827; text-transform: uppercase; letter-spacing: 0.05em; display: block; }
.ke-detail-value { font-size: 15px; color: #374151; font-weight: 500; display: block; }
.ke-detail-sub { font-size: 13px; color: #9ca3af; display: block; }

.ke-loader-placeholder { color: #9ca3af; font-size: 14px; text-align: center; padding: 40px; background: #f9fafb; border-radius: 12px; margin-top: 40px; }

@media (max-width: 1024px) {
    .ke-hero-grid { flex-direction: column; gap: 30px; }
    .ke-single-title { font-size: 30px; }
}

@media (max-width: 767px) {
    .ke-single-entry-page { padding: 20px 15px; }
    .ke-single-title { font-size: 26px; }
    .ke-col-main, .ke-col-sidebar { padding: 0 5px; }
    
    /* 2x2 Grid for Mobile Metadata */
    .ke-hero-details { 
        flex-direction: row; 
        flex-wrap: wrap; 
        gap: 20px 10px; 
    }
    .ke-detail-item { 
        width: calc(50% - 10px); 
        flex-direction: row; 
        align-items: center; 
        gap: 8px; 
    }
    .ke-detail-icon { width: 34px; height: 34px; border-radius: 6px; }
    .ke-detail-icon svg { width: 16px !important; height: 16px !important; }
    .ke-detail-label { font-size: 10px; }
    .ke-detail-value { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 767px) {
    .ke-loop-wrapper.ke-columns-mobile-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.ke-show-more-wrapper { text-align: center; margin-top: 30px; }
.ke-show-more-btn { 
    background: #111827; 
    color: #fff; 
    border: none; 
    padding: 12px 30px; 
    border-radius: 30px; 
    font-size: 13px; 
    font-weight: 700; 
    cursor: pointer; 
}
.ke-hidden-item { display: none; }
