/* =============================================================================
   site.min.css — Frontend Styles
   Arabic RSS News Aggregator
   Version: 1.0 | March 2026
   Direction: RTL | Font: Tajawal
   ============================================================================= */

/* --- Tajawal Font (Arabic + Latin subsets) --------------------------------- */
/* Arabic */
@font-face {
    font-family: 'Tajawal';
    src: url('/assets/fonts/tajawal-regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: 'Tajawal';
    src: url('/assets/fonts/tajawal-medium.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: 'Tajawal';
    src: url('/assets/fonts/tajawal-bold.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
/* Latin */
@font-face {
    font-family: 'Tajawal';
    src: url('/assets/fonts/tajawal-regular-latin.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Tajawal';
    src: url('/assets/fonts/tajawal-medium-latin.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Tajawal';
    src: url('/assets/fonts/tajawal-bold-latin.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS Variables --------------------------------------------------------- */
:root {
    --primary:     #0ea5e9;
    --primary-dark:#0284c7;
    --dark:        #0f172a;
    --text:        #1e293b;
    --muted:       #64748b;
    --border:      #e2e8f0;
    --bg:          #f1f5f9;
    --white:       #ffffff;
    --breaking:    #dc2626;
    --radius:      8px;
    --shadow:      0 1px 6px rgba(0,0,0,.08);
    --shadow-md:   0 4px 16px rgba(0,0,0,.1);
}

/* --- Reset & Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* --- Container ------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Layout ---------------------------------------------------------------- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    padding: 1.5rem 0;
}
.main-content { min-width: 0; }

/* --- Header ---------------------------------------------------------------- */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Top bar */
.header-top {
    border-bottom: 1px solid var(--border);
    padding: .6rem 0;
}
.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo img { height: 48px; width: auto; }

.header-social { display: flex; gap: .5rem; align-items: center; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--muted);
    font-size: .9rem;
    transition: background .15s, color .15s;
    text-decoration: none;
}
.social-icon:hover { background: var(--primary); color: var(--white); }

/* Breaking news ticker */
.breaking-bar {
    background: var(--dark);
    padding: .4rem 0;
    overflow: hidden;
}
.breaking-bar .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}
.breaking-label {
    background: var(--breaking);
    color: var(--white);
    font-size: .8rem;
    font-weight: 700;
    padding: .2rem .7rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-wrap {
    overflow: hidden;
    flex: 1;
}
.ticker {
    display: flex;
    gap: 3rem;
    animation: tickerScroll 40s linear infinite;
    white-space: nowrap;
}
.ticker:hover { animation-play-state: paused; }
.ticker-item {
    color: #e2e8f0;
    font-size: .875rem;
    flex-shrink: 0;
    text-decoration: none;
    transition: color .15s;
}
.ticker-item:hover { color: var(--primary); }
.ticker-item::before { content: '●'; margin-left: 1rem; color: var(--primary); font-size: .5rem; vertical-align: middle; }
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Main nav */
.main-nav { border-top: 1px solid var(--border); }
.nav-container {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
}
.nav-list {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
}
.nav-link {
    display: block;
    padding: .75rem 1rem;
    color: var(--text);
    font-weight: 500;
    font-size: .9rem;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Header search */
.header-search {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-right: auto;
    padding: .4rem 0;
}
.search-input {
    padding: .4rem .8rem;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: .875rem;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
    width: 200px;
    direction: rtl;
    background: var(--bg);
}
.search-input:focus { border-color: var(--primary); background: var(--white); }
.search-btn {
    background: var(--primary);
    border: none;
    color: var(--white);
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: .875rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.search-btn:hover { background: var(--primary-dark); }

/* CSS-only mobile menu */
.nav-toggle-input { display: none; }
.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: .5rem;
    margin-left: auto;
}
.burger-btn span {
    display: block;
    width: 22px; height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform .2s;
}
.mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 1rem;
}
.mobile-nav-list { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav-list a {
    display: block;
    padding: .6rem .75rem;
    color: var(--text);
    border-radius: 6px;
    font-weight: 500;
    transition: background .15s;
}
.mobile-nav-list a:hover { background: var(--bg); color: var(--primary); }
.mobile-social { display: flex; gap: .5rem; padding: .75rem 0; }
.mobile-search { display: flex; gap: .5rem; padding-top: .5rem; }
.mobile-search .search-input { flex: 1; }

/* --- Breadcrumb ------------------------------------------------------------ */
.breadcrumb {
    display: flex;
    gap: .4rem;
    align-items: center;
    font-size: .8rem;
    color: var(--muted);
    padding: .75rem 0 0;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* --- Hero Card (Xبرز خبر الرئيسية) -------------------------------------- */
.hero-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}
.hero-link { display: block; color: inherit; text-decoration: none; }
.hero-img-wrap { position: relative; overflow: hidden; }
.hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform .3s;
}
.hero-card:hover .hero-img { transform: scale(1.02); }
.hero-category {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 4px;
}
.hero-body { padding: 1.25rem; }
.hero-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: .75rem;
}
.hero-summary {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* --- Trending Grid (3 بطاقات) ------------------------------------------- */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.trending-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .2s;
}
.trending-card:hover { box-shadow: var(--shadow-md); }
.trending-card a { display: block; color: inherit; text-decoration: none; }
.trending-img-wrap { overflow: hidden; }
.trending-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform .3s;
}
.trending-card:hover .trending-img { transform: scale(1.04); }
.trending-body { padding: .85rem; }
.trending-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.5;
    margin: .3rem 0 .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Section Title --------------------------------------------------------- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--primary);
}
.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
}
.section-link { font-size: .85rem; color: var(--primary); }
.section-link:hover { text-decoration: underline; }

/* --- News Card (تسلسل الأخبار) ------------------------------------------ */
.news-list { display: flex; flex-direction: column; gap: .85rem; }

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .2s;
}
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card-link {
    display: flex;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
    padding: .85rem;
    align-items: flex-start;
}
.news-card-img-wrap { flex-shrink: 0; }
.news-card-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}
.news-card-body { flex: 1; min-width: 0; }
.news-card-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.5;
    margin: .25rem 0 .4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-summary {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- News Meta (مشترك) ---------------------------------------------------- */
.news-meta {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--muted);
}
.news-category {
    background: #e0f2fe;
    color: var(--primary-dark);
    font-size: .72rem;
    font-weight: 700;
    padding: .15rem .55rem;
    border-radius: 4px;
    text-decoration: none;
}
.news-category:hover { background: var(--primary); color: var(--white); }
.news-source { font-weight: 600; color: var(--text); }
.news-source-logo {
    width: 16px; height: 16px;
    object-fit: contain;
    border-radius: 2px;
    vertical-align: middle;
    margin-left: .3rem;
}
.news-time { color: var(--muted); }
.news-views { color: var(--muted); }

/* --- News Detail Page (news.php) ------------------------------------------ */
.article-header { margin-bottom: 1.25rem; }
.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: .85rem;
}
.article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding: .75rem;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.article-source {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: var(--dark);
    font-size: .875rem;
}
.article-source-logo {
    width: 24px; height: 24px;
    object-fit: contain;
    border-radius: 3px;
}
.article-image-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}
.article-summary {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--white);
    border-right: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-source-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--primary);
    color: var(--white);
    padding: .7rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 1.25rem;
    transition: background .15s;
}
.article-source-link:hover { background: var(--primary-dark); color: var(--white); }

/* Share bar */
.share-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}
.share-label { font-weight: 700; font-size: .875rem; color: var(--muted); }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .9rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    border: none;
    transition: opacity .15s;
    text-decoration: none;
    color: var(--white);
}
.share-btn:hover { opacity: .85; color: var(--white); }
.share-twitter  { background: #1da1f2; }
.share-facebook { background: #1877f2; }
.share-whatsapp { background: #25d366; }
.share-copy     { background: var(--muted); }

/* Related news */
.related-section { margin-top: 1.5rem; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: .75rem;
}
.related-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.related-card a { color: inherit; text-decoration: none; }
.related-img {
    width: 100%; height: 120px;
    object-fit: cover;
}
.related-body { padding: .75rem; }
.related-title {
    font-size: .875rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* In-article Ad */
.ad-in-article { margin: 1.5rem 0; text-align: center; }

/* --- Category / Source Page ----------------------------------------------- */
.archive-header {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.archive-logo {
    width: 60px; height: 60px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 4px;
    background: var(--bg);
}
.archive-title-wrap { flex: 1; }
.archive-title { font-size: 1.2rem; font-weight: 700; color: var(--dark); }
.archive-desc  { font-size: .875rem; color: var(--muted); margin-top: .3rem; }
.archive-link  {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .85rem; color: var(--primary);
    border: 1px solid var(--border);
    padding: .3rem .75rem; border-radius: 20px;
    margin-top: .5rem; transition: background .15s;
}
.archive-link:hover { background: var(--bg); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.grid-news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .2s;
}
.grid-news-card:hover { box-shadow: var(--shadow-md); }
.grid-news-card a { display: block; color: inherit; text-decoration: none; }
.grid-img {
    width: 100%; height: 150px;
    object-fit: cover;
    transition: transform .3s;
}
.grid-news-card:hover .grid-img { transform: scale(1.03); }
.grid-body { padding: .85rem; }
.grid-title {
    font-size: .9rem; font-weight: 700; color: var(--dark);
    line-height: 1.5; margin-bottom: .5rem;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* --- Search Page ----------------------------------------------------------- */
.search-hero {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}
.search-hero-form { display: flex; gap: .75rem; }
.search-hero-input {
    flex: 1;
    padding: .75rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    direction: rtl;
    outline: none;
    transition: border-color .15s;
}
.search-hero-input:focus { border-color: var(--primary); }
.search-hero-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: .75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    transition: background .15s;
}
.search-hero-btn:hover { background: var(--primary-dark); }
.search-results-info {
    font-size: .9rem; color: var(--muted);
    margin-bottom: 1rem;
}
.search-highlight { background: #fef08a; padding: 0 2px; border-radius: 2px; }

/* --- Contact Form ---------------------------------------------------------- */
.contact-wrap {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    max-width: 680px;
}
.contact-title { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.1rem; }
.form-label {
    display: block; font-weight: 600; font-size: .875rem;
    color: var(--text); margin-bottom: .4rem;
}
.required { color: #dc2626; margin-right: .2rem; }
.form-control {
    width: 100%; padding: .65rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: .95rem; font-family: inherit;
    color: var(--text); background: var(--white);
    direction: rtl; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #e0f2fe; }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-error { font-size: .8rem; color: #dc2626; margin-top: .3rem; }
.btn-submit {
    background: var(--primary); color: var(--white);
    border: none; padding: .75rem 2rem;
    border-radius: var(--radius); font-size: 1rem;
    font-weight: 700; font-family: inherit;
    transition: background .15s;
}
.btn-submit:hover { background: var(--primary-dark); }
.hp-field { display: none; }
.contact-honeypot { display: none; }

/* --- Static Page ----------------------------------------------------------- */
.page-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    line-height: 1.9;
}
.page-content h2 { font-size: 1.2rem; font-weight: 700; margin: 1.25rem 0 .75rem; color: var(--dark); }
.page-content p  { margin-bottom: .85rem; }

/* --- Sidebar --------------------------------------------------------------- */
.sidebar { position: relative; }
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.sidebar-title {
    font-size: .925rem;
    font-weight: 700;
    color: var(--dark);
    padding: .85rem 1rem;
    border-bottom: 2px solid var(--primary);
    background: var(--bg);
}

/* Category list */
.category-list { padding: .5rem 0; }
.category-item { border-bottom: 1px solid var(--border); }
.category-item:last-child { border-bottom: none; }
.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 1rem;
    color: var(--text);
    font-size: .875rem;
    transition: background .15s;
    text-decoration: none;
}
.category-link:hover { background: var(--bg); color: var(--primary); }
.cat-count {
    background: var(--bg);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    padding: .1rem .45rem;
    border-radius: 20px;
    min-width: 26px;
    text-align: center;
}

/* Sidebar news list */
.sidebar-news-list { padding: .5rem 0; }
.sidebar-news-item { border-bottom: 1px solid var(--border); }
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-link {
    display: flex;
    gap: .6rem;
    padding: .65rem 1rem;
    color: inherit;
    text-decoration: none;
    align-items: flex-start;
    transition: background .15s;
}
.sidebar-news-link:hover { background: var(--bg); }
.sidebar-news-img {
    width: 56px; height: 44px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.sidebar-news-title {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-news-time { display: block; font-size: .75rem; color: var(--muted); margin-top: .25rem; }

/* Ad wrappers */
.ad-wrap { text-align: center; overflow: hidden; margin-bottom: 1.25rem; }
.ad-zone-sidebar-top,
.ad-zone-sidebar-mid,
.ad-zone-sidebar-bot { text-align: center; margin-bottom: 1.25rem; }
.ad-zone-header       { text-align: center; margin: .5rem 0; }
.ad-zone-footer       { text-align: center; margin: 1rem 0; }

/* --- Pagination ------------------------------------------------------------ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 .65rem;
    border-radius: 7px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.page-btn:hover   { background: #e0f2fe; color: var(--primary); }
.page-btn.active  { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-btn.disabled{ color: var(--border); pointer-events: none; }
.page-dots        { color: var(--muted); padding: 0 .25rem; }

/* --- Load More ------------------------------------------------------------- */
.load-more-wrap { text-align: center; padding: 1.5rem 0; }
.btn-load-more {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: .7rem 2rem;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 700;
    font-family: inherit;
    transition: background .15s, color .15s;
}
.btn-load-more:hover { background: var(--primary); color: var(--white); }
.btn-load-more:disabled { opacity: .6; cursor: default; }

/* --- Flash Messages -------------------------------------------------------- */
.flash-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.flash-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.flash-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.flash-info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }
.flash-msg {
    padding: .85rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: .75rem;
    font-size: .9rem;
}

/* --- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--dark); color: #94a3b8; margin-top: 2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 0 2rem;
}
.footer-title {
    color: var(--white);
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .85rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #334155;
}
.footer-logo img { height: 40px; width: auto; margin-bottom: .75rem; }
.footer-desc { font-size: .85rem; line-height: 1.7; color: #94a3b8; }
.footer-links ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { color: #94a3b8; font-size: .875rem; transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .4rem .85rem;
    background: #334155; color: #94a3b8;
    border-radius: 20px; font-size: .8rem;
    transition: background .15s, color .15s; text-decoration: none;
}
.social-btn:hover { background: var(--primary); color: var(--white); }
.contact-link { color: #94a3b8; font-size: .875rem; }
.contact-link:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid #334155;
    padding: 1rem 0;
    font-size: .8rem;
    color: #475569;
    text-align: center;
}

/* --- Not Found / Empty ----------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: .75rem; }
.empty-state-text { font-size: 1rem; }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .news-grid    { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .trending-grid{ grid-template-columns: repeat(2, 1fr); }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar      { order: 2; }
    .burger-btn   { display: flex; }
    .nav-list, .header-search { display: none; }
    .nav-toggle-input:checked ~ .mobile-menu { display: block; }
    .hero-img     { height: 220px; }
    .hero-title   { font-size: 1.1rem; }
    .trending-grid{ grid-template-columns: 1fr 1fr; }
    .article-title{ font-size: 1.2rem; }
    .news-grid    { grid-template-columns: 1fr 1fr; }
    .footer-grid  { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
    .trending-grid  { grid-template-columns: 1fr; }
    .news-grid      { grid-template-columns: 1fr; }
    .related-grid   { grid-template-columns: 1fr; }
    .news-card-link { flex-direction: column; }
    .news-card-img  { width: 100%; height: 180px; }
    .share-bar      { gap: .4rem; }
    .share-btn      { padding: .35rem .7rem; }
    .search-hero-form { flex-direction: column; }
}
