/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Main Container - Adjusted to be container-agnostic since Elementor handles layout */
.epc-sidebar-container,
.epc-content-container {
    font-family: 'Montserrat', sans-serif;
    /* Explicitly use Montserrat */
    width: 100%;
}

/* Sidebar Styling */
.epc-filter-group {
    margin-bottom: 25px;
}

.epc-filter-header {
    background-color: #ff5200;
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    /* More rounded */
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
}

.epc-search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #666;
    outline: none;
}

.epc-search-box input:focus {
    border-color: #ff5200;
}

.epc-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 5px;
}

.epc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    /* Darker text */
    font-weight: 500;
}

/* Custom Checkbox Appearance */
.epc-checkbox-label input[type="checkbox"] {
    accent-color: #ff5200;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Grid Layout */
.epc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Card Styling - Matching Screenshot Exactness */
.epc-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    /* No border, just shadow */
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 10px;
    /* Space for button at bottom */
}

.epc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Image Area */
.epc-card-image {
    position: relative;
    width: 100%;
    height: 140px;
    background: #f4f4f4;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.epc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.epc-card:hover .epc-card-image img {
    transform: scale(1.05);
    /* Subtle zoom */
}

/* Badge - Matching "Malaysia 2024" look */
.epc-card-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.66);
    /* White background */
    color: #000;
    text-align: center;
    padding: 8px 30px;
    /* Wider padding */
    font-weight: 700;
    font-size: 18px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    white-space: nowrap;
}

.epc-card-badge span.year {
    color: #ff5200;
    margin-left: 5px;
}

/* Card Body */
.epc-card-body {
    padding: 25px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    align-items: center;
}

.epc-card-title {
    color: #ff5200 !important;
    font-size: 24px;
    /* Slightly larger */
    font-weight: 700;
    /* Extra Bold */
    margin: 15px 0 20px 0;
    line-height: 1.2;
}

/* Meta Data */
.epc-card-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    font-size: 15px;
    color: #333;
    text-align: left;
    margin-bottom: 30px;
    padding-left: 10px;
    font-weight: 600;
    /* Bolder meta text */
}

.epc-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.epc-meta-item .dashicons {
    color: #ff5200;
    font-size: 22px;
    width: 22px;
    height: 22px;
    line-height: 22px;
}

/* Explore Button - Exact Replica */
.epc-btn-explore {
    margin-top: auto;
    display: block;
    /* Ensure block for full width */
    width: 100%;
    /* Full width usually in these designs, or large block */
    background: #ff5200;
    color: #fff;
    padding: 15px 0;
    border-radius: 12px;
    /* Distinctive radius from screenshot */
    text-decoration: none !important;
    /* Force no underline */
    font-weight: 800;
    font-size: 18px;
    text-transform: capitalize;
    /* Or None, strict checking */
    transition: background 0.3s ease, transform 0.2s;
    box-shadow: 0 4px 15px rgba(255, 82, 0, 0.3);
    text-align: center;
}

.epc-btn-explore:hover {
    background: #e04800;
    color: #fff;
    transform: translateY(-2px);
}

/* Loading State */
#epc-loader {
    text-align: center;
    padding: 20px;
    color: #ff5200;
    font-weight: bold;
}

@media (max-width: 768px) {
    .epc-grid {
        grid-template-columns: 1fr;
    }
}