/*
 Theme Name:   Kadence Child - Jeddah24
 Theme URI:    https://jeddah24.net
 Description:  Premium Arabic News Layout v2.0
 Author:       Jeddah24
 Template:     kadence
 Version:      2.0.0
 Text Domain:  kadence-child
*/

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --jd24-primary: #5e5e5e;
    --jd24-primary-dark: #4a4a4a;
    --jd24-primary-light: #787878;
    --jd24-navy: #1B1B3A;
    --jd24-navy-mid: #252550;
    --jd24-navy-light: #2F2F68;
    --jd24-accent: #e1ae26;
    --jd24-white: #ffffff;
    --jd24-gray-50: #fafafa;
    --jd24-gray-100: #f5f5f7;
    --jd24-gray-200: #e8e8ed;
    --jd24-gray-300: #d1d1d6;
    --jd24-gray-500: #8e8e93;
    --jd24-gray-600: #6c6c70;
    --jd24-gray-700: #48484a;
    --jd24-text: #1a1a2e;
    --jd24-radius: 8px;
    --jd24-radius-sm: 4px;
    --jd24-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --jd24-shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --jd24-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --jd24-transition: 0.2s ease;
    --jd24-max-w: 1280px;
}

/* ===================================
   GLOBAL TYPOGRAPHY
   =================================== */
body {
    font-family: 'Noto Naskh Arabic', 'Noto Kufi Arabic', sans-serif !important;
    line-height: 1.9;
    color: var(--jd24-text);
    background: var(--jd24-gray-100);
}

h1, h2, h3, h4, h5, h6,
.jd24-section-title,
.jd24-nav-list a,
.jd24-badge,
.jd24-ticker-label {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    font-weight: 700;
}

.jd24-container {
    max-width: var(--jd24-max-w);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HIDE DEFAULT KADENCE HEADER/FOOTER
   =================================== */
header.site-header,
#masthead {
    display: none !important;
}

footer.site-footer,
#colophon,
.site-footer-wrap {
    display: none !important;
}

/* Hide default content on homepage */
body.home .site-below-header,
body.blog .site-below-header,
body.home main.site-main,
body.blog main.site-main,
body.home .content-wrap,
body.blog .content-wrap {
    display: none !important;
}


/* ===================================
   TIER 1 — TOP BAR (34px, Saudi green)
   =================================== */
.jd24-tier1 {
    background: var(--jd24-primary);
    color: var(--jd24-white);
    height: 34px;
    font-size: 13px;
    border-bottom: 2px solid var(--jd24-accent);
}

.jd24-tier1-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 16px;
}

.jd24-tier1-date {
    white-space: nowrap;
    opacity: 0.9;
    font-size: 12px;
    flex-shrink: 0;
}

.jd24-tier1-ticker {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 100%;
    min-width: 0;
}

.jd24-ticker-label {
    background: var(--jd24-accent);
    color: var(--jd24-navy);
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
}

.jd24-ticker-label::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--jd24-navy);
    border-radius: 50%;
    animation: jd24-pulse 1.5s ease-in-out infinite;
}

@keyframes jd24-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.jd24-ticker-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

#jd24-ticker-track {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    padding-right: 20px;
}

.jd24-ticker-item {
    color: var(--jd24-white);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: opacity var(--jd24-transition);
}

.jd24-ticker-item:hover {
    opacity: 0.8;
    color: var(--jd24-white);
}


/* ===================================
   TIER 2 — BRAND BAR (70px, white)
   =================================== */
.jd24-tier2 {
    background: var(--jd24-white);
    height: 70px;
    border-bottom: 1px solid var(--jd24-gray-200);
}

.jd24-tier2-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.jd24-tier2-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--jd24-text);
    flex-shrink: 0;
}

.jd24-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.jd24-search-form {
    display: flex;
    align-items: center;
    background: var(--jd24-gray-100);
    border: 1px solid var(--jd24-gray-200);
    border-radius: 24px;
    overflow: hidden;
    width: 400px;
    max-width: 100%;
    transition: border-color var(--jd24-transition), box-shadow var(--jd24-transition);
}

.jd24-search-form:focus-within {
    border-color: var(--jd24-primary);
    box-shadow: 0 0 0 3px rgba(94,94,94,0.15);
}

.jd24-search-input {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 14px;
    flex: 1;
    outline: none;
    font-family: inherit;
    min-width: 0;
}

.jd24-search-btn {
    background: var(--jd24-primary);
    border: none;
    color: var(--jd24-white);
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background var(--jd24-transition);
}

.jd24-search-btn:hover {
    background: var(--jd24-primary-dark);
}

.jd24-tier2-date {
    font-size: 12px;
    color: var(--jd24-gray-600);
    white-space: nowrap;
    flex-shrink: 0;
}


/* ===================================
   TIER 3 — NAVIGATION (48px, dark green)
   =================================== */
.jd24-tier3 {
    background: var(--jd24-primary-dark);
    height: 48px;
    position: relative;
    z-index: 900;
}

.jd24-tier3.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: var(--jd24-shadow-md);
    animation: jd24-slideDown 0.3s ease;
}

@keyframes jd24-slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.jd24-tier3-inner {
    display: flex;
    align-items: center;
    height: 100%;
}

.jd24-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.jd24-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--jd24-white);
    border-radius: 1px;
    transition: var(--jd24-transition);
}

.jd24-nav-menu {
    width: 100%;
    height: 100%;
}

.jd24-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    height: 100%;
}

.jd24-nav-item {
    position: static;
}

.jd24-nav-item > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    color: var(--jd24-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--jd24-transition);
}

.jd24-nav-item > a:hover,
.jd24-nav-item:hover > a {
    background: rgba(255,255,255,0.15);
}

.jd24-nav-home > a {
    background: rgba(255,255,255,0.1);
}


/* ===================================
   MEGA DROPDOWN
   =================================== */
.jd24-tier3-inner {
    position: relative;
}

.jd24-mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--jd24-white);
    border-radius: 0 0 var(--jd24-radius) var(--jd24-radius);
    box-shadow: var(--jd24-shadow-lg);
    padding: 16px;
    width: 100%;
    z-index: 1000;
    animation: jd24-fadeIn 0.2s ease;
}

@keyframes jd24-fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.jd24-nav-item:hover > .jd24-mega-dropdown {
    display: block;
}

.jd24-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.jd24-mega-item {
    text-decoration: none;
    color: var(--jd24-text);
    border-radius: var(--jd24-radius-sm);
    overflow: hidden;
    transition: transform var(--jd24-transition), box-shadow var(--jd24-transition);
}

.jd24-mega-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--jd24-shadow);
}

.jd24-mega-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
    border-radius: var(--jd24-radius-sm);
}

.jd24-mega-noimg {
    width: 100%;
    height: 90px;
    background: var(--jd24-gray-200);
    border-radius: var(--jd24-radius-sm);
}

.jd24-mega-title {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    padding: 6px 2px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jd24-mega-more {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 8px;
    color: var(--jd24-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid var(--jd24-gray-200);
}

.jd24-mega-more:hover {
    color: var(--jd24-primary-dark);
}


/* ===================================
   MOBILE MENU OVERLAY
   =================================== */
.jd24-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.5);
}

.jd24-mobile-overlay.is-open {
    display: block;
    animation: jd24-fadeIn 0.2s ease;
}

.jd24-mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--jd24-white);
    overflow-y: auto;
    box-shadow: var(--jd24-shadow-lg);
    animation: jd24-slideIn 0.3s ease;
}

@keyframes jd24-slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.jd24-mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--jd24-primary);
    color: var(--jd24-white);
    font-weight: 700;
    font-size: 16px;
}

.jd24-mobile-close {
    background: none;
    border: none;
    color: var(--jd24-white);
    cursor: pointer;
    padding: 4px;
    display: flex;
}

.jd24-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jd24-mobile-list li {
    border-bottom: 1px solid var(--jd24-gray-200);
}

.jd24-mobile-list a {
    display: block;
    padding: 14px 20px;
    color: var(--jd24-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background var(--jd24-transition);
}

.jd24-mobile-list a:hover {
    background: var(--jd24-gray-100);
    color: var(--jd24-primary);
}

.jd24-mobile-search {
    padding: 16px 20px;
    display: flex;
    gap: 8px;
}

.jd24-mobile-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--jd24-gray-300);
    border-radius: var(--jd24-radius);
    font-family: inherit;
    font-size: 14px;
}

.jd24-mobile-search button {
    background: var(--jd24-primary);
    color: var(--jd24-white);
    border: none;
    padding: 10px 18px;
    border-radius: var(--jd24-radius);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}


/* ===================================
   HOMEPAGE BLOCKS WRAPPER
   =================================== */
.jd24-homepage {
    background: var(--jd24-gray-100);
    padding-bottom: 40px;
}


/* ===================================
   BLOCK 1 — HERO SLIDER
   =================================== */
.jd24-hero {
    padding: 20px 0;
}

.jd24-hero-slider-wrap {
    position: relative;
    border-radius: var(--jd24-radius);
    overflow: hidden;
    min-height: 480px;
    background: var(--jd24-gray-300);
}

.jd24-hero-slider {
    position: relative;
    width: 100%;
    height: 480px;
}

.jd24-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    text-decoration: none;
    display: block;
    background-size: cover;
    background-position: center;
}

.jd24-hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.jd24-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: var(--jd24-white);
}

.jd24-hero-title {
    font-size: 28px;
    line-height: 1.6;
    margin: 10px 0 8px;
    color: var(--jd24-white);
}

.jd24-hero-date {
    font-size: 13px;
    opacity: 0.8;
}

.jd24-hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.jd24-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--jd24-white);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.jd24-hero-dot.is-active {
    background: var(--jd24-accent);
    border-color: var(--jd24-accent);
}

.jd24-badge {
    display: inline-block;
    background: var(--jd24-primary);
    color: var(--jd24-white);
    padding: 3px 12px;
    border-radius: var(--jd24-radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.jd24-hero-slide:hover .jd24-hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}


/* ===================================
   BLOCK 2 & 4 — CATEGORY GRID
   =================================== */
.jd24-cat-section {
    padding: 30px 0;
}

.jd24-cat-section-alt {
    background: var(--jd24-white);
}

.jd24-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.jd24-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--jd24-primary);
}

.jd24-section-title {
    font-size: 18px;
    color: var(--jd24-navy);
    margin: 0;
}

.jd24-section-more {
    font-size: 13px;
    color: var(--jd24-primary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.jd24-section-more:hover {
    text-decoration: underline;
}

.jd24-cat-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jd24-card {
    display: block;
    background: var(--jd24-white);
    border-radius: var(--jd24-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--jd24-text);
    box-shadow: var(--jd24-shadow);
    transition: transform var(--jd24-transition), box-shadow var(--jd24-transition);
}

.jd24-cat-section-alt .jd24-card {
    background: var(--jd24-gray-50);
}

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

.jd24-card-featured .jd24-card-img {
    height: 200px;
}

.jd24-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.jd24-card-body {
    padding: 12px 14px;
}

.jd24-card-title {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 6px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jd24-card-date {
    font-size: 12px;
    color: var(--jd24-gray-500);
}


/* ===================================
   BLOCK 3 — TRENDING STRIP
   =================================== */
.jd24-trending-section {
    padding: 30px 0;
    background: var(--jd24-white);
}

.jd24-trending-scroll-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jd24-scroll-arrow {
    background: var(--jd24-white);
    border: 1px solid var(--jd24-gray-300);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--jd24-gray-700);
    transition: all var(--jd24-transition);
    z-index: 2;
}

.jd24-scroll-arrow:hover {
    background: var(--jd24-primary);
    border-color: var(--jd24-primary);
    color: var(--jd24-white);
}

.jd24-trending-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0;
    flex: 1;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.jd24-trending-scroll::-webkit-scrollbar {
    display: none;
}

.jd24-trend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 260px;
    max-width: 300px;
    padding: 10px 12px;
    background: var(--jd24-gray-50);
    border-radius: var(--jd24-radius);
    text-decoration: none;
    color: var(--jd24-text);
    transition: box-shadow var(--jd24-transition), transform var(--jd24-transition);
}

.jd24-trend-item:hover {
    box-shadow: var(--jd24-shadow);
    transform: translateY(-2px);
}

.jd24-trend-num {
    width: 28px;
    height: 28px;
    background: var(--jd24-primary);
    color: var(--jd24-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.jd24-trend-img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--jd24-radius-sm);
    flex-shrink: 0;
}

.jd24-trend-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ===================================
   BLOCK 5 — LATEST NEWS LIST
   =================================== */
.jd24-latest-section {
    padding: 30px 0;
}

.jd24-latest-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--jd24-gray-200);
    border-radius: var(--jd24-radius);
    overflow: hidden;
}

.jd24-latest-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--jd24-white);
    text-decoration: none;
    color: var(--jd24-text);
    transition: background var(--jd24-transition);
}

.jd24-latest-item:hover {
    background: var(--jd24-gray-50);
}

.jd24-latest-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--jd24-radius-sm);
    flex-shrink: 0;
}

.jd24-latest-noimg {
    width: 120px;
    height: 80px;
    background: var(--jd24-gray-200);
    border-radius: var(--jd24-radius-sm);
    flex-shrink: 0;
}

.jd24-latest-text {
    flex: 1;
    min-width: 0;
}

.jd24-latest-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jd24-latest-excerpt {
    font-size: 13px;
    color: var(--jd24-gray-600);
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jd24-latest-date {
    font-size: 12px;
    color: var(--jd24-gray-500);
}

.jd24-latest-more-wrap {
    text-align: center;
    padding: 24px 0;
}

.jd24-load-more {
    display: inline-block;
    background: var(--jd24-primary);
    color: var(--jd24-white);
    padding: 12px 36px;
    border-radius: var(--jd24-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    transition: background var(--jd24-transition), transform var(--jd24-transition);
}

.jd24-load-more:hover {
    background: var(--jd24-primary-dark);
    transform: translateY(-1px);
    color: var(--jd24-white);
}


/* ===================================
   FOOTER — NEWSLETTER
   =================================== */
.jd24-footer-newsletter {
    background: linear-gradient(135deg, var(--jd24-primary-dark) 0%, var(--jd24-primary) 100%);
    color: var(--jd24-white);
    padding: 40px 0;
    text-align: center;
}

.jd24-newsletter-inner h3 {
    font-size: 24px;
    margin: 0 0 8px;
    color: var(--jd24-white);
}

.jd24-newsletter-inner p {
    font-size: 15px;
    opacity: 0.9;
    margin: 0 0 20px;
}

.jd24-newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0;
    border-radius: var(--jd24-radius);
    overflow: hidden;
    box-shadow: var(--jd24-shadow-md);
}

.jd24-newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.jd24-newsletter-form button {
    background: var(--jd24-accent);
    color: var(--jd24-navy);
    border: none;
    padding: 14px 28px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background var(--jd24-transition);
    white-space: nowrap;
}

.jd24-newsletter-form button:hover {
    background: #c99a1e;
}


/* ===================================
   FOOTER — MAIN (4 columns, navy)
   =================================== */
.jd24-footer-main {
    background: var(--jd24-navy);
    color: rgba(255,255,255,0.85);
    padding: 50px 0 40px;
}

.jd24-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.jd24-footer-col h4 {
    color: var(--jd24-white);
    font-size: 16px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--jd24-primary);
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.jd24-footer-col p {
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
}

.jd24-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jd24-footer-col ul li {
    margin-bottom: 8px;
}

.jd24-footer-col ul li a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--jd24-transition), padding-right var(--jd24-transition);
}

.jd24-footer-col ul li a:hover {
    color: var(--jd24-white);
    padding-right: 6px;
}

.jd24-contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jd24-contact-list svg {
    flex-shrink: 0;
    opacity: 0.7;
}


/* ===================================
   FOOTER — COPYRIGHT BAR
   =================================== */
.jd24-footer-copyright {
    background: #0e0e24;
    color: rgba(255,255,255,0.6);
    padding: 16px 0;
    font-size: 13px;
}

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

.jd24-legal-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color var(--jd24-transition);
}

.jd24-legal-links a:hover {
    color: var(--jd24-white);
}

.jd24-sep {
    margin: 0 8px;
    opacity: 0.4;
}


/* ===================================
   BACK TO TOP
   =================================== */
.jd24-back-to-top {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: var(--jd24-primary);
    color: var(--jd24-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--jd24-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 900;
}

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

.jd24-back-to-top:hover {
    background: var(--jd24-primary-dark);
    transform: translateY(-2px);
}


/* ===================================
   SINGLE POST / ARTICLE PAGES
   =================================== */
.single .entry-header {
    margin-bottom: 20px;
}

.single .entry-title {
    font-size: 28px;
    line-height: 1.6;
    color: var(--jd24-navy);
}

.single .entry-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--jd24-gray-200);
    border-bottom: 1px solid var(--jd24-gray-200);
    margin: 16px 0;
    font-size: 13px;
    color: var(--jd24-gray-600);
}

.single .post-thumbnail {
    border-radius: var(--jd24-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.single .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single .entry-content {
    font-size: 18px;
    line-height: 2;
}

.single .entry-content p {
    margin-bottom: 1.5em;
}


/* ===================================
   POST LOOP CARDS (category/archive pages)
   =================================== */
.post-loop-wrap .entry,
.loop-entry {
    border-radius: var(--jd24-radius);
    overflow: hidden;
    box-shadow: var(--jd24-shadow);
    transition: box-shadow var(--jd24-transition), transform var(--jd24-transition);
    background: var(--jd24-white);
    margin-bottom: 24px;
}

.post-loop-wrap .entry:hover,
.loop-entry:hover {
    box-shadow: var(--jd24-shadow-md);
    transform: translateY(-2px);
}

.post-loop-wrap .entry .post-thumbnail img,
.loop-entry .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.loop-entry .entry-content-wrap {
    padding: 16px 20px;
}

.loop-entry .entry-title {
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.loop-entry .entry-title a {
    color: var(--jd24-text);
    text-decoration: none;
    transition: color var(--jd24-transition);
}

.loop-entry .entry-title a:hover {
    color: var(--jd24-primary);
}

.loop-entry .entry-meta {
    font-size: 12px;
    color: var(--jd24-gray-600);
}

.loop-entry .entry-taxonomies a {
    background: var(--jd24-primary);
    color: var(--jd24-white);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}


/* ===================================
   SIDEBAR / TRENDING WIDGET
   =================================== */
.jd24-trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jd24-trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--jd24-gray-200);
}

.jd24-trending-item:last-child {
    border-bottom: none;
}

.jd24-trending-num {
    width: 28px;
    height: 28px;
    background: var(--jd24-primary);
    color: var(--jd24-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.jd24-trending-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.jd24-trending-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--jd24-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jd24-trending-title:hover {
    color: var(--jd24-primary);
}


/* ===================================
   MOBILE BOTTOM NAVIGATION
   =================================== */
.jd24-mobile-bottomnav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--jd24-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    justify-content: space-around;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.jd24-bottomnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    color: var(--jd24-gray-600);
    text-decoration: none;
    font-size: 11px;
    transition: color var(--jd24-transition);
}

.jd24-bottomnav-item:hover,
.jd24-bottomnav-item:focus {
    color: var(--jd24-primary);
}

.jd24-bottomnav-icon {
    font-size: 20px;
    line-height: 1;
}

.jd24-bottomnav-label {
    font-weight: 600;
    font-family: 'Noto Kufi Arabic', sans-serif;
}


/* ===================================
   RESPONSIVE — TABLET (1024px)
   =================================== */
@media (max-width: 1024px) {
    .jd24-mega-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jd24-nav-item > a {
        padding: 0 12px;
        font-size: 13px;
    }

    .jd24-hero-slider-wrap,
    .jd24-hero-slider {
        height: 380px;
        min-height: 380px;
    }

    .jd24-hero-title {
        font-size: 22px;
    }

    .jd24-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}


/* ===================================
   RESPONSIVE — TABLET SMALL (768px)
   =================================== */
@media (max-width: 768px) {
    .jd24-hamburger {
        display: flex;
    }

    .jd24-nav-menu {
        display: none;
    }

    .jd24-mobile-bottomnav {
        display: flex;
    }

    body {
        padding-bottom: 64px;
    }

    .jd24-tier2-date {
        display: none;
    }

    .jd24-search-form {
        width: 220px;
    }

    .jd24-hero-slider-wrap,
    .jd24-hero-slider {
        height: 320px;
        min-height: 320px;
    }

    .jd24-hero-title {
        font-size: 20px;
    }

    .jd24-hero-overlay {
        padding: 24px 20px;
    }

    .jd24-cat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .jd24-cat-grid .jd24-cat-col:nth-child(3) {
        grid-column: span 2;
    }

    .jd24-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .jd24-copyright-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

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

    .single .entry-content {
        font-size: 16px;
    }

    .jd24-back-to-top {
        bottom: 76px;
    }
}


/* ===================================
   RESPONSIVE — MOBILE (480px)
   =================================== */
@media (max-width: 480px) {
    .jd24-tier1-date {
        display: none;
    }

    .jd24-tier2 {
        height: auto;
        padding: 10px 0;
    }

    .jd24-tier2-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .jd24-search-form {
        order: 3;
        width: 100%;
    }

    .jd24-logo {
        height: 40px;
    }

    .jd24-hero-slider-wrap,
    .jd24-hero-slider {
        height: 260px;
        min-height: 260px;
    }

    .jd24-hero-title {
        font-size: 18px;
    }

    .jd24-hero-overlay {
        padding: 20px 16px;
    }

    .jd24-cat-grid {
        grid-template-columns: 1fr;
    }

    .jd24-cat-grid .jd24-cat-col:nth-child(3) {
        grid-column: auto;
    }

    .jd24-latest-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .jd24-latest-img,
    .jd24-latest-noimg {
        width: 100%;
        height: 160px;
    }

    .jd24-newsletter-form {
        flex-direction: column;
    }

    .jd24-newsletter-form input,
    .jd24-newsletter-form button {
        border-radius: var(--jd24-radius);
    }

    .jd24-trend-item {
        min-width: 220px;
    }

    .jd24-scroll-arrow {
        display: none;
    }
}


/* ===================================
   ACCESSIBILITY
   =================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--jd24-accent);
    outline-offset: 2px;
}

/* Language toggle */
.jd24-lang-toggle {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    background: var(--jd24-accent);
    color: var(--jd24-navy);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--jd24-transition);
    flex-shrink: 0;
}

.jd24-lang-toggle:hover {
    background: #c99a1e;
    color: var(--jd24-navy);
}

/* English LTR mode */
.jd24-en-mode {
    direction: ltr;
    text-align: left;
}

.jd24-en-mode .jd24-hero-overlay,
.jd24-en-mode .jd24-card-body,
.jd24-en-mode .jd24-latest-text {
    text-align: left;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}


/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .jd24-header,
    .jd24-footer,
    .jd24-mobile-bottomnav,
    .jd24-back-to-top,
    .jd24-mobile-overlay {
        display: none !important;
    }

    .jd24-homepage {
        background: white;
    }
}
