/* ===================================================================
   يوم بيوم - قالب إخباري احترافي
   Main Stylesheet - Professional Responsive RTL
   Version: 1.0.0
   =================================================================== */

/* ===== CSS Variables ===== */
:root {
    --yby-primary: #1a3a5c;
    --yby-accent: #c8102e;
    --yby-secondary: #0d2238;
    --yby-bg: #f4f5f7;
    --yby-text: #2c3e50;
    --yby-text-light: #6b7c8d;
    --yby-border: #e3e6ea;
    --yby-white: #ffffff;
    --yby-dark: #0d2238;
    --yby-gray: #95a5a6;
    --yby-light-gray: #ecf0f1;
    --yby-gold: #d4af37;
    --yby-green: #27ae60;
    --yby-orange: #e67e22;
    --yby-purple: #8e44ad;

    --yby-radius: 6px;
    --yby-radius-lg: 12px;
    --yby-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --yby-shadow-lg: 0 5px 25px rgba(0,0,0,0.12);
    --yby-transition: all 0.3s ease;

    --yby-font: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    --yby-container: 1280px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--yby-font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--yby-text);
    background: var(--yby-bg);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

body.boxed-layout {
    background: #dfe4ea;
}

body.boxed-layout .yby-site {
    max-width: var(--yby-container);
    margin: 0 auto;
    background: var(--yby-bg);
    box-shadow: var(--yby-shadow-lg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--yby-accent);
    text-decoration: none;
    transition: var(--yby-transition);
}

a:hover {
    color: var(--yby-primary);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--yby-font);
    font-weight: 700;
    line-height: 1.3;
    color: var(--yby-primary);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    top: -100px;
    right: 0;
    background: var(--yby-accent);
    color: #fff;
    padding: 10px 20px;
    z-index: 10000;
    border-radius: 0 0 0 var(--yby-radius);
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* ===== Container ===== */
.yby-container {
    max-width: var(--yby-container);
    margin: 0 auto;
    padding: 0 20px;
}

.yby-site {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Top Bar ===== */
.yby-top-bar {
    background: var(--yby-secondary);
    color: #a8b8c8;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.yby-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.yby-top-bar-left,
.yby-top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.yby-top-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e0;
}

.yby-top-date i {
    color: var(--yby-accent);
    font-size: 12px;
}

.yby-top-menu ul {
    display: flex;
    gap: 16px;
}

.yby-top-menu a {
    color: #a8b8c8;
    font-size: 12px;
    transition: var(--yby-transition);
}

.yby-top-menu a:hover {
    color: var(--yby-accent);
}

.yby-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yby-social-icons a {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #a8b8c8;
    border-radius: 50%;
    font-size: 12px;
    transition: var(--yby-transition);
}

.yby-social-icons a:hover {
    background: var(--yby-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== Header ===== */
.yby-header {
    background: var(--yby-primary);
    background: linear-gradient(135deg, var(--yby-primary) 0%, var(--yby-secondary) 100%);
    color: #fff;
    padding: 18px 0;
    position: relative;
    z-index: 100;
}

.yby-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.yby-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.yby-mobile-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 42px;
    height: 42px;
    border-radius: var(--yby-radius);
    cursor: pointer;
    transition: var(--yby-transition);
}

.yby-mobile-toggle:hover {
    background: var(--yby-accent);
}

.yby-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yby-site-logo img {
    max-height: 60px;
    width: auto;
}

.yby-footer-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.yby-text-logo {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: #fff;
}

.site-title a:hover {
    color: var(--yby-gold);
}

.site-description {
    font-size: 12px;
    color: #a8b8c8;
    font-weight: 400;
    margin: 0;
}

.yby-header-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.yby-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e0;
    white-space: nowrap;
}

.yby-header-info i {
    font-size: 16px;
    color: var(--yby-gold);
}

.yby-header-info span {
    font-weight: 600;
    color: #fff;
}

.yby-header-search {
    position: relative;
    min-width: 260px;
}

.yby-header-search input[type="search"] {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-family: var(--yby-font);
    font-size: 13px;
    transition: var(--yby-transition);
}

.yby-header-search input[type="search"]::placeholder {
    color: rgba(255,255,255,0.6);
}

.yby-header-search input[type="search"]:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
}

.yby-header-search button,
.yby-header-search .search-submit {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--yby-accent);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    transition: var(--yby-transition);
}

.yby-header-search button:hover {
    background: var(--yby-secondary);
}

/* ===== Main Navigation ===== */
.yby-main-nav {
    background: var(--yby-secondary);
    border-bottom: 3px solid var(--yby-accent);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.yby-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.yby-home-btn {
    background: var(--yby-accent);
    color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--yby-transition);
}

.yby-home-btn:hover {
    background: #a00d24;
    color: #fff;
}

.yby-primary-menu {
    display: flex;
    align-items: center;
    flex: 1;
}

.yby-primary-menu > li {
    position: relative;
}

.yby-primary-menu > li > a {
    display: flex;
    align-items: center;
    padding: 15px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: var(--yby-transition);
    border-bottom: 3px solid transparent;
}

.yby-primary-menu > li > a:hover,
.yby-primary-menu > li.current-menu-item > a,
.yby-primary-menu > li.current_page_item > a {
    color: var(--yby-gold);
    border-bottom-color: var(--yby-accent);
    background: rgba(255,255,255,0.05);
}

.yby-primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--yby-primary);
    min-width: 220px;
    box-shadow: var(--yby-shadow-lg);
    border-radius: 0 0 var(--yby-radius) var(--yby-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--yby-transition);
    z-index: 1000;
}

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

.yby-primary-menu .sub-menu a {
    display: block;
    padding: 12px 18px;
    color: #cbd5e0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--yby-transition);
}

.yby-primary-menu .sub-menu a:hover {
    background: var(--yby-accent);
    color: #fff;
    padding-right: 24px;
}

.yby-primary-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.yby-primary-menu .sub-menu .sub-menu {
    top: 0;
    right: 100%;
    border-radius: var(--yby-radius) 0 0 var(--yby-radius);
}

/* ===== Breaking News Ticker ===== */
.yby-breaking-bar {
    background: #fff;
    border-bottom: 1px solid var(--yby-border);
    overflow: hidden;
}

.yby-breaking-inner {
    display: flex;
    align-items: center;
    height: 44px;
}

.yby-breaking-label {
    flex: 0 0 auto;
    background: var(--yby-accent);
    color: #fff;
    padding: 0 18px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    margin-left: 0;
}

.yby-breaking-label::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-right: 10px solid var(--yby-accent);
}

.yby-breaking-label i {
    animation: yby-pulse 1.5s infinite;
}

@keyframes yby-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.yby-breaking-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 44px;
}

.yby-ticker-list {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: yby-ticker-scroll 40s linear infinite;
}

.yby-breaking-ticker:hover .yby-ticker-list {
    animation-play-state: paused;
}

@keyframes yby-ticker-scroll {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.yby-ticker-list li {
    padding: 0 20px;
    font-size: 13px;
}

.yby-ticker-list li a {
    color: var(--yby-text);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.yby-ticker-list li a::before {
    content: '●';
    color: var(--yby-accent);
    font-size: 8px;
}

.yby-ticker-list li a:hover {
    color: var(--yby-accent);
}

/* ===== Ad Zones ===== */
.yby-ad-zone {
    margin: 15px auto;
    text-align: center;
    overflow: hidden;
    max-width: 100%;
}

.yby-ad-zone.yby-ad-header,
.yby-ad-zone.yby-ad-footer {
    padding: 12px 0;
    background: #fff;
    border-top: 1px solid var(--yby-border);
    border-bottom: 1px solid var(--yby-border);
}

.yby-ad-label {
    font-size: 10px;
    color: var(--yby-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.yby-ad-zone img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.yby-ad-placeholder {
    background: #f0f2f5;
    border: 2px dashed #cbd5e0;
    color: #95a5a6;
    padding: 20px;
    font-size: 12px;
    border-radius: var(--yby-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    margin: 0 auto;
}

/* ===== Layout Wrapper ===== */
.yby-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 25px 0;
    align-items: flex-start;
}

.yby-main-content {
    flex: 1 1 0;
    min-width: 0;
    order: 2;
}

.yby-primary-content {
    flex: 1 1 0;
    min-width: 0;
}

/* ===== News Slider ===== */
.yby-slider-wrapper,
.yby-slider-section {
    position: relative;
    margin-bottom: 25px;
    border-radius: var(--yby-radius-lg);
    overflow: hidden;
    box-shadow: var(--yby-shadow-lg);
    background: #000;
}

.yby-slider {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.yby-slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.yby-slide.active {
    opacity: 1;
    z-index: 2;
}

.yby-slide-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.yby-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}

.yby-slide.active .yby-slide-img img {
    transform: scale(1.08);
}

.yby-slide-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    z-index: 1;
}

.yby-slide-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.yby-slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 2;
    padding: 60px 30px 25px;
    max-width: 100%;
}

.yby-slide-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.yby-slide-meta .yby-news-tag {
    font-size: 12px;
    padding: 3px 12px;
}

.yby-slide-content h2,
.yby-slide-content .yby-slide-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.yby-slide-content h2 a,
.yby-slide-title a,
.yby-slide-link .yby-slide-title {
    color: #fff;
}

.yby-slide-content h2 a:hover,
.yby-slide-title a:hover {
    color: var(--yby-gold);
}

.yby-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 5;
    pointer-events: none;
}

.yby-slider-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--yby-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.yby-slider-nav button:hover {
    background: var(--yby-accent);
    border-color: var(--yby-accent);
}

.yby-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 30px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.yby-slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: var(--yby-transition);
    padding: 0;
}

.yby-slider-dots button.active {
    background: var(--yby-accent);
    width: 28px;
    border-radius: 5px;
}

/* ===== Latest News Sidebar (left) ===== */
.yby-sidebar-latest {
    flex: 0 0 300px;
    order: 1;
    max-width: 300px;
}

.yby-sidebar-sticky {
    position: sticky;
    top: 70px;
}

.yby-latest-list {
    background: #fff;
    border-radius: var(--yby-radius);
    box-shadow: var(--yby-shadow);
    overflow: hidden;
}

.yby-latest-list .widget-title,
.yby-sidebar .widget-title {
    background: var(--yby-primary);
    color: #fff;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.yby-latest-list .widget-title i {
    color: var(--yby-accent);
}

.yby-latest-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--yby-border);
    transition: var(--yby-transition);
}

.yby-latest-item:last-child {
    border-bottom: none;
}

.yby-latest-item:hover {
    background: var(--yby-light-gray);
}

.yby-latest-thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 55px;
    border-radius: var(--yby-radius);
    overflow: hidden;
    background: var(--yby-light-gray);
    display: block;
}

.yby-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yby-latest-info {
    flex: 1;
    min-width: 0;
    display: block;
}

.yby-latest-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--yby-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.yby-latest-link {
    display: flex;
    gap: 12px;
    width: 100%;
}

.yby-latest-title a {
    color: var(--yby-text);
}

.yby-latest-title a:hover {
    color: var(--yby-accent);
}

.yby-latest-date {
    font-size: 11px;
    color: var(--yby-text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.yby-latest-date i {
    font-size: 10px;
}

/* ===== Section Headers ===== */
.yby-section {
    margin-bottom: 30px;
    background: #fff;
    border-radius: var(--yby-radius);
    box-shadow: var(--yby-shadow);
    overflow: hidden;
}

.yby-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--yby-primary) 0%, var(--yby-secondary) 100%);
    color: #fff;
    padding: 14px 20px;
    border-bottom: 3px solid var(--yby-accent);
}

.yby-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.yby-section-icon {
    width: 32px;
    height: 32px;
    background: var(--yby-accent);
    border-radius: var(--yby-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.yby-section-more {
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
}

.yby-section-more:hover {
    color: var(--yby-gold);
    opacity: 1;
}

/* ===== News Cards ===== */
.yby-card {
    background: #fff;
    border-radius: var(--yby-radius);
    overflow: hidden;
    transition: var(--yby-transition);
    position: relative;
    border: 1px solid var(--yby-border);
}

.yby-card:hover {
    box-shadow: var(--yby-shadow-lg);
    transform: translateY(-3px);
}

.yby-card-img {
    position: relative;
    overflow: hidden;
    background: var(--yby-light-gray);
    aspect-ratio: 16 / 10;
}

.yby-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.yby-card:hover .yby-card-img img {
    transform: scale(1.1);
}

.yby-card-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 15px;
}

.yby-card-overlay .yby-card-title {
    color: #fff;
    font-size: 15px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.yby-card-overlay .yby-card-title a {
    color: #fff;
}

.yby-card-content {
    padding: 14px 15px;
}

.yby-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--yby-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yby-card-title a {
    color: var(--yby-primary);
}

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

.yby-card-excerpt {
    font-size: 13px;
    color: var(--yby-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.yby-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    color: var(--yby-text-light);
}

.yby-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.yby-card-meta i {
    font-size: 11px;
    color: var(--yby-accent);
}

.yby-no-image {
    background: linear-gradient(135deg, var(--yby-primary), var(--yby-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 40px;
}

/* Large Card */
.yby-card-large .yby-card-img {
    aspect-ratio: 16 / 9;
}

.yby-card-large .yby-card-title {
    font-size: 20px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.yby-card-large .yby-card-excerpt {
    font-size: 14px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Small Card */
.yby-card-small .yby-card-img {
    aspect-ratio: 16 / 10;
}

.yby-card-small .yby-card-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.yby-card-small .yby-card-content {
    padding: 10px 12px;
}

.yby-card-small .yby-card-meta {
    font-size: 10px;
}

/* Mini Card (horizontal) */
.yby-card-mini {
    display: flex;
    gap: 12px;
    border: 1px solid var(--yby-border);
}

.yby-card-mini .yby-card-img {
    flex: 0 0 110px;
    width: 110px;
    aspect-ratio: auto;
    height: 80px;
}

.yby-card-mini .yby-card-content {
    padding: 8px 10px;
    flex: 1;
}

.yby-card-mini .yby-card-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 4px;
}

.yby-card-mini .yby-card-meta {
    font-size: 10px;
}

/* ===== Section Grids ===== */
.yby-section-grid {
    display: grid;
    gap: 15px;
    padding: 18px;
}

.yby-grid-1 {
    grid-template-columns: 1fr;
}

.yby-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.yby-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.yby-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* List layout - horizontal cards */
.yby-grid-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

.yby-grid-list .yby-card {
    display: flex;
    gap: 15px;
    border: 1px solid var(--yby-border);
}

.yby-grid-list .yby-card .yby-card-img {
    flex: 0 0 240px;
    width: 240px;
    aspect-ratio: auto;
    height: 150px;
}

.yby-grid-list .yby-card-featured .yby-card-img {
    flex: 0 0 300px;
    width: 300px;
    height: 200px;
}

.yby-grid-list .yby-card .yby-card-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.yby-grid-list .yby-card-title {
    font-size: 16px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.yby-grid-list .yby-card-featured .yby-card-title {
    font-size: 18px;
}

.yby-grid-large-small {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
}

.yby-grid-large-small .yby-card-large {
    grid-row: span 2;
}

.yby-grid-large-small .yby-card-large .yby-card-img {
    aspect-ratio: 16 / 10;
    height: 100%;
}

.yby-grid-large-small .yby-card-small {
    display: flex;
    flex-direction: column;
}

/* Featured card in grid layouts */
.yby-card-featured .yby-card-img {
    aspect-ratio: 16 / 9;
}

.yby-card-featured .yby-card-title {
    font-size: 18px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.yby-card-featured .yby-card-excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Video badge */
.yby-video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(200,16,46,0.9);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    z-index: 3;
    transition: var(--yby-transition);
}

.yby-card:hover .yby-video-badge {
    background: var(--yby-accent);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===== Top News Section ===== */
.yby-top-news-section .yby-section-grid {
    padding: 18px;
}

.yby-top-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    padding: 18px;
}

.yby-top-news-large {
    grid-row: span 2;
}

.yby-top-news-large .yby-card-large .yby-card-img {
    aspect-ratio: 16 / 10;
    height: calc(100% - 90px);
}

.yby-top-news-large .yby-card-large .yby-card-content {
    padding: 15px;
}

.yby-top-news-large .yby-card-large .yby-card-title {
    font-size: 20px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.yby-top-news-list {
    grid-row: span 2;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 15px;
}

.yby-top-news-list .yby-card-small {
    display: flex;
    gap: 10px;
    border: 1px solid var(--yby-border);
}

.yby-top-news-list .yby-card-small .yby-card-img {
    flex: 0 0 100px;
    width: 100px;
    aspect-ratio: auto;
    height: 100%;
    min-height: 80px;
}

.yby-top-news-list .yby-card-small .yby-card-content {
    padding: 8px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.yby-top-news-list .yby-card-small .yby-card-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 4px;
}

.yby-top-news-list .yby-card-small .yby-card-meta {
    font-size: 10px;
}

.yby-top-news-list .yby-card-small .yby-news-tag {
    font-size: 10px;
    padding: 2px 8px;
}

/* ===== Latest Grid ===== */
.yby-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 18px;
}

/* ===== News Tags ===== */
.yby-news-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 3px;
    background: var(--yby-primary);
}

.yby-tag-urgent { background: var(--yby-accent); }
.yby-tag-politics { background: var(--yby-primary); }
.yby-tag-sports { background: var(--yby-green); }
.yby-tag-world { background: var(--yby-orange); }
.yby-tag-video { background: var(--yby-purple); }
.yby-tag-report { background: var(--yby-gold); color: #333; }
.yby-tag-news { background: var(--yby-secondary); }

.yby-card-img .yby-news-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

/* ===== Main Sidebar ===== */
.yby-sidebar-main {
    flex: 0 0 320px;
    order: 3;
    max-width: 320px;
}

.yby-sidebar .widget,
.yby-sidebar .yby-widget {
    background: #fff;
    border-radius: var(--yby-radius);
    box-shadow: var(--yby-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.yby-sidebar .widget:last-child,
.yby-sidebar .yby-widget:last-child {
    margin-bottom: 0;
}

.yby-sidebar .widget-title,
.yby-sidebar .yby-widget .widget-title {
    background: var(--yby-primary);
    color: #fff;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    border-bottom: 3px solid var(--yby-accent);
}

.yby-sidebar .yby-widget .widget-title span {
    flex: 1;
}

/* Popular Posts Widget */
.yby-popular-list,
.yby-popular-widget ol {
    padding: 10px;
    list-style: none;
    margin: 0;
    counter-reset: yby-popular;
}

.yby-popular-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid var(--yby-border);
    transition: var(--yby-transition);
    border-radius: var(--yby-radius);
}

.yby-popular-item:last-child {
    border-bottom: none;
}

.yby-popular-item:hover {
    background: var(--yby-light-gray);
}

.yby-popular-link {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 0;
    color: var(--yby-text);
}

.yby-popular-rank {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    background: var(--yby-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.yby-popular-item:nth-child(1) .yby-popular-rank { background: var(--yby-accent); }
.yby-popular-item:nth-child(2) .yby-popular-rank { background: var(--yby-orange); }
.yby-popular-item:nth-child(3) .yby-popular-rank { background: var(--yby-gold); color: #333; }

.yby-popular-info {
    flex: 1;
    min-width: 0;
}

.yby-popular-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--yby-text);
}

.yby-popular-link:hover .yby-popular-title {
    color: var(--yby-accent);
}

.yby-popular-meta {
    font-size: 11px;
    color: var(--yby-text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.yby-popular-meta i {
    font-size: 10px;
    color: var(--yby-accent);
}

/* Category Widget */
.yby-cat-list {
    padding: 8px 0;
}

.yby-cat-list li {
    border-bottom: 1px solid var(--yby-border);
}

.yby-cat-list li:last-child {
    border-bottom: none;
}

.yby-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    color: var(--yby-text);
    font-size: 13px;
    font-weight: 500;
    transition: var(--yby-transition);
}

.yby-cat-list a:hover {
    background: var(--yby-light-gray);
    padding-right: 24px;
    color: var(--yby-accent);
}

.yby-cat-list a i {
    color: var(--yby-text-light);
    font-size: 12px;
}

.yby-cat-count {
    background: var(--yby-light-gray);
    color: var(--yby-text-light);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Tag Cloud Widget */
.yby-tag-cloud {
    padding: 15px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yby-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--yby-light-gray);
    color: var(--yby-text);
    font-size: 12px !important;
    border-radius: 20px;
    transition: var(--yby-transition);
    margin: 0;
}

.yby-tag:hover {
    background: var(--yby-accent);
    color: #fff;
}

/* Follow Widget */
.yby-social-large {
    padding: 15px 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.yby-social-large a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--yby-radius);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: var(--yby-transition);
}

.yby-social-large a:hover {
    transform: translateY(-2px);
    box-shadow: var(--yby-shadow);
    color: #fff;
}

.yby-social-large a i {
    font-size: 16px;
}

.yby-social-large .facebook { background: #1877f2; }
.yby-social-large .twitter { background: #000; }
.yby-social-large .instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.yby-social-large .youtube { background: #ff0000; }
.yby-social-large .whatsapp { background: #25d366; }
.yby-social-large .telegram { background: #0088cc; }

/* ===== Pagination ===== */
.yby-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 20px;
    flex-wrap: wrap;
}

.yby-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--yby-border);
    border-radius: var(--yby-radius);
    background: #fff;
    color: var(--yby-text);
    font-size: 14px;
    font-weight: 600;
    padding: 0 12px;
    transition: var(--yby-transition);
}

.yby-pagination .page-numbers:hover {
    background: var(--yby-primary);
    color: #fff;
    border-color: var(--yby-primary);
}

.yby-pagination .page-numbers.current {
    background: var(--yby-accent);
    color: #fff;
    border-color: var(--yby-accent);
}

.yby-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

.yby-pagination .nav-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== Single Post ===== */
.yby-single-wrapper {
    padding: 25px 0;
}

.yby-single-main {
    background: #fff;
    border-radius: var(--yby-radius);
    box-shadow: var(--yby-shadow);
    padding: 30px;
    margin-bottom: 20px;
}

.yby-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--yby-text-light);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--yby-border);
}

.yby-breadcrumb a {
    color: var(--yby-primary);
}

.yby-breadcrumb a:hover {
    color: var(--yby-accent);
}

.yby-breadcrumb-sep {
    color: var(--yby-border);
    font-size: 10px;
}

.yby-breadcrumb-current {
    color: var(--yby-text-light);
    font-weight: 600;
}

.yby-single-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--yby-primary);
}

.yby-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--yby-text-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--yby-border);
    margin-bottom: 20px;
}

.yby-meta-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.yby-meta-info i {
    color: var(--yby-accent);
}

.yby-meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yby-meta-author a {
    color: var(--yby-primary);
    font-weight: 600;
}

.yby-single-featured {
    margin-bottom: 25px;
    border-radius: var(--yby-radius-lg);
    overflow: hidden;
}

.yby-single-featured img {
    width: 100%;
}

.yby-featured-caption {
    font-size: 12px;
    color: var(--yby-text-light);
    padding: 8px 0;
    text-align: center;
    font-style: italic;
}

.yby-single-content {
    margin-bottom: 25px;
}

.yby-entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--yby-text);
}

.yby-entry-content p {
    margin-bottom: 20px;
}

.yby-entry-content h2 {
    font-size: 22px;
    margin: 25px 0 15px;
}

.yby-entry-content h3 {
    font-size: 19px;
    margin: 22px 0 12px;
}

.yby-entry-content h4 {
    font-size: 17px;
    margin: 20px 0 10px;
}

.yby-entry-content ul,
.yby-entry-content ol {
    margin: 15px 25px 20px;
    padding-right: 0;
}

.yby-entry-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}

.yby-entry-content ol li {
    list-style: decimal;
    margin-bottom: 8px;
}

.yby-entry-content blockquote {
    border-right: 4px solid var(--yby-accent);
    background: var(--yby-light-gray);
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 15px;
    font-style: italic;
    color: var(--yby-text-light);
    border-radius: 0 var(--yby-radius) var(--yby-radius) 0;
}

.yby-entry-content a {
    color: var(--yby-accent);
    text-decoration: underline;
}

.yby-entry-content img {
    border-radius: var(--yby-radius);
    margin: 15px 0;
}

.yby-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.yby-entry-content th,
.yby-entry-content td {
    border: 1px solid var(--yby-border);
    padding: 10px;
    text-align: right;
}

.yby-entry-content th {
    background: var(--yby-primary);
    color: #fff;
}

/* Page links (pagination in post) */
.yby-page-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.yby-pages-label {
    font-weight: 700;
    color: var(--yby-primary);
}

.yby-page-link {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--yby-border);
    border-radius: var(--yby-radius);
    background: #fff;
    color: var(--yby-text);
    font-weight: 600;
    padding: 0 10px;
}

.yby-page-link:hover,
.post-page-numbers.current {
    background: var(--yby-accent);
    color: #fff;
    border-color: var(--yby-accent);
}

/* Tags */
.yby-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 0;
    border-top: 1px solid var(--yby-border);
    margin-bottom: 20px;
}

.yby-single-tags .yby-tag {
    font-size: 12px;
}

.yby-single-tags strong {
    color: var(--yby-primary);
    margin-left: 5px;
}

/* Share Bar */
.yby-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    border-top: 1px solid var(--yby-border);
    border-bottom: 1px solid var(--yby-border);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.yby-share-bar > span,
.yby-share-bar > strong {
    font-weight: 700;
    color: var(--yby-primary);
    margin-left: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yby-share-bar a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    transition: var(--yby-transition);
}

.yby-share-bar a:hover {
    transform: translateY(-3px);
    color: #fff;
}

.yby-share-fb { background: #1877f2; }
.yby-share-tw { background: #000; }
.yby-share-wa { background: #25d366; }
.yby-share-tg { background: #0088cc; }
.yby-share-li { background: #0a66c2; }

/* Author Box */
.yby-author-box {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: var(--yby-light-gray);
    border-radius: var(--yby-radius);
    margin-bottom: 25px;
}

.yby-author-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: var(--yby-shadow);
}

.yby-author-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.yby-author-info p {
    font-size: 13px;
    color: var(--yby-text-light);
    margin-bottom: 8px;
}

.yby-author-link {
    font-size: 12px;
    color: var(--yby-accent);
    font-weight: 600;
}

/* Related Posts */
.yby-related-posts {
    margin-bottom: 25px;
}

.yby-related-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--yby-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--yby-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.yby-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.yby-card-related .yby-card-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* ===== Comments ===== */
.yby-comments-area {
    background: #fff;
    border-radius: var(--yby-radius);
    box-shadow: var(--yby-shadow);
    padding: 25px;
    margin-bottom: 20px;
}

.yby-comments-area h2,
.yby-comments-area h3 {
    font-size: 18px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--yby-border);
}

.comment-list {
    margin-bottom: 20px;
}

.comment {
    padding: 15px 0;
    border-bottom: 1px solid var(--yby-border);
}

.comment:last-child {
    border-bottom: none;
}

.comment-body {
    display: flex;
    gap: 14px;
}

.comment .avatar {
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 700;
    color: var(--yby-primary);
    font-size: 14px;
    margin-bottom: 3px;
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    font-size: 12px;
    color: var(--yby-text-light);
    margin-bottom: 8px;
}

.comment-metadata a {
    color: var(--yby-text-light);
}

.comment-content p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.reply a {
    font-size: 12px;
    color: var(--yby-accent);
    font-weight: 600;
}

.comment-reply-link:hover {
    color: var(--yby-primary);
}

.children {
    padding-right: 50px;
    margin-top: 15px;
}

.comment-respond {
    margin-top: 20px;
}

.comment-form {
    display: grid;
    gap: 12px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--yby-primary);
    margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--yby-border);
    border-radius: var(--yby-radius);
    font-family: var(--yby-font);
    font-size: 14px;
    transition: var(--yby-transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--yby-accent);
    box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form .comment-form-cookies-consent input {
    width: auto;
}

.comment-form .comment-form-cookies-consent label {
    margin: 0;
    font-weight: 400;
}

.comment-form .submit,
.comment-form input[type="submit"] {
    background: var(--yby-accent);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: var(--yby-radius);
    font-family: var(--yby-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--yby-transition);
    width: auto;
}

.comment-form .submit:hover {
    background: var(--yby-secondary);
}

/* ===== Archive Page ===== */
.yby-archive-header {
    background: linear-gradient(135deg, var(--yby-primary), var(--yby-secondary));
    color: #fff;
    padding: 30px;
    border-radius: var(--yby-radius);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.yby-archive-header > i {
    font-size: 36px;
    color: var(--yby-gold);
}

.yby-archive-title {
    font-size: 24px;
    color: #fff;
    margin: 0 0 5px;
}

.yby-archive-desc {
    font-size: 13px;
    color: #cbd5e0;
}

.yby-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.yby-no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--yby-radius);
    color: var(--yby-text-light);
    font-size: 16px;
}

.yby-no-posts i {
    font-size: 50px;
    color: var(--yby-border);
    margin-bottom: 15px;
    display: block;
}

/* ===== Search Page ===== */
.yby-search-form {
    margin-bottom: 25px;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--yby-border);
    border-radius: var(--yby-radius) 0 0 var(--yby-radius);
    font-family: var(--yby-font);
    font-size: 14px;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--yby-accent);
}

.search-form .search-submit {
    background: var(--yby-accent);
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 0 var(--yby-radius) var(--yby-radius) 0;
    cursor: pointer;
    font-size: 16px;
    transition: var(--yby-transition);
}

.search-form .search-submit:hover {
    background: var(--yby-secondary);
}

/* ===== 404 Page ===== */
.error404 .yby-primary-content {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--yby-radius);
}

.error404 h1 {
    font-size: 120px;
    color: var(--yby-accent);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0 var(--yby-primary);
}

.error404 h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.error404 p {
    font-size: 16px;
    color: var(--yby-text-light);
    margin-bottom: 30px;
}

/* ===== Features Bar ===== */
.yby-features-bar {
    background: var(--yby-primary);
    background: linear-gradient(135deg, var(--yby-secondary), var(--yby-primary));
    padding: 25px 0;
    margin-top: 0;
}

.yby-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.yby-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.yby-feature-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--yby-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--yby-gold);
}

.yby-feature-text h4 {
    color: #fff;
    font-size: 15px;
    margin: 0 0 3px;
}

.yby-feature-text p {
    color: #a8b8c8;
    font-size: 12px;
    margin: 0;
}

/* ===== Footer ===== */
.yby-footer {
    background: var(--yby-secondary);
    color: #a8b8c8;
    margin-top: auto;
}

.yby-footer-widgets {
    padding: 40px 0 25px;
}

.yby-footer-widgets .yby-footer-col {
    flex: 1;
}

.yby-footer-widgets .widget {
    margin-bottom: 20px;
}

.yby-footer-widgets .widget-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--yby-accent);
    display: block;
}

.yby-footer-widgets .yby-footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--yby-accent);
}

.yby-footer-about p {
    font-size: 13px;
    line-height: 1.8;
    color: #a8b8c8;
    margin-bottom: 15px;
}

.yby-footer-links ul li,
.yby-footer-categories .yby-footer-cat-list li {
    margin-bottom: 8px;
}

.yby-footer-links ul a,
.yby-footer-cat-list a {
    color: #a8b8c8;
    font-size: 13px;
    transition: var(--yby-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.yby-footer-links ul a:hover,
.yby-footer-cat-list a:hover {
    color: var(--yby-gold);
    padding-right: 5px;
}

.yby-footer-links ul a::before {
    content: '◄';
    font-size: 8px;
    color: var(--yby-accent);
}

.yby-footer-cat-list a i {
    color: var(--yby-accent);
    font-size: 10px;
}

.yby-footer-cat-list a span {
    color: #6b7c8d;
    font-size: 11px;
}

.yby-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #a8b8c8;
}

.yby-contact-list i {
    color: var(--yby-accent);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.yby-social-footer {
    margin-top: 15px;
}

.yby-social-footer a {
    width: 34px;
    height: 34px;
    font-size: 14px;
}

/* Footer columns layout */
.yby-footer-widgets .yby-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
}

/* Footer Bottom */
.yby-footer-bottom {
    background: rgba(0,0,0,0.25);
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.yby-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.yby-copyright {
    font-size: 13px;
    color: #a8b8c8;
}

.yby-copyright a {
    color: var(--yby-gold);
}

.yby-footer-menu ul {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.yby-footer-menu a {
    color: #a8b8c8;
    font-size: 12px;
}

.yby-footer-menu a:hover {
    color: var(--yby-accent);
}

.yby-footer-credit {
    font-size: 12px;
    color: #6b7c8d;
}

.yby-footer-credit a {
    color: var(--yby-gold);
}

/* ===== Back to Top ===== */
.yby-back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    background: var(--yby-accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--yby-transition);
    z-index: 998;
    box-shadow: var(--yby-shadow-lg);
}

.yby-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yby-back-to-top:hover {
    background: var(--yby-secondary);
    transform: translateY(-3px);
}

/* ===== Mobile Menu Overlay ===== */
.yby-mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    background: var(--yby-secondary);
    z-index: 10001;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.yby-mobile-menu-overlay.open {
    right: 0;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
}

.yby-mobile-menu-overlay .yby-mobile-menu-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--yby-accent);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}

.yby-mobile-menu {
    padding: 0;
    margin-top: 15px;
}

.yby-mobile-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.yby-mobile-menu a {
    display: block;
    padding: 14px 22px;
    color: #cbd5e0;
    font-size: 14px;
    font-weight: 600;
    transition: var(--yby-transition);
}

.yby-mobile-menu a:hover {
    background: var(--yby-accent);
    color: #fff;
    padding-right: 30px;
}

.yby-mobile-menu .sub-menu {
    padding-right: 15px;
    background: rgba(0,0,0,0.15);
    display: none;
}

.yby-mobile-menu .menu-item-has-children > a::after {
    content: '▼';
    float: left;
    font-size: 10px;
    color: var(--yby-accent);
}

.yby-mobile-menu-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--yby-transition);
}

.yby-mobile-menu-overlay-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* ===== Widgets General ===== */
.widget select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--yby-border);
    border-radius: var(--yby-radius);
    margin: 10px 18px;
    max-width: calc(100% - 36px);
}

.widget ul {
    padding: 10px 18px;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--yby-border);
    font-size: 13px;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--yby-text);
}

.widget ul li a:hover {
    color: var(--yby-accent);
}

/* Calendar widget */
.widget_calendar table {
    width: 100%;
    text-align: center;
}

.widget_calendar caption {
    padding: 10px;
    font-weight: 700;
    color: var(--yby-primary);
}

.widget_calendar th,
.widget_calendar td {
    padding: 6px;
}

.widget_calendar #today {
    background: var(--yby-accent);
    color: #fff;
    border-radius: var(--yby-radius);
}

/* Search widget */
.widget_search .search-form {
    padding: 15px 18px;
    margin: 0;
}

/* ===== Responsive Design ===== */

/* Tablet Landscape */
@media (max-width: 1100px) {
    .yby-header-center {
        display: none;
    }

    .yby-sidebar-latest {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .yby-sidebar-main {
        flex: 0 0 290px;
        max-width: 290px;
    }

    .yby-related-grid,
    .yby-latest-grid,
    .yby-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .yby-grid-large-small {
        grid-template-columns: 1fr 1fr;
    }

    .yby-grid-large-small .yby-card-large {
        grid-row: span 1;
        grid-column: span 2;
    }

    .yby-top-news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .yby-top-news-large {
        grid-row: span 1;
        grid-column: span 2;
    }

    .yby-top-news-list {
        grid-row: span 1;
        grid-template-rows: repeat(2, 1fr);
        grid-template-columns: repeat(2, 1fr);
    }

    .yby-grid-list .yby-card {
        flex-direction: column;
    }

    .yby-grid-list .yby-card .yby-card-img,
    .yby-grid-list .yby-card-featured .yby-card-img {
        flex: 0 0 auto;
        width: 100%;
        height: 180px;
    }

    .yby-footer-widgets .yby-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 900px) {
    .yby-primary-menu {
        display: none;
    }

    .yby-mobile-toggle {
        display: flex;
    }

    .yby-home-btn {
        display: none;
    }

    .yby-content-wrapper {
        flex-direction: column;
    }

    .yby-sidebar-latest {
        flex: 1 1 100%;
        max-width: 100%;
        order: 0;
    }

    .yby-sidebar-main {
        flex: 1 1 100%;
        max-width: 100%;
        order: 0;
    }

    .yby-sidebar-sticky {
        position: static;
    }

    .yby-main-content,
    .yby-primary-content {
        order: 0;
    }

    .yby-latest-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .yby-latest-item {
        border-bottom: 1px solid var(--yby-border);
    }

    .yby-slider {
        height: 350px;
    }

    .yby-slide-content h2 {
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .yby-top-bar-left {
        gap: 10px;
    }

    .yby-top-menu {
        display: none;
    }

    .yby-header {
        padding: 12px 0;
    }

    .site-title {
        font-size: 20px;
    }

    .site-description {
        font-size: 11px;
    }

    .yby-header-search {
        display: none;
    }

    .yby-slider {
        height: 280px;
    }

    .yby-slide-content {
        max-width: 100%;
    }

    .yby-slide-content h2 {
        font-size: 17px;
    }

    .yby-slide-overlay {
        padding: 40px 15px 18px;
    }

    .yby-slider-dots {
        left: 15px;
    }

    .yby-section-title {
        font-size: 15px;
    }

    .yby-section-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .yby-grid-2,
    .yby-grid-3,
    .yby-grid-4,
    .yby-grid-large-small {
        grid-template-columns: 1fr;
    }

    .yby-grid-large-small .yby-card-large {
        grid-column: span 1;
    }

    .yby-top-news-grid {
        grid-template-columns: 1fr;
    }

    .yby-top-news-large {
        grid-column: span 1;
    }

    .yby-top-news-list {
        grid-template-rows: none;
        grid-template-columns: 1fr;
    }

    .yby-latest-grid,
    .yby-archive-grid,
    .yby-related-grid {
        grid-template-columns: 1fr;
    }

    .yby-latest-list {
        grid-template-columns: 1fr;
    }

    .yby-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .yby-feature-text h4 {
        font-size: 13px;
    }

    .yby-feature-text p {
        font-size: 11px;
    }

    .yby-footer-widgets .yby-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .yby-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .yby-single-main {
        padding: 18px;
    }

    .yby-single-title {
        font-size: 22px;
    }

    .yby-single-meta {
        gap: 12px;
        font-size: 12px;
    }

    .yby-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .yby-entry-content {
        font-size: 15px;
    }

    .yby-card-large .yby-card-title {
        font-size: 17px;
    }

    .yby-archive-header {
        padding: 20px;
    }

    .yby-archive-title {
        font-size: 20px;
    }

    .error404 h1 {
        font-size: 80px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .yby-container {
        padding: 0 12px;
    }

    .yby-top-bar {
        font-size: 11px;
        padding: 5px 0;
    }

    .yby-top-date {
        font-size: 11px;
    }

    .yby-social-icons a {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .yby-breaking-label {
        padding: 0 12px;
        font-size: 12px;
    }

    .yby-ticker-list li {
        padding: 0 12px;
        font-size: 12px;
    }

    .yby-slider {
        height: 220px;
    }

    .yby-slider-nav button {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .yby-slide-content h2 {
        font-size: 15px;
    }

    .yby-section-grid {
        padding: 12px;
        gap: 12px;
    }

    .yby-card-mini {
        flex-direction: column;
    }

    .yby-card-mini .yby-card-img {
        flex: 0 0 auto;
        width: 100%;
        height: 160px;
    }

    .yby-features-grid {
        grid-template-columns: 1fr;
    }

    .yby-social-large {
        grid-template-columns: 1fr;
    }

    .yby-single-title {
        font-size: 18px;
    }

    .yby-share-bar a {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .yby-back-to-top {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .yby-top-bar,
    .yby-main-nav,
    .yby-breaking-bar,
    .yby-sidebar-latest,
    .yby-sidebar-main,
    .yby-footer,
    .yby-features-bar,
    .yby-back-to-top,
    .yby-ad-zone,
    .yby-slider-nav,
    .yby-slider-dots,
    .yby-share-bar {
        display: none !important;
    }

    .yby-content-wrapper {
        display: block;
    }

    body {
        background: #fff;
        color: #000;
    }

    .yby-single-main {
        box-shadow: none;
        padding: 0;
    }
}

/* ===== Selection ===== */
::selection {
    background: var(--yby-accent);
    color: #fff;
}

::-moz-selection {
    background: var(--yby-accent);
    color: #fff;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--yby-light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--yby-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--yby-accent);
}

/* ===================================================================
   أنماط إضافية - مطابقة كاملة للـ PHP
   =================================================================== */

/* ===== أشرطة زر القائمة (Hamburger Bars) ===== */
.yby-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 4px auto;
    border-radius: 2px;
    transition: var(--yby-transition);
}

.yby-mobile-toggle.active .yby-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.yby-mobile-toggle.active .yby-bar:nth-child(2) {
    opacity: 0;
}

.yby-mobile-toggle.active .yby-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== صفحة 404 ===== */
.yby-404 {
    text-align: center;
    padding: 60px 20px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yby-404-inner {
    max-width: 600px;
    margin: 0 auto;
}

.yby-404-number {
    font-size: 120px;
    font-weight: 900;
    color: var(--yby-primary);
    line-height: 1;
    margin: 0 0 10px;
    letter-spacing: -3px;
}

.yby-404-number span {
    color: var(--yby-accent);
}

.yby-404-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--yby-text-dark);
    margin: 0 0 15px;
}

.yby-404-text {
    font-size: 16px;
    color: var(--yby-text-muted);
    line-height: 1.8;
    margin: 0 0 30px;
}

.yby-404-search {
    margin-bottom: 30px;
}

.yby-404-search .search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid var(--yby-border);
    border-radius: var(--yby-radius);
    overflow: hidden;
}

.yby-404-search .search-field {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
}

.yby-404-search .search-submit {
    background: var(--yby-accent);
    color: #fff;
    border: none;
    padding: 0 24px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--yby-transition);
}

.yby-404-search .search-submit:hover {
    background: #a00d24;
}

.yby-404-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--yby-primary);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: var(--yby-radius);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: var(--yby-transition);
}

.yby-404-home-btn:hover {
    background: var(--yby-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.yby-404-cats {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--yby-border);
}

.yby-404-cats h3 {
    font-size: 18px;
    color: var(--yby-primary);
    margin: 0 0 20px;
}

.yby-404-cats h3 i {
    color: var(--yby-accent);
    margin-left: 8px;
}

.yby-404-cats ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.yby-404-cats a {
    display: inline-block;
    padding: 8px 18px;
    background: #f0f2f5;
    color: var(--yby-text-dark);
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: var(--yby-transition);
}

.yby-404-cats a:hover {
    background: var(--yby-primary);
    color: #fff;
}

/* ===== بطاقة الأرشيف ===== */
.yby-archive-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===== بطاقة البحث ===== */
.yby-search-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===== لا توجد نتائج ===== */
.yby-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--yby-radius-lg);
    border: 1px solid var(--yby-border);
}

.yby-no-results h2 {
    font-size: 24px;
    color: var(--yby-primary);
    margin: 0 0 10px;
}

.yby-no-results p {
    color: var(--yby-text-muted);
    font-size: 15px;
    margin: 0 0 25px;
}

.yby-search-again {
    max-width: 400px;
    margin: 0 auto;
}

.yby-search-again .search-form {
    display: flex;
    border: 2px solid var(--yby-border);
    border-radius: var(--yby-radius);
    overflow: hidden;
}

.yby-search-again .search-field {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
}

.yby-search-again .search-submit {
    background: var(--yby-accent);
    color: #fff;
    border: none;
    padding: 0 24px;
    font-weight: 700;
    cursor: pointer;
}

/* ===== التعليقات: عنوان وقائمة ===== */
.yby-comments-title {
    font-size: 20px;
    color: var(--yby-primary);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--yby-accent);
    display: inline-block;
}

.yby-comments-title .dashicons,
.yby-comments-title i {
    color: var(--yby-accent);
    margin-left: 8px;
}

.yby-comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yby-no-comments {
    background: #fff3cd;
    border-right: 4px solid #ffc107;
    padding: 15px 20px;
    border-radius: var(--yby-radius);
    color: #856404;
    font-size: 14px;
    margin: 20px 0;
}

/* ===== ودجت التصنيفات ===== */
.yby-category-widget .cat-item {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--yby-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yby-category-widget .cat-item:last-child {
    border-bottom: none;
}

.yby-category-widget .cat-item a {
    color: var(--yby-text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--yby-transition);
}

.yby-category-widget .cat-item a:hover {
    color: var(--yby-accent);
}

.yby-category-widget .cat-item .count {
    background: var(--yby-primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* ===== ودجت الوسوم ===== */
.yby-tags-widget .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yby-tags-widget .tagcloud a {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f2f5;
    color: var(--yby-text-dark);
    border-radius: 20px;
    font-size: 13px !important;
    text-decoration: none;
    transition: var(--yby-transition);
}

.yby-tags-widget .tagcloud a:hover {
    background: var(--yby-accent);
    color: #fff;
}

/* ===== ودجت التواصل ===== */
.yby-follow-widget .yby-social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.yby-follow-widget .yby-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f2f5;
    color: var(--yby-text-dark);
    font-size: 17px;
    text-decoration: none;
    transition: var(--yby-transition);
}

.yby-follow-widget .yby-social-links a:hover {
    background: var(--yby-accent);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== ودجت آخر الأخبار ===== */
.yby-latest-widget .yby-latest-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--yby-border);
    text-decoration: none;
}

.yby-latest-widget .yby-latest-item:last-child {
    border-bottom: none;
}

/* ===== قسم التصنيفات الإضافي ===== */
.yby-cat-section {
    margin-bottom: 35px;
}

/* ===== قسم آخر الأخبار ===== */
.yby-latest-section {
    margin-bottom: 35px;
}

.yby-latest-section .yby-section-header {
    margin-bottom: 20px;
}

/* ===== عمود التواصل في الفوتر ===== */
.yby-footer-contact {
    font-size: 14px;
    line-height: 1.8;
}

.yby-footer-contact .yby-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #b8c4d0;
}

.yby-footer-contact .yby-contact-item i {
    color: var(--yby-accent);
    font-size: 15px;
    margin-top: 4px;
    flex-shrink: 0;
}

.yby-footer-contact .yby-contact-item a {
    color: #b8c4d0;
    text-decoration: none;
    transition: var(--yby-transition);
}

.yby-footer-contact .yby-contact-item a:hover {
    color: #fff;
}

/* ===== أزرار التنقل في السلايدر ===== */
.yby-slider-prev,
.yby-slider-next {
    line-height: 1;
}

/* ===== استجابة 404 ===== */
@media (max-width: 768px) {
    .yby-404-number {
        font-size: 80px;
    }

    .yby-404-title {
        font-size: 22px;
    }

    .yby-404-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .yby-404-number {
        font-size: 60px;
    }

    .yby-404-cats ul {
        gap: 8px;
    }

    .yby-404-cats a {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* ===== الطقس والعملة (تفاصيل إضافية) ===== */
.yby-weather i {
    color: #f39c12;
}

.yby-currency i {
    color: #27ae60;
}

.yby-weather span,
.yby-currency span {
    font-weight: 600;
}

/* ===================================================================
   أنماط الودجت الإضافية
   =================================================================== */

/* ===== ودجت مقالات قسم محدد ===== */
.yby-cat-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yby-cat-post-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--yby-border);
}

.yby-cat-post-item:last-child {
    border-bottom: none;
}

.yby-cat-post-item .yby-latest-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    align-items: center;
}

/* ===== ودجت شريط الأخبار المتحرك (Ticker) ===== */
.yby-ticker-widget {
    display: flex;
    align-items: center;
    background: var(--yby-primary);
    border-radius: var(--yby-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.yby-ticker-label {
    background: var(--yby-accent);
    color: #fff;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.yby-ticker-label i {
    font-size: 14px;
}

.yby-ticker-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 38px;
}

.yby-ticker-scroll ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    animation: yby-ticker-widget-scroll 30s linear infinite;
}

.yby-ticker-scroll:hover ul {
    animation-play-state: paused;
}

.yby-ticker-scroll li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--yby-transition);
}

.yby-ticker-scroll li a:hover {
    color: var(--yby-gold);
}

@keyframes yby-ticker-widget-scroll {
    0% { right: 100%; }
    100% { right: -100%; }
}

/* RTL: animation direction for ticker widget */
[dir="rtl"] .yby-ticker-scroll ul {
    animation: yby-ticker-widget-scroll-rtl 30s linear infinite;
}

@keyframes yby-ticker-widget-scroll-rtl {
    0% { right: -100%; }
    100% { right: 100%; }
}

/* ===== استجابة الودجت ===== */
@media (max-width: 768px) {
    .yby-ticker-widget {
        flex-direction: column;
        align-items: stretch;
    }

    .yby-ticker-label {
        text-align: center;
        justify-content: center;
    }
}
