﻿/* Page namespace to avoid leaks */
.about-page {
}

    /* الصورة والنص - عن الأمانة */
    .about-page .service-card-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 2em;
    }

        .about-page .service-card-container img {
            width: 90%;
            max-width: 100%;
            height: auto;
        }

    /* Paragraphs */
    .about-page .about-madina-content {
        font-weight: 400;
        font-size: 1.313rem;
        line-height: 2.2rem;
        text-align: justify;
        color: #1F2A37;
    }

    /* List styling used in "رسالتنا" */
    .about-page .list {
        list-style: none;
        font-size: 1rem;
        position: relative;
        padding-inline-start: 0;
    }

        .about-page .list::before {
            content: "·";
            font-size: 40px;
            vertical-align: text-bottom;
            line-height: 20px;
            margin-inline-end: .2em;
        }

    /* Cards in sections */
    .about-page .messages_vision_section .card {
        border: 1px solid #D2D6DB !important;
        border-radius: 0.9rem !important;
        height: 24.1rem;
        overflow-y: auto;
    }

    .about-page #myGroup .card {
        border: 1px solid #D2D6DB !important;
        border-radius: 0.9rem !important;
        height: 18rem;
        position: unset;
    }

    /* Titles & text blocks */
    .about-page .head-items {
        font-size: 1.125rem;
    }

    .about-page .para-items {
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.5rem;
        color: #1F2A37;
    }

    /* Utilities localized for this page */
    .about-page .pad-35 {
        padding: 35px;
    }

    .about-page .fs-30 {
        font-size: 30px;
    }

    .about-page .fs-16 {
        font-size: 1rem;
    }

    .about-page .lh-30 {
        line-height: 30px;
    }

    .about-page .lh-29 {
        line-height: 29px;
    }

    .about-page .mb-20 {
        margin-bottom: 1.25rem;
    }

    .about-page .mb-15 {
        margin-bottom: 15px;
    }

    .about-page .section-title {
        font-size: 1.5rem;
        margin-bottom: 2.438rem;
    }

    /* Icons */
    .about-page .msg-icon {
        width: 3.675rem;
        height: 3.732rem;
    }

    .about-page .vision-icon {
        width: 3.074rem;
        height: 3.867rem;
    }

    .about-page .icon-container img {
        display: block;
        width: 57px;
        height: 47px;
        margin-top: -17px;
        margin-bottom: 7px;
    }

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background: #f3fcf6;
    border-radius: 50%;
    height: 4rem;
    width: 3rem;
}

    .icon-container img {
        width: 1.7rem !important;
        height: 2rem !important;
    }

img.mb-3.vision-icon,
img.mb-3.msg-icon {
    width: 3.675rem;
    height: 3.732rem;
}

article.card {
    border: 1px solid #D2D6DB !important;
    border-radius: 0.9rem !important;
    height: 24.1rem;
    overflow-y: auto;
}

/* DS card (kept only if used somewhere else on page sections) */
[dir] .about-page .ds-live-event-card {
    border: 1px solid rgba(6, 96, 88, 0.2);
    padding: 29px 30px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.about-page .ds-live-event-card:active {
    border: none;
    border-top: 4px solid #3ca078;
}

/* Responsive tweaks */
@media (max-width: 1200px) {
    #ds-edit {
        margin-top: 10px;
    }
}

@media (max-width: 992px) {
    #ds-edit1 {
        margin-top: 10px;
    }

    .about-page .service-card-container {
        margin-bottom: 1.5em;
        justify-content: center;
    }

    .about-page .about-madina-content {
        text-align: justify;
        font-size: 1.1rem;
        line-height: 2rem;
    }
}

@media (max-width: 576px) {
    .about-page .icon-container {
        display: flex;
        flex-wrap: wrap;
    }

    .about-page .icon {
        flex: 0 0 calc(33.33% - 40px);
    }

    .about-page .service-card-container img {
        width: 70%;
    }
}

@media (max-width: 480px) {
    .about-page .icon {
        flex: 0 0 calc(50% - 40px);
    }
}
/* تأكد أن كل article بنفس الارتفاع داخل الصف */
.row.equal-height {
    display: flex;
    flex-wrap: wrap;
}

    /* جميع الأعمدة تتساوى في الارتفاع */
    .row.equal-height > [class*='col-'] {
        display: flex;
        flex-direction: column;
    }

    /* جعل الكارد تتمدد لتملأ ارتفاع العمود بالكامل */
    .row.equal-height .card {
        flex: 1 1 auto;
        height: 100%;
    }

    /* لضبط محتوى الكارد بحيث يكون منسقًا جيدًا */
    .row.equal-height .card-body {
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* يمكن تغييره إلى space-between إن رغبت */
        align-items: flex-start;
        height: 100%;
    }
.card {
    border: 1px solid #d2d6db !important;
    border-radius: 0.9rem !important;
    padding: 0 !important;
}

.card-icon-container {
    .card-body

{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1em !important;
    .card-title-container
}
}


/* Override لقسم قيمنا فقط */
.rp-container-fluid[aria-label="قيمنا"] .row.equal-height {
    align-items: stretch !important; /* رجّعها للحالة الطبيعية */
}