/* ==========================================================================
   প্রকল্প আর্কাইভ পেজ স্টাইল
   ========================================================================== */

.ul-projects-archive {
    padding: 120px 0 60px;
    background: var(--ast-global-color-5);
    min-height: 100vh;
}

.archive-hero {
    text-align: center;
    margin-bottom: 40px;
}

/* ফিল্টার সেকশন */
.filter-section {
    background: var(--ast-global-color-4);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ast-global-color-6);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ast-global-color-2);
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ast-global-color-6);
    border-radius: 12px;
    background: var(--ast-global-color-4);
    color: var(--ast-global-color-2);
    font-family: inherit;
    transition: all 0.2s;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--ast-global-color-0);
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.1);
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: auto;
}

.filter-actions .btn-primary,
.filter-actions .btn-outline {
    padding: 10px 20px;
    margin: 0;
}

/* ফিল্টার অ্যাকর্ডিয়ন (ট্যাবলেট/মোবাইল) */
.filter-accordion {
    margin-bottom: 48px;
}

.filter-accordion-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--ast-global-color-5);
    border: 1px solid var(--ast-global-color-3);
    border-radius: 14px;
    color: var(--ast-global-color-2);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-bottom: 16px;
}

.filter-accordion-toggle:hover {
    background: var(--ast-global-color-6);
    border-color: var(--ast-global-color-0);
}

.filter-accordion-toggle.open {
    color: var(--ast-global-color-2);
    border-bottom-color: transparent;
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
}

html[data-theme="light"] .filter-accordion-toggle {
    background: #F1F5F9;
    border-color: #64748B;
    color: #0F172A;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .filter-accordion-toggle:hover {
    background: #E2E8F0;
    border-color: #0D47A1;
}

html[data-theme="light"] .filter-accordion-toggle.open {
    color: #0D47A1;
    background: #E2E8F0;
    border-bottom-color: transparent;
}

.filter-toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.filter-accordion-toggle.open .filter-toggle-icon {
    transform: rotate(180deg);
}

.filter-accordion-content {
    max-height: none;
    overflow: visible;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 1;
}

@media (max-width: 1023px) {
    .filter-accordion-toggle {
        display: flex;
    }

    .filter-accordion-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }

    .filter-accordion-content.open {
        max-height: 600px;
        opacity: 1;
    }

    .filter-accordion-content.open .filter-section {
        border-radius: 0 0 14px 14px;
        border-top: none;
    }
}

/* প্রজেক্ট গ্রিড */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

/* প্রজেক্ট কার্ড (হোমপেজ ক্যারোসেলের মতো) */
.project-card {
    background: var(--ast-global-color-4);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--ast-global-color-6);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.project-info h3 a {
    color: inherit;
    text-decoration: none;
}

.project-info h3 a:hover {
    color: var(--ast-global-color-0);
}

.project-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.project-status.ongoing { background: var(--ast-global-color-1); }
.project-status.completed { background: var(--ast-global-color-0); }
.project-status.upcoming { background: #F59E0B; }

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.project-location {
    color: var(--ast-global-color-0);
    font-size: 0.8rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-excerpt {
    color: var(--ast-global-color-3);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ast-global-color-0);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 10px;
    color: var(--ast-global-color-1);
}

/* পেজিনেশন */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 12px;
    background: var(--ast-global-color-4);
    border: 1px solid var(--ast-global-color-6);
    color: var(--ast-global-color-2);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.pagination a:hover {
    background: var(--ast-global-color-0);
    border-color: var(--ast-global-color-0);
    color: white;
}

.pagination .current {
    background: var(--ast-global-color-1);
    border-color: var(--ast-global-color-1);
    color: white;
    cursor: default;
}

.pagination .dots {
    background: transparent;
    border: none;
    cursor: default;
}

.pagination .dots:hover {
    background: transparent;
    color: var(--ast-global-color-2);
}

.pagination .prev,
.pagination .next {
    font-size: 1.1rem;
}

.loading-spinner {
    text-align: center;
    padding: 50px;
    grid-column: 1/-1;
    font-size: 1.1rem;
    color: var(--ast-global-color-3);
}

/* রেসপন্সিভ */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .ul-projects-archive {
        padding: 100px 0 40px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}
