/*
Theme Name: Hany Mag
Description: Premium Arabic News & Tech Magazine Theme - RTL, Modern, Elegant
Author: Hany Farouk
Version: 6.0.0
Text Domain: hany-mag
*/

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --navy:    #0D1B2A;
    --navy2:   #112236;
    --blue:    #1565C0;
    --accent:  #2196F3;
    --red:     #E53935;
    --white:   #FFFFFF;
    --offwhite:#F4F6F9;
    --card:    #FFFFFF;
    --border:  #E0E6EF;
    --muted:   #6B7A90;
    --text:    #1A2332;
    --radius:  10px;
    --shadow:  0 4px 24px rgba(13,27,42,0.09);
    --font:    'Tajawal', sans-serif;
}

/* Force custom logo to stay small inside the navbar */
.site-logo .custom-logo-link img,
.site-logo img,
#masthead img { 
    max-height: 46px !important; 
    width: auto !important; 
    display: block;
    border-radius: 0 !important;
}

/* ---- Single Post 3-Column Layout ---- */
.single-layout {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 28px;
    align-items: start;
    margin-bottom: 60px;
}
@media (max-width: 1100px) {
    .single-layout {
        grid-template-columns: 1fr;
    }
    .single-sidebar { display: none; }
}

/* Sidebar boxes */
.sidebar-box {
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(13,27,42,.06);
}
.sidebar-box h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

/* Sidebar post item */
.sidebar-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-post img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.sidebar-post-info h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
    color: var(--navy);
}
.sidebar-post-info h4 a { color: var(--navy); }
.sidebar-post-info h4 a:hover { color: var(--accent); }
.sidebar-post-info span { font-size: 11px; color: var(--muted); }


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--offwhite);
    color: var(--text);
    direction: rtl;
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5,h6 { font-weight: 800; color: var(--navy); line-height: 1.35; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================
   HEADER
============================== */
#masthead {
    background: var(--navy);
    box-shadow: 0 2px 16px rgba(0,0,0,0.22);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-wrap {
    display: flex;
    align-items: center;
    height: 68px;
    gap: 18px;
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.site-logo img { height: 44px; width: auto; }

/* Nav */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
    flex-grow: 1;
    margin-right: 24px;
}

.nav-links > li > a {
    color: rgba(255,255,255,0.88);
    font-weight: 700;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background .2s, color .2s;
}

.nav-links > li > a:hover,
.nav-links > li.current-menu-item > a {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

/* Dropdown */
.nav-links > li { position: relative; }

.nav-links > li > ul.sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.13);
    min-width: 210px;
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .22s ease;
    z-index: 200;
}

.nav-links > li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .sub-menu li a {
    display: block;
    padding: 9px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: background .15s, padding .15s;
}

.nav-links .sub-menu li a:hover {
    background: var(--offwhite);
    color: var(--accent);
    padding-right: 26px;
}

/* Right section: search + socials */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.nav-socials { display: flex; gap: 8px; }

.nav-socials a {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    transition: all .25s;
}
.nav-socials a:hover { color: #fff; transform: scale(1.18); }
.nav-yt:hover  { background: #E53935; }
.nav-tg:hover  { background: #039BE5; }
.nav-fb:hover  { background: #1877F2; }

.nav-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.18);
    overflow: hidden;
}
.nav-search-form input[type="search"] {
    background: transparent;
    border: none;
    color: #fff;
    padding: 7px 14px;
    font-size: 14px;
    outline: none;
    width: 170px;
    font-family: var(--font);
}
.nav-search-form input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search-form button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.75);
    padding: 7px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: color .2s;
}
.nav-search-form button:hover { color: #fff; }

/* Mobile toggle */
.mobile-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    margin-right: auto;
}

/* ==============================
   TICKER
============================== */
.ticker-bar {
    background: var(--white);
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    height: 46px;
}

.ticker-pill {
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-scroll {
    overflow: hidden;
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
    animation: scroll-x 40s linear infinite;
}

.ticker-track a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.ticker-track a:hover { color: var(--accent); }

.ticker-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.ticker-title {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes scroll-x {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==============================
   LAYOUT
============================== */
.page-wrap {
    padding: 40px 0 60px;
}

/* ==============================
   FEATURED HERO
============================== */
.hero-post {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
    background: var(--navy);
}

.hero-post img.hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    opacity: 0.82;
    border-radius: 0;
    display: block;
}

.hero-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(13,27,42,.92) 0%, transparent 100%);
    padding: 40px 40px 36px;
    color: #fff;
}

.hero-cat {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.25;
}

.hero-title a { color: #fff; }
.hero-title a:hover { color: var(--accent); }

.hero-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    display: flex;
    gap: 18px;
}

/* ==============================
   POSTS GRID (3 columns)
============================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.post-card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(13,27,42,0.07);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(13,27,42,0.13);
}

.card-thumb {
    position: relative;
    height: 220px; /* Increased height */
    overflow: hidden;
    background: #eef1f5; /* Fallback background for nice rendering */
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    transition: transform .4s ease;
    display: block;
}

.post-card:hover .card-thumb img { transform: scale(1.05); }

.card-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .4px;
    z-index: 2;
}

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

.card-title {
    font-size: 17px;
    margin-bottom: 12px;
    line-height: 1.45;
}

.card-title a { color: var(--navy); }
.card-title a:hover { color: var(--accent); }

.card-meta {
    margin-top: auto;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 14px;
}
.card-meta i { margin-left: 4px; }

/* ==============================
   SINGLE POST
============================== */
.single-wrap {
    background: var(--card);
    border-radius: 14px;
    padding: 48px 56px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 860px;
    margin: 0 auto;
}

.single-cat {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.single-title {
    font-size: 38px;
    margin-bottom: 14px;
    line-height: 1.3;
}

.single-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.single-meta i { margin-left: 5px; }

.single-thumb {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 36px;
    max-height: 500px;
    object-fit: cover;
}

.entry-content {
    font-size: 18px;
    color: var(--text);
    line-height: 1.95;
}

.entry-content p { margin-bottom: 24px; }
.entry-content h2 { font-size: 28px; margin: 40px 0 18px; }
.entry-content h3 { font-size: 22px; margin: 32px 0 14px; }
.entry-content blockquote {
    border-right: 4px solid var(--accent);
    padding: 16px 24px;
    background: var(--offwhite);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    margin: 28px 0;
}

/* ==============================
   SOCIAL HUB
============================== */
.social-hub {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.social-hub h3 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 28px;
    color: var(--navy);
}

.hub-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hub-card {
    border-radius: 12px;
    padding: 30px 24px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hub-yt { background: linear-gradient(135deg, #E53935 0%, #B71C1C 100%); }
.hub-tg { background: linear-gradient(135deg, #039BE5 0%, #0277BD 100%); }

.hub-card i { font-size: 46px; }
.hub-card h4 { font-size: 20px; color: #fff; }
.hub-card p { font-size: 14px; opacity: 0.9; }

.hub-btn {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    padding: 11px 28px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 15px;
    transition: background .2s;
    width: 100%;
    text-align: center;
}
.hub-btn:hover { background: rgba(255,255,255,0.35); color: #fff; }

/* ==============================
   AUTHOR BOX
============================== */
.author-box {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--offwhite);
    border-radius: 12px;
    padding: 28px;
    margin-top: 40px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.author-box::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 5px; height: 100%;
    background: linear-gradient(var(--accent), var(--blue));
}

.author-box img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.author-info h4 { font-size: 18px; margin-bottom: 5px; }
.author-info p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }

.author-socials { display: flex; gap: 8px; }
.author-socials a {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--white); color: var(--muted);
    transition: all .22s;
}
.author-socials a:hover { background: var(--accent); color: #fff; }

/* ==============================
   FOOTER
============================== */
#colophon {
    background: var(--navy);
    color: #90A4C0;
    padding: 70px 0 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.6fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.footer-about p { line-height: 1.85; font-size: 14px; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links li a { color: #90A4C0; font-size: 14px; font-weight: 600; transition: all .2s; }
.footer-links li a:hover { color: #fff; padding-right: 6px; }

.footer-cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    padding: 14px 18px;
    color: #fff !important;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 14px;
    transition: opacity .2s;
}
.footer-cta-btn:hover { opacity: .88; }
.f-yt { background: #E53935; }
.f-tg { background: #039BE5; }
.footer-cta-btn i { font-size: 22px; }

.footer-bottom {
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.back-top {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: background .2s;
}
.back-top:hover { background: var(--accent); color: #fff; }

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1024px) {
    .nav-links, .navbar-right { display: none; }
    .mobile-btn { display: block; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .hub-cards { grid-template-columns: 1fr; }
    .hero-post img.hero-img { height: 260px; }
    .hero-title { font-size: 22px; }
    .hero-caption { padding: 20px; }
    .single-wrap { padding: 24px 20px; }
    .single-title { font-size: 26px; }
    .author-box { flex-direction: column; text-align: center; }
    .author-socials { justify-content: center; }
}

/* ==============================
   MOBILE SIDE MENU
============================== */
.side-menu-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}
.side-menu-overlay.open { display: block; }

.side-menu {
    position: fixed; top: 0; right: -310px;
    width: 300px; height: 100%;
    background: var(--navy2);
    z-index: 9999;
    padding: 24px;
    overflow-y: auto;
    transition: right .3s ease;
    color: #fff;
}
.side-menu.open { right: 0; }

.side-menu-close {
    background: transparent; border: none;
    color: #fff; font-size: 24px; cursor: pointer;
    margin-bottom: 28px; display: block;
}

.side-menu ul { list-style: none; }
.side-menu ul li a {
    display: block; color: rgba(255,255,255,.88);
    padding: 13px 0; font-weight: 700; font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.side-menu-search {
    display: flex;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}
.side-menu-search input {
    flex: 1; background: transparent; border: none;
    color: #fff; padding: 10px 14px;
    font-family: var(--font); font-size: 14px; outline: none;
}
.side-menu-search input::placeholder { color: rgba(255,255,255,.5); }
.side-menu-search button {
    background: var(--accent); border: none;
    color: #fff; padding: 10px 14px; cursor: pointer; font-size: 14px;
}

/* ==============================
   PAGINATION
============================== */
.nav-links-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.nav-links-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 8px;
    background: var(--white); color: var(--text); font-weight: 700;
    border: 1px solid var(--border); transition: all .2s;
}
.nav-links-pagination .page-numbers:hover,
.nav-links-pagination .page-numbers.current {
    background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Single Post Inner Pagination */
.post-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.pages-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin-left: 8px;
}
.post-pagination a .page-number,
.post-pagination > .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: var(--offwhite);
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    text-decoration: none;
}
.post-pagination a:hover .page-number {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.post-pagination > .page-number {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Search style for wp */
.search-form { display:flex; gap:8px; }
.search-form input { flex:1; padding:9px 14px; border-radius:8px; border:1px solid var(--border); font-family:var(--font); }
.search-form button { background:var(--accent); color:#fff; border:none; padding:9px 18px; border-radius:8px; cursor:pointer; font-family:var(--font); font-weight:700; }


/* ==================================================
   PROFESSIONAL SINGLE POST STYLES
================================================== */

/* ---- Main Article Wrapper ---- */
.single-article {
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 3px 20px rgba(13,27,42,0.07);
}

/* ---- Article Header ---- */
.article-header {
    padding: 36px 40px 24px;
    border-bottom: 1px solid var(--border);
}

.article-cat {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.article-cat:hover { background: var(--blue); color:#fff; }

.article-title {
    font-size: 34px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--navy);
}

.meta-avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-meta i { color: var(--accent); font-size: 12px; }

/* ---- Hero Image ---- */
.article-hero-img {
    width: 100%;
    max-height: 520px;
    overflow: hidden;
    background: var(--offwhite);
}

.article-hero-img img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

/* ---- Article Body (Content Typography) ---- */
.article-body {
    padding: 36px 40px;
    font-size: 18px;
    color: var(--text);
    line-height: 2;
}

.article-body p { margin-bottom: 26px; }
.article-body p:last-child { margin-bottom: 0; }

.article-body h2 {
    font-size: 26px;
    font-weight: 900;
    color: var(--navy);
    margin: 44px 0 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin: 36px 0 14px;
    position: relative;
    padding-right: 16px;
}
.article-body h3::before {
    content: '';
    position: absolute;
    right: 0; top: 4px;
    width: 4px; height: 80%;
    background: var(--accent);
    border-radius: 2px;
}

.article-body h4 {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin: 28px 0 12px;
}

.article-body ul, .article-body ol {
    padding-right: 24px;
    margin-bottom: 24px;
}
.article-body li { margin-bottom: 10px; }

.article-body blockquote {
    border-right: 4px solid var(--accent);
    background: linear-gradient(135deg, #F0F7FF 0%, #E8F4FD 100%);
    padding: 20px 28px;
    border-radius: 0 10px 10px 0;
    margin: 32px 0;
    font-style: italic;
    font-size: 19px;
    color: var(--navy);
    line-height: 1.8;
}

.article-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 24px auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-body a:not(.btn) {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(33,150,243,0.4);
    text-underline-offset: 3px;
}

.article-body a:hover { text-decoration-color: var(--accent); }

/* ---- Tags ---- */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 40px;
    border-top: 1px solid var(--border);
    background: var(--offwhite);
}

.tags-label { font-weight: 700; color: var(--muted); font-size: 14px; }

.tag-item {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
}
.tag-item:hover { background: var(--accent); color:#fff; border-color: var(--accent); }

/* ---- Share Bar ---- */
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 40px;
    border-top: 1px solid var(--border);
}

.share-label { font-weight: 700; font-size: 14px; color: var(--muted); margin-left: 4px; }

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #fff !important;
    transition: opacity .2s, transform .2s;
}
.share-btn:hover { opacity: .88; transform: translateY(-1px); color:#fff; }

.share-fb { background: #1877F2; }
.share-tw { background: #1DA1F2; }
.share-wa { background: #25D366; }
.share-tg { background: #039BE5; }

/* ---- Author Box ---- */
.article-author-box {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin: 0;
    padding: 30px 40px;
    background: var(--offwhite);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.article-author-box::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 6px; height: 100%;
    background: linear-gradient(var(--accent), var(--blue));
}

.article-author-box img {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.author-info-block .author-role {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .8px;
    display: block;
    margin-bottom: 5px;
}

.author-info-block h4 {
    font-size: 18px;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 8px;
}

.author-info-block p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.author-social-links { display: flex; gap: 8px; }
.author-social-links a {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--white); color: var(--muted);
    font-size: 13px; transition: all .22s;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.author-social-links a:hover { background: var(--accent); color:#fff; transform: scale(1.1); }

/* ---- CTA Social Hub ---- */
.article-cta-hub {
    background: linear-gradient(135deg, #0D1B2A 0%, #1A365D 100%);
    padding: 36px 40px;
    color: #fff;
    border-top: 1px solid var(--border);
}

.cta-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cta-icon { font-size: 40px; }

.cta-header h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 4px;
}

.cta-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.cta-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) { .cta-cards { grid-template-columns: 1fr; } }

.cta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 12px;
    color: #fff !important;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none !important;
}
.cta-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

.cta-yt { background: linear-gradient(135deg, #E53935 0%, #B71C1C 100%); }
.cta-tg { background: linear-gradient(135deg, #039BE5 0%, #0277BD 100%); }

.cta-card > i { font-size: 36px; flex-shrink: 0; }
.cta-card > div { flex: 1; }
.cta-card strong { display: block; font-size: 16px; margin-bottom: 3px; }
.cta-card span { font-size: 12px; opacity: .88; }

.cta-btn {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none !important;
    transition: background .2s;
}
.cta-card:hover .cta-btn { background: rgba(255,255,255,0.35); }

/* ---- Comments Wrapper ---- */
.article-comments {
    padding: 36px 40px;
    border-top: 1px solid var(--border);
}

.article-comments .comment-respond h3,
.article-comments #comments h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.article-comments .comment-list { list-style: none; }
.article-comments .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.article-comments .comment-author img {
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
}

.article-comments input,
.article-comments textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 15px;
    color: var(--text);
    background: var(--offwhite);
    transition: border-color .2s;
    margin-bottom: 12px;
}

.article-comments input:focus,
.article-comments textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.article-comments textarea { height: 120px; resize: vertical; }

.article-comments .submit,
.article-comments input[type="submit"] {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 32px !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    width: auto !important;
    transition: background .2s !important;
}
.article-comments .submit:hover { background: var(--blue) !important; }

/* ---- Sidebar components ---- */
.sidebar-thumb a { display: block; flex-shrink: 0; }
.sidebar-thumb img { width: 68px; height: 68px; border-radius: 8px; object-fit: cover; }

.sidebar-cat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    color: #fff;
    padding: 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    gap: 6px;
}
.sidebar-cat-badge span { font-size: 12px; opacity: .85; font-weight: 500; }
.sidebar-cat-badge:hover { opacity: .9; color:#fff; }

.sidebar-cat-tag {
    display: inline-block;
    background: #E0E6EF;
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 5px;
}

.sidebar-cats-list { list-style: none; }
.sidebar-cats-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}
.sidebar-cats-list li:last-child { border-bottom: none; }
.sidebar-cats-list li a { font-size: 13px; font-weight: 600; color: var(--text); transition: color .2s; }
.sidebar-cats-list li.active a { color: var(--accent); font-weight: 800; }
.sidebar-cats-list li a:hover { color: var(--accent); }
.sidebar-cats-list li span {
    font-size: 11px; background: var(--offwhite);
    color: var(--muted); padding: 2px 8px; border-radius: 10px;
}

.sidebar-empty { font-size: 13px; color: var(--muted); text-align: center; padding: 10px 0; }

/* ---- Responsive single layout ---- */
@media (max-width: 1100px) {
    .single-layout { grid-template-columns: 1fr; }
    .single-sidebar { display: none; }
    .article-header,
    .article-body,
    .article-share,
    .article-tags,
    .article-author-box,
    .article-cta-hub,
    .article-comments { padding-left: 24px; padding-right: 24px; }
    .article-title { font-size: 26px; }
    .article-body { font-size: 17px; }
}


/* ==================================================
   HERO OVERLAY SLIDER (4 columns) & AD BANNER
================================================== */
.news-cards-ticker {
    background: var(--navy);
    border-bottom: 2px solid var(--border);
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.ticker-cards-wrap {
    flex: 1;
    overflow: hidden;
}

.ticker-cards-track {
    display: flex;
    animation: slide-cards 30s linear infinite; /* زيادة السرعة */
    will-change: transform;
}
.ticker-cards-track:hover { animation-play-state: paused; }

@keyframes slide-cards {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-slide-item {
    position: relative;
    width: 25vw; /* 4 items fit exactly on desktop */
    height: 380px;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.1);
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--card);
}

.hero-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.hero-slide-item:hover img {
    transform: scale(1.1);
}

.slide-overlay {
    position: absolute;
    bottom: 0px;
    left: 0; right: 0;
    padding: 60px 24px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none; /* Let hover pass through to the image */
}

.slide-cat {
    align-self: flex-start;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 2;
    pointer-events: auto;
}

.slide-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.45;
    color: #fff;
    margin: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s;
    transform-origin: bottom right;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* يكبر نص العنوان عند وضع الموس عليه */
.hero-slide-item:hover .slide-title {
    transform: scale(1.08); /* Increase text size smoothly */
    color: #fff;
}

/* Header Banner Ad */
.header-ad-wrap {
    background: #f1f3f6;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.header-ad-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e6ea;
    width: 100%;
    max-width: 728px;
    height: 90px;
    color: #888;
    font-size: 22px;
    font-weight: 900;
    border: 2px dashed #cbd0d5;
    margin: 0 auto;
    border-radius: 4px;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .hero-slide-item { width: 33.333vw; height: 320px; }
    .slide-title { font-size: 17px; }
}
@media (max-width: 768px) {
    .hero-slide-item { width: 50vw; height: 280px; }
    .slide-title { font-size: 15px; }
}
@media (max-width: 480px) {
    .hero-slide-item { width: 85vw; height: 250px; }
}

.ticker-card-date i { color: var(--accent); margin-left: 3px; }





/* ==================================================
   ADVERTISEMENT ZONES
================================================== */
.ad-zone {
    background: #F8F9FB;
    border: 2px dashed #CBD5E1;
    border-radius: 10px;
    text-align: center;
    color: #94A3B8;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.ad-zone i { font-size: 28px; color: #CBD5E1; }
.ad-zone span { font-size: 11px; opacity: .75; }

/* Banner ad (full width / 728x90 leaderboard style) */
.ad-banner {
    height: 100px;
    margin: 28px 0;
}

/* Rectangle ad (300x250) */
.ad-rect {
    height: 260px;
    margin-bottom: 24px;
}

/* In-article small (full width) */
.ad-inline {
    height: 90px;
    margin: 32px 0;
}


/* ==================================================
   SOCIAL HUB REDESIGN (replaces the old plain links)
================================================== */

/* Override any inherited link styles */
.article-cta-hub a,
.article-cta-hub a:hover,
.article-cta-hub a:visited {
    text-decoration: none !important;
    color: #fff !important;
}

/* Clean up when CTA hub is in sidebar */
.sidebar-box .cta-card {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Footer social CTA buttons - larger & more prominent */
.footer-cta-btn {
    border-radius: 10px !important;
    font-size: 15px !important;
}

/* Nav social icons - bigger hit area */
.nav-socials a {
    width: 36px;
    height: 36px;
    font-size: 15px;
}

/* Sticky social sidebar (floating) */
.social-float {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 500;
}

.social-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff !important;
    font-size: 17px;
    text-decoration: none !important;
    transition: width .25s ease, padding .25s ease;
    overflow: hidden;
    position: relative;
}

.social-float a span {
    display: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.social-float a:hover {
    width: 130px;
    justify-content: flex-start;
    padding: 0 14px;
    gap: 8px;
}
.social-float a:hover span { display: block; }

.sf-yt  { background: #E53935; border-radius: 0 8px 0 0; }
.sf-tg  { background: #039BE5; }
.sf-fb  { background: #1877F2; }
.sf-tw  { background: #1DA1F2; border-radius: 0 0 8px 0; }

@media (max-width: 768px) { .social-float { display: none; } }


/* ==================================================
   YOUTUBE PLAYER EMBED
================================================== */
.article-hero-video {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
}

.article-hero-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}


/* ==================================================
   CTA ACTION BUTTON
================================================== */
.article-cta-btn-wrap {
    padding: 24px 40px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--offwhite);
}

.article-cta-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 10px;
    color: #fff !important;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    transition: transform .2s, box-shadow .2s;
    letter-spacing: .3px;
}

.article-cta-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    color: #fff !important;
}

.article-cta-action-btn i { font-size: 16px; }


/* ==================================================
   MID / END AD ZONES (inside article)
================================================== */
.mid-content-ad,
.end-post-ad {
    border: none;
    background: transparent;
    text-align: center;
    overflow: hidden;
}


/* ==================================================
   ARTICLE GALLERY SLIDER
================================================== */
.article-gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    border-radius: 0;
}

.gallery-slider-track {
    position: relative;
    width: 100%;
    /* ارتفاع ثابت للحاوية حتى لا ينهار السلايدر */
    height: 420px;
}

@media (max-width: 768px) {
    .gallery-slider-track { height: 240px; }
}

.gallery-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity .55s ease;
    pointer-events: none;
    z-index: 0;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

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

/* أسهم التنقل */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: 2px solid rgba(255,255,255,.25);
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    display: flex; align-items: center; justify-content: center;
    user-select: none;
}
.gallery-nav:hover {
    background: rgba(0,0,0,.85);
    border-color: rgba(255,255,255,.6);
}
.gallery-prev { right: 14px; }
.gallery-next { left: 14px; }

/* نقاط التنقل */
.gallery-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}
.gallery-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: background .25s, transform .25s;
    border: 2px solid rgba(255,255,255,.3);
}
.gallery-dot.active {
    background: #fff;
    transform: scale(1.35);
    border-color: rgba(255,255,255,.8);
}

/* ==================================================
   ===  RESPONSIVE — TABLET & MOBILE (COMPLETE)  ===
================================================== */

/* ---- Tablet: 768px - 1100px ---- */
@media (max-width: 1100px) {
    .single-layout { grid-template-columns: 1fr; gap: 0; }
    .single-sidebar { display: none; }
    .article-header   { padding: 28px 28px 20px; }
    .article-body     { padding: 28px 28px; font-size: 17px; }
    .article-tags     { padding: 18px 28px; }
    .article-share    { padding: 18px 28px; }
    .article-author-box { padding: 24px 28px; }
    .article-cta-hub  { padding: 28px 28px; }
    .article-cta-btn-wrap { padding: 20px 28px; }
    .article-comments { padding: 28px 28px; }
    .article-title { font-size: 26px; }
    .article-body h2 { font-size: 22px; }
    .article-body h3 { font-size: 19px; }
    .article-hero-img, .article-hero-img img { max-height: 380px; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ---- Mobile: up to 768px ---- */
@media (max-width: 768px) {
    /* Header */
    .nav-links, .navbar-right { display: none; }
    .mobile-btn { display: block; }
    .navbar-wrap { height: 60px; }
    .site-logo a { font-size: 20px; }
    .site-logo img { height: 36px; }
    /* Ticker */
    .ticker-label { min-width: 70px; padding: 0 12px; }
    .ticker-label span { font-size: 11px; }
    .ticker-card { width: 150px; }
    .ticker-card-img { height: 88px; }
    .ticker-cards-track { animation-duration: 10s; } /* مضاعفة سرعة السلايدر في الهاتف */
    .hero-slide-item { width: 85vw; }
    /* Home */
    .posts-grid { grid-template-columns: 1fr; gap: 18px; }
    .hero-post img.hero-img { height: 220px; }
    .hero-title { font-size: 20px; }
    .hero-caption { padding: 16px 18px 20px; }
    .page-wrap { padding: 24px 0 40px; }
    /* Single article */
    .article-header    { padding: 20px 16px 16px; }
    .article-body      { padding: 20px 16px; font-size: 16px; line-height: 1.9; }
    .article-tags      { padding: 14px 16px; }
    .article-share     { padding: 14px 16px; gap: 8px; flex-wrap: wrap; }
    .article-author-box { padding: 18px 16px; gap: 16px; flex-direction: column; align-items: flex-start; }
    .article-cta-hub   { padding: 22px 16px; }
    .article-cta-btn-wrap { padding: 16px; }
    .article-comments  { padding: 20px 16px; }
    /* Typography mobile */
    .article-title { font-size: 22px; line-height: 1.3; margin-bottom: 14px; }
    .article-meta  { gap: 10px; font-size: 12px; }
    .article-body h2 { font-size: 19px; margin: 30px 0 14px; }
    .article-body h3 { font-size: 17px; margin: 24px 0 12px; }
    .article-body h4 { font-size: 16px; }
    .article-body p  { margin-bottom: 20px; }
    .article-body blockquote { padding: 14px 16px; font-size: 16px; }
    /* Hero */
    .article-hero-img, .article-hero-img img { max-height: 260px; }
    /* Gallery */
    .gallery-slider-track { height: 220px; }
    /* YouTube */
    .article-hero-video { padding-top: 60%; }
    /* Share */
    .share-btn { padding: 7px 12px; font-size: 12px; flex: 1; min-width: 120px; justify-content: center; }
    /* Author */
    .article-author-box img { width: 64px; height: 64px; }
    .author-info-block h4   { font-size: 16px; }
    .author-info-block p    { font-size: 13px; }
    /* CTA cards */
    .cta-cards { grid-template-columns: 1fr; gap: 12px; }
    .cta-card  { padding: 14px 16px; gap: 12px; }
    .cta-card > i { font-size: 28px; }
    .cta-card strong { font-size: 14px; }
    .cta-btn  { padding: 6px 12px; font-size: 12px; }
    .cta-header h3 { font-size: 18px; }
    .article-cta-action-btn { padding: 14px 24px; font-size: 15px; width: 100%; justify-content: center; }
    /* Hub + footer */
    .hub-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    #colophon { padding: 40px 0 0; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    /* Other */
    .social-float { display: none; }
    .tag-item { font-size: 12px; padding: 4px 10px; }
}

/* ---- Small Mobile: up to 480px ---- */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .navbar-wrap { height: 56px; }
    .site-logo a { font-size: 18px; }
    .hero-post img.hero-img { height: 180px; }
    .hero-title { font-size: 18px; }
    .article-title { font-size: 19px; }
    .article-body  { font-size: 15px; }
    .article-header, .article-body, .article-tags,
    .article-share, .article-author-box, .article-cta-hub,
    .article-cta-btn-wrap, .article-comments {
        padding-left: 12px; padding-right: 12px;
    }
    .gallery-slider-track { height: 190px; }
    .gallery-nav { width: 36px; height: 36px; font-size: 18px; }
    .share-btn { flex: 1 1 45%; }
    .card-title { font-size: 15px; }
    .card-meta  { gap: 8px; font-size: 11px; }
}

/* ==================================================
   INFOGRAPHIC BLOCK
================================================== */
.article-infographic {
    margin: 30px 0;
    text-align: center;
    background: #F8F9FB;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.article-infographic img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: block;
    margin: 0 auto;
}

/* ==================================================
   AUDIENCE SCORE / VOTING BLOCK
================================================== */
.article-voting-box {
    background: #fff;
    border: 2px solid #F5B041;
    border-radius: 12px;
    padding: 24px 30px;
    margin: 40px 0;
    box-shadow: 0 8px 24px rgba(245, 176, 65, 0.15);
}
.voting-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}
.voting-header h4 {
    font-size: 20px;
    font-weight: 900;
    color: var(--navy);
    margin: 0;
}
.voting-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}
.voting-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.voting-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    background: #fafafa;
    transition: background .2s, border-color .2s;
    overflow: hidden;
}
.voting-option:hover {
    background: #f0f7ff;
    border-color: var(--accent);
}
.voting-option input[type="radio"] {
    margin-left: 12px;
    accent-color: var(--accent);
}
.v-opt-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    z-index: 2;
}
.v-opt-bar {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 0%;
    background: rgba(33, 150, 243, 0.1);
    z-index: 1;
    transition: width 0.4s ease;
}
.voting-submit-btn {
    margin-top: 20px;
    width: 100%;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.voting-submit-btn:hover {
    background: var(--blue);
    transform: translateY(-2px);
}


/* ============================================================
   PAGE TRANSITIONS
   (Hany Mag — Added for smooth indexing-friendly navigation)
============================================================ */
html.page-loading body { opacity: 0; }
html.page-loaded  body { opacity: 1; transition: opacity .25s ease; }
html.page-leaving body { opacity: 0; transition: opacity .2s ease; }
body { opacity: 1; transition: opacity .25s ease; }


/* ============================================================
   BREADCRUMBS
============================================================ */
.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
    padding: 10px 0 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.breadcrumbs a {
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    transition: color .15s;
}
.breadcrumbs a:hover { color: var(--accent, #E53935); }
.breadcrumbs .bc-sep { color: var(--border, #475569); font-size: 12px; }
.breadcrumbs span:last-child {
    color: var(--text, #f1f5f9);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}


/* ============================================================
   PAGE CONTENT AREA (for custom page templates)
============================================================ */
.page-content-area { padding: 20px 0 60px; }


/* ============================================================
   UTILITY — visually hidden (for SEO-friendly hidden content)
============================================================ */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
}


/* ============================================================
   SKIP TO CONTENT LINK (Accessibility + SEO)
============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    right: 16px;
    background: var(--accent, #E53935);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 700;
    z-index: 99999;
    transition: top .2s;
}
.skip-link:focus { top: 0; }
