/**
 * ====================================================================
 * HOME.CSS - تنسيقات الصفحة الرئيسية لشبكة إيجاز (الإصدار 4.0)
 * ====================================================================
 * يُحمّل بعد main.css
 * يشمل: Hero Section, News Cards, Video Slider, Stats, Writers, etc.
 * @version 4.0
 * @author Riyadh Ali
 * ====================================================================
 */

/* ====================================================================
   1. HERO SECTION - القسم البطل (القصة الرئيسية)
   ==================================================================== */

.hero-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, transparent 70%);
    opacity: 0.03;
    border-radius: 50%;
}

.main-story-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.main-story-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.main-story-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.main-story-image {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .main-story-image {
        height: 360px;
    }
}

@media (max-width: 767.98px) {
    .main-story-image {
        height: 280px;
    }
}

.main-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-story-card:hover .main-story-image img {
    transform: scale(1.08);
}

.story-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
    pointer-events: none;
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    color: white;
    z-index: 3;
}

.story-category {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
	color: #f2f0f0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 991.98px) {
    .story-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .story-title {
        font-size: 1.5rem;
    }
    .story-overlay {
        padding: 1.5rem;
    }
}

.story-excerpt {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 80%;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ====================================================================
   2. SECONDARY HEADLINES - العناوين الثانوية
   ==================================================================== */

.secondary-headlines {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .secondary-headlines {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.headline-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-right: 3px solid var(--primary-blue);
}

.headline-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(var(--primary-blue-rgb), 0.1);
    border-right-color: var(--accent-red);
}

.headline-thumb {
    width: 100px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.headline-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.headline-item:hover .headline-thumb img {
    transform: scale(1.1);
}

.headline-body {
    flex: 1;
    min-width: 0;
}

.headline-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-gray);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.headline-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* ====================================================================
   3. NEWSPAPER WIDGET - ويدجت الصحيفة
   ==================================================================== */

.newspaper-widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0rem;
    overflow: hidden;
}

.newspaper-widget .card-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newspaper-cover {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.newspaper-cover:hover {
    transform: translateY(-4px) rotate(1deg);
}

.newspaper-cover img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.newspaper-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.newspaper-actions .btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newspaper-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-blue-rgb), 0.3);
}

/* ====================================================================
   4. SECTION HEADERS - رؤوس الأقسام
   ==================================================================== */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    height: 2px;
    background: var(--accent-red);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.section-title i {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.section-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-link:hover {
    color: var(--accent-red);
    transform: translateX(-4px);
}

/* ====================================================================
   5. CONTENT SECTIONS - أقسام المحتوى
   ==================================================================== */

.content-section {
    padding: 3rem 0;
    background: var(--light-bg);
}

.content-section:nth-child(even) {
    background: white;
}

.news-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(var(--primary-blue-rgb), 0.1);
}

.news-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.time-badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    z-index: 2;
}

.category-badge {
    background: var(--primary-blue);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    z-index: 2;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ====================================================================
   6. VIDEO SECTION - قسم الفيديو
   ==================================================================== */

.video-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 4rem 0;
    position: relative;
}

.video-slider-container {
    position: relative;
    padding: 0 4rem;
}

.video-slider-wrapper {
    overflow: hidden;
}

.video-slider-track {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
    scroll-behavior: smooth;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.fa-play-circle {
  font-size: 1em;
}
.video-slider-track::-webkit-scrollbar {
    display: none;
}

/* تحسينات بطاقات الفيديو لضمان الحجم المناسب */
.sw-vcst {
    flex: 0 0 350px; /* الحد الأدنى لسطح المكتب */
    scroll-snap-align: start;
    min-width: 350px; /* منع التقلص تحت هذا الحجم */
}
.sw-vti.video-title.card-title {
  color: var(--dark-gray);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.7;
}
.card-body-v {
    padding-bottom: 2px;
}
.sw-vca {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sw-vca:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sw-vth {
    position: relative;
    height: 180px; /* ارتفاع مناسب للفيديو */
    overflow: hidden;
    flex-shrink: 0;
}

.sw-vth img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sw-vca:hover .sw-vth img {
    transform: scale(1.1);
}

.sw-pov {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.sw-vca:hover .sw-pov {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.sw-vdu {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.sw-vti {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    margin: 0;
    padding: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* تحسينات أزرار التنقل */
.sw-sna {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 1rem;
    color: var(--primary-blue);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.sw-sna:hover {
    background: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.sw-sna:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.sw-spr {
    right: 0.5rem;
}

.sw-sne {
    left: 0.5rem;
}
.sw-vse .section-title {
  color: white;
}
.sw-vse .section-link
{
  color: white;
}
.sw-vse .section-title i
{
  color: white;
}
/* ====================================================================
   RESPONSIVE IMPROVEMENTS - تحسينات الاستجابة
   ==================================================================== */

/* أجهزة اللوحي (768px - 991px) */
@media (max-width: 991.98px) and (min-width: 768px) {
    .video-slider-container {
        padding: 0 2.5rem;
    }
    
    .sw-vcst {
        flex: 0 0 360px; /* حجم أصغر قليلاً للتابلت */
        min-width: 360px;
    }
    
    .sw-vth {
        height: 160px;
    }
    
    .sw-sna {
        width: 3rem;
        height: 3rem;
        font-size: 1.1rem;
    }
}

/* الهواتف الكبيرة (576px - 767px) */
@media (max-width: 767.98px) and (min-width: 576px) {
    .video-slider-container {
        padding: 0 1rem;
    }
    
    .sw-vcst {
        flex: 0 0 320px;
        min-width: 320px;
    }
    
    .sw-vth {
        height: 150px;
    }
    
    .sw-vti {
        font-size: 0.95rem;
        padding: 1rem;
    }
    
    .sw-pov {
        font-size: 3rem;
    }
    
    .sw-sna {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1rem;
    }
}

/* الهواتف الصغيرة (أقل من 576px) */
@media (max-width: 575.98px) {
    .video-slider-container {
        padding: 0 1.5rem;
    }
    
    .video-slider-track {
        gap: 1rem;
    }
    
    .sw-vcst {
        flex: 0 0 360px; /* عرض أكبر على الهواتف لتحسين إمكانية المشاهدة */
        min-width: 360px;
    }
    
    .sw-vth {
        height: 170px;
    }
    
    .sw-vti {
        font-size: 0.95rem;
        padding: 1rem;
    }
    
    .sw-pov {
        font-size: 2.5rem;
    }
    
    .sw-sna {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.85);
    }
    
    .sw-spr {
        right: 0.25rem;
    }
    
    .sw-sne {
        left: 0.25rem;
    }
}

/* الهواتف الصغيرة جداً (أقل من 400px) */
@media (max-width: 399.98px) {
    .video-slider-container {
        padding: 0 1rem;
    }
    
    .sw-vcst {
        flex: 0 0 320px;
        min-width: 320px;
    }
    
    .sw-vth {
        height: 160px;
    }
}

/* ====================================================================
   ACCESSIBILITY IMPROVEMENTS - تحسينات إمكانية الوصول
   ==================================================================== */

.sw-vca:focus-within {
    outline: 3px solid rgba(255, 165, 0, 0.5);
    outline-offset: 2px;
}

.sw-sna:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* تحسين التباين للنص على الخلفية الداكنة */
.sw-vti {
    text-shadow: 0 .1px .1px rgba(0, 0, 0, 0.5);
}

/* ====================================================================
   PERFORMANCE OPTIMIZATIONS - تحسينات الأداء
   ==================================================================== */

.sw-vth {
    will-change: transform;
}

.sw-vca {
    will-change: transform;
}

/* تحسين تحميل الصور */
.sw-vth img {
    loading: lazy;
    decoding: async;
}



/* ====================================================================
   7. INFOGRAPHIC SECTION - قسم الإنفوجرافيك
   ==================================================================== */
 .px-4 {
  padding-left: .5rem !important;
  padding-right: .5rem !important;
}


.infographic-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0rem;
}

.infographic-track {
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0.5rem;
}

.infographic-track::-webkit-scrollbar {
    display: none;
}

.infographic-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex: 0 0 calc(25% - 0rem);
    min-width: 280px;
}

@media (max-width: 991.98px) {
    .infographic-card {
        flex: 0 0 calc(50% - 0rem);
    }
}

@media (max-width: 575.98px) {
    .infographic-card {
        flex: 0 0 calc(100% - 0rem);
    }
}

.infographic-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.infographic-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #fef7ff 100%);
}

.infographic-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.infographic-body {
    padding: 1.25rem;
}

.infographic-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-gray);
    line-height: 1.4;
    margin: 0;
}

/* ====================================================================
   8. CARICATURE SECTION - قسم الكاريكاتير
   ==================================================================== */

.caricature-widget {
    position: relative;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.caricature-slider {
    position: relative;
    overflow: hidden;
}

.caricature-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.caricature-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.caricature-img {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@media (max-width: 767.98px) {
    .caricature-img {
        height: 300px;
        padding: 1rem;
    }
}

.caricature-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  width: 100%;
  padding: 0px;
  margin: 0px;
}

.caricature-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 0.75rem;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.caricature-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.caricature-nav.prev {
    right: 1rem;
}

.caricature-nav.next {
    left: 1rem;
}

.caricature-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

/* ====================================================================
   9. OPINION SECTION - قسم كتاب الرأي
   ==================================================================== */

.writer-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border-top: 4px solid var(--primary-blue);
}

.writer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-top-color: var(--accent-red);
}

.writer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.writer-card:hover .writer-avatar {
    border-color: var(--accent-red);
    transform: scale(1.05);
}

.writer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.writer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.writer-article-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.writer-card:hover .writer-article-title {
    color: var(--accent-red);
}

/* ====================================================================
   10. STATS SECTION - قسم الإحصائيات
   ==================================================================== */

.stats-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 4rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 1rem;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 600;
}

/* ====================================================================
   11. NEWS LIST STYLES - أنماط القوائم الإخبارية
   ==================================================================== */

.news-list-item {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.news-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-list-thumb {
    width: 120px;
    height: 90px;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.news-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-list-thumb img {
    transform: scale(1.1);
}

.news-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.news-list-excerpt {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-meta {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* ====================================================================
   12. ANIMATIONS - الحركات والتفاعلات
   ==================================================================== */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* تأخير الحركات للعناصر المتعددة */
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ====================================================================
   13. UTILITY CLASSES - كلاسات مساعدة
   ==================================================================== */

.sw-hse { /* Hero Section Element */ }
.sw-msar { /* Main Story Area */ }
.sw-msca { /* Main Story Card */ }
.sw-msli { /* Main Story Link */ }
.sw-msim { /* Main Story Image */ }
.sw-sgr { /* Story Gradient */ }
.sw-sov { /* Story Overlay */ }
.sw-sca { /* Story Category */ }
.sw-sti { /* Story Title */ }
.sw-sme { /* Story Meta */ }
.sw-she { /* Secondary Headlines */ }
.sw-hit { /* Headline Item */ }
.sw-hth { /* Headline Thumb */ }
.sw-hbo { /* Headline Body */ }
.sw-hti { /* Headline Title */ }
.sw-hme { /* Headline Meta */ }
.sw-nwi { /* Newspaper Widget */ }
.sw-whe { /* Widget Header */ }
.sw-nco { /* Newspaper Cover */ }
.sw-ncli { /* Newspaper Cover Link */ }
.sw-nda { /* Newspaper Date */ }
.sw-nac { /* Newspaper Actions */ }
.sw-cse { /* Content Section */ }
.sw-she { /* Section Header */ }
.sw-sti { /* Section Title */ }
.sw-sli { /* Section Link */ }
.sw-nca { /* News Card */ }
.sw-ncim { /* News Card Image */ }
.sw-ncti { /* News Card Title */ }
.sw-ncex { /* News Card Excerpt */ }
.sw-vse { /* Video Section */ }
.sw-vsco { /* Video Slider Container */ }
.sw-vswr { /* Video Slider Wrapper */ }
.sw-vstr { /* Video Slider Track */ }
.sw-vca { /* Video Card */ }
.sw-vth { /* Video Thumbnail */ }
.sw-pov { /* Play Overlay */ }
.sw-vdu { /* Video Duration */ }
.sw-vti { /* Video Title */ }
.sw-sna { /* Slider Nav */ }
.sw-spr { /* Slider Prev */ }
.sw-sne { /* Slider Next */ }
.sw-ise { /* Infographic Section */ }
.sw-isl { /* Infographic Slider */ }
.sw-itr { /* Infographic Track */ }
.sw-ica { /* Infographic Card */ }
.sw-iim { /* Infographic Image */ }
.sw-ibo { /* Infographic Body */ }
.sw-iti { /* Infographic Title */ }
.sw-cse { /* Caricature Section */ }
.sw-cwi { /* Caricature Widget */ }
.sw-csl { /* Caricature Slider */ }
.sw-ctr { /* Caricature Track */ }
.sw-cna { /* Caricature Nav */ }
.sw-cpr { /* Caricature Prev */ }
.sw-cne { /* Caricature Next */ }
.sw-ose { /* Opinion Section */ }
.sw-wca { /* Writer Card */ }
.sw-wav { /* Writer Avatar */ }
.sw-wna { /* Writer Name */ }
.sw-wati { /* Writer Article Title */ }
.sw-sse { /* Stats Section */ }
.sw-sit { /* Stat Item */ }
.sw-snu { /* Stat Number */ }
.sw-sla { /* Stat Label */ }
.sw-nli { /* News List */ }
.sw-nlit { /* News List Item */ }
.sw-nlth { /* News List Thumb */ }
.sw-nlco { /* News List Content */ }
.sw-nlti { /* News List Title */ }
.sw-nlex { /* News List Excerpt */ }
.sw-nlme { /* News List Meta */ }

/* ====================================================================
   14. RESPONSIVE DESIGN - التصميم المتجاوب
   ==================================================================== */

@media (max-width: 1199.98px) {
    .story-title {
        font-size: 2.25rem;
    }
    .infographic-card {
        flex: 0 0 calc(33.333% - 0rem);
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 1.5rem 0;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .stats-section {
        padding: 3rem 0;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .infographic-card {
        flex: 0 0 calc(50% - 0rem);
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 1rem 0;
    }
    .main-story-image {
        height: 250px;
    }
    .story-title {
        font-size: 1.5rem;
    }
    .story-overlay {
        padding: 1.25rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .section-title {
        font-size: 1.375rem;
    }
    .video-slider-container {
        padding: 0 1rem;
    }
    .slider-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
    .infographic-card {
        flex: 0 0 calc(100% - 0rem);
    }
    .caricature-img {
        height: 250px;
    }
}

@media (max-width: 575.98px) {
    .news-card-img {
        height: 160px;
    }
    .video-thumbnail {
        height: 160px;
    }
    .stat-item i {
        font-size: 2.5rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .news-list-item {
        flex-direction: column;
        text-align: center;
    }
    .news-list-thumb {
        width: 100%;
        height: 160px;
        margin-bottom: 1rem;
    }
}

/* ====================================================================
   15. PRINT STYLES - أنماط الطباعة
   ==================================================================== */

@media print {
    .hero-section,
    .video-section,
    .slider-nav,
    .caricature-nav,
    .stats-section {
        display: none !important;
    }
    
    .content-section {
        padding: 1rem 0;
        background: white !important;
    }
    
    .news-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 1rem;
    }
}

.sw-hit {
  display: flex;
  align-items: center;
}

.sw-hit a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.sw-hti {
padding-right: 10px;
  margin: 0;
}

/* ====================================================================
   END OF HOME.CSS
   ==================================================================== */