/* Base Card Styles */
.cpt-card-f0e139b2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cpt-card-img-f0e139b2 {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.cpt-card-img-placeholder {
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.cpt-card-content-f0e139b2 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.cpt-card-title-f0e139b2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.cpt-card-excerpt-f0e139b2 {
    margin-bottom: 1rem;
}

.cpt-card-footer {
    margin-top: auto;
}

.cpt-card-btn-f0e139b2 {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 8px 16px;
}

/* Filter Styles */
.cpt-filter-container-f0e139b2 {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.cpt-filter-f0e139b2 {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.cpt-filter-f0e139b2 li {
    padding: 8px 16px;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #f3f4f6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cpt-filter-f0e139b2 li:last-child {
    margin-right: 0;
}

/* Specificity to override when active */
.cpt-filter-f0e139b2 li:hover,
.cpt-filter-f0e139b2 li.active {
    background: #000;
    color: #fff;
}

/* Search Styles */
.cpt-search-container-f0e139b2 {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.cpt-search-input-f0e139b2 {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.cpt-search-input-f0e139b2:focus {
    border-color: #000;
}

/* Loading Animation */
.cpt-loading-container-f0e139b2 {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    width: 100%;
}

.cpt-loading-spinner-f0e139b2 {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin-f0e139b2 1s ease-in-out infinite;
}

@keyframes spin-f0e139b2 {
    to { transform: rotate(360deg); }
}

/* Item Animation for Filter */
.cpt-item-f0e139b2 {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cpt-item-f0e139b2.hide-item {
    display: none !important;
}

/* Carousel Specific */
.swiper-slide {
    height: auto; /* Important for equal height cards */
}

.cpt-items-wrapper-f0e139b2.pb-8 {
    padding-bottom: 2rem;
}

.cpt-pagination-f0e139b2 {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 1rem;
}

/* Grid Layout Specific */
.cpt-grid-f0e139b2 {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.cpt-grid-f0e139b2.cpt-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.cpt-grid-f0e139b2.cpt-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cpt-grid-f0e139b2.cpt-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cpt-grid-f0e139b2.cpt-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cpt-grid-f0e139b2.cpt-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cpt-grid-f0e139b2.cpt-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* List Layout Specific */
.cpt-list-f0e139b2 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cpt-card-list-f0e139b2 {
    flex-direction: row;
    align-items: stretch;
}

.cpt-card-list-f0e139b2 .cpt-card-content-f0e139b2 {
    justify-content: center;
}

@media (max-width: 767px) {
    .cpt-grid-f0e139b2 { grid-template-columns: repeat(var(--mobile-cols, 1), minmax(0, 1fr)); }
    .cpt-grid-f0e139b2.cpt-grid-mobile-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .cpt-grid-f0e139b2.cpt-grid-mobile-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    
    /* On mobile, stack list cards vertically */
    .cpt-card-list-f0e139b2 {
        flex-direction: column;
    }
    .cpt-card-list-f0e139b2 .cpt-card-img-f0e139b2 {
        width: 100% !important;
        height: 200px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .cpt-grid-f0e139b2.cpt-grid-tablet-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .cpt-grid-f0e139b2.cpt-grid-tablet-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cpt-grid-f0e139b2.cpt-grid-tablet-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}