﻿/* Latest Updates Section Styles */
.latest-updates-section {
    padding: 170px 0 60px;
    background-color: white;
    direction: rtl;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.updates-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.section-title.text-center {
    color: #00937B;
    font-size: var(--font-4xl);
    font-weight: 700;
    margin: 0;
    text-align: center;
    background: none;
}

.all-news-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: var(--font-sm);
    position: absolute;
    left: calc(25% - 60px);
    top: 50%;
    transform: translateY(-50%);
}

.list-icon {
    font-size: var(--font-lg);
    color: #666;
}

.updates-content {
    position: relative;
    margin-top: 40px;
    width: 100%;
}

.slider-container {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.update-card {
    width: calc(50% - 12px);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 280px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.card-text {
    color: white;
    font-size: var(--font-base);
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.card-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: var(--font-xs);
}

.info-item img {
    width: 16px;
    height: 16px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.updates-nav-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #D9D9D9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:first-child {
    width: 8px;
    height: 8px;
    background-color: #D9D9D9;
}

.dot.active {
    width: 12px;
    height: 12px;
    background-color: #000000;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    
    .slider-container {
        flex-direction: column;
        align-items: center;
    }
    
    .update-card {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .section-title.text-center {
        font-size: var(--font-3xl);
        margin-bottom: 20px !important;
}

    .card-image {
        height: 220px;
    }
    
    .updates-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        width: 100%;
        position: relative;
        text-align: right;
    }
    
    .all-news-link {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        font-size: 16px;
        color: #666;
    }
    
    /* عرض بطاقة واحدة فقط في الموبايل */
    .slider-container {
        display: flex;
        overflow: hidden;
        width: 100%;
        justify-content: center;
    }
    
    .update-card {
        width: 100%;
        max-width: 390px;
        border-radius: 16px;
        margin: 0 auto;
        height: auto;
        min-height: 280px;
    }
    
    .card-image {
        height: 280px;
        border-radius: 16px 16px 0 0;
    }
    
    .card-image img {
        border-radius: 16px 16px 0 0;
    }
    
    .card-body {
        border-radius: 0 0 16px 16px;
        padding: 24px 20px;
    }
    
    .card-text {
        font-size: 18px !important;
        font-weight: 700;
        line-height: 1.4;
        margin-bottom: 20px;
        text-align: right;
    }
    
    .text-white {
        color: white !important;
        display: block;
        margin-bottom: 8px;
    }
    
    .text-green {
        color: #00B894 !important;
        display: block;
        font-weight: 700;
    }
    
    .card-info {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .info-item {
        font-size: 14px !important;
        color: white;
        gap: 8px;
    }
    
    .info-item img {
        width: 20px;
        height: 20px;
    }
    
    /* نقاط التنقل في الموبايل */
    .updates-nav-dots {
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
        background-color: #D9D9D9;
    }
    
    .dot.active {
        width: 14px;
        height: 14px;
        background-color: #000000;
    }
    
    .latest-updates-section {
        padding: 60px 0 40px;
        background-color: #f8f9fa;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* تنسيق أيقونة جميع الأخبار */
    .list-icon {
        font-size: 18px;
        margin-left: 8px;
    }
    
    /* تحسين النص في البطاقات */
    .card-text .text-white {
        font-weight: 600;
        line-height: 1.3;
    }
    
    .card-text .text-green {
        font-weight: 700;
        font-size: 20px;
        margin-top: 4px;
    }
    
    /* تحسين معلومات البطاقة */
    .info-item span {
        font-weight: 500;
    }
    
    /* انتقال سلس بين البطاقات */
    .update-card {
        transition: opacity 0.3s ease;
    }
    
    /* حواف مدورة للصورة */
    .card-image,
    .card-image img {
        border-radius: 16px 16px 0 0 !important;
}
}

@media (max-width: 480px) {
  .latest-updates-section {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    padding: 0 0 40px 0 !important;
    box-sizing: border-box !important;
    background: #f8f9fa !important;
  }
  .container {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 0px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .slider-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    left: 0 !important;
    right: 0 !important;
    scrollbar-width: thin !important;
  }
  .slider-container::-webkit-scrollbar {
    height: 6px !important;
    background: #eee !important;
  }
  .slider-container::-webkit-scrollbar-thumb {
    background: #ccc !important;
    border-radius: 6px !important;
  }
  .update-card {
    min-width: 85vw !important;
    max-width: 85vw !important;
    width: 85vw !important;
    height: 270px !important;
    border-radius: 12px !important;
    padding: 4px !important;
    box-shadow: 0px 0px 11px 0px #0000004D !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .card-image {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .section-title.text-center {
    font-family: 'Droid Arabic Kufi', sans-serif !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    line-height: 150% !important;
    letter-spacing: 0% !important;
    text-align: center !important;
    color: #158885 !important;
    margin-bottom: 18px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .all-news-link {
    flex-direction: row !important;
    white-space: nowrap !important;
    width: fit-content !important;
    height: 16px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    gap: 4px !important;
  }
  .all-news-link .list-icon {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 2px !important;
    margin-right: 0 !important;
  }
}


