/* ==========================================================================
   CASINO QATAR - ARTICLES & BLOG ARCHIVE REPOSITORY (LIGHT THEME)
   ========================================================================== */

.articles-page-wrapper {
    width: 100%;
    background-color: #f8fafc;
    padding: 30px 0 60px 0;
    direction: rtl;
}

.articles-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumbs */
.articles-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 25px;
}

.articles-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.articles-breadcrumb a:hover {
    color: #8a1538;
}

.articles-breadcrumb span.current {
    color: #0f172a;
    font-weight: 700;
}

/* Archive Hero Header */
.articles-hero-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 35px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.03);
}

.articles-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fdf2f8;
    color: #8a1538;
    border: 1px solid #fbcfe8;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.articles-hero-title {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.articles-hero-desc {
    font-size: 15.5px;
    color: #64748b;
    max-width: 820px;
    margin: 0 auto 28px auto;
    line-height: 1.7;
}

/* Filter & Search Bar */
.articles-filter-bar {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.articles-search-box {
    position: relative;
    width: 100%;
}

.articles-search-input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    font-size: 15px;
    color: #0f172a;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.articles-search-input:focus {
    background: #ffffff;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.articles-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

/* Category Filter Tabs */
.articles-category-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.category-tab-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
}

.category-tab-btn:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.category-tab-btn.active {
    background: linear-gradient(135deg, #5c0632 0%, #8a1538 100%);
    color: #ffffff;
    border-color: #8a1538;
    box-shadow: 0 3px 10px rgba(138, 21, 56, 0.25);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 45px;
}

.article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Card Thumbnail */
.article-card-thumb {
    position: relative;
    width: 100%;
    height: 195px;
    overflow: hidden;
    background: #f1f5f9;
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.article-card:hover .article-card-thumb img {
    transform: scale(1.05);
}

.article-card-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Card Body */
.article-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-cat {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: #8a1538;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    padding: 2px 9px;
    border-radius: 12px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.article-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card-title a:hover {
    color: #8a1538;
}

.article-card-excerpt {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Card Footer */
.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.article-read-time {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card-btn {
    font-size: 13px;
    font-weight: 700;
    color: #8a1538;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.article-card-btn:hover {
    color: #b8860b;
    transform: translateX(-4px);
}

/* Pagination Controls */
.articles-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.page-num-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.page-num-btn:hover {
    border-color: #8a1538;
    color: #8a1538;
}

.page-num-btn.active {
    background: #8a1538;
    color: #ffffff;
    border-color: #8a1538;
    box-shadow: 0 2px 8px rgba(138, 21, 56, 0.25);
}

.page-nav-btn {
    padding: 0 16px;
    height: 40px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.page-nav-btn:hover:not(:disabled) {
    border-color: #8a1538;
    color: #8a1538;
}

.page-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 991px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .articles-hero-header {
        padding: 26px 16px;
    }
    .articles-hero-title {
        font-size: 24px;
    }
    .articles-hero-desc {
        font-size: 13.5px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
