/* 1. Section & Layout */
.blu-press-section {
    background-color: #f9fafb;
    padding-block: 32px; /* Replaced top/bottom */
}

.blu-press-container {
    margin-inline: 95px;  /* Replaced left/right */
    padding-inline: 16px; /* Replaced left/right */
}

.blu-press-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 2. Heading */
.blu-press-heading {
    font-size: 30px;
    font-weight: 500;
    color: #111827;
    line-height: 1.2;
    text-align: center;
    margin: 0;
}
/* Arabic Font Tweaks */
:lang(ar) .blu-press-heading {
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif; /* Adjust to your theme */
}

/* 3. Carousel Wrapper */
.blu-press-carousel-layout {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 4. The Scroll Track */
.blu-press-track {
    display: flex;
    overflow-x: auto;
    gap: 0; 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    
    /* Hide Scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
.blu-press-track::-webkit-scrollbar { 
    display: none; 
}

/* 5. Card Wrapper */
.blu-press-card-wrapper {
    flex: 0 0 100%;
    padding: 0 14px; 
    scroll-snap-align: start; /* This is a logical property, works for RTL */
    box-sizing: border-box;
}

/* 6. Card Design */
.blu-press-card {
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: box-shadow 0.2s ease;
}
.blu-press-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-press-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 16px;
    box-sizing: border-box;
    text-align: start; /* LTR: aligns left, RTL: aligns right */
}

/* 7. Typography */
.blu-press-card-title {
    font-size: 20px;
    font-weight: 500;
    color: #111827;
    line-height: 1.5; /* Increased for better Arabic legibility */
    margin: 0;
}
.blu-press-card-desc {
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1; 
}

/* 8. Link Styling */
.blu-press-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #2563eb;
    text-decoration: none;
}
.blu-press-link:hover {
    color: #1d4ed8;
}
.blu-press-icon {
    width: 20px;
    height: 20px;
}
/* RTL: Flip external link icon */
:lang(ar) .blu-press-icon,
.rtl .blu-press-icon {
    transform: scaleX(-1);
}
:lang(ar) .blu-press-card-title {
    font-size: 19px;
    font-weight: 100;
    color: #111827;
    line-height: 1.5;
    margin: 0;
}

/* 9. Navigation Buttons */
.blu-press-nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; 
    height: 60px;
    padding: 0;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: #374151;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}
.blu-press-nav:hover {
    background-color: #f9fafb;
    transform: scale(1.1);
}
.blu-press-nav svg {
    width: 24px;
    height: 24px;
    stroke-width: 2; 
}

/* Mobile: Absolute Positioning (Using Logical Properties) */
.blu-press-nav.prev {
    position: absolute;
    inset-inline-start: 0; /* Replaces left: 0 */
}
.blu-press-nav.next {
    position: absolute;
    inset-inline-end: 0; /* Replaces right: 0 */
}

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

@media (min-width: 640px) { /* sm */
    .blu-press-heading { font-size: 36px; }
    .blu-press-card-wrapper { flex: 0 0 80%; }
}

@media (min-width: 768px) { /* md */
    .blu-press-section { padding-block: 64px; }
    .blu-press-heading { font-size: 48px; }
    .blu-press-card-wrapper { flex: 0 0 45%; }
    .blu-press-card-body { padding: 32px; }
    .blu-press-nav.prev,
    .blu-press-nav.next {
        position: static; /* Reset for desktop */
    }
}

@media (min-width: 1024px) { /* lg */
    .blu-press-card-wrapper { flex: 0 0 31%; }
}

@media (max-width: 768px) {
    .blu-press-nav {
        width: 38px;
        height: 38px;
    }
    .blu-press-container {
        margin-inline: 16px;
        padding-inline: 0px;
    }
    .blu-press-card-wrapper {
         padding: 0;
    }
}