/* ===================================
   Blog Archive Page Styles
   =================================== */

.archive-page-container {
    background: linear-gradient(146.64deg, #F2FCFF 2.74%, #FFFFFF 82.33%);
    ;
    padding: 60px 0;
    min-height: 60vh;
}

/* Archive Header */
.archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.archive-title {
    font-size: 42px;
    font-weight: 700;
    color: #007B9A;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Section */
.archive-filters {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-heading {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.archive-filter-form {
    margin-bottom: 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-item label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.filter-item select,
.filter-item input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.3s ease;
}

.filter-item select:focus,
.filter-item input[type="text"]:focus {
    outline: none;
    border-color: #007B9A;
    background: #fff;
}

/* Custom Multi-Select Dropdown */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-trigger {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
}

.multiselect-trigger:hover {
    border-color: #007B9A;
    background: #fff;
}

.custom-multiselect.active .multiselect-trigger {
    border-color: #007B9A;
    background: #fff;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    color: #666;
}

.custom-multiselect.active .dropdown-arrow {
    transform: rotate(180deg);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.multiselect-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #333;
    border-radius: 4px;
    margin: 2px 4px;
}

.multiselect-option:hover {
    background: #f5f5f5;
}

.multiselect-option input[type="checkbox"] {
    display: none;
}

.multiselect-option input[type="checkbox"]:checked + span {
    font-weight: 600;
}

.multiselect-option:has(input[type="checkbox"]:checked) {
    background: #007B9A;
    color: #fff;
}

.multiselect-option:has(input[type="checkbox"]:checked):hover {
    background: #006080;
}

.multiselect-option span {
    flex: 1;
    user-select: none;
}

.selected-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.filter-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-filter,
.btn-clear {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-filter {
    background: linear-gradient(176.74deg, #007B9A -13.59%, #007B9A 109.86%);
    color: #fff;
    border: none;
}

.btn-filter:hover {
    background: linear-gradient(176.74deg, #007B9A -13.59%, #05A7D0 109.86%);
 
}

.btn-clear {
    background: #fff;
    color: #666;
    border: 2px solid #ddd;
}

.btn-clear:hover {
    border-color: #007B9A;
    color: #007B9A;
}

/* Active Filters */
.active-filters {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.active-filters strong {
    font-size: 15px;
    color: #333;
    display: block;
    margin-bottom: 12px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #007B9A;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.filter-tag a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    margin-left: 5px;
    transition: opacity 0.2s;
}

.filter-tag a:hover {
    opacity: 0.7;
}

/* Results Section */
.archive-results {
    margin-top: 40px;
}

.results-header {
    margin-bottom: 30px;
}

.results-count {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    row-gap: 60px;
    margin-bottom: 50px;
}

.post-card {
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-4px);
}



.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #D3AA1D;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.post-thumbnail {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

.post-thumbnail a {
    display: block;
    height: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    width: 80%;
}

/* Tags (Pill Style) */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.tag-pill {
    display: inline-block;
    padding: 6px 16px;
    background: transparent;
    color: #848484;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #D9D9D9;
    transition: all 0.3s ease;
}

.tag-pill:hover {
    background: #007B9A;
    color: #fff;
    border-color: #007B9A;
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.post-title a:hover {
    color: #007B9A;
}

.post-excerpt {
    font-size: 18px;
    color: #000;
    margin: 0;
   
}

.post-author-date {
    font-size: 14px;
    color: #000;
    margin: 8px 0 0 0;
    display: flex;
    align-items: center;
}

.author-name {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name:hover {
    color: #007B9A;
}

.date-separator {
    width: 6px;
    height: 6px;
    background-color: #03030833;
    border-radius: 50%;
    margin: 0 7px;
}

.see-details {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    margin-top: auto;
    padding-top: 8px;
    transition: color 0.3s ease;
}

.see-details:hover {
    color: #007B9A;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
}

.no-posts-found p {
    font-size: 18px;
    color: #666;
}

/* Pagination */
.archive-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.archive-pagination .page-numbers {
    padding: 10px 18px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: #007B9A;
    color: #fff;
    border-color: #007B9A;
}

.archive-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .archive-page-container {
        padding: 30px 0;
    }
    .post-card{
        max-width: 400px;
    }
    .post-content{
       gap: 10px;
    }
    .post-title, .post-excerpt, .see-details{
        font-size: 16px;
       
    }
    .post-author-date, .post-date{
        font-size: 12px;
       
    }

    .archive-title {
        font-size: 32px;
    }

    .archive-filters {
        padding: 25px 20px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filter-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-filter,
    .btn-clear {
        width: 100%;
        text-align: center;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .archive-pagination {
        flex-wrap: wrap;
    }
}

