/* Container for the whole section */
.jaz-card-section {
    background-color: #f4f4f4;
    padding: 50px 20px;
    direction: rtl;
    /* Right to Left for Arabic */
}

.jaz-card-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    /* Allows stacking on mobile */
    justify-content: center;
}

/* Individual Card Styling */
.jaz-card-box {
    background: #fff;
    flex: 1;
    min-width: 320px;
    /* Prevents cards from getting too thin */
    max-width: 450px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-color);
    /* Blue accent from image */
    display: flex;
    flex-direction: column;
}

/* Card Header */
.jaz-card-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.jaz-card-header h3 {
    margin: 0;
    color: #05135e;
    font-size: 20px;
    font-weight: 700;
}

.jaz-card-arrow {
    color: #999;
    font-size: 14px;
    cursor: pointer;
}

/* Card Body Items */
.jaz-card-item {
    padding: 20px;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor: pointer;
}

.jaz-card-item:last-child {
    border-bottom: none;
}

.jaz-card-item:hover {
    background-color: #f9f9f9;
}

/* Date Styling */
.jaz-card-date {
    min-width: 60px;
    text-align: center;
    color: #999;
    font-size: 12px;
    line-height: 1.2;
}

.jaz-card-date span {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    /* Golden color for the numbers */
}

/* Article Text */
.jaz-card-text {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
}

/* Responsive Logic */
@media (max-width: 768px) {
    .jaz-card-box {
        flex: 1 1 100%;
        /* Take full width on small screens */
    }

    .jaz-card-container {
        gap: 15px;
    }
}