/* هرم رموز السيدة العذراء — موبايل + ديسكتوب */
.mary-pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    direction: rtl;
}

.mary-pyramid__title {
    margin: 2px 0 8px;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    font-weight: 800;
    color: #1a4575;
    text-align: center;
    letter-spacing: 0.02em;
}

.mary-pyramid__row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(4px, 0.7vw, 10px);
    width: 100%;
}

.mary-pyramid__chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 0 1 auto;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(15, 40, 75, 0.94), rgba(40, 90, 150, 0.88));
    border: 1px solid rgba(170, 200, 240, 0.35);
    box-shadow: 0 6px 16px rgba(10, 35, 79, 0.22);
    color: #eef5ff;
    text-align: center;
    line-height: 1.25;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mary-pyramid__chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(10, 35, 79, 0.32);
}

.mary-pyramid__icon {
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(180, 210, 255, 0.4));
}

.mary-pyramid__label {
    font-size: clamp(0.58rem, 1.05vw, 0.78rem);
    font-weight: 650;
    white-space: normal;
    max-width: 7.2em;
    overflow-wrap: anywhere;
}

.mary-pyramid--glass {
    max-width: 100%;
    margin-top: 10px;
    margin-bottom: 14px;
}

.mary-pyramid--glass .mary-pyramid__title {
    color: #1a4575;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.mary-pyramid--glass .mary-pyramid__chip {
    background: rgba(40, 85, 140, 0.12);
    border-color: rgba(90, 130, 190, 0.3);
    box-shadow: none;
    color: #1e4a7a;
    padding: 5px 6px;
    border-radius: 12px;
}

.mary-pyramid--glass .mary-pyramid__label {
    font-size: clamp(0.52rem, 1.4vw, 0.7rem);
    max-width: 6.5em;
}

@media (max-width: 720px) {
    .mary-pyramid {
        gap: 6px;
    }

    .mary-pyramid__row {
        gap: 4px;
        flex-wrap: nowrap;
    }

    .mary-pyramid__chip {
        padding: 5px 4px;
        border-radius: 10px;
        flex: 1 1 0;
        max-width: 22%;
    }

    .mary-pyramid__label {
        display: block;
        font-size: 0.48rem;
        max-width: 100%;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .mary-pyramid__icon {
        font-size: 0.9rem;
    }

    .mary-pyramid__title {
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .mary-pyramid__chip {
        padding: 4px 3px;
        border-radius: 9px;
        max-width: 24%;
    }

    .mary-pyramid__label {
        display: block;
        font-size: 0.42rem;
        font-weight: 700;
    }

    .mary-pyramid__icon {
        font-size: 0.85rem;
    }
}
