/* ===== صفحة تقديم التبرعات ===== */

body {
    background-color: var(--abyad);
}

/* ===== Header — نفس شكل نافبار السكن باللون الأزرق ===== */
.navbar {
    background: var(--blue);
    position: relative;
    width: 100%;
    height: 45px;
    z-index: 10;
    display: flex;
    justify-content: center;   /* الشعار بالنص */
    align-items: flex-end;
}

/* تبويب الشعار المتدلّي تحت الشريط */
.nav-extension {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 95px;
    background: var(--blue);
    border-radius: 0 0 14px 14px;
    z-index: 9;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.logo {
    font-size: 45px;
    color: #fff;
    margin: 0;
    font-family: 'Qahwa Arabic', serif;
    position: relative;
    top: 25px;
    z-index: 10;
}

/* البروفايل (يسار) */
.profile {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.circle-icon {
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.circle-icon:hover {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.circle-icon svg { width: 22px; height: 22px; fill: var(--blue); }

/* زر القائمة (يمين) */
.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* ===== القائمة المنزلقة ===== */
.menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: var(--blue);
    padding: 20px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 9999;
}

.menu.open { transform: translateX(0); }

.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { margin: 20px 0; }
.menu a { color: #fff; text-decoration: none; font-size: 18px; }
.menu a:hover { color: var(--orange); }

.close-btn {
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    text-align: left;
    margin-bottom: 20px;
}
.close-btn:hover { color: var(--orange); }

/* ===== عناوين الأقسام ===== */
.section-title {
    text-align: center;
    color: var(--blue);
    font-size: 42px;
    margin: 50px 0 30px;
}

/* ===== فئات التبرع ===== */
.aid-cats {
    display: flex;
    flex-direction: row-reverse;   /* الصحة والدواء يميناً ... حصص غذائية يساراً (مثل الصورة) */
    justify-content: center;
    align-items: flex-start;
    gap: 55px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* كل فئة: النقاط يساراً والأيقونة (مع العنوان تحتها) يميناً */
.aid-cat {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 22px;
}

.aid-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.aid-icon {
    width: 175px;
    height: 175px;
    background: #f4f9fb;
    border: 2px solid rgba(10, 113, 158, 0.35);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

.aid-icon img,
.aid-icon svg { width: 110px; height: 110px; object-fit: contain; }

.aid-list {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--blue);
}

.aid-list li {
    position: relative;
    padding-right: 14px;
    margin: 10px 0;
    font-size: 13.5px;
    white-space: nowrap;
}

.aid-list li::before {
    content: "-";
    position: absolute;
    right: 0;
    font-weight: bold;
}

/* النقاط قابلة للنقر (تبرّع خاص) */
.aid-list a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s ease;
}
.aid-list a:hover {
    color: var(--orange);
    text-decoration: underline;
}

/* الأيقونة قابلة للنقر (تبرّع عام) */
.aid-icon {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.aid-icon:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
}

.aid-cat-title {
    text-align: center;
    color: var(--blue);
    font-size: 24px;
    margin: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}
.aid-cat-title:hover { color: var(--orange); }

/* ملاحظة + فاصل */
.aid-note {
    text-align: center;
    color: var(--blue-gray);
    font-size: 17px;
    max-width: 1100px;
    margin: 60px auto 14px;
    padding: 0 20px;
    line-height: 1.8;
}

.aid-divider {
    max-width: 1100px;
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--blue-gray);
    opacity: 0.5;
}

/* ===== حالات خاصة ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.cases-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--blue-gray);
    font-size: 18px;
    padding: 40px 0;
}

.case-card {
    background: var(--blue);
    border-radius: 20px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(10, 113, 158, 0.3);
}

.case-img {
    height: 200px;
    border-radius: 12px;
    background: #2b2b2b;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-body {
    padding: 14px 8px 6px;
    color: #fff;
}

.case-title {
    text-align: right;
    font-size: 24px;
    margin: 0 0 8px;
    color: #fff;
}

.case-desc {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 18px;
    color: #eaf3f8;
}

/* شريط التقدّم */
.case-progress {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    height: 14px;
    overflow: hidden;
    margin-bottom: 8px;
}

.case-progress-fill {
    background: #fff;
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
}

.case-amounts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.case-amount {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

/* "تم جمع" يسار، "المطلوب" يمين */
.case-amount:first-child { text-align: left; align-items: flex-start; }
.case-amount:last-child  { text-align: right; align-items: flex-end; }

.amount-label { opacity: 0.85; }
.amount-val { font-weight: bold; font-size: 15px; }

.case-btn {
    align-self: center;
    background: #fff;
    color: var(--blue);
    text-decoration: none;
    font-family: 'Qahwa Arabic', serif;
    font-size: 16px;
    padding: 8px 28px;
    border-radius: 8px;
    transition: 0.25s;
}

.case-btn:hover {
    background: var(--orange);
    color: #fff;
}

/* ===== استجابة الشاشات ===== */
@media (max-width: 900px) {
    .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* النافبار على الهاتف: نفس أسلوب باقي الصفحات
   (شريط ممتلئ، إخفاء اللسان، الشعار بالوسط، البروفايل يسار، الهامبرغر يمين) */
@media (max-width: 768px) {
    .navbar { height: 52px; align-items: center; }
    .nav-extension { display: none; }
    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 30px;
    }
    .profile { left: 14px; }
    .menu-icon { right: 14px; }
}

@media (max-width: 600px) {
    .cases-grid { grid-template-columns: 1fr; }
    .don-logo { font-size: 26px; padding: 5px 22px; }

    /* العنوان الرئيسي أكبر بوضوح من البطاقات */
    .section-title { font-size: 34px; margin: 28px 0 22px; }

    /* مسافة كافية للفصل بين الفئات */
    .aid-cats { gap: 40px; }

    /* الأيقونة والعنوان فوق ثم قائمة المعلومات تحتهما مباشرةً (مجموعة واحدة) */
    .aid-cat {
        flex-direction: column-reverse;
        align-items: center;
        gap: 2px;
    }
    .aid-icon-wrap { gap: 10px; }
    /* تقليل المسافة العلوية لقائمة المعلومات حتى تلتصق بعنوان البطاقة */
    .aid-list { margin-top: 0; }

    /* عنوان البطاقة أكبر من المعلومات */
    .aid-cat-title { font-size: 26px; }
    /* القائمة ككتلة متمركزة، لكن الشحطة تبقى ملاصقة للنص (محاذاة يمين داخلها) */
    .aid-list { text-align: right; }
    .aid-list li { white-space: normal; font-size: 14px; margin: 3px 0; }
    .aid-list li:first-child { margin-top: 0; }
}
