/* 1. Section & Container */
.blu-news-section {
    background-color: #ffffff;
    padding-top: 32px;
    padding-bottom: 32px;
}
h3.blu-news-card-title {
    margin: 0px !important;
}
p.blu-news-card-excerpt{
    margin: 0px !important;
}

.blu-news-container {
    /* CHANGED: Uses logical properties for auto RTL support */
    margin-inline: 95px; 
}

.blu-news-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 2. Heading */
.blu-news-heading {
    font-size: 30px;
    font-weight: 500;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.04em;
    text-align: center;
    margin: 0;
}

/* Arabic specific overrides for Heading */
:lang(ar) .blu-news-heading,
.rtl .blu-news-heading {
    font-weight: 100; /* Arabic often needs slightly bolder weight to match legibility */
 
  
}
:lang(ar) .blu-news-card-title{
font-weight:300;
}

/* 3. Grid Layout */
.blu-news-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* CHANGED: Logical properties */
    margin-inline: auto;
    width: 100%;
}

/* 4. News Card */
.blu-news-card {
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blu-news-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.blu-news-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Ensure text alignment follows direction */
    text-align: start; 
}

/* 5. Metadata (Source & Date) */
.blu-news-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #4b5563;
}

/* 6. Typography */
.blu-news-card-title {
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    line-height: 1.4;
    margin: 0;
}

.blu-news-card-excerpt {
    font-size: 16px;
    color: #374151;
    line-height: 1.4;
    margin: 0;
}

/* Arabic Typography Tweaks */
:lang(ar) .blu-news-card-title,
.rtl .blu-news-card-title {
    line-height: 1.5; /* Arabic characters are taller */
}

/* 7. Link & Icon */
.blu-news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blu-news-link:hover {
    color: #1d4ed8;
}

.blu-news-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

/* ICON RTL FLIP: 
   The arrow points Top-Right. In RTL, "External Link" 
   semantics often imply pointing Top-Left (Forward). */
:lang(ar) .blu-news-icon,
.rtl .blu-news-icon {
    transform: scaleX(-1);
}

/* =================================================================== */
/* Responsive Breakpoints
/* =================================================================== */

/* Small Screens (sm: 640px) */
@media (min-width: 640px) {
    .blu-news-heading { font-size: 36px; }
    
    .blu-news-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
    }
    
    .blu-news-card-title { font-size: 20px; }
    .blu-news-card-excerpt { font-size: 18px; }
    .blu-news-link { font-size: 16px; }
    .blu-news-icon { width: 20px; height: 20px; }
}

/* Medium Screens (md: 768px) */
@media (min-width: 768px) {
    .blu-news-section {
        padding-top: 64px;
        padding-bottom: 64px; 
    }
    
    .blu-news-container {
        /* CHANGED: Logical Properties */
        padding-inline: 64px;
    }

    .blu-news-wrapper {
        gap: 32px;
    }

    .blu-news-heading { font-size: 48px; }

    .blu-news-card {
        padding: 24px;
    }

    .blu-news-card-content {
        gap: 16px;
    }

    .blu-news-meta { font-size: 18px; }
    .blu-news-card-title { font-size: 24px; }
    .blu-news-card-excerpt { font-size: 20px; }
    .blu-news-link { font-size: 18px; }
    .blu-news-icon { width: 24px; height: 24px; }
}

@media (max-width: 768px) {
    .blu-news-container {
        /* CHANGED: Logical Properties */
        margin-inline: 16px;
    }
}