@import url('./fonts.css');

:root {
    --brand-navy: #021D3A;
    --brand-navy-700: #132a4d;
    --brand-orange: #FF7B00;
    --muted-text: #5f6b7a;
    --card-border: #e5eaef;
    --page-bg: #edf2f6;
}

html,
body {
    height: 100%;
    background: var(--page-bg);
    color: #1a2433;
    font-family: 'Vazir', Vazirmatn, system-ui, -apple-system, Segoe UI, Roboto, Tahoma, Arial, sans-serif;
}

.page-hero {
    text-align: center;
    margin: 1rem 0 1.25rem 0;
}

.page-hero .title {
    display: inline-block;
    color: var(--brand-navy);
    font-weight: 900;
    letter-spacing: .2px;
    margin-bottom: .6rem;
    position: relative;
}

.page-hero .title::after {
    content: "";
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    bottom: -8px;
    width: 90px;
    height: 4px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--brand-orange), #ffb07a);
}

.stats-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    padding: .35rem .8rem;
    box-shadow: 0 6px 18px rgba(15, 33, 55, .08);
    color: #2a3952;
    font-weight: 700;
    margin-top: .4rem;
}

.stats-pill i {
    color: var(--brand-orange);
}

.stats-pill b {
    color: var(--brand-navy);
    font-weight: 900;
}

.btn-brand {
    background: var(--brand-navy);
    color: #fff;
    border: 0;
}

.btn-brand:hover {
    background: var(--brand-navy-700);
    color: #fff;
}

.btn-outline-brand {
    color: var(--brand-navy);
    border-color: var(--brand-navy);
    border-width: 2px;
    font-weight: 700;
    padding: .65rem 1rem;
    transition: all .3s ease;
}

.btn-outline-brand:hover {
    background: var(--brand-navy);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 31, 58, .2);
}

.btn-outline-brand i {
    font-size: 1.1rem;
}

.btn-outline-brand .filter-label {
    font-size: .95rem;
}

.btn-outline-brand.active-filter {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}

.btn-outline-brand.active-filter:hover {
    background: #ff7a2e;
    border-color: #ff7a2e;
}

/* Article Card */
.article-card {
    border: 1px solid var(--card-border);
    border-radius: .85rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 33, 55, .06);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 33, 55, .12);
}

.article-media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #ddd;
}

.article-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
    display: block;
}

.article-card:hover .article-media img {
    transform: scale(1.06);
}

.article-body {
    padding: 1rem 1rem .5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.article-title {
    font-weight: 800;
    color: #15223a;
    line-height: 1.5;
    position: relative;
    padding-bottom: .35rem;
    margin: .25rem 0 .25rem 0;
}

.article-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    height: 3px;
    width: 0;
    background: var(--brand-orange);
    border-radius: 3px;
    transition: width .35s ease;
}

.article-card:hover .article-title::after {
    width: 55%;
}

.article-excerpt {
    color: var(--muted-text);
    font-weight: 500;
}

.article-meta {
    padding: .75rem 1rem 1rem 1rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: #6b7788;
    font-weight: 600;
}

.meta-left i {
    vertical-align: -1px;
}

.filters-card {
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 33, 55, .08);
}

.filters-card .form-label {
    font-size: .95rem;
    color: var(--brand-navy);
    margin-bottom: .5rem;
}

.filters-card .form-label i {
    font-size: 1.1rem;
    vertical-align: -2px;
}

.input-group-lg .input-group-text {
    padding: .75rem 1rem;
    border-color: var(--card-border);
}

.input-group-lg .form-control {
    padding: .75rem 1rem;
    border-color: var(--card-border);
    font-size: 1rem;
}

.input-group-lg .form-control:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 66, 0.15);
}

.dropdown-menu-checklist {
    width: 280px;
    max-height: 380px;
    overflow-y: auto;
    border-radius: .75rem;
    border: 1px solid var(--card-border);
    padding: 0;
}

.dropdown-menu-checklist .border-bottom {
    background: #f8f9fa;
}

.dropdown-menu-checklist .text-navy {
    color: var(--brand-navy);
}

.dropdown-menu-checklist .form-check {
    padding-right: 2.5rem;
    margin: 0;
    transition: background .2s ease;
    border-radius: .5rem;
}

.dropdown-menu-checklist .form-check:hover {
    background: #f8f9fa;
}

.dropdown-menu-checklist .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .15rem;
    cursor: pointer;
}

.dropdown-menu-checklist .form-check-input:checked {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.dropdown-menu-checklist .form-check-label {
    cursor: pointer;
    color: #2a3952;
    font-size: .95rem;
}

.text-navy {
    color: var(--brand-navy);
}

.pagination .page-link {
    border-radius: .5rem;
    border-color: var(--card-border);
    color: var(--brand-navy);
    font-weight: 700;
}

.pagination .page-item.active .page-link {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #9aa7b5;
}

.pagination .ellipsis .page-link {
    pointer-events: none;
    background: transparent;
    border-color: transparent;
}

.empty-state {
    border: 1px dashed #cfd8e3;
    background: #f6f8fb;
    border-radius: .85rem;
    color: #7b8896;
}

.line-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .filters-card {
        padding: 1rem !important;
    }

    .btn-outline-brand {
        font-size: .875rem;
        padding: .6rem .75rem;
    }

    .btn-outline-brand .filter-label {
        font-size: .85rem;
    }

    .dropdown-menu-checklist {
        width: 260px;
        max-height: 320px;
    }

    .form-label {
        font-size: .875rem !important;
    }
}

@media (min-width: 768px) {
    .filters-card .row>.col-12:last-child .row {
        justify-content: center;
    }
}