/* Container for the magazine section */
.jaz-mag-section {
    background-color: #d1d1d1;
    /* Grey background matching the image */
    padding: 40px 20px;
    direction: rtl;
    /* Right to Left for Arabic layout */
}

.jaz-mag-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    /* Stacks cards on mobile */
}

/* Individual Magazine Card */
.jaz-mag-card {
    background-color: #ffffff;
    flex: 1;
    min-width: 320px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Card Header */
.jaz-mag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eeeeee;
}

.jaz-mag-title {
    font-size: 18px;
    font-weight: 800;
    color: #333;
    position: relative;
    padding-right: 15px;
}

/* The yellow vertical bar next to the title */
.jaz-mag-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: var(--primary-color);
    /* Golden yellow */
}

.jaz-mag-more {
    text-decoration: none;
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Card Body (Image Area) */
.jaz-mag-body {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    background-color: #ffffff;
}

.jaz-mag-image {
    max-width: 70%;
    height: auto;
    /* Basic 3D shadow effect to mimic the image */
    filter: drop-shadow(15px 15px 20px rgba(0, 0, 0, 0.2));
}

/* Card Footer (Date/Issue) */
.jaz-mag-footer {
    padding: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    color: #000;
}

/* Responsive Logic */
@media (max-width: 768px) {
    .jaz-mag-card {
        min-width: 100%;
    }
}