.pf-2d79f30d-container {
    width: 100%;
    font-family: inherit;
    display: block !important;
}

.pf-2d79f30d-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pf-2d79f30d-search {
    flex: 1;
    min-width: 200px;
}

.pf-2d79f30d-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #2D3134;
    outline: none;
    transition: border-color 0.3s ease;
}

.pf-2d79f30d-search-input:focus {
    border-color: #898bc8;
}

.pf-2d79f30d-tag-groups {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.pf-2d79f30d-tag-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: #FAF7F2;
    border: 1px solid #E0DCD4;
    border-radius: 12px;
}

.pf-2d79f30d-tag-group-title {
    font-weight: 600;
    min-width: 90px;
    color: #2D3134;
}

.pf-2d79f30d-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pf-2d79f30d-tag-btn {
    padding: 8px 18px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    color: #5D5D5D;
}

.pf-2d79f30d-tag-btn:hover {
    background: #f0f8fb;
    color: #27b6b4;
    border-color: #27b6b4;
}

.pf-2d79f30d-tag-btn.active {
    background: #898bc8 !important;
    color: #fff !important;
    border-color: #898bc8 !important;
}

.pf-2d79f30d-tag-btn.active:hover {
    background: #27b6b4 !important;
    color: #fff !important;
    border-color: #27b6b4 !important;
}

.pf-2d79f30d-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    transition: opacity 0.3s ease;
}

/* EXACT IMAGE STYLING */
.pf-2d79f30d-item {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.pf-2d79f30d-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.pf-2d79f30d-img-link {
    display: block;
    text-decoration: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.pf-2d79f30d-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.1; 
    overflow: hidden;
    background-color: #f3f4f6;
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid #898bc8; /* Thin purple line under image */
}

.pf-2d79f30d-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pf-2d79f30d-img-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
}

.pf-2d79f30d-content {
    padding: 0 20px 24px; /* Removed top padding to allow pill to overlap naturally */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    position: relative;
    background: #ffffff;
}

.pf-2d79f30d-pill-wrap {
    display: flex;
    justify-content: center;
    margin-top: -14px; /* Pulls badge over the line exactly */
    margin-bottom: 24px;
    position: relative;
    z-index: 5;
}

.pf-2d79f30d-pill-wrap-placeholder {
    height: 1px;
    margin-bottom: 24px;
}

.pf-2d79f30d-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #898bc8;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: inline-block;
}

.pf-2d79f30d-badge:hover {
    background-color: #27b6b4 !important;
    color: #ffffff !important;
    transform: scale(1.02);
}

.page-card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.page-card__stars {
  color: #FFA800;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-card__votes {
  color: #8C8C8C;
  font-weight: 400;
}

.pf-2d79f30d-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: #0c1d33;
}

.pf-2d79f30d-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pf-2d79f30d-item:hover .pf-2d79f30d-title a {
    color: #898bc8;
}

.pf-2d79f30d-excerpt {
    color: #555555;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.pf-2d79f30d-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background-color: #898bc8;
    color: #ffffff !important;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.pf-2d79f30d-btn:hover {
    background-color: #27b6b4;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(39,182,180,0.3);
}

.pf-2d79f30d-loader {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #898bc8;
    font-weight: 500;
}

.pf-2d79f30d-load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.pf-2d79f30d-load-more-btn.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(90deg, #898bc8, #27b6b4) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    padding: 15px 30px !important;
    border-radius: 9999px !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 6px 24px rgba(137,139,200,.35) !important;
    transition: transform .2s, box-shadow .2s !important;
    cursor: pointer;
}

.pf-2d79f30d-load-more-btn.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 32px rgba(39,182,180,.4) !important;
}

.pf-2d79f30d-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #5D5D5D;
    font-size: 18px;
    background: #FAF7F2;
    border-radius: 12px;
    border: 1px dashed #cfe8f4;
}

@media (max-width: 768px) {
    .pf-2d79f30d-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
        gap: 15px;
    }
    
    .pf-2d79f30d-tag-group {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px;
        background-color: #FAF7F2;
        border: 1px solid #E0DCD4;
        border-radius: 16px;
    }

    .pf-2d79f30d-tag-group::-webkit-scrollbar {
        display: none;
    }

    .pf-2d79f30d-tags {
        display: flex;
        flex-wrap: nowrap !important;
        gap: 8px;
    }

    .pf-2d79f30d-tag-btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .pf-2d79f30d-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
}
