/* ============================================
   AL JAZEERA CLONE - Main Stylesheet
   ============================================ */

:root {
    --aj-red: #e8001c;
    --aj-dark: #1a1a1a;
    --aj-darker: #111;
    --aj-gray: #555;
    --aj-light-gray: #f4f4f4;
    --aj-border: #e0e0e0;
    --aj-text: #222;
    --aj-white: #fff;
    --aj-gold: #c9a227;
    --font-serif: 'Source Serif 4', Georgia, serif;
    --font-sans: 'Source Sans 3', Arial, sans-serif;
}

* { box-sizing: border-box; }
body { font-family: var(--font-sans); color: var(--aj-text); background: #fff; font-size: 16px; }
a { text-decoration: none; color: inherit; }
a:hover { color: var(--aj-red); }
img { max-width: 100%; height: auto; }

/* ============ BREAKING BAR ============ */
/* BREAKING BAR */
.breaking-bar {
    background: linear-gradient(135deg, #c0001a 0%, #e8001c 60%, #cc001a 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(232,0,28,0.3);
}
.breaking-label {
    background: #fff;
    color: var(--aj-red);
    padding: 4px 14px;
    font-weight: 900;
    font-size: 0.68rem;
    letter-spacing: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
}
.breaking-ticker-wrap {
    overflow: hidden;
    position: relative;
    flex: 1;
    min-width: 0;
}
.breaking-ticker-wrap::before,
.breaking-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 32px;
    z-index: 2;
    pointer-events: none;
}
.breaking-ticker-wrap::before { left:0; background: linear-gradient(to right, #c0001a, transparent); }
.breaking-ticker-wrap::after  { right:0; background: linear-gradient(to left, #c0001a, transparent); }
.breaking-ticker-inner {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    padding: 8px 0;
}
.breaking-ticker-item {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.83rem;
    letter-spacing: 0.2px;
    padding: 0 2px;
    transition: opacity 0.15s;
    white-space: nowrap;
}
.breaking-ticker-item:hover { opacity: 0.85; text-decoration: underline; text-underline-offset: 2px; color: #fff; }
.breaking-ticker-item::after {
    content: '';
    display: inline-block;
    width: 4px; height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 22px;
    vertical-align: middle;
}




/* ============ TOP BAR ============ */
.top-bar {
    background: var(--aj-darker);
    color: #bbb;
    padding: 6px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid #333;
}
.top-bar a { color: #bbb; margin-left: 14px; transition: color 0.2s; }
.top-bar a:hover { color: var(--aj-red); }
.btn-subscribe {
    background: var(--aj-red);
    color: #fff !important;
    padding: 3px 14px;
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 600;
}
.btn-subscribe:hover { background: #c0001a !important; color: #fff !important; }

/* ============ MAIN HEADER ============ */
.main-header {
    background: var(--aj-darker);
    padding: 14px 0;
    border-bottom: 3px solid var(--aj-red);
}
.logo-link { display: flex; flex-direction: column; }
.logo-text {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.5px;
}
.logo-sub { color: var(--aj-red); font-size: 1.1rem; font-family: serif; margin-top: 2px; }

.search-form-header .form-control {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 3px 0 0 3px;
    width: 280px;
}
.search-form-header .form-control::placeholder { color: #888; }
.search-form-header .form-control:focus { background: #333; border-color: var(--aj-red); box-shadow: none; color: #fff; }
.btn-search { background: var(--aj-red); color: #fff; border: none; padding: 7px 16px; }
.btn-search:hover { background: #c0001a; }

.btn-live {
    background: var(--aj-red);
    color: #fff;
    padding: 8px 20px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: pulse-dot 1.5s infinite;
}
.btn-live .fa-circle { font-size: 0.5rem; color: #ff6b6b; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }
.btn-mobile-menu { background: none; border: 1px solid #555; color: #fff; padding: 6px 12px; }

/* ============ NAVIGATION ============ */
.main-nav {
    background: #222;
    border-bottom: 2px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    overflow-x: auto;
}
.nav-item-link {
    display: block;
    color: #ccc;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}
.nav-item-link:hover, .nav-item-link.active {
    color: #fff;
    border-bottom-color: var(--aj-red);
    background: rgba(255,255,255,0.04);
}
.live-nav { color: var(--aj-red) !important; }

/* ============ MOBILE OFFCANVAS ============ */
.offcanvas { background: var(--aj-darker); color: #fff; }
.offcanvas-title { color: #fff; font-family: var(--font-serif); font-size: 1.4rem; }
.mobile-nav-list li a {
    display: block;
    color: #ccc;
    padding: 12px 4px;
    border-bottom: 1px solid #333;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.mobile-nav-list li a:hover { color: var(--aj-red); }
.social-icon { color: #ccc; font-size: 1.2rem; transition: color 0.2s; }
.social-icon:hover { color: var(--aj-red); }


/* Hero slider arrows — only show over the image, not the side cards */
.hero-slider-wrap { position: relative; }
#slider-prev, #slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
#slider-prev { left: 16px; }
/* Limit right arrow to left 58.33% of width (col-lg-7 = 7/12) */
#slider-next { left: calc(58.33% - 60px); right: auto; }
@media (max-width: 991px) {
    #slider-prev { left: 12px; }
    #slider-next { right: 12px; left: auto; }
}

/* Hero slider dots — center them on the image only */
#slider-dots {
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 58.33%;
    display: flex;
    justify-content: center;
    z-index: 10;
    transform: none;
}
@media (max-width: 991px) {
    #slider-dots { width: 100%; }
}

/* Hero slide side panel should not be cut by slider overflow */
.hero-slider-wrap { overflow: hidden; }
.hero-slide .col-lg-5 { overflow: hidden; }

/* ============ HERO / FEATURED ============ */
.hero-section { background: #111; padding: 20px 0; }
.hero-main-card { position: relative; overflow: hidden; display: block; }
.hero-main-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.hero-main-card:hover img { transform: scale(1.02); }
.hero-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.92));
    padding: 30px 24px 24px;
}
.hero-category-badge {
    display: inline-block;
    background: var(--aj-red);
    color: #fff;
    padding: 3px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 10px;
}
.hero-meta { color: #bbb; font-size: 0.82rem; }

/* Hero Side Cards */
.hero-side-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    transition: background 0.2s;
}
.hero-side-card:hover { background: #222; }
.hero-side-img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    flex-shrink: 0;
}
.hero-side-title {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: #eee;
    line-height: 1.35;
    font-weight: 600;
}
.hero-side-cat { font-size: 0.72rem; color: var(--aj-red); font-weight: 700; letter-spacing: 0.5px; }
.hero-side-time { font-size: 0.75rem; color: #888; }

/* ============ SECTION HEADINGS ============ */
.section-heading {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--aj-dark);
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--aj-red);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-heading.light { color: #fff; border-bottom-color: var(--aj-red); }

/* ============ ARTICLE CARDS ============ */
.article-card { border: none; border-radius: 0; background: #fff; height: 100%; }
.article-card-img-wrap { overflow: hidden; }
.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.article-card:hover .article-card-img { transform: scale(1.04); }
.article-card-body { padding: 14px 0; }
.article-card-cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--aj-red);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}
.article-card-title {
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--aj-dark);
    margin-bottom: 8px;
    display: block;
}
.article-card-title:hover { color: var(--aj-red); }
.article-card-excerpt { font-size: 0.88rem; color: var(--aj-gray); line-height: 1.6; margin-bottom: 10px; }
.article-card-meta { font-size: 0.78rem; color: #999; }

/* List style card */
.article-list-card {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--aj-border);
}
.article-list-card:last-child { border-bottom: none; }
.article-list-img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}
.article-list-cat { font-size: 0.7rem; font-weight: 700; color: var(--aj-red); letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.article-list-title {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--aj-dark);
    display: block;
    margin-bottom: 5px;
}
.article-list-title:hover { color: var(--aj-red); }
.article-list-time { font-size: 0.75rem; color: #999; }

/* ============ MAIN CONTENT AREA ============ */
.main-content { padding: 30px 0; }
.content-wrap { padding: 0 8px; }
.sidebar { padding: 0 8px; }

/* ============ ARTICLE DETAIL ============ */
.article-detail-header { padding: 24px 0 0; }
.article-detail-cat {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--aj-red);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}
.article-detail-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--aj-dark);
    margin-bottom: 16px;
}
.article-detail-excerpt {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 400;
    font-style: italic;
}
.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-top: 2px solid var(--aj-border);
    border-bottom: 2px solid var(--aj-border);
    margin-bottom: 24px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #666;
}
.article-detail-author { font-weight: 700; color: var(--aj-dark); }
.article-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.9rem;
    margin-right: 6px;
}
.share-twitter { background: #000; }
.share-facebook { background: #1877f2; }
.share-whatsapp { background: #25d366; }
.share-copy { background: #888; }
.share-copy:hover { background: #555; }

.article-featured-img { width: 100%; max-height: 520px; object-fit: cover; margin-bottom: 8px; }
.article-img-caption { font-size: 0.8rem; color: #888; padding: 6px 0; border-bottom: 1px solid var(--aj-border); margin-bottom: 24px; }

.article-body { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.85; color: #333; }
.article-body p { margin-bottom: 1.4em; }
.article-body h2 { font-size: 1.6rem; font-weight: 700; margin: 1.8em 0 0.8em; color: var(--aj-dark); }
.article-body h3 { font-size: 1.3rem; font-weight: 700; margin: 1.5em 0 0.7em; color: var(--aj-dark); }
.article-body blockquote {
    border-left: 4px solid var(--aj-red);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: #fafafa;
    font-style: italic;
    font-size: 1.15rem;
    color: #444;
}
.article-body img { width: 100%; height: auto; margin: 1em 0; }

.article-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--aj-border); }
.tag-badge {
    display: inline-block;
    background: var(--aj-light-gray);
    color: var(--aj-gray);
    padding: 4px 12px;
    font-size: 0.8rem;
    margin: 3px;
    border-radius: 3px;
    transition: all 0.2s;
}
.tag-badge:hover { background: var(--aj-red); color: #fff; }

/* ============ SIDEBAR ============ */
.sidebar-widget { margin-bottom: 28px; }
.sidebar-widget-title {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--aj-dark);
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 3px solid var(--aj-red);
}
.trending-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--aj-border);
    align-items: flex-start;
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ddd;
    line-height: 1;
    min-width: 28px;
    font-family: var(--font-serif);
}
.trending-title {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--aj-dark);
    display: block;
    margin-bottom: 3px;
}
.trending-title:hover { color: var(--aj-red); }
.trending-cat { font-size: 0.7rem; color: var(--aj-red); font-weight: 700; }

/* ============ CATEGORY BAND ============ */
.category-band { background: var(--aj-light-gray); padding: 28px 0; }
.category-band.dark { background: #111; }

/* ============ COMMENTS ============ */
.comments-section { margin-top: 36px; padding-top: 24px; border-top: 2px solid var(--aj-border); }
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--aj-border); }
.comment-author { font-weight: 700; color: var(--aj-dark); font-size: 0.9rem; }
.comment-date { font-size: 0.78rem; color: #999; margin-left: 8px; }
.comment-text { margin-top: 6px; font-size: 0.92rem; line-height: 1.6; color: #444; }
.comment-form .form-control { border-radius: 2px; border: 1px solid var(--aj-border); font-size: 0.92rem; }
.comment-form .form-control:focus { border-color: var(--aj-red); box-shadow: none; }
.btn-aj { background: var(--aj-red); color: #fff; border: none; border-radius: 2px; padding: 10px 28px; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.3px; }
.btn-aj:hover { background: #c0001a; color: #fff; }
.btn-aj-outline { background: transparent; color: var(--aj-red); border: 2px solid var(--aj-red); border-radius: 2px; padding: 8px 24px; font-weight: 700; }
.btn-aj-outline:hover { background: var(--aj-red); color: #fff; }

/* ============ PAGINATION ============ */
.pagination-wrap .page-link {
    color: var(--aj-dark);
    border-radius: 0 !important;
    border: 1px solid var(--aj-border);
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
}
.pagination-wrap .page-link:hover, .pagination-wrap .page-item.active .page-link {
    background: var(--aj-red);
    border-color: var(--aj-red);
    color: #fff;
}

/* ============ LIVE PAGE ============ */
.live-header { background: #111; padding: 40px 0; border-bottom: 3px solid var(--aj-red); }
.live-badge { background: var(--aj-red); color: #fff; padding: 5px 16px; font-weight: 800; font-size: 0.8rem; letter-spacing: 2px; }
.live-video-wrap { background: #000; aspect-ratio: 16/9; position: relative; overflow: hidden; }
.live-video-wrap iframe { width: 100%; height: 100%; border: none; }

/* ============ SEARCH PAGE ============ */
.search-header { background: var(--aj-dark); padding: 30px 0; border-bottom: 3px solid var(--aj-red); }
.search-results-count { font-size: 0.88rem; color: #888; margin-bottom: 20px; }

/* ============ CONTACT / ABOUT ============ */
.page-hero { background: var(--aj-dark); padding: 50px 0; border-bottom: 3px solid var(--aj-red); }
.page-hero h1 { font-family: var(--font-serif); color: #fff; font-size: 2.5rem; font-weight: 700; }
.page-content { padding: 40px 0; }
.page-content p { font-size: 1rem; line-height: 1.8; color: #444; margin-bottom: 1.4em; }

/* ============ ADMIN ============ */
.admin-body { background: #f0f2f5; }
.admin-sidebar {
    background: var(--aj-darker);
    min-height: 100vh;
    padding: 0;
    width: 240px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}
.admin-logo { padding: 20px 18px; border-bottom: 1px solid #2a2a2a; }
.admin-logo-text { font-family: var(--font-serif); font-size: 1.3rem; color: #fff; font-weight: 700; }
.admin-logo-badge { background: var(--aj-red); color: #fff; font-size: 0.6rem; padding: 2px 7px; margin-left: 6px; font-weight: 700; letter-spacing: 1px; }
.admin-nav { padding: 12px 0; }
.admin-nav-label { font-size: 0.65rem; color: #555; letter-spacing: 2px; text-transform: uppercase; padding: 14px 18px 5px; font-weight: 700; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #aaa;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.admin-nav-link:hover, .admin-nav-link.active { color: #fff; background: rgba(255,255,255,0.06); border-left-color: var(--aj-red); }
.admin-nav-link i { width: 18px; text-align: center; font-size: 0.9rem; }

.admin-main { margin-left: 240px; padding: 0; min-height: 100vh; }
.admin-topbar {
    background: #fff;
    padding: 14px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
}
.admin-content { padding: 24px; }
.admin-card { background: #fff; border-radius: 6px; padding: 20px; border: 1px solid #e8e8e8; }
.stat-card { background: #fff; border-radius: 6px; padding: 20px; border: 1px solid #e8e8e8; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; flex-shrink: 0; }
.stat-icon.red { background: var(--aj-red); }
.stat-icon.blue { background: #2563eb; }
.stat-icon.green { background: #16a34a; }
.stat-icon.orange { background: #ea580c; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--aj-dark); line-height: 1; }
.stat-label { font-size: 0.82rem; color: #888; margin-top: 3px; }

.admin-table th { background: #f8f8f8; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #888; }
.admin-table td { vertical-align: middle; font-size: 0.88rem; }
.status-badge { padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; }
.status-published { background: #dcfce7; color: #16a34a; }
.status-draft { background: #fef9c3; color: #a16207; }
.status-archived { background: #f1f5f9; color: #64748b; }
.btn-admin-action { padding: 5px 12px; font-size: 0.8rem; border-radius: 3px; }

/* ============ MISC ============ */
.placeholder-img { background: #2a2a2a; display: flex; align-items: center; justify-content: center; color: #555; }
.divider { height: 1px; background: var(--aj-border); margin: 24px 0; }
.load-more-btn { display: block; text-align: center; padding: 12px; border: 1px solid var(--aj-border); color: var(--aj-gray); font-weight: 600; font-size: 0.88rem; margin-top: 16px; transition: all 0.2s; }
.load-more-btn:hover { background: var(--aj-red); color: #fff; border-color: var(--aj-red); }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .hero-main-card img { height: 320px; }
    .hero-title { font-size: 1.4rem; }
    .article-detail-title { font-size: 1.8rem; }
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .admin-main { margin-left: 0; }
}
@media (max-width: 767px) {
    .logo-text { font-size: 1.7rem; }
    .hero-main-card img { height: 240px; }
    .hero-main-overlay { padding: 20px 14px 14px; }
    .hero-title { font-size: 1.2rem; }
    .article-detail-title { font-size: 1.5rem; }
    .article-detail-excerpt { font-size: 1.05rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER — Red & Black theme
══════════════════════════════════════════════════════════════════════════ */
#site-footer {
    background: #0a0a0a;
    color: #ccc;
    margin-top: 0;
}

/* Brand bar */
.footer-brand-bar {
    background: linear-gradient(135deg, #0f0f0f 0%, #111 60%, #0f0f0f 100%);
    padding: 22px 0;
    border-bottom: 1px solid #1e1e1e;
    position: relative;
}
.footer-brand-bar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,0,28,0.3), transparent);
}

/* Social buttons in footer brand bar */
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1a1a1a;
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s;
    border: 1px solid #2a2a2a;
    position: relative;
    overflow: hidden;
}
.footer-social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--aj-red);
    opacity: 0;
    transition: opacity 0.25s;
    border-radius: inherit;
}
.footer-social-btn:hover::before { opacity: 1; }
.footer-social-btn:hover { color: #fff; border-color: var(--aj-red); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(232,0,28,0.35); }
.footer-social-btn i { position: relative; z-index: 1; }

/* Main grid */
.footer-main {
    padding: 44px 0 36px;
    background: #0a0a0a;
}

/* Headings */
.footer-heading {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding-bottom: 10px;
    position: relative;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: var(--aj-red);
    border-radius: 1px;
}

/* Description */
.footer-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.75;
    margin-bottom: 0;
}

/* Pill links */
.footer-pill {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    font-size: 0.76rem;
    color: #888;
    text-decoration: none;
    transition: all 0.2s;
    background: #111;
}
.footer-pill:hover {
    background: var(--aj-red);
    border-color: var(--aj-red);
    color: #fff;
}

/* Links list */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.84rem;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #111;
    transition: all 0.18s;
}
.footer-links li a:hover {
    color: var(--aj-red);
    padding-left: 6px;
}
.footer-links li a i {
    font-size: 0.6rem;
    color: #e8001c;
    width: 12px;
    flex-shrink: 0;
}

/* Newsletter form */
.footer-newsletter { margin-top: 4px; }
.footer-newsletter-input {
    display: flex;
    gap: 0;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    background: #111;
    transition: border-color 0.2s;
}
.footer-newsletter-input:focus-within { border-color: var(--aj-red); }
.footer-newsletter-input input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: #eee;
    font-size: 0.84rem;
    outline: none;
    min-width: 0;
}
.footer-newsletter-input input::placeholder { color: #444; }
.footer-newsletter-input button {
    background: var(--aj-red);
    border: none;
    color: #fff;
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}
.footer-newsletter-input button:hover { background: #c0001a; }

/* Bottom bar */
.footer-bottom {
    background: #050505;
    padding: 14px 0;
    border-top: 1px solid #111;
}

/* ── Topbar social icons (desktop top bar) ── */
.topbar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1e1e1e;
    color: #777;
    font-size: 0.72rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #2a2a2a;
    flex-shrink: 0;
}
.topbar-social:hover {
    background: var(--aj-red);
    color: #fff !important;
    border-color: var(--aj-red);
    transform: translateY(-1px);
}

/* Dark mode footer overrides */
body.dark-mode #site-footer { background: #080808; }
body.dark-mode .footer-brand-bar { background: #0c0c0c; }
body.dark-mode .footer-main { background: #080808; }
body.dark-mode .footer-bottom { background: #040404; }


/* ══ HOMEPAGE PROFESSIONAL LAYOUT ═══════════════════════════════════════ */

/* Article cards — uniform height, clean look */
.article-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
body.dark-mode .article-card {
    background: #1a1a1a;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
body.dark-mode .article-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
body.dark-mode .article-card-title { color: #eee !important; }
body.dark-mode .article-card-excerpt { color: #888 !important; }

/* Section headings */
.section-heading {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--aj-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero slider — professional arrows */
#slider-prev, #slider-next {
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
#slider-prev:focus, #slider-next:focus { outline: none; }

/* Dot indicators smooth */
.slider-dot { outline: none; }
.slider-dot:focus { outline: none; }

/* Hero side cards */
.hero-side-card:hover { text-decoration: none; }
.hero-side-title {
    color: #eee;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-side-cat {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--aj-red);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.hero-side-time {
    font-size: 0.72rem;
    color: #666;
    margin-top: 6px;
    display: block;
}

/* Main content grid spacing */
.main-content { padding: 32px 0; }
.content-wrap { padding-right: 8px; }

/* Sidebar improvements */
.sidebar-widget {
    background: #fff;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
body.dark-mode .sidebar-widget { background: #1a1a1a; }

/* Trending items */
.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--aj-border);
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #eee;
    line-height: 1;
    min-width: 28px;
}
.trending-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--aj-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.trending-title:hover { color: var(--aj-red); }
body.dark-mode .trending-title { color: #ddd; }
.trending-cat {
    display: block;
    font-size: 0.7rem;
    color: var(--aj-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .main-content { padding: 20px 0; }
    .article-card { margin-bottom: 4px; }
    .hero-side-card { display: none; } /* hide side panel on mobile */
    #slider-prev, #slider-next { width: 36px; height: 36px; font-size: 0.85rem; }
}

@media (max-width: 991px) {
    .content-wrap { padding-right: 0; }
}
/* ══ END HOMEPAGE ════════════════════════════════════════════════════════ */

/* ══ FOOTER MOBILE FIXES ════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* Ensure footer is visible and full width */
    #site-footer {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* Brand bar: stack logo and socials vertically */
    .footer-brand-bar .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }
    .footer-brand-bar .d-flex > div:first-child {
        width: 100%;
    }

    /* Social buttons row — wrap nicely */
    .footer-brand-bar .d-flex.align-items-center.gap-2 {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
    }

    /* Footer main grid: single column on mobile */
    .footer-main { padding: 28px 0 20px; }
    .footer-main .row > div { margin-bottom: 24px; }

    /* Sections and More columns: side by side on mobile */
    .footer-main .col-6 { padding-bottom: 0; }

    /* Newsletter form: stack on very small screens */
    .footer-newsletter-input {
        flex-direction: column;
        border-radius: 6px;
    }
    .footer-newsletter-input input {
        border-radius: 6px 6px 0 0;
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    .footer-newsletter-input button {
        border-radius: 0 0 6px 6px;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.88rem;
        width: 100%;
    }

    /* Bottom bar: center everything */
    .footer-bottom .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .footer-bottom .d-flex > div:nth-child(2) {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px !important;
    }

    /* Footer links: smaller text, comfortable tap targets */
    .footer-links li a {
        padding: 8px 0;
        font-size: 0.88rem;
    }

    /* Footer headings */
    .footer-heading {
        font-size: 0.72rem;
        margin-bottom: 12px;
    }

    /* Pill links wrap */
    #site-footer .d-flex.gap-2.flex-wrap { gap: 6px !important; }
    .footer-pill { font-size: 0.74rem; padding: 5px 12px; }

    /* Footer logo */
    #site-footer img[alt] { max-height: 38px !important; }
}

@media (max-width: 480px) {
    .footer-main { padding: 22px 0 16px; }

    /* On very small phones, sections stack fully */
    .footer-main .col-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .footer-bottom .d-flex > div:nth-child(2) a {
        font-size: 0.72rem;
    }
}
/* ══ END FOOTER MOBILE FIXES ═════════════════════════════════════════════ */

