/* ============================================
   Bilal Travels - News rubric styles
   Loaded in addition to style.css on News pages only.
   Uses the same palette and typography as the rest of the site.
   ============================================ */

/* ---------- Rubric bar (site-wide list of rubrics) ---------- */
.rubric-bar {
    background: var(--bg-light);
    border-bottom: 1px solid #e6e6e6;
    padding: 18px 0;
}

.rubric-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.rubric-title i {
    margin-right: 6px;
    color: var(--primary-color);
}

.rubric-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.rubric-list li {
    margin: 0;
}

.rubric-list a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rubric-list a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.rubric-list a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ---------- News listing ---------- */
.news-listing {
    padding: 45px 0 55px;
    background: var(--white);
}

.news-h1 {
    font-size: 34px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.news-h1 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.news-intro {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.news-card-img {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-light);
}

.news-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.news-meta i {
    margin-right: 5px;
}

.news-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 9px;
    border-radius: 10px;
}

.news-card-body h3 {
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.news-card-body h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.news-card-body h3 a:hover {
    color: var(--primary-color);
}

.news-card-body p {
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 14px;
}

.news-more {
    margin-top: auto;
    align-self: flex-start;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.news-more i {
    margin-left: 4px;
    transition: margin-left 0.2s ease;
}

.news-more:hover i {
    margin-left: 8px;
}

/* ---------- Pagination ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pager-link,
.pager-num {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 40px;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    text-decoration: none;
}

.pager-link:hover,
.pager-num:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pager-num.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.pager-link.disabled {
    color: #bdbdbd;
    border-color: #ececec;
    cursor: default;
}

/* ---------- Article extras ---------- */
.news-byline {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 18px;
}

.news-byline i {
    margin-right: 5px;
}

.news-byline a {
    color: var(--primary-color);
    text-decoration: none;
}

.news-related {
    margin-top: 40px;
    padding: 22px 24px;
    background: var(--bg-light);
    border-radius: 15px;
}

.news-related h2 {
    font-size: 22px;
    margin: 0 0 12px;
}

.news-related ul {
    list-style: none;
    margin: 0;
}

.news-related li {
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
    font-size: 15px;
}

.news-related li::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

.news-related a {
    color: var(--text-dark);
    text-decoration: none;
}

.news-related a:hover {
    color: var(--primary-color);
}

/* ---------- Table wrapper (canon: table.article-table inside a wrap) ---------- */
.article-table-wrap {
    margin: 10px 0 25px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-table-wrap table.article-table {
    width: 100%;
    min-width: 480px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-h1 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .news-h1 {
        font-size: 24px;
    }

    .news-listing {
        padding: 30px 0 40px;
    }

    .article-table-wrap table.article-table {
        min-width: 100%;
    }
}
