/* ===== News CSS Styles ===== */

/* News Detail Image - Professional Style */
.news-detail-image-container {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.news-detail-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Tablet Responsive */
@media (max-width: 991px) {
    .news-detail-image-wrapper {
        height: 400px;
        border-radius: 10px;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .news-detail-image-wrapper {
        height: 300px;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .news-detail-image-wrapper:hover {
        transform: none;
    }
}

.news-detail-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.news-detail-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    transition: transform 0.5s ease;
}

.news-detail-image-wrapper:hover .news-detail-main-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-detail-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.image-zoom-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #007bff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.image-zoom-btn:hover {
    background: white;
    transform: scale(1.1);
    color: #0056b3;
}

.image-caption {
    margin-top: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 5px;
    color: #495057;
    font-size: 0.95rem;
    font-style: italic;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-close:hover {
    color: #007bff;
    transform: rotate(90deg);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .news-detail-image-wrapper {
        height: 300px;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
    
    .modal-caption {
        bottom: 15px;
        font-size: 0.85rem;
        padding: 10px 20px;
    }
}

/* Original News CSS */

/* ===== News Styles ===== */

/* Hero News Carousel - احترافي ومحسن */
.hero-section {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    margin-bottom: 0;
}

.news-carousel {
    position: relative;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.news-carousel .carousel {
    height: 70vh;
    min-height: 600px;
}

.news-carousel .carousel-inner {
    height: 100%;
    border-radius: 0;
}

.news-carousel .carousel-item {
    height: 100%;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    background: #000;
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-carousel .carousel-item .hero-image,
.news-carousel .carousel-item img,
.hero-slider .carousel-item .hero-image,
.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.8s ease;
    filter: brightness(0.75) contrast(1.1);
    display: block !important;
}

/* RTL Image Support - دعم الصور للعربية */
[dir="rtl"] .hero-image-container,
[dir="rtl"] .news-carousel .carousel-item .hero-image,
[dir="rtl"] .news-carousel .carousel-item img,
[dir="rtl"] .hero-slider .carousel-item .hero-image,
[dir="rtl"] .hero-slider .carousel-item img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Ensure images are visible in RTL */
[dir="rtl"] .carousel-item {
    display: block !important;
}

[dir="rtl"] .carousel-inner {
    display: block !important;
}

/* Gradient Overlay for better text readability */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

/* Image hover effects */
.news-carousel .carousel-item:hover .hero-image {
    transform: scale(1.02);
    filter: brightness(0.8) contrast(1.2);
}

.news-carousel .carousel-item.active img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* تأثير الحركة المحسن - مع دعم RTL محسن */
.news-carousel .carousel-item-next,
.news-carousel .carousel-item-prev,
.hero-slider .carousel-item-next,
.hero-slider .carousel-item-prev {
    transform: translateX(0);
}

.news-carousel .carousel-item-next.carousel-item-start,
.news-carousel .carousel-item-prev.carousel-item-end,
.hero-slider .carousel-item-next.carousel-item-start,
.hero-slider .carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}

.news-carousel .carousel-item-next:not(.carousel-item-start),
.news-carousel .active.carousel-item-end,
.hero-slider .carousel-item-next:not(.carousel-item-start),
.hero-slider .active.carousel-item-end {
    transform: translateX(100%);
}

[dir="rtl"] .news-carousel .carousel-item-next:not(.carousel-item-start),
[dir="rtl"] .news-carousel .active.carousel-item-end,
[dir="rtl"] .hero-slider .carousel-item-next:not(.carousel-item-start),
[dir="rtl"] .hero-slider .active.carousel-item-end {
    transform: translateX(-100%);
}

.news-carousel .carousel-item-prev:not(.carousel-item-end),
.news-carousel .active.carousel-item-start,
.hero-slider .carousel-item-prev:not(.carousel-item-end),
.hero-slider .active.carousel-item-start {
    transform: translateX(-100%);
}

[dir="rtl"] .news-carousel .carousel-item-prev:not(.carousel-item-end),
[dir="rtl"] .news-carousel .active.carousel-item-start,
[dir="rtl"] .hero-slider .carousel-item-prev:not(.carousel-item-end),
[dir="rtl"] .hero-slider .active.carousel-item-start {
    transform: translateX(100%);
}

/* إصلاح عرض الصور في RTL */
[dir="rtl"] .carousel-fade .carousel-item {
    opacity: 1;
}

[dir="rtl"] .carousel-fade .carousel-item.active {
    opacity: 1 !important;
}

[dir="rtl"] .carousel-fade .carousel-item-next,
[dir="rtl"] .carousel-fade .carousel-item-prev {
    transform: none;
    opacity: 0;
}

[dir="rtl"] .carousel-fade .carousel-item-next.carousel-item-start,
[dir="rtl"] .carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

/* Enhanced Carousel Caption - محسن وجميل */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
}

[dir="rtl"] .carousel-caption {
    text-align: center;
}

/* محتوى الـ Caption */
.carousel-caption .container {
    position: relative;
    z-index: 3;
}

/* Hero Slider Specific Styles */
.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease 0.1s forwards;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.carousel-caption h1,
.carousel-caption .hero-title,
.carousel-caption h2,
.carousel-caption .carousel-title,
.carousel-caption h5 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFade 1s ease 0.3s forwards;
}

.carousel-caption p,
.carousel-caption .carousel-description {
    font-size: 1.3rem;
    color: #f8f9fa;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease 0.6s forwards;
}

/* Responsive Caption */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
        margin-bottom: 0.8rem;
    }
    
    .carousel-caption h1,
    .carousel-caption .hero-title,
    .carousel-caption h2,
    .carousel-caption .carousel-title,
    .carousel-caption h5 {
        font-size: 2.2rem;
    }
    
    .carousel-caption p,
    .carousel-caption .hero-description,
    .carousel-caption .carousel-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .carousel-caption .btn-hero-action {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.5rem;
    }
    
    .carousel-caption h1,
    .carousel-caption .hero-title,
    .carousel-caption h2,
    .carousel-caption .carousel-title,
    .carousel-caption h5 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption p,
    .carousel-caption .hero-description,
    .carousel-caption .carousel-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption .btn-hero-action {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News Meta Information */
.carousel-caption .news-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 1s ease 0.9s forwards;
}

.carousel-caption .news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.carousel-caption .news-category {
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.9), rgba(40, 167, 69, 0.9));
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* زر القراءة المحسن */
.carousel-caption .btn-read-more {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 1s ease 1.2s forwards;
}

.carousel-caption .btn-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.carousel-caption .btn-read-more:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.5);
    color: white;
}

.carousel-caption .btn-read-more:hover::before {
    left: 100%;
}

/* Hero Action Button - زر السلايدر الرئيسي */
.carousel-caption .btn-hero-action {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease 1.5s forwards;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.carousel-caption .btn-hero-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.carousel-caption .btn-hero-action:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.5);
    color: white;
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

.carousel-caption .btn-hero-action:hover::before {
    left: 100%;
}

.carousel-caption .btn-hero-action:active {
    transform: translateY(-2px) scale(1.02);
}

/* Custom Carousel Controls - محسن */
.carousel-control-prev,
.carousel-control-next {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 5;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 30px;
}

[dir="rtl"] .carousel-control-prev {
    left: auto;
    right: 30px;
}

.carousel-control-next {
    right: 30px;
}

[dir="rtl"] .carousel-control-next {
    right: auto;
    left: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 123, 255, 0.9);
    border-color: rgba(0, 123, 255, 1);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 100%;
    filter: invert(1);
}

/* Carousel Indicators - محسن */
.carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
    z-index: 4;
    gap: 0.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    margin: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicators [data-bs-target].active {
    width: 40px;
    border-radius: 25px;
    background: rgba(0, 123, 255, 0.9);
    border-color: rgba(0, 123, 255, 1);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.carousel-indicators [data-bs-target]:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
        opacity: 1;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    [dir="rtl"] .carousel-control-prev {
        left: auto;
        right: 15px;
    }
    
    [dir="rtl"] .carousel-control-next {
        right: auto;
        left: 15px;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 12px;
    }
    
    .carousel-indicators [data-bs-target].active {
        width: 30px;
    }
    
    .hero-section {
        min-height: 50vh;
    }
    
    .news-carousel .carousel {
        height: 50vh;
        min-height: 400px;
    }
    
    /* تحسين الصور للمحمول */
    .hero-image-container {
        height: 100%;
    }
    
    .news-carousel .carousel-item .hero-image,
    .news-carousel .carousel-item img {
        object-position: center center;
        filter: brightness(0.7) contrast(1.05);
    }
    
    /* تحسين الـ gradient للمحمول */
    .hero-gradient-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 30%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }
}

/* Ultra mobile screens */
@media (max-width: 480px) {
    .hero-section {
        min-height: 40vh;
    }
    
    .news-carousel .carousel {
        height: 40vh;
        min-height: 350px;
    }
    
    .news-carousel .carousel-item .hero-image,
    .news-carousel .carousel-item img {
        filter: brightness(0.65) contrast(1.0);
    }
}

/* Loading Indicator */
.carousel-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner-ring {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility Improvements */
.carousel-item:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

.carousel-indicators [data-bs-target]:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .carousel-caption {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        background: rgba(0, 0, 0, 0.9);
        border-color: white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .carousel-item {
        transition: none;
    }
    
    .carousel-item img {
        transition: none;
    }
    
    .carousel-caption h5,
    .carousel-caption p,
    .carousel-caption .news-meta,
    .carousel-caption .btn-read-more {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        transition: none;
    }
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.news-card-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

[dir="rtl"] .news-card-date {
    left: auto;
    right: 15px;
}

.news-card-body {
    padding: 2rem;
}

.news-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #007bff;
}

.news-card-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.news-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.news-card-author i {
    color: #007bff;
}

.news-card-read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.news-card-read-more:hover {
    color: #0056b3;
}

/* Featured News */
.featured-news {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 5px solid #007bff;
    position: relative;
}

[dir="rtl"] .featured-news {
    border-left: none;
    border-right: 5px solid #007bff;
}

.featured-news::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 15px solid #ffc107;
    border-bottom: 15px solid transparent;
}

[dir="rtl"] .featured-news::before {
    right: auto;
    left: 15px;
    border-left: none;
    border-right: 15px solid #ffc107;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffc107;
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 0 0 0 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

[dir="rtl"] .featured-badge {
    right: auto;
    left: 15px;
    border-radius: 0 0 15px 0;
}

/* News Filter */
.news-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: white;
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Loading Animation */
.news-loading {
    text-align: center;
    padding: 3rem 0;
    color: #6c757d;
}

.news-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-carousel .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        padding: 2rem 1rem;
    }
    
    .carousel-caption h5 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .carousel-caption p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .news-card-body {
        padding: 1.5rem;
    }
    
    .news-card-title {
        font-size: 1.2rem;
    }
    
    .news-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .news-carousel .carousel-item {
        height: 280px;
    }
    
    .carousel-caption {
        padding: 1.5rem 1rem;
    }
    
    .carousel-caption h5 {
        font-size: 1.3rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-caption .btn-read-more {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .news-card-date {
        top: 10px;
        left: 10px;
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    [dir="rtl"] .news-card-date {
        left: auto;
        right: 10px;
    }
}
