/* ===== الواجهة الرئيسية ===== */

.hero {
    position: relative;
    isolation: isolate;
    min-height: 570px;
    padding: 80px max(6%, calc((100% - 1150px) / 2));
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff0f5, #fff 55%, #ffe1ec);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label,
.section-eyebrow {
    display: inline-block;
    color: var(--dark-pink);
    font-size: 13px;
    font-weight: 800;
}

.hero-label {
    margin-bottom: 20px;
}

.hero h1 {
    max-width: 650px;
    margin-bottom: 22px;
    color: #742344;
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1.45;
}

.hero h1 span {
    display: block;
    color: var(--pink);
}

.hero-description {
    max-width: 600px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 17px;
    line-height: 2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-note {
    margin-top: 26px;
    color: #84536a;
    font-size: 13px;
}

.hero-note span {
    margin-left: 5px;
    color: var(--pink);
}

/* ===== الرسم الزخرفي ===== */

.hero-art {
    position: relative;
    min-height: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-circle {
    position: absolute;
    border-radius: 50%;
}

.circle-one {
    width: 290px;
    height: 290px;
    background: rgba(217, 79, 131, 0.12);
}

.circle-two {
    width: 215px;
    height: 215px;
    border: 2px solid rgba(217, 79, 131, 0.3);
}

.art-heart {
    position: relative;
    z-index: 1;
    color: var(--pink);
    font-size: 145px;
    line-height: 1;
    filter: drop-shadow(0 12px 15px rgba(169, 47, 97, 0.15));
    animation: heart-float 4s ease-in-out infinite;
}

.art-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    background: white;
    border: 1px solid var(--border-pink);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.art-card span {
    font-size: 25px;
}

.art-card p {
    margin: 0;
    color: var(--dark-pink);
    font-size: 13px;
    font-weight: 700;
}

.art-card-top {
    top: 38px;
    right: 0;
}

.art-card-bottom {
    bottom: 35px;
    left: 0;
}

@keyframes heart-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== عناوين الأقسام ===== */

.discover-section,
.event-section {
    padding: 80px max(6%, calc((100% - 1150px) / 2));
}

.section-heading {
    max-width: 730px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-heading h2,
.mission-content h2 {
    margin: 10px 0 14px;
    color: #742344;
    font-size: clamp(27px, 3vw, 36px);
}

.section-heading > p {
    color: var(--muted);
    font-size: 15px;
}

/* ===== اكتشف أقسام المبادرة ===== */

.discover-section {
    background: #fff7fa;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* بطاقات الأقسام بخلفية الصورة */

.section-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 290px;
    padding: 26px;
    overflow: hidden;

    background-color: #742344;
    background-image:
        linear-gradient(
            145deg,
            rgba(110, 25, 62, 0.78),
            rgba(110, 25, 62, 0.90)
        ),
        url("../images/why-card.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border: 1px solid rgba(255, 225, 236, 0.4);
    border-radius: 20px;

    color: #ffffff;
    text-decoration: none;

    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}

/* إبقاء محتوى البطاقة فوق الخلفية */

.section-card > * {
    position: relative;
    z-index: 1;
}

/* زخرفة خفيفة أسفل البطاقة */

.section-card::after {
    position: absolute;
    z-index: 0;
    content: "";
    width: 130px;
    height: 130px;
    left: -45px;
    bottom: -55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

/* حركة البطاقة عند مرور الماوس */

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

/* أيقونة البطاقة */

.section-card-icon {
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    font-size: 29px;
}

/* التصنيف الصغير */

.section-card-tag {
    margin-bottom: 5px;
    color: #ffe1ec;
    font-size: 12px;
    font-weight: 700;
}

/* عنوان البطاقة */

.section-card h3 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 21px;
}

/* وصف البطاقة */

.section-card > p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.9;
}

/* رابط البطاقة */

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #ffe1ec;
    font-size: 14px;
    font-weight: 800;
}

/* ===== رسالة المبادرة ===== */

.mission-section {
    padding: 75px 7%;
    background: linear-gradient(135deg, #a92f61, #d94f83);
    color: white;
    text-align: center;
}

.mission-content {
    max-width: 760px;
    margin: auto;
}

.mission-heart {
    display: block;
    margin-bottom: 14px;
    color: #ffe1ec;
    font-size: 35px;
}

.mission-content .section-eyebrow {
    color: #ffe1ec;
}

.mission-content h2 {
    color: white;
}

.mission-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.93);
    font-size: 16px;
    line-height: 2;
}

/* ===== تفاصيل الفعالية ===== */

.event-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.event-detail {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 20px;
    background: #fffafd;
    border: 1px solid var(--border-pink);
    border-radius: 15px;
}

.event-detail > span {
    font-size: 25px;
}

.event-detail h3 {
    margin-bottom: 7px;
    color: var(--dark-pink);
    font-size: 16px;
}

.event-detail p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

/* ===== الأجهزة اللوحية ===== */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-top: 65px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-art {
        min-height: 300px;
    }

    .circle-one {
        width: 245px;
        height: 245px;
    }

    .circle-two {
        width: 185px;
        height: 185px;
    }

    .art-heart {
        font-size: 120px;
    }

    .event-details {
        grid-template-columns: 1fr;
    }

    .hero {
        background-size:
            100% 100%,
            auto 42%,
            auto 42%;

        background-position:
            center,
            left top,
            right top;
    }
}

/* ===== الهواتف ===== */

@media (max-width: 600px) {
    .hero {
        min-height: auto;
        padding: 52px 20px 35px;
        gap: 5px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-art {
        min-height: 255px;
    }

    .circle-one {
        width: 210px;
        height: 210px;
    }

    .circle-two {
        width: 160px;
        height: 160px;
    }

    .art-heart {
        font-size: 100px;
    }

    .art-card {
        gap: 6px;
        padding: 9px 11px;
    }

    .art-card p {
        font-size: 11px;
    }

    .art-card-top {
        top: 20px;
    }

    .art-card-bottom {
        bottom: 20px;
    }

    .discover-section,
    .event-section {
        padding: 55px 20px;
    }

    .section-heading {
        margin-bottom: 25px;
    }

    .sections-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .section-card {
        min-height: 260px;
        padding: 22px;
        background-position: center;
    }

    .mission-section {
        padding: 55px 22px;
    }

    .mission-content p {
        font-size: 14px;
    }

    .hero {
        background-size:
            100% 100%,
            auto 28%,
            auto 28%;

        background-position:
            center,
            left top,
            right top;
    }
}

/* ===== تقليل الحركة عند تفضيل المستخدم ذلك ===== */

@media (prefers-reduced-motion: reduce) {
    .art-heart {
        animation: none;
    }

    .section-card {
        transition: none;
    }
}

/* ===== صور خلفية الواجهة الرئيسية ===== */

.hero {
    background-color: #fff0f5;

    background-image:
        linear-gradient(
            90deg,
            rgba(255, 240, 245, 0.12) 0%,
            rgba(255, 240, 245, 0.40) 22%,
            rgba(255, 240, 245, 0.88) 42%,
            rgba(255, 240, 245, 0.88) 58%,
            rgba(255, 240, 245, 0.40) 78%,
            rgba(255, 240, 245, 0.12) 100%
        ),
        url("../images/hero-left.png"),
        url("../images/hero-right.png");

    background-repeat: no-repeat, no-repeat, no-repeat;

    background-position:
        center,
        left center,
        right center;

    background-size:
        100% 100%,
        auto 82%,
        auto 82%;
}

/* الإبقاء على الرسم الأصلي فوق الخلفية */

.hero-art {
    display: flex;
    position: relative;
    z-index: 1;
}