/* Alawi Islamic Cards — Frontend */
.aic-section {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 18px 30px;
    box-sizing: border-box;
}

.aic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.aic-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(173, 138, 57, .24);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% -15%, rgba(179, 145, 69, .13), transparent 38%),
        linear-gradient(145deg, #fffdf8 0%, #f7f3e9 100%);
    box-shadow: 0 14px 40px rgba(32, 28, 18, .09);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    text-align: center;
}

.aic-card:hover {
    transform: translateY(-7px);
    border-color: rgba(173, 138, 57, .5);
    box-shadow: 0 22px 52px rgba(32, 28, 18, .15);
}

.aic-card-glow {
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    top: -135px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(180, 145, 62, .12);
    filter: blur(5px);
    pointer-events: none;
}

.aic-image-wrap {
    position: relative;
    width: 142px;
    height: 142px;
    margin: 30px auto 20px;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a47b2b, #e1c77a, #9a7025);
    box-shadow: 0 9px 25px rgba(75, 55, 17, .17);
}

.aic-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fffaf0;
}

.aic-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #fffaf0;
    background: #193d32;
    color: #dfc36f;
    font-size: 44px;
    font-family: serif;
}

.aic-content {
    position: relative;
    padding: 0 28px 29px;
}

.aic-name {
    margin: 0;
    color: #17382f;
    font-size: 25px;
    line-height: 1.35;
    font-weight: 800;
}

.aic-attribute {
    margin-top: 7px;
    color: #a27a2d;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
}

.aic-death {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 13px auto 0;
    color: #4d514c;
    font-size: 13px;
}

.aic-label {
    color: #7b7c74;
}

.aic-death-value {
    font-weight: 700;
    color: #4a514b;
}

.aic-excerpt {
    margin: 17px 0 22px;
    min-height: 70px;
    color: #60635d;
    font-size: 14px;
    line-height: 1.9;
}

.aic-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
    padding: 11px 19px;
    border: 1px solid rgba(164, 123, 43, .35);
    border-radius: 999px;
    background: #193d32;
    color: #fff;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    transition: all .25s ease;
}

.aic-read-more:hover {
    background: #a47b2b;
    color: #fff;
    border-color: #a47b2b;
}

.aic-arrow {
    direction: ltr;
    font-size: 18px;
    line-height: 1;
    transition: transform .25s ease;
}

.aic-read-more:hover .aic-arrow {
    transform: translateX(-4px);
}

.aic-empty {
    margin: 20px auto;
    padding: 30px;
    text-align: center;
    border-radius: 18px;
    background: #f8f5ed;
    color: #4c514c;
}

@media (max-width: 980px) {
    .aic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .aic-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .aic-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .aic-card {
        border-radius: 20px;
    }

    .aic-image-wrap {
        width: 126px;
        height: 126px;
        margin-top: 25px;
    }

    .aic-content {
        padding-left: 22px;
        padding-right: 22px;
    }

    .aic-name {
        font-size: 22px;
    }
}
