/* hadees listing */
.category-hadees-listing h1 {
    font-size: 22px;
    font-weight: 300;
    margin: 0;
    text-shadow: -1px -1px 2px #000;
}

.category-hadees-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-right: 15px;
    color: #e8d745;
    text-decoration: none;
    transition: 0.3s all ease;
}

.back-button:hover {
    background: rgba(0, 0, 0, 1);
}

.category-hadees-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.category-hadees-item {
    flex: 1 1 auto;
    position: relative;
    display: block;
    overflow: hidden;
    box-sizing: border-box;

    padding: 15px 20px 45px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-decoration: none;
    color: #FFF;
    transition: 0.3s all ease;
    box-shadow: 5px 5px 10px rgba(255, 255, 255, 0.1);
}

.category-hadees-item:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
}

.category-hadees-text {
    display: block;
    line-height: 1.5;
    text-shadow: 1px 1px 1px #000;
}

.category-hadees-text-en {
    font-size: 25px;
}

.category-hadees-text-ar {
    font-family: arabicHadeesFont, sans-serif;
    direction: rtl;
    text-align: right;
    font-size: 30px;
    word-spacing: 5px;
    opacity: 0.8;
    margin-top: 5px;
}

.category-hadees-reference {
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    font-size: 12px;
    font-style: italic;
    opacity: 0.6;
    margin-top: 10px;
    gap: 5px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 5px 0 0;
    box-sizing: border-box;
    transition: 0.3s all ease;
}

.category-hadees-reference-en, .category-hadees-reference-ar {
    display: flex;
    gap: 5px;
}

.category-hadees-reference-en {
    font-size: 12px;
}

.category-hadees-reference-ar {
    font-family: arabicHadeesFont, sans-serif;
    direction: rtl;
    font-size: 14px;
}

.category-hadees-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    padding: 5px 40px;
    transform: rotate(45deg);
    z-index: 1;
}

/* media query same as categories.css -> @media only screen and (max-width: 750px) */
@media only screen and (max-width: 750px) {
    .category-hadees-header {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .category-hadees-text-en {
        font-size: 20px;
    }

    .category-hadees-text-ar {
        font-size: 25px;
    }
}

/* mobile: 1 column - same as categories.css */
@media only screen and (max-width: 600px) {
    .category-hadees-item {
        border-radius: 0;
    }
}
