/* ============================================================
   صفحات اخبار (news.php + news_view.php)
   ============================================================ */

.news-page {
    padding: 130px 0 80px;
    min-height: 100vh;
}

/* ============================================================
   Hero
   ============================================================ */

.news-hero {
    text-align: center;
    margin-bottom: 50px;
}

.news-hero-eyebrow {
    display: inline-block;
    padding: 8px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(10, 14, 23, 0.03);
}

.news-hero-title {
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
    color: var(--ink);
}

.news-hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--teal);
    font-family: 'Vazirmatn', serif;
}

.news-hero-desc {
    font-size: 15px;
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.9;
}

/* ============================================================
   Toolbar (Search + Count)
   ============================================================ */

.news-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 18px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.news-search-form {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 280px;
    max-width: 480px;
}

.news-search-input {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: 0.5;
    pointer-events: none;
}

.news-search-field {
    width: 100%;
    height: 46px;
    padding: 0 42px 0 42px;
    background: var(--cream);
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--ink);
    outline: none;
    transition: all 0.25s var(--ease);
}

.news-search-field:focus {
    background: var(--paper);
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.search-clear {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: var(--cream-2);
    border-radius: 50%;
    font-size: 12px;
    color: var(--muted);
    transition: all 0.2s;
}

.search-clear:hover {
    background: var(--danger);
    color: white;
}

.news-search-btn {
    height: 46px;
    padding: 0 24px;
    background: var(--ink);
    color: var(--cream);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.news-search-btn:hover {
    background: var(--teal);
    color: var(--ink);
    transform: translateY(-1px);
}

.news-count {
    font-size: 13px;
    color: var(--muted);
}

.news-count strong {
    color: var(--ink);
    font-weight: 800;
}

/* ============================================================
   News List
   ============================================================ */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.news-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s var(--ease);
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: var(--teal);
    box-shadow: 0 20px 45px -15px rgba(20, 184, 166, 0.2);
}

.news-card-image {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: var(--ink);
    overflow: hidden;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.news-card:hover .news-card-image img {
    transform: scale(1.06);
}

.news-card-no-image {
    background: linear-gradient(135deg, var(--cream), var(--cream-2));
    display: grid;
    place-items: center;
}

.no-image-icon {
    font-size: 52px;
    opacity: 0.25;
}

.news-card-body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-date {
    display: inline-block;
    font-size: 11.5px;
    color: var(--teal);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.news-card-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
    color: var(--ink);
}

.news-card-excerpt {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 14px;
}

.news-card-more {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    transition: color 0.3s var(--ease);
    margin-top: auto;
}

.news-card:hover .news-card-more {
    color: var(--teal);
}

/* ============================================================
   Empty State
   ============================================================ */

.news-empty {
    text-align: center;
    padding: 90px 30px;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: 20px;
}

.news-empty-icon {
    font-size: 64px;
    opacity: 0.4;
    margin-bottom: 20px;
}

.news-empty h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--ink);
}

.news-empty p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 22px;
}

/* ============================================================
   Pagination
   ============================================================ */

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-3);
    transition: all 0.2s var(--ease);
}

.page-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.page-btn.active {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}

.page-dots {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    color: var(--muted);
    font-weight: 600;
}

/* ============================================================
   News View (Single Article)
   ============================================================ */

.news-view-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.news-breadcrumb a {
    color: var(--muted);
    transition: color 0.2s;
}

.news-breadcrumb a:hover {
    color: var(--teal);
}

.news-article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 50px 55px;
}

.news-article-date {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--teal);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 22px;
}

.news-article-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin-bottom: 28px;
}

.news-article-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    background: var(--cream);
}

.news-article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-article-content {
    font-size: 16px;
    line-height: 2.2;
    color: var(--ink-3);
    margin-bottom: 32px;
    word-break: break-word;
}

.news-article-footer {
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

/* Navigation */
.news-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.news-nav-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 22px;
    transition: all 0.3s var(--ease);
    text-decoration: none;
    color: inherit;
}

.news-nav-item:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
}

.news-nav-item-next {
    text-align: left;
}

.news-nav-label {
    font-size: 11.5px;
    color: var(--teal);
    font-weight: 700;
    margin-bottom: 8px;
}

.news-nav-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   Nav Active
   ============================================================ */

.nav-center a.active {
    background: rgba(10, 14, 23, 0.05);
    font-weight: 600;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 700px) {
    .news-page {
        padding: 100px 0 60px;
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card-image {
        min-height: 180px;
        max-height: 220px;
    }

    .news-card-body {
        padding: 20px 22px;
    }

    .news-card-title {
        font-size: 17px;
    }

    .news-toolbar {
        padding: 14px 16px;
    }

    .news-search-form {
        min-width: 100%;
    }

    .news-search-btn {
        padding: 0 18px;
    }

    .news-count {
        font-size: 12px;
    }

    .news-article {
        padding: 32px 24px;
        border-radius: 18px;
    }

    .news-article-content {
        font-size: 15px;
        line-height: 2;
    }

    .news-nav {
        grid-template-columns: 1fr;
    }

    .news-nav-item-next {
        text-align: right;
    }
}