/* ===== articles.php — extracted inline <style> → articles.css ===== */
/* Base Page & Background */
.articles-page-wrapper {
    background: transparent;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    padding: 1rem 0 3.5rem;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.articles-page-container {
    width: 94%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .articles-page-container {
        width: 100%;
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* 1. Breadcrumb */
.articles-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}
.articles-breadcrumb a {
    color: #1d4f69;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}
.articles-breadcrumb a:hover {
    color: #d97706;
}
.articles-crumb-sep {
    color: #cbd5e1;
    font-size: 0.95rem;
}
.articles-crumb-cur {
    color: #0f172a;
    font-weight: 800;
}

/* 2. Hero Banner Card */
.articles-hero-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.25rem 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.articles-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 50%, #1d4f69 100%);
}
.articles-hero-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.articles-hero-title {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.articles-hero-ico {
    color: #d97706;
    font-size: 1.8rem;
}
.articles-hero-desc {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Search Bar Pill */
.articles-search-pill {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.35rem 0.5rem 0.35rem 1.25rem;
    max-width: 650px;
    margin-bottom: 1.5rem;
    transition: all 0.25s ease;
}
.articles-search-pill:focus-within {
    border-color: #d97706;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}
.articles-search-icon {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-left: 0.75rem;
}
.articles-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Cairo', sans-serif;
    font-size: 0.98rem;
    color: #0f172a;
    outline: none;
}
.articles-search-input::placeholder {
    color: #94a3b8;
}
.articles-search-btn {
    background: linear-gradient(135deg, #1d4f69 0%, #153a4d 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.articles-search-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Stats Counter Strip */
.articles-stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}
.articles-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: #64748b;
}
.articles-stat-item i {
    color: #d97706;
    font-size: 1rem;
}
.articles-stat-num {
    font-weight: 800;
    color: #0f172a;
    background: #f1f5f9;
    padding: 0.15rem 0.55rem;
    border-radius: 8px;
    font-size: 0.92rem;
}

/* 3. Category Pills Bar */
.articles-pills-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.articles-pills-label {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.articles-pills-label i {
    color: #d97706;
}
.articles-pills-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}
.articles-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.95rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}
.articles-pill-btn:hover {
    color: #d97706;
    border-color: #cbd5e1;
    background: #ffffff;
}
.articles-pill-btn.is-active {
    background: #1d4f69;
    color: #ffffff;
    border-color: #1d4f69;
    box-shadow: 0 4px 10px rgba(29, 79, 105, 0.2);
}
.articles-pill-count {
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: 50px;
}
.articles-pill-btn.is-active .articles-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* 4. Toolbar Card */
.articles-toolbar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.articles-toolbar-count {
    font-size: 0.95rem;
    color: #475569;
}
.articles-toolbar-count strong {
    color: #0f172a;
}
.articles-toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.articles-toolbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.articles-sort-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.articles-sort-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    margin-left: 0.3rem;
}
.articles-sort-btn {
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}
.articles-sort-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.articles-sort-btn.is-active {
    background: #fef3c7;
    color: #92400e;
    font-weight: 800;
}
.articles-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #dc2626;
    background: #fee2e2;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.articles-reset-btn:hover {
    background: #fecaca;
}

/* Active Filter Chips */
.articles-active-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.articles-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}
.articles-chip-del {
    color: #9a3412;
    font-size: 1.1rem;
    text-decoration: none;
    margin-right: 0.2rem;
    line-height: 1;
}
.articles-chip-del:hover {
    color: #dc2626;
}

/* 5. Layout Grid (2 Columns) */
.articles-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.75rem;
    align-items: start;
}
.articles-main-col {
    min-width: 0;
}

/* Featured Lead Card */
.article-lead-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 1.75rem;
    transition: all 0.3s ease;
}
.article-lead-card:hover {
    border-color: #cbd5e1;
}
.article-lead-image-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    background: #0f172a;
    overflow: hidden;
}
.article-lead-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-lead-card:hover .article-lead-img {
    opacity: 0.95;
}
.article-lead-img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d4f69 0%, #0f2a38 100%);
    color: #d97706;
    font-size: 4rem;
}
.article-lead-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}
.article-lead-body {
    padding: 1.75rem;
}
.article-cat-tag {
    display: inline-block;
    background: #eff6ff;
    color: #1d4f69;
    border: 1px solid #bfdbfe;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.article-cat-tag:hover {
    background: #1d4f69;
    color: #ffffff;
}
.article-lead-title {
    font-family: 'Amiri', serif;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}
.article-lead-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}
.article-lead-title a:hover {
    color: #d97706;
}
.article-lead-desc {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.article-meta-item i {
    color: #d97706;
    margin-left: 0.3rem;
}
.article-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #1d4f69 0%, #153a4d 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}
.article-read-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Articles List Stack */
.articles-list-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.article-row-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: grid;
    grid-template-columns: 200px 1fr;
    overflow: hidden;
    transition: all 0.25s ease;
}
.article-row-card:hover {
    border-color: #cbd5e1;
}
.article-row-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 170px;
    background: #f1f5f9;
    display: block;
    overflow: hidden;
}
.article-row-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-row-card:hover .article-row-img {
    opacity: 0.95;
}
.article-row-img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #94a3b8;
    font-size: 2.2rem;
}
.article-row-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.article-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.article-meta-date {
    font-size: 0.82rem;
    color: #94a3b8;
}
.article-meta-author,
.article-meta-views {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #64748b;
}
.article-meta-author i,
.article-meta-views i {
    color: #d97706;
}
.article-row-title {
    font-family: 'Amiri', serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.article-row-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}
.article-row-title a:hover {
    color: #d97706;
}
.article-row-excerpt {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.article-row-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #f8fafc;
    padding-top: 0.75rem;
    flex-wrap: wrap;
}
.article-row-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.84rem;
    color: #64748b;
}
.article-row-meta i {
    color: #d97706;
    margin-left: 0.25rem;
}
.article-row-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #1d4f69;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.article-row-read-link:hover {
    color: #d97706;
}

/* Empty State */
.articles-empty-box {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 3.5rem 2rem;
    text-align: center;
}
.articles-empty-ico {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}
.articles-empty-title {
    font-family: 'Amiri', serif;
    font-size: 1.7rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.articles-empty-text {
    color: #64748b;
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
}
.articles-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1d4f69;
    color: #ffffff;
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.articles-empty-btn:hover {
    background: #d97706;
}

/* Pagination Card */
.articles-pagination-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    padding: 0.85rem 1.25rem;
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.art-page-numbers {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.art-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.art-page-btn:hover:not(.is-current):not(.is-ellipsis) {
    background: #ffffff;
    border-color: #d97706;
    color: #d97706;
}
.art-page-btn.is-current {
    background: linear-gradient(135deg, #1d4f69 0%, #153a4d 100%);
    color: #ffffff;
    border-color: #1d4f69;
    box-shadow: 0 4px 10px rgba(29, 79, 105, 0.25);
}
.art-page-btn.is-ellipsis {
    background: transparent;
    border: none;
    color: #94a3b8;
}
.art-page-nav {
    gap: 0.4rem;
    padding: 0 1rem;
    background: #ffffff;
    border-color: #cbd5e1;
}

/* Sidebar Widgets */
.articles-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.art-side-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}
.art-side-header {
    padding: 1.1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.art-side-ico {
    color: #d97706;
    font-size: 1.1rem;
}
.art-side-title {
    font-family: 'Amiri', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.art-side-body {
    padding: 1.25rem;
}

/* Sidebar Categories */
.art-side-cats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.art-side-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.art-side-cat-link:hover {
    background: #f8fafc;
    color: #d97706;
}
.art-side-cat-link.is-active {
    background: #fef3c7;
    color: #92400e;
    font-weight: 800;
}
.art-side-cat-name i {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 0.4rem;
}
.art-side-cat-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.78rem;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-weight: 800;
}

/* Sidebar Posts (Popular & Recent) */
.art-side-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.art-side-post-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.2s ease;
}
.art-side-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.art-side-post-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fef3c7;
    color: #b45309;
    font-weight: 900;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.art-side-post-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}
.art-side-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.art-side-post-info {
    flex: 1;
    min-width: 0;
}
.art-side-post-title {
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.art-side-post-item:hover .art-side-post-title {
    color: #d97706;
}
.art-side-post-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    gap: 0.75rem;
}

/* Sidebar Tags Cloud */
.art-side-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.art-side-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.art-side-tag-pill:hover {
    border-color: #d97706;
    color: #d97706;
    background: #ffffff;
}
.art-side-tag-pill.is-active {
    background: #1d4f69;
    color: #ffffff;
    border-color: #1d4f69;
}
.art-side-tag-n {
    font-size: 0.72rem;
    opacity: 0.75;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1024px) {
    .articles-layout-grid {
        grid-template-columns: 1fr;
    }
    .articles-hero-title {
        font-size: 1.9rem;
    }
    .article-lead-image-wrap {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .article-row-card {
        grid-template-columns: 1fr;
    }
    .article-row-media {
        height: 200px;
    }
    .articles-hero-card {
        padding: 1.5rem 1.25rem;
    }
    .articles-hero-title {
        font-size: 1.6rem;
    }
    .articles-hero-desc {
        font-size: 0.95rem;
    }
    .articles-toolbar-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
