/* =================================================
   Flavor News - Navigation CSS (iqraa.news style)
   ================================================= */

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}
html {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    -webkit-text-size-adjust: 100%
}
body {
    margin: 0;
    background: var(--bac-color);
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    overscroll-behavior-x: none;
    font-family: var(--font-type)
}
.main-box {
    overflow-x: hidden;
    width: 100%;
    position: relative
}
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto
}

/* Root Variables */
:root {
    --bg: #fff;
    --text: #111;
    --primary: #f1f1f1;
    --muted: #000;
    --accent: #f5f5f5;
    --link: #0073aa;
    --link-hover: #005177;
    --chip-bg: #f5f5f5;
    --chip-text: #444;
    --divider: rgba(0,0,0,.08)
}

.container, .site-section {
    margin: auto;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box
}
.container {
    padding-left: 15px;
    padding-right: 15px;
}
.site-section {
    padding-left: 0;
    padding-right: 0;
}

/* ======== Header ======== */
header {
    background: #fff;
    border-top: 3px solid var(--main-color);
    border-bottom: 3px solid var(--main-color);
    position: relative;
    z-index: 100;
    width: 100%
}

/* Topbar - Main header row */
.topbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
    position: relative;
    width: 100%;
    box-sizing: border-box
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0
}
.site-logo img {
    height: 45px;
    width: auto;
    max-width: 200px
}
.logo-light {
    font-size: 28px;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.5px
}
body.dark .site-logo .logo-light { display: none }
body.dark .site-logo .logo-dark { display: inline-block }

/* Nav wrapper - holds nav + toggle + search */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end
}

/* Navigation menu */
nav.menu-h-container {
    display: flex;
    align-items: center
}
nav ul, .topbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0
}
nav ul li, .topbar ul li {
    position: relative
}

/* Nav links - dark text on white bg like iqraa.news */
nav a, .topbar ul li a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 15px;
    font-family: var(--font-type);
    white-space: nowrap;
    transition: color .2s, background .2s;
    border-radius: 6px
}
nav a:hover, .topbar ul li a:hover {
    color: var(--main-color);
    background: #f8f9fa
}

/* Dropdown arrow */
.topbar ul li:has(ul) > a::after {
    content: "▼";
    font-size: .6em;
    margin-right: 6px;
    color: #999;
    transition: transform .3s
}
.topbar ul li:hover > a::after {
    transform: rotate(180deg)
}

/* Dropdown menu */
.topbar ul li ul {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    display: none;
    z-index: 1000;
    border-radius: 8px;
    padding: 6px 0
}
.topbar ul li:hover > ul {
    display: block
}
.topbar ul li ul li a {
    padding: 10px 18px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0
}
.topbar ul li ul li a:hover {
    background: #f0f4ff;
    color: var(--main-color)
}

/* Search button */
.search-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: #555;
    font-size: 18px;
    transition: background .2s, color .2s
}
.search-popup-btn:hover {
    background: #f0f0f0;
    color: #111
}
.search-popup-btn svg {
    width: 20px;
    height: 20px
}

/* Dark Mode Toggle - clean slider like iqraa.news */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0
}
.theme-toggle-track {
    width: 48px;
    height: 26px;
    background: #e8e8e8;
    border-radius: 26px;
    position: relative;
    transition: background .3s;
    border: 1px solid #ddd
}
.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s, background .3s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2)
}
.theme-toggle-icon {
    width: 14px;
    height: 14px;
    color: #f59e0b
}
.theme-toggle-icon .icon-sun {
    opacity: 1;
    transition: opacity .3s
}
.theme-toggle-icon .icon-moon {
    opacity: 0;
    transition: opacity .3s
}
body.dark .theme-toggle-track {
    background: #1e293b;
    border-color: #334155
}
body.dark .theme-toggle-thumb {
    transform: translateX(-22px);
    background: #0f172a;
    box-shadow: 0 0 6px rgba(100,160,255,.5)
}
body.dark .theme-toggle-icon {
    color: #93c5fd
}
body.dark .theme-toggle-icon .icon-sun {
    opacity: 0
}
body.dark .theme-toggle-icon .icon-moon {
    opacity: 1
}

/* Menu toggle (mobile only) */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: #333;
    transition: background .2s
}
.menu-toggle:hover {
    background: #f5f5f5
}
.menu-toggle svg {
    width: 24px;
    height: 24px
}

main {
    margin: 18px auto
}

/* Dark mode header */
body.dark header {
    background: #222;
    border-top-color: var(--main-color);
    border-bottom-color: var(--main-color)
}
body.dark .topbar {
    background: transparent
}
body.dark nav a,
body.dark .topbar ul li a {
    color: #e5e7eb
}
body.dark nav a:hover,
body.dark .topbar ul li a:hover {
    color: #93c5fd;
    background: rgba(255,255,255,.05)
}
body.dark .topbar ul li ul {
    background: #1e293b;
    border-color: #334155
}
body.dark .topbar ul li ul li a {
    color: #e5e7eb
}
body.dark .topbar ul li ul li a:hover {
    background: #334155;
    color: #93c5fd
}
body.dark .search-popup-btn {
    color: #e5e7eb
}
body.dark .menu-toggle {
    color: #e5e7eb;
    border-color: #444
}

/* Ad device visibility */
@media (max-width: 768px) {
    .ad-desktop-only { display: none !important; }
}
@media (min-width: 769px) {
    .ad-mobile-only { display: none !important; }
}
/* =================================================
   Flavor News - Base CSS
   ================================================= */

/* Comments */
.comments-inner {
    margin: 30px auto;
    padding: 0 15px
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0
}
.comment-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px
}
.comment-author {
    font-weight: 700;
    color: #333;
    margin-bottom: 5px
}
.comment-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px
}
.comment-text {
    font-size: 14px;
    color: #444;
    line-height: 1.6
}
.comment-form input[type=email],
.comment-form input[type=text],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px
}
.comment-form button {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: none
}

/* Author Box */
.site-section-author {
    background-color: #fdfdfd;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin: 30px auto
}
.site-section-author.author-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: column;
    align-items: center
}
.author-avatar-inner img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #0073aa
}
.author-info {
    flex: 1
}
.author-title h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px
}
.author-title h2 a {
    color: #0073aa;
    transition: color .3s
}
.author-title h2 a:hover {
    color: #005177
}
.author-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5
}

/* FAQ Section */
.faq-section {
    margin-top: 50px;
    max-width: 100%;
}
.faq-title {
    font-size: 26px;
    margin-bottom: 20px;
    border-right: 1px solid #0073aa;
    padding-right: 10px
}
.faq-item {
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden
}
.faq-question {
    width: 100%;
    background: #f7f7f7;
    border: none;
    padding: 12px;
    font-size: 16px;
    text-align: right;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700
}
.faq-icon {
    font-size: 22px;
    transition: transform 0.3s ease
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px
}
.faq-answer p {
    padding: 15px 0;
    margin: 0;
    line-height: 1.8
}
.faq-item.active .faq-answer {
    max-height: 500px
}
.faq-item.active .faq-icon {
    transform: rotate(45deg)
}

/* Main Box */
.main-box {
    margin: 0 auto;
    background: #fff;
}
.main-box.style1 {
    max-width: 100%;
    background: transparent;
    box-shadow: none
}
.main-box.style2 {
    max-width: 1200px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1)
}
.main-box.style3 {
    max-width: 1100px;
    box-shadow: 0 2px 8px rgba(0,0,0,.4)
}
.main-box.style4 {
    max-width: 900px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    border-radius: 12px
}

/* Logo Dark/Light */
.site-logo .logo-dark {
    display: none
}
.site-logo .logo-light {
    display: inline-block
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center
}
.theme-toggle-track {
    width: 52px;
    height: 26px;
    background: #e4e4e4;
    border-radius: 999px;
    padding: 3px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06)
}
.theme-toggle-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,.25);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    transform: translateX(0)
}
.theme-toggle-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color 0.3s ease
}
.theme-toggle-icon .icon-sun,
.theme-toggle-icon .icon-moon {
    transform-origin: center center;
    transition: opacity 0.3s ease, transform 0.3s ease
}
.theme-toggle-icon .icon-sun {
    opacity: 1;
    transform: scale(1);
    color: #ffb300;
    stroke: #ffb300
}
.theme-toggle-icon .icon-moon {
    opacity: 0;
    transform: scale(.5);
    color: #e0ecff;
    stroke: #e0ecff
}
.theme-toggle:hover .theme-toggle-thumb {
    box-shadow: 0 3px 7px rgba(0,0,0,.3)
}

/* Footer Links */
.links-col li a {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.9;
    transition: color 0.25s ease;
}

/* Footer Grid */
.footer-box {
    border-top: 3px solid var(--main-color);
    max-width: 100% !important;
    margin-top: 24px;
    background: #f5f5f5;
    padding: 30px 20px
}
.footer-widget {
    max-width: 1200px !important;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (min-width: 992px) {
    .footer-widget {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 576px) and (max-width: 991px) {
    .footer-widget {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .footer-widget {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Footer Widget Title - hidden in button grid mode */
.footer-widget .widget-title h2,
.footer-widget .widget-title h3 {
    display: none
}
.footer-widget .widget-header {
    display: none
}
.footer-widget .widget-title h2::after,
.footer-widget .widget-title h3::after {
    display: none
}
.footer-widget .widget-content {
    font-size: 14px;
    line-height: 1.7;
}
.footer-widget .widget-inner {
    margin: 0
}
.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: contents
}
.footer-widget ul li {
    margin: 6px
}
.footer-widget ul li a,
.footer-widget .sidebar a {
    display: block;
    background: #e0e0e0;
    color: #333 !important;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s
}
.footer-widget ul li a:hover,
.footer-widget .sidebar a:hover {
    background: #ccc
}
/* Footer widget columns act as grid items */
.footer-widget .sidebar {
    display: contents
}
.footer-widget .sidebar .container {
    display: contents
}
.footer-widget .sidebar .widget-area {
    display: contents
}
.footer-widget .widget {
    display: contents
}
.footer-widget .widget-inner {
    display: contents
}
.footer-widget .widget-content {
    display: contents
}
.footer-widget .archive-inner {
    display: contents
}
.footer-widget .posts-outer {
    display: contents
}

/* Single Post Layout */
.single-layout {
    width: 100%;
}
.single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}
.single-content {
    min-width: 0;
}
.single-content .content {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
}
.single-content .title {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 8px;
}
.post-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 16px;
}
.post-meta {
    margin-bottom: 16px;
    font-size: 0.9rem;
    opacity: 0.8;
}
.post-content {
    line-height: 1.8;
    font-size: 1.05rem;
}
.single-sidebar {
    position: sticky;
    top: 100px;
}
.single-layout.no-sidebar .single-grid {
    grid-template-columns: 1fr;
}
.single-layout.no-sidebar .single-sidebar {
    display: none;
}

/* FAQ (single) */
.faq-section {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 24px;
}
.faq-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 16px;
}
.faq-item {
    border-bottom: 1px solid #eee;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.faq-icon {
    font-size: 1.2rem;
}

/* Social banners (Google News, WhatsApp, Telegram) */
.google-news-banner,
.whatsapp-banner,
.telegram-banner {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    padding: 12px 20px;
    gap: 12px;
    transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    direction: rtl;
    margin-bottom: 15px;
}
.google-news-banner:hover,
.whatsapp-banner:hover,
.telegram-banner:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
    transform: translateY(-2px);
}
.google-news-banner { color: #0b57d0 }
.whatsapp-banner { color: #25D366 }
.telegram-banner { color: #1978b0 }

.google-news-text,
.whatsapp-text,
.telegram-text {
    font-size: 20px;
    font-weight: 700;
    flex: 1 1 auto;
    text-align: right
}
.google-news-icon,
.whatsapp-icon,
.telegram-icon {
    width: 48px;
    height: 48px;
    margin-left: 16px;
    flex-shrink: 0;
    transition: transform .25s ease;
}
.google-news-banner:hover .google-news-icon,
.whatsapp-banner:hover .whatsapp-icon,
.telegram-banner:hover .telegram-icon {
    transform: scale(1.08);
}

/* Footer links grid */
.links-footer ul li a {
    display: block;
    background: #f5f5f5;
    padding: 10px 6px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
}
.links-footer ul li a:hover {
    background: #eaeaea;
}
/* =================================================
   Flavor News - Layout CSS
   ================================================= */

/* Footer */
footer, footer a {
    display: grid;
    place-items: center;
    color: var(--muted)
}
p.related_links a, p.related_links a:hover {
    color: var(--link)
}
footer a:hover, p.related_links a:hover {
    text-decoration: underline
}
.author-inner, .post-gnews, .post-tags, .sw-post-item, .widget-title-About, footer a, footer p {
    text-align: center
}

/* Color helpers */
/* Color helpers - minimal, let navigation.css handle colors */
.dark-color, .dark-color a {
    color: #fff !important;
    background-color: transparent !important
}

footer {
    background: var(--primary);
    padding: 25px 0;
    margin-top: 0
}
footer a {
    text-decoration: none
}
footer p {
    max-width: 900px;
    margin: 10px 4px 0;
    font-size: 14px
}
.footer-links {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none
}
.footer-nav li {
    margin: 5px 0
}
.footer-nav a {
    text-decoration: none;
    color: inherit;
    padding: 5px 10px;
    display: inline-block;
    transition: color 0.3s
}
.footer-nav a:hover {
    color: #007bff
}
footer {
    border-top: 3px solid var(--main-color)
}

/* Widget */
.widget-title h2::before {
    display: none
}
.widget-inner {
    margin: 30px 0
}
.widget-title h2 {
    margin: 0;
    position: relative
}
.widget-title i {
    vertical-align: middle
}
.widget-header {
    margin-bottom: 20px;
    background: #333;
    padding: 12px 20px;
    border-radius: 8px;
    display: block;
    text-align: center;
    border: none
}
.widget-header .widget-title h2 {
    color: #fff;
    font-size: 15px;
    font-weight: 600
}
.archive-inner a, .widget-area a {
    text-decoration: none !important;
    color: var(--link-color)
}

/* Search Popup */
.search-popup-box {
    width: 100% !important;
    max-width: 900px !important;
    position: relative !important;
}
.search-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(220, 220, 220, 0.92);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.search-popup-overlay.active {
    display: flex;
}
.search-submit {
    display: none !important;
}
.search-popup-close {
    display: none !important;
}
.search-popup-form form {
    display: flex;
    align-items: center;
    width: 100%;
    background: #020617;
    border-radius: 14px;
    padding: 4px 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.post a {
    color: #000;
}

/* Single post layout */
.single-grid {
    display: block;
}
@media (min-width: 1024px) {
    .single-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 24px;
        align-items: start;
    }
    .single-content {
        order: 1;
    }
    .single-sidebar {
        order: 2;
        display: block;
        position: sticky;
        top: 30px;
    }
}
@media (max-width: 1023px) {
    .single-grid {
        display: flex;
        flex-direction: column;
    }
    .single-content {
        order: 1;
    }
    .single-sidebar {
        order: 2;
        display: block;
        position: static;
        margin-top: 24px;
    }
}
.single-widget {
    margin-bottom: 20px;
}

/* Sidebar Header */
.sidebar-header {
    background: var(--main-color);
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-header h3 {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    margin: 0;
}
.sidebar-header a {
    color: #ffffff;
    font-size: 12px;
    opacity: 0.9;
}
.sidebar-header a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Sidebar List */
.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sidebar-item {
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    flex: 1;
    display: flex;
}
.sidebar-item:last-child {
    border-bottom: none;
}
.sidebar-item a {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    transition: background 0.2s ease;
    color: inherit;
    width: 100%;
    align-items: center;
}
.sidebar-item:hover a {
    background: #f9fafb;
}
.sidebar-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.sidebar-content {
    flex: 1;
    min-width: 0;
}
.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-time {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

/* Hero Section */
.hero-grid {
    display: grid;
    gap: 20px;
    align-items: stretch;
}
.hero-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: 200px 200px 180px;
    gap: 16px;
    direction: ltr;
}
@media (max-width: 768px) {
    .hero-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .hero-card-main,
    .hero-card-small,
    .hero-card-bottom {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}
.hero-card-main {
    position: relative;
    overflow: hidden;
    background: var(--gray-300);
    grid-column: 2;
    grid-row: 1 / 3;
}
.hero-card-small {
    position: relative;
    overflow: hidden;
    background: var(--gray-300);
    grid-column: 1;
}
.hero-card-bottom {
    position: relative;
    overflow: hidden;
    background: var(--gray-300);
    grid-column: 1 / 3;
    grid-row: 3;
}
.hero-card-main img,
.hero-card-small img,
.hero-card-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    color: var(--white);
    direction: rtl;
    text-align: right;
}
.hero-card-cat {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #910606;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    z-index: 5;
}
.hero-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    direction: rtl;
    text-align: right;
}
.hero-card-main .hero-card-title {
    font-size: 22px;
    -webkit-line-clamp: 3;
}
.hero-card-main .hero-card-overlay {
    padding: 24px;
}

/* Section */
.section {
    padding: 30px 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-title {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before {
    content: '';
    width: 5px;
    height: 28px;
    background: var(--primary);
}
.section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-link:hover {
    text-decoration: underline;
}
.section-colored {
    background: var(--secondary);
    padding: 30px 0;
}
.section-colored .section-title {
    color: var(--white);
}
.section-colored .section-title::before {
    background: var(--primary);
}
.section-colored .section-link {
    color: rgba(255,255,255,0.7);
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.articles-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
    .articles-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .articles-grid-4 {
        grid-template-columns: 1fr;
    }
}
.article-card {
    background: var(--white);
    overflow: hidden;
    transition: all 0.3s;
}
.article-card:hover {
    transform: translateY(-4px);
}
.article-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #000;
}
.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card-body {
    padding: 12px 15px;
}
.article-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #000;
}
.article-card-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
}
.article-card-excerpt {
    font-size: 13px;
    color: #000;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-meta {
    font-size: 11px;
    color: var(--gray-500);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Horizontal Card */
.article-card-h {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.article-card-h-img {
    width: 200px;
    flex-shrink: 0;
    background: var(--gray-200);
}
.article-card-h-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card-h-body {
    padding: 16px;
    flex: 1;
}

/* Breaking News Bar */
.breaking-bar {
    width: 100%;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: 56px;
    background: #fff;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 14px;
    z-index: 99999;
    box-shadow: 0 -6px 25px rgba(0,0,0,0.35);
    direction: rtl;
    animation: slideUpBar 0.5s ease-out;
}
@keyframes slideUpBar {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.breaking-label {
    background: #cc1c08;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.breaking-bar a {
    flex: 1;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}
.breaking-close {
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.85;
    color: #000;
}
.breaking-close:hover {
    opacity: 1;
}
/* =================================================
   Flavor News - Post CSS
   ================================================= */

.posts, .posts .post, .posts .post-link, .sidebar, .sidebar .widget-area, .site-section {
    position: relative
}
.posts + .posts {
    margin-top: 10px
}
.posts .posts-inner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 5px
}
.col-xl-6 .posts .posts-inner, .col-xl-8 .posts .posts-inner {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))
}
.col-xl-3 .posts .posts-inner, .col-xl-4 .posts .posts-inner {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))
}
.posts .post {
    margin: 5px;
    flex-basis: 250px;
    flex-shrink: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    --style1-height: 7.5em;
    background: #fff;
    min-width: 0;
    max-width: 100%
}
.posts .post:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.2)
}
.posts .post-link {
    height: 100%;
    border: 1px solid transparent;
    display: flex
}
.posts .post-link:hover {
    transform: scale(1.02);
    transition: transform .3s ease-in-out
}
.posts .post-thumb {
    overflow: hidden;
    z-index: 10;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.posts .post-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .3s;
}
.posts .post:hover .post-thumb img {
    transform: scale(1.05)
}
.posts .overlay {
    visibility: hidden;
    background: rgba(0,0,0,.2)
}
.posts .post:hover .overlay {
    background: 0 0
}
.posts .title {
    flex-grow: 1;
    margin: 0;
    z-index: 20;
    font-size: 1em;
    line-height: 1.6
}

/* Style 1 - Horizontal */
.posts .post.style1 .post-link {
    flex-direction: row;
    gap: 15px
}
.posts .post.style1 .title {
    margin: 10px;
    height: var(--style1-height);
    overflow: hidden
}
.posts .post.style1 .post-thumb {
    flex-shrink: 0;
    width: 40%;
    order: 1;
    align-self: stretch;
    min-height: 100px;
}

/* Style 2 - Vertical Card */
body:not(.simple-mode) .posts .post.style2 .post-link {
    flex-direction: column
}
.hide-thumb .post.style3 .post-link,
body:not(.simple-mode) .posts .post.style2 .post-thumb {
    width: 100%;
    aspect-ratio: 16/9;
}
body:not(.simple-mode) .posts .post.style2 .post-thumb img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
}
body:not(.simple-mode) .posts .post.style2 .title {
    margin: 10px
}

/* Style 3 - Overlay Card */
body:not(.simple-mode) .posts .post.style3 .post-link {
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
    position: relative
}
body:not(.simple-mode) .posts .post.style3 .post-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
body:not(.simple-mode) .posts .post.style3 .title {
    flex-grow: 0;
    padding: 50px 40px 20px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,.7) 40%, #000);
    color: #fff;
    text-shadow: 0 1px 1px #000
}
body:not(.simple-mode) .posts .post.style3 .overlay {
    visibility: visible;
    transition: .2s
}

/* Post Tags */
.post-tags {
    margin-top: 20px
}
.post-tags-inner {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    justify-content: center;
    padding: 0
}
.tags-label {
    font-weight: 700;
    color: #444;
    font-size: 15px;
    align-self: center;
    margin-right: 10px
}
.gnews-btn, .gnews-site {
    color: #000
}
.post-tags-inner a {
    display: inline-block;
    background: #f9fafb;
    color: #333;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    transition: .3s;
    border: 1px solid #e0e0e0;
    line-height: 1.4
}
.post-tags-inner a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,.12)
}

/* Related Links */
p.related_links {
    background-color: #fafafa;
    border-left: 4px solid var(--main-color);
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.6;
    border-radius: 6px;
    transition: .3s
}
p.related_links a {
    font-weight: 600;
    transition: color .3s, text-decoration .3s;
    text-decoration: none
}
p.related_links::before {
    content: "🔗 "
}

/* Post Content */
.post-content {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    max-width: 100%;
    overflow-x: hidden
}
.post-content {
    overflow: visible !important;
    white-space: normal !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important
}
.post-content a {
    color: #0a63b8;
}
.post-content a:hover {
    color: #003d80;
    text-decoration-color: #003d80;
}
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto
}
.post-content iframe, .post-content video {
    display: block;
    margin: 1em auto;
    max-width: 100%;
    border-radius: 8px;
    border: none
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    overflow-x: auto;
    display: block
}
.post-content table th, .post-content table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: start
}
.post-content ul, .post-content ol, .post-content li {
    margin: 1em 0 1em 1.5em
}
.post-content blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1em;
    margin: 1.5em 0;
    color: #555;
    font-style: italic
}
.post-content, .post-content table {
    direction: rtl;
    unicode-bidi: embed
}
.post-content .table-wrap {
    direction: rtl;
    -webkit-overflow-scrolling: touch
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    table-layout: auto;
    background: transparent;
    color: var(--text-color, #222);
    font-size: .95rem
}
.post-content table th, .post-content table td {
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,.08);
    text-align: right;
    vertical-align: middle;
    word-break: break-word;
    white-space: normal;
    min-width: 60px
}
.post-content table thead th {
    background: linear-gradient(180deg, #f6f7f8, #f0f2f4);
    font-weight: 700;
    color: var(--muted, #333)
}
.post-content table tbody tr:nth-child(odd) {
    background: rgba(0,0,0,.015)
}
.post-content table caption {
    caption-side: top;
    text-align: right;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--muted, #444)
}
.post-content table a {
    color: var(--link, #0073aa);
    text-decoration: underline
}
.post-content table {
    display: table;
    max-width: 100%
}
.post-content .table-wrap {
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
    background: #fff;
    padding: 6px
}

/* Images */
.post-content img, .post-image img, .wp-caption img, .entry-content img, article img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
    box-sizing: border-box
}
.post-image, .post-image-inner, .wp-caption, figure.wp-caption, figure#post-image, figure[aria-describedby], figure[id^="attachment_"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto;
    box-sizing: border-box;
    overflow: visible
}
figure[style*="width: 1200px"], figure[style*="width:1200px"] {
    width: 100% !important;
    max-width: 100% !important
}

/* New Link Style */
.NewLink, .mwLink {
    margin: 12px auto;
    padding: 14px 22px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 1em;
    font-size: 22px;
    line-height: 1.8;
    max-width: 100%;
    border: none;
    transition: all 0.4s ease;
    cursor: pointer;
    background: #f1f1f1;
}
.NewLink:hover, .mwLink:hover {
    transform: translateY(-3px)
}
.NewLink a {
    text-decoration: none;
    font-weight: 600
}

.posts .post-link:hover {
    transform: none !important
}
.post-tags-inner a:hover, .NewLink:hover, .mwLink:hover {
    transform: none !important
}
.post-subtitle, article h1 {
    margin-bottom: 10px;
    text-align: center
}
.content, .sidebar.style1 {
    background-color: #fff
}

/* Post Meta */
.post-meta {
    margin: 15px 0;
    text-align: center;
    font-size: .9rem;
    color: #666;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    direction: rtl;
    display: flex
}
.post-meta-singular {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center
}
.post-meta .post-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #b0bdd0;
    box-shadow: none;
    padding: 4px 10px;
    border-radius: 18px;
    transition: background-color .3s;
    color: #1a2535;
    font-weight: 500
}
.post-meta .post-meta-item-prefix {
    color: #2d4159;
    font-size: .85em
}
.post-meta .post-meta-item-content a {
    color: var(--link-color, #e31205);
    text-decoration: none;
    transition: color .3s
}
.post-meta .post-meta-item-content a:hover {
    text-decoration: underline
}
.d-lg-block, .post-meta-item.post-meta-published .post-date-updated, .post-meta-item.post-meta-updated .post-date-published {
    display: none
}
.d-none, .post-caption {
    display: none !important
}
.d-lg-none {
    display: block !important
}
.font-sm { font-size: .85rem }
.medium-color { color: #444 }
.d-flex { display: flex }
.flex-wrap { flex-wrap: wrap }
.flex-grow-1 { flex-grow: 1 }
.flex-grow { flex-grow: 1 }
.align-items-center { align-items: center }
.justify-content-center { justify-content: center }

/* Grid system */
.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.col { flex: 1; min-width: 0 }
.col-12 { width: 100%; flex: 0 0 100%; max-width: 100% }
.col-6 { width: 50%; flex: 0 0 50%; max-width: 50% }
.col-md-6 { width: 100% }
.col-lg-3 { width: 100% }
@media (min-width: 768px) { .col-md-6 { width: 50%; flex: 0 0 50%; max-width: 50% } }
@media (min-width: 992px) { .col-lg-3 { width: 25%; flex: 0 0 25%; max-width: 25% } }

/* Share Buttons Bottom */
.share-buttons.share-buttons-bottom {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee
}
.share-buttons-inner {
    display: flex;
    justify-content: center;
    align-items: center
}
.share-buttons-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px
}
.share-buttons-default {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center
}
.share-buttons-default a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none !important;
    transition: opacity 0.2s
}
.share-buttons-default a:hover {
    opacity: 0.85
}
.share-buttons-default a.ss-twitter   { background: #000 }
.share-buttons-default a.ss-whatsapp  { background: #25d366 }
.share-buttons-default a.ss-telegram  { background: #229ed9 }
.share-buttons-default a.ss-facebook  { background: #1877f2 }
.share-buttons-default a.ss-messenger { background: #0084ff }

/* Ad Slots */
.ad { margin: 15px 0; min-height: 90px }
.ad[data-adsize="728x90"]  { min-height: 90px }
.ad[data-adsize="320x50"]  { min-height: 50px }
.ad[data-adsize="300x250"] { min-height: 250px }
.ad[data-adsize="336x280"] { min-height: 280px }
.ad[data-adsize="300x600"] { min-height: 600px }
.ad[data-adsize="160x600"] { min-height: 600px }
.ad[data-adsize="970x90"]  { min-height: 90px }
.ad-inner { text-align: center; width: 100%; display: block }
.ad-inner ins.adsbygoogle { display: block !important; width: 100% !important }

/* Ad Placeholder */
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: #f0f4ff;
    border: 2px dashed #c5cde8;
    border-radius: 10px;
    padding: 20px
}
body.dark .ad-placeholder {
    background: #1e2233;
    border-color: #3a4060
}
.ad-placeholder span {
    color: #6b7a9e;
    font-size: 14px;
    font-weight: 600;
    text-align: center
}
body.dark .ad-placeholder span { color: #8899cc }

/* Post Image */
.post-image {
    margin-bottom: 30px;
}
.post-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
}
.post-image-inner {
    margin: 0 auto;
    overflow: hidden;
}

/* Related Posts — Grid Cards */
.related-posts {
    margin-top: 32px;
}
.related-posts-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--main-color);
}
.related-posts-bar {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--main-color);
    border-radius: 4px;
    flex-shrink: 0;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.rp-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef0f4;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
}
.rp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.rp-card-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
}
.rp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.rp-card:hover .rp-card-img img {
    transform: scale(1.06);
}
.rp-card-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--main-color) 0%, #6c7ee1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
}
.rp-card-body {
    padding: 12px;
}
.rp-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rp-card-date {
    font-size: 11px;
    color: #999;
}
@media (max-width: 767px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .rp-card-img {
        height: 90px;
    }
    .rp-card-body {
        padding: 8px;
    }
    .rp-card-title {
        font-size: 12px;
    }
}

.show-desktop, .show-mobile {
    display: none
}

/* =============================================
   Post Content Headings - Beautiful Arabic Style
   ============================================= */
.post-content h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--main-color, #043775);
    margin: 2rem 0 1rem;
    padding: 14px 20px 14px 0;
    border-right: 5px solid var(--main-color, #043775);
    background: linear-gradient(90deg, transparent 0%, rgba(4,55,117,.04) 100%);
    border-radius: 0 10px 10px 0;
    line-height: 1.6;
    position: relative
}
.post-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 1.8rem 0 0.9rem;
    padding: 12px 18px 12px 0;
    border-right: 4px solid var(--link-color, #e31205);
    background: linear-gradient(90deg, transparent 0%, rgba(227,18,5,.03) 100%);
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
    position: relative
}
.post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2a2a2a;
    margin: 1.5rem 0 0.8rem;
    padding: 10px 16px 10px 0;
    border-right: 3px solid #f0ad4e;
    background: linear-gradient(90deg, transparent 0%, rgba(240,173,78,.04) 100%);
    border-radius: 0 6px 6px 0;
    line-height: 1.6
}
.post-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 1.3rem 0 0.7rem;
    padding-right: 14px;
    border-right: 3px solid #5bc0de;
    line-height: 1.6
}

/* Dark mode headings */
body.dark .post-content h1 {
    color: #7db4e8;
    background: linear-gradient(90deg, transparent 0%, rgba(125,180,232,.06) 100%);
    border-right-color: #7db4e8
}
body.dark .post-content h2 {
    color: #e8e8e8;
    background: linear-gradient(90deg, transparent 0%, rgba(227,18,5,.06) 100%);
    border-right-color: #ff6b6b
}
body.dark .post-content h3 {
    color: #ddd;
    background: linear-gradient(90deg, transparent 0%, rgba(240,173,78,.06) 100%);
    border-right-color: #f7c96e
}
body.dark .post-content h4 {
    color: #ccc;
    border-right-color: #6dd5ed
}
/* =================================================
   Flavor News - Responsive CSS
   ================================================= */

@media (max-width: 767px) {
    nav.menu-h-container {
        display: none;
        position: absolute;
        line-height: 1.9;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        background: var(--primary);
        z-index: 9999;
        flex: unset;
        box-shadow: 0 8px 24px rgba(0,0,0,.15);
        border-radius: 0 0 8px 8px
    }
    nav.menu-h-container ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        width: 100%
    }
    nav.menu-h-container ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,.06)
    }
    nav.menu-h-container ul li a {
        padding: 12px 16px;
        display: block;
        color: #333;
        font-size: 15px
    }
    nav.menu-h-container ul li a:hover {
        background: rgba(0,0,0,.04)
    }
    nav.menu-h-container .sub-menu {
        position: static !important;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,.03);
        border-radius: 0
    }
    nav.menu-h-container .sub-menu.active {
        display: block !important
    }
    nav.menu-h-container.open {
        display: block
    }
}
@media (min-width: 768px) {
    .menu-toggle {
        display: none !important
    }
    .nav-wrapper .header-nav {
        display: flex !important;
        gap: 1rem
    }
}
@media (min-width: 767px) {
    .posts.grid6 .posts-inner {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 10px
    }
    .posts.grid6 .post:first-child {
        grid-column: 1;
        grid-row: 1/span 2;
        min-height: 100%;
        position: relative
    }
    .posts.grid6 .post:first-child .post-thumb {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center
    }
}
@media (max-width: 768px) {
    .posts.grid6 .posts-inner {
        display: none !important
    }
}
@media (min-width: 992px) {
    .d-lg-block {
        display: block !important
    }
    .d-lg-none {
        display: none !important
    }
}
@media (max-width: 768px) {
    .site-logo img {
        width: 130px
    }
}
@media (max-width: 575px) {
    body.simple-mode .posts .post.style2 .post-link,
    body.simple-mode .posts .post.style3 .post-link {
        flex-direction: row;
        gap: 15px
    }
    body.simple-mode .posts .post.style2 .title,
    body.simple-mode .posts .post.style3 .title {
        margin: 10px;
        height: var(--style1-height);
        overflow: hidden
    }
    body.simple-mode .posts .post.style2 .post-thumb,
    body.simple-mode .posts .post.style3 .post-thumb {
        flex-shrink: 0;
        width: 40%;
        order: 1
    }
    .scroll-posts .widget-content {
        display: flex !important;
        margin: -5px;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden
    }
    .scroll-posts .widget-content .post {
        white-space: initial
    }
    .scroll-posts .widget-content .posts-inner {
        display: flex !important;
        padding: 5px
    }
}
@media (min-width: 769px) {
    .show-desktop {
        display: block !important
    }
    .hide-desktop {
        display: none !important
    }
}
@media (max-width: 768px) {
    .show-mobile {
        display: block !important
    }
    .hide-mobile {
        display: none !important
    }
    p.related_links {
        font-size: 15px;
        padding: 8px 12px
    }
}
@media (min-width: 1200px) {
    .sw-posts-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}
@media (max-width: 991px) {
    .sw-posts-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}
@media (max-width: 600px) {
    .tags-label {
        font-size: 13px
    }
    .post-tags-inner a {
        font-size: 12px;
        padding: 5px 10px
    }
    .author-inner {
        flex-direction: column;
        align-items: center;
        text-align: center
    }
    .author-avatar-inner img {
        margin-bottom: 10px
    }
    .sw-posts-grid {
        grid-template-columns: 1fr
    }
}
@media (max-width: 600px) {
    .footer-nav {
        flex-direction: column;
        align-items: center
    }
}
@media (max-width: 767px) {
    .theme-toggle {
        display: inline-flex !important;
    }
    .search-popup-btn {
        display: flex !important;
    }
    .nav-wrapper {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }
    .menu-toggle {
        display: flex !important;
    }
}
@media (min-width: 900px) {
    .post-content .table-wrap {
        overflow-x: auto
    }
    .post-content table thead th {
        position: sticky;
        top: 0;
        z-index: 3
    }
}
@media (max-width: 680px) {
    .post-content table {
        width: 100%;
        border-collapse: collapse;
        display: block;
        overflow-x: auto;
    }
    .post-content thead {
        display: none;
    }
    .post-content tr {
        display: block;
        margin-bottom: 1rem;
        padding: 12px;
        border-radius: 10px;
        background: var(--table-bg, #ffffff);
        box-shadow: 0 6px 18px rgba(0,0,0,.05);
    }
    body.dark .post-content tr {
        background: #0f172a;
    }
    .post-content td {
        display: block;
        padding: 8px 0;
        border: none;
        border-bottom: 1px dashed rgba(0,0,0,.08);
        text-align: right;
        word-break: break-word;
    }
    .post-content td:last-child {
        border-bottom: none;
    }
    .post-content td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        margin-bottom: 6px;
        color: var(--muted, #666);
    }
    body.dark .post-content td::before {
        color: #9ca3af;
    }
    .post-content td iframe,
    .post-content td ins,
    .post-content td .adsbygoogle {
        max-width: 100% !important;
        overflow: hidden !important;
    }
}
@media (max-width: 768px) {
    figure[style], .post-image-inner, .wp-caption {
        width: 100% !important;
        max-width: 100% !important;
        padding-inline: .5rem
    }
}
@media (min-width: 1200px) {
    .single-layout.no-sidebar .single-content {
        max-width: 900px;
        margin-inline: auto;
    }
}
@media (max-width: 768px) {
    .google-news-banner,
    .whatsapp-banner,
    .telegram-banner {
        padding: 12px 14px;
        border-radius: 14px;
        flex-wrap: nowrap;
    }
    .google-news-text,
    .whatsapp-text,
    .telegram-text {
        font-size: 14px;
        line-height: 1.6;
    }
    .google-news-icon,
    .whatsapp-icon,
    .telegram-icon {
        width: 36px;
        height: 36px;
        margin-left: 10px;
    }
}

/* AdSense Responsive */
@media (max-width: 480px) {
    .adsense-unit {
        width: 300px;
        max-width: 100%;
        min-height: 250px;
        height: auto !important;
        overflow: visible !important;
    }
}
@media (min-width: 481px) and (max-width: 768px) {
    .adsense-unit {
        width: 336px;
        max-width: 100%;
        min-height: 280px;
        height: auto !important;
        overflow: visible !important;
    }
}
@media (min-width: 769px) {
    .adsense-unit {
        width: 100%;
        min-height: 280px;
        height: auto !important;
        overflow: visible !important;
    }
}
@media (max-width: 768px) {
    .breaking-bar {
        height: 50px;
        padding: 0 12px;
    }
    .breaking-bar a {
        font-size: 14px;
    }
}
@media (max-width: 991px) {
    .single-grid {
        display: block !important;
        width: 100% !important;
    }
    .single-content {
        width: 100% !important;
        max-width: 100% !important;
    }
}
@media (max-width: 768px) {
    html, .main-box {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    main,
    .single-layout,
    .single-content,
    .content,
    .container,
    .site-section,
    header,
    footer,
    .topbar,
    .footer-box,
    .footer-links,
    .widget-area,
    .archive-inner,
    .posts-outer,
    .posts,
    .posts-inner,
    article {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    main,
    .single-layout,
    .single-content,
    .content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .title,
    .post-content,
    .post-meta {
        padding-left: 16px;
        padding-right: 16px;
    }
    .topbar {
        padding: 8px 12px !important;
    }
    .site-logo img {
        height: 35px;
        width: auto;
        max-width: 130px;
    }
    .nav-wrapper {
        gap: 8px;
    }
    .share-buttons-default a {
        width: 40px;
        height: 40px;
    }
    /* Prevent elements from causing horizontal scroll */
    img, video, iframe, embed, object, table, pre, code {
        max-width: 100% !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    .post-content iframe {
        width: 100% !important;
    }
    /* Fix post cards on mobile */
    .posts .post {
        flex-basis: 100% !important;
        flex-shrink: 1 !important;
        margin: 5px 0 !important;
    }
    .posts .posts-inner {
        grid-template-columns: 1fr !important;
    }
    .widget-area.row {
        margin: 0;
        padding: 0;
    }
    .sidebar {
        padding: 0 !important;
    }
    /* ===== Homepage mobile layout ===== */
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .site-section {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .widget.col, .widget.col-12 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .widget-inner { margin: 8px 0 !important; }
    .widget-content, .archive-inner, .posts-outer {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .posts-inner {
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}
@media (max-width: 768px) {
    .links-footer ul {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
        padding: 0;
        margin: 0;
    }
    .links-footer ul li {
        list-style: none;
        margin: 0;
    }
}

/* ===== Mobile: Post content lists ===== */
@media (max-width: 768px) {
    .post-content,
    .entry-content,
    .content {
        overflow: visible !important;
    }
    .post-content ul,
    .post-content ol,
    .entry-content ul,
    .entry-content ol,
    .content ul,
    .content ol {
        margin: 0.8em 0 !important;
        margin-right: 0 !important;
        padding-right: 1.5em !important;
        padding-left: 0 !important;
        overflow: visible !important;
        list-style-position: outside !important;
    }
    .post-content ul,
    .entry-content ul,
    .content ul {
        list-style-type: disc !important;
    }
    .post-content ol,
    .entry-content ol,
    .content ol {
        list-style-type: decimal !important;
    }
    .post-content li,
    .entry-content li,
    .content li {
        margin-bottom: 8px !important;
        line-height: 1.8 !important;
        padding: 0 !important;
        position: static !important;
    }
    .post-content li::before,
    .entry-content li::before,
    .content li::before {
        display: none !important;
    }
}
/*
Theme Name: Gaza Team
Description: قالب ووردبريس إخباري عربي خفيف وسريع - مستوحى من تصميم المواقع الإخبارية الحديثة
Theme URI: https://flavor-news.com
Author: ابو ايمن الحوت
Author URI: https://flavor-news.com
Version: 1.6.0
Text Domain: flavor-news
Domain Path: /lang
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
Tags: rtl, right-to-left, arabic, news, blog, grid-layout, custom-colors, custom-logo, dark-mode, responsive-layout, translation-ready
*/

/* Share Buttons */
.share-buttons-default {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin:20px 0
}
.share-buttons-inner {
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:15px
}
.share-buttons-default a {
    display:flex;
    align-items:center;
    justify-content:center;
    width:50px;
    height:50px;
    border-radius:50%;
    color:#fff;
    font-weight:700;
    font-size:18px;
    text-decoration:none;
    transition:transform .2s,box-shadow .2s
}
.sb-facebook a,.ss-facebook { background:#3b5998 }
.ss-messenger { background:#0084ff }
.ss-whatsapp { background:#25d366 }
.ss-twitter { background:#000 }

.page-header-inner {
    display:flex;
    justify-content:flex-start;
    gap:15px
}

/* Google News Button */
.gnews-btn,.social-links li a {
    align-items:center;
    transition:background .3s
}
.post-gnews { margin:30px 0 }
.gnews-btn {
    display:inline-flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:6px;
    background:#f6f6f6;
    font-size:18px;
    font-weight:700;
    padding:8px 10px;
    border-radius:8px;
    white-space:normal;
    line-height:1.6
}
.gnews-btn:hover { background:#e4e4e4 }
.gnews-icon {
    width:28px;
    height:28px;
    flex-shrink:0
}

/* Social Links */
.social-links ul {
    list-style:none;
    display:flex;
    gap:10px;
    justify-content:center;
    padding:0;
    margin:0
}
.social-links li a {
    display:flex;
    justify-content:center;
    width:40px;
    height:40px;
    border-radius:50%
}
.sb-twitter a { background:#1da1f2 }
.sb-instagram a { background:#c13584 }
.sb-youtube a { background:red }
.social-links li a:hover { opacity:.8 }

/* Posts Grid */
.sw-posts-grid {
    display:grid;
    gap:15px
}
.sw-post-item {
    background:#fff;
    border:1px solid #eee;
    border-radius:6px;
    overflow:hidden;
    transition:transform .3s,box-shadow .3s;
    padding:5px
}
.sw-post-item:hover {
    transform:translateY(-4px);
    box-shadow:0 3px 8px rgba(0,0,0,.1)
}
.sw-post-item img {
    width:100%;
    height:80px;
    object-fit:cover;
    display:block;
    border-radius:4px
}

/* Telegram Join */
.telegram-join { text-align:center; margin:2em 0 }
.telegram-join a {
    display:inline-flex;
    align-items:center;
    background:#08c;
    color:#fff;
    font-weight:700;
    text-decoration:none;
    padding:12px 20px;
    border-radius:50px;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
    transition:transform 0.3s ease, box-shadow 0.3s ease;
    font-size:16px
}
.telegram-join a:hover {
    background:#00a2e8;
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.3)
}

/* Share Buttons SVG */
.share-buttons-default a svg {
    width:18px;
    height:18px;
    display:block;
    fill:currentColor
}
.sw-post-item:hover {
    transform:none!important;
    box-shadow:none!important
}

/* Search Popup */
.search-popup-btn {
    background:none;
    border:none;
    padding:0;
    margin:0;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center
}
.search-popup-btn .site-icon-search {
    width:24px;
    height:24px;
    display:block;
    color:#000;
    transition:0.2s ease
}
.search-popup-btn:hover .site-icon-search {
    opacity:.75;
    transform:translateY(-1px)
}
.search-popup-overlay {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(4px);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999999
}
.search-popup-form label,.search-popup-form .screen-reader-text {
    display:none!important
}
.search-popup-box {
    background:#fff;
    width:100%;
    max-width:450px;
    padding:35px 25px 25px;
    border-radius:10px;
    position:relative;
    box-shadow:0 0 15px rgba(0,0,0,.3);
    z-index:999999
}
.search-popup-close {
    position:absolute;
    bottom:10px;
    left:50%;
    transform:translateX(-50%);
    border:none;
    background:none;
    font-size:32px;
    font-weight:700;
    cursor:pointer;
    line-height:1;
    z-index:999999
}
.search-popup-form form {
    width:100%;
    margin:0;
    padding:0
}
.search-popup-form input[type="search"],
.search-popup-form input[type="text"] {
    width:100%!important;
    padding:14px;
    font-size:18px;
    border:1px solid #ccc;
    border-radius:6px;
    box-sizing:border-box;
    display:block
}
.search-popup-form input::placeholder {
    color:#777;
    opacity:1
}

/* Site Logo */
.site-logo {
    display:flex;
    align-items:center;
    justify-content:center;
    padding:5px 0
}
.site-logo img {
    width:170px;
    max-width:100%;
    height:auto;
    cursor:pointer;
    display:block
}

/* Sidebar Styles */
.sidebar.style2 {
    background-color:#1a1d21
}
.sidebar.style2 .widget-header {
    border-color:rgba(255,255,255,.05)
}

/* Article Typography */
article {
    font-size:1.1rem;
    line-height:1.9
}
article h1 {
    font-weight:700;
    line-height:1.4;
    font-size:clamp(1.8rem,2.2vw,2.2rem)
}
.post-subtitle { font-size:1.4rem }
article p {
    font-size:1.1rem;
    line-height:1.8;
    margin-bottom:1.4em;
    min-height:2em
}
article img {
    margin:15px 0;
    border-radius:6px
}
article h2 {
    font-size:clamp(1.2rem,2vw,1.6rem)
}

/* AdSense */
.adsense-fixed {
    display:block;
    margin:1rem auto;
    width:auto;
    height:auto;
    max-width:100%;
    overflow:hidden
}
.adsense-size {
    display:flex;
    justify-content:center;
    margin:1rem 0
}
.adsense-unit,
ins.adsbygoogle,
iframe[src*="google"],
iframe[src*="doubleclick"],
iframe[src*="googlesyndication"] {
    display:block;
    margin:1rem auto;
    overflow:hidden
}
