/* ============================================================
   Montreal In Arabic - Shared styles for the public site
   ============================================================ */

/* ---------- Header ---------- */
.header-top {
    background: #0b1d33;
    color: #cfd8e3;
    font-size: 13px;
    padding: 8px 0;
}
.header-top ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-top ul li {
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-top ul li i {
    color: #ffc107;
}
.header-social a {
    color: #cfd8e3;
    margin-left: 10px;
    transition: color .2s;
}
.header-social a:hover {
    color: #ffc107;
}
.site-tagline {
    margin: 0;
    font-size: 15px;
    color: #5a6268;
    text-align: right;
    direction: rtl;
    padding: 10px 0;
    font-weight: 500;
}
.header-mid {
    background: #ffffff;
    padding: 20px 0;
}
.main-header .logo img {
    max-height: 60px;
}
.sticky-logo img {
    max-height: 40px;
}

/* ---------- Category badge / meta ---------- */
.cat-badge {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #6c757d;
    font-size: 13px;
    margin-top: 6px;
}
.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.article-meta i {
    color: #c0392b;
}

/* ---------- Article listing cards (/Article) ---------- */
.news-listing {
    padding: 40px 0 60px;
    background: #f7f9fc;
    min-height: 60vh;
}
.news-listing h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0b1d33;
    margin-bottom: 6px;
}
.news-listing .listing-subtitle {
    color: #6c757d;
    margin-bottom: 24px;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(11, 29, 51, .08);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(11, 29, 51, .16);
}
.article-card a.article-card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.article-card-img {
    position: relative;
    height: 180px;
    background: #e9ecef;
    overflow: hidden;
}
.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.article-card:hover .article-card-img img {
    transform: scale(1.05);
}
.article-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 42px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}
.article-card-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(192, 57, 43, .92);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
}
.article-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card-body h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #0b1d33;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-body .article-meta {
    margin-top: auto;
    border-top: 1px solid #f1f3f5;
    padding-top: 10px;
}

/* ---------- Load more button ---------- */
.load-more-wrap {
    text-align: center;
    margin-top: 36px;
}
.btn-load-more {
    display: inline-block;
    background: #0b1d33;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 34px;
    border-radius: 30px;
    cursor: pointer;
    transition: background .25s ease, transform .2s ease;
}
.btn-load-more:hover {
    background: #c0392b;
    transform: translateY(-2px);
    color: #fff;
}
.btn-load-more:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}
.loading-spinner {
    display: none;
}
.btn-load-more.is-loading .loading-spinner {
    display: inline-block;
}
.btn-load-more.is-loading .btn-label {
    display: none;
}

/* ---------- Admin toolbar ---------- */
.admin-toolbar {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #664d03;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.admin-toolbar a {
    color: #664d03;
    font-weight: 600;
    text-decoration: underline;
}
.admin-toolbar .btn-admin {
    display: inline-block;
    background: #0b1d33;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
}
.admin-toolbar .btn-admin:hover {
    background: #c0392b;
    color: #fff;
}

/* ---------- Details page ---------- */
.article-detail {
    background: #fff;
}
.detail-header {
    background: linear-gradient(135deg, #0b1d33, #1c3a5f);
    color: #fff;
    padding: 40px 0 30px;
    margin-bottom: 30px;
}
.breadcrumb-nav {
    font-size: 13px;
    color: #aeb9c7;
    margin-bottom: 14px;
}
.breadcrumb-nav a {
    color: #cfd8e3;
    text-decoration: none;
}
.breadcrumb-nav a:hover {
    color: #ffc107;
}
.detail-header h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    margin: 10px 0 16px;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #cfd8e3;
    font-size: 14px;
}
.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.detail-meta i {
    color: #ffc107;
}
.article-detail-img {
    margin-bottom: 24px;
}
.article-detail-img img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 8px;
}
.article-body {
    font-size: 17px;
    line-height: 1.9;
    color: #2b2b2b;
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}
.article-body p {
    margin-bottom: 18px;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.article-body h2, .article-body h3, .article-body h4 {
    margin: 22px 0 12px;
    font-weight: 700;
}
.share-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.share-box h4 {
    margin: 0;
    font-size: 16px;
    color: #0b1d33;
    width: 100%;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
}
.share-btn:hover { opacity: .85; color: #fff; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }
.share-copy { background: #6c757d; }

/* Related articles */
.related-section {
    padding: 40px 0;
    background: #f7f9fc;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* ---------- Footer ---------- */
.footer-area {
    background: #0b1d33;
}
.footer-area .single-footer-caption h4 {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
}
.footer-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-area ul li {
    margin-bottom: 10px;
}
.footer-area ul li a {
    color: #aeb9c7;
    text-decoration: none;
    transition: color .2s;
}
.footer-area ul li a:hover {
    color: #ffc107;
    padding-left: 4px;
}
.footer-contact li {
    color: #aeb9c7;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.footer-contact li i {
    color: #ffc107;
    margin-top: 3px;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991px) {
    .articles-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .detail-header h1 { font-size: 24px; }
}
