

/* Fatwa Grid Layout */
.fatwa-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Center items in the grid */
}

.fatwa-item {
    position: relative;
    flex: 1 1 300px;
    max-width: 48%;
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #a0522d;
    border-radius: 10px;
    /* Existing box-shadow */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Other styles */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for smooth effect */
}
/* Hover Effect */
.fatwa-item:hover {
    box-shadow: 0 8px 16px rgb(160, 82, 45); /* Increase shadow on hover */
    transform: translateY(-5px); /* Slightly move the item up */
}

/* Fatwa Number Badge */
.fatwa-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #2c7a7b; /* Adjust color as needed */
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

/* Subject Styling */
.fatwa-item h3 {
    font-size: 1.8em;
    color: #000;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

/* Subject Link Styling */
.fatwa-item h3 a {
    color: #000; /* Black color for the link */
    text-decoration: none; /* Removes underline */
    cursor: pointer;
}

.fatwa-item h3 a:hover {
    text-decoration: underline; /* Optional: underline on hover */
}

/* Snippet Styling */
.fatwa-item p {
    font-size: 1em;
    color: #000000;
    font-weight: normal;
    text-align: right; /* Forces right alignment */
    direction: rtl; /* Ensures right-to-left text flow */
    margin-top: 10px;
    line-height: 1.6;
}


