﻿/* wwwroot/themes/t01-anime/base.css (أو theme.css) */

/* ✅ Defaults (تُستبدل بقيم TokensJson من Layout) */
:root {
    --color-background: #fff5f7;
    --color-surface: #ffffff;
    --color-text: #2d1b4e;
    --color-primary: #ff6b9d;
    --color-secondary: #ffd93d;
    /* ✅ ألوان إضافية (مهمّة لتخصيص أكثر من لون) */
    --color-accent: #6bcfff;
    /* حدود/إطارات ونجاح/معلومة */
    --color-border: #4a90a4; /* كان ثابت في border والظلال */
    --color-success: #7cb342; /* كان ثابت في بطاقات/شعارات */
    --color-info: #5fa3b8; /* كان ثابت في rainbow */
    /* ✅ هيدر / فوتر */
    --header-grad-1: var(--color-primary);
    --header-grad-2: var(--color-secondary);
    --header-grad-3: var(--color-accent);
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    /* ✅ ألوان خلفية الزخرفة (الدوائر) */
    --blob-1: var(--color-primary);
    --blob-2: var(--color-secondary);
    --blob-3: var(--color-accent);
    /* ✅ أخبار */
    --news-grad-1: var(--color-border);
    --news-grad-2: var(--color-success);
}

* {
    box-sizing: border-box;
    font-family: var(--font-family, 'Cairo'), sans-serif;
}

body {
    margin: 0;
}

/* Main container */
.charity-container {
    width: 100%;
    /*
      ✅ Fix double scrollbar
      كان فيه Scroll داخلي بسبب height:100% + overflow-y:auto
      بينما الـ body فيه Header + Footer => يصير Scroll ثاني للـ body.
      نخلي الـ Scroll الوحيد للصفحة (body) ونمنع الـ Scroll الداخلي.
    */
    min-height: 100%;
    overflow-y: visible;
    overflow-x: hidden;
    /* بدل rgba ألوان ثابتة ✅ */
    background-image: radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--blob-1) 14%, transparent) 0%, transparent 50%), radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--blob-2) 14%, transparent) 0%, transparent 50%), radial-gradient(circle at 40% 90%, color-mix(in srgb, var(--blob-3) 14%, transparent) 0%, transparent 50%);
    position: relative;
}

    /* Decorative emoji */
    .charity-container::before {
        content: '⭐';
        position: fixed;
        top: 10%;
        right: 5%;
        font-size: 30px;
        opacity: 0.3;
        animation: float 4s ease-in-out infinite;
        z-index: 0;
    }

    .charity-container::after {
        content: '💖';
        position: fixed;
        bottom: 20%;
        left: 8%;
        font-size: 40px;
        opacity: 0.3;
        animation: float 5s ease-in-out infinite;
        animation-delay: 1s;
        z-index: 0;
    }

/* Anime cards */
.anime-card {
    background: var(--color-surface);
    border-radius: 25px;
    /* بدل rgba ثابت ✅ (يصير يتبع color-border) */
    box-shadow: 0 8px 0 color-mix(in srgb, var(--color-border) 35%, transparent), 0 12px 24px color-mix(in srgb, var(--color-border) 18%, transparent);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    /* بدل #4a90a4 ✅ */
    border: 4px solid var(--color-border);
}

    .anime-card::before {
        content: '✨';
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        opacity: 0;
        transform: rotate(0deg) scale(0);
        transition: all 0.4s ease;
    }

    .anime-card:hover::before {
        opacity: 1;
        transform: rotate(360deg) scale(1);
    }

    .anime-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 6px;
        /* بدل ألوان ثابتة ✅ */
        background: linear-gradient(90deg, var(--color-border), var(--color-success), var(--color-info), var(--color-border));
        background-size: 200% 100%;
        animation: rainbow 3s linear infinite;
    }

@keyframes rainbow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.anime-card:hover {
    transform: translateY(-12px) scale(1.03) rotate(-1deg);
    box-shadow: 0 12px 0 color-mix(in srgb, var(--color-border) 45%, transparent), 0 20px 40px color-mix(in srgb, var(--color-border) 25%, transparent);
}

/* Buttons */
.anime-button {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 4px solid color-mix(in srgb, var(--color-text) 10%, transparent);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 0 color-mix(in srgb, var(--color-text) 10%, transparent), 0 8px 20px color-mix(in srgb, var(--color-text) 15%, transparent);
}

    .anime-button::before {
        content: '⭐';
        position: absolute;
        top: 50%;
        left: 50%;
        font-size: 20px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        transition: all 0.4s ease;
    }

    .anime-button:hover::before {
        opacity: 1;
        transform: translate(-50%, -50%) scale(3) rotate(180deg);
    }

    .anime-button:hover {
        transform: scale(1.1) rotate(-2deg);
        box-shadow: 0 8px 0 color-mix(in srgb, var(--color-text) 15%, transparent), 0 12px 30px color-mix(in srgb, var(--color-text) 20%, transparent);
    }

    .anime-button:active {
        transform: scale(0.95) translateY(4px);
        box-shadow: 0 2px 0 color-mix(in srgb, var(--color-text) 10%, transparent), 0 4px 10px color-mix(in srgb, var(--color-text) 15%, transparent);
    }

/* Floating */
.floating-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Fade-in */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-animation:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-animation:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-animation:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-animation:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-animation:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-animation:nth-child(6) {
    animation-delay: 0.6s;
}

/* Icons */
.anime-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 0 color-mix(in srgb, var(--color-text) 10%, transparent), 0 8px 20px color-mix(in srgb, var(--color-text) 15%, transparent);
    border: 5px solid var(--color-surface);
    position: relative;
}

    .anime-icon::after {
        content: '✨';
        position: absolute;
        top: -10px;
        right: -10px;
        font-size: 20px;
        animation: sparkle 1.5s ease-in-out infinite;
    }

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.7;
    }
}

.anime-card:hover .anime-icon {
    transform: rotate(15deg) scale(1.15);
    box-shadow: 0 8px 0 color-mix(in srgb, var(--color-text) 15%, transparent), 0 12px 30px color-mix(in srgb, var(--color-text) 20%, transparent);
}

/* Nav links */
.nav-link {
    position: relative;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-weight: 600;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 50%;
        width: 0;
        height: 3px;
        background: var(--color-primary);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .nav-link:hover::after {
        width: 80%;
        right: 10%;
    }

    .nav-link:hover {
        background: color-mix(in srgb, #ffffff 10%, transparent);
    }

/* Dark mode (اختياري نخليه ثابت) */
.theme-dark {
    background: #1a1a2e;
    color: #eee;
}

    .theme-dark .anime-card {
        background: #16213e;
        color: #eee;
    }

    .theme-dark .nav-link {
        color: #eee;
    }

/* Quick action buttons */
.quick-action-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 6px 0 color-mix(in srgb, var(--color-text) 15%, transparent), 0 8px 20px color-mix(in srgb, var(--color-text) 20%, transparent);
    border: 5px solid var(--color-surface);
    position: relative;
}

    .quick-action-btn::before {
        content: '⭐';
        position: absolute;
        top: -5px;
        right: -5px;
        font-size: 16px;
        animation: sparkle 2s ease-in-out infinite;
    }

    .quick-action-btn:hover {
        transform: translateY(-8px) scale(1.1) rotate(-5deg);
        box-shadow: 0 10px 0 color-mix(in srgb, var(--color-text) 20%, transparent), 0 15px 30px color-mix(in srgb, var(--color-text) 25%, transparent);
    }

/* Partner logos */
.partner-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    box-shadow: 0 6px 0 color-mix(in srgb, var(--color-border) 35%, transparent), 0 8px 20px color-mix(in srgb, var(--color-text) 15%, transparent);
    transition: all 0.3s ease;
    padding: 12px;
    border: 5px solid var(--color-success);
    font-size: 40px;
}

    .partner-logo:hover {
        transform: scale(1.15) rotate(-5deg);
        box-shadow: 0 10px 0 color-mix(in srgb, var(--color-border) 45%, transparent), 0 15px 30px color-mix(in srgb, var(--color-text) 20%, transparent);
        border-color: var(--color-border);
    }

/* Testimonial card */
.testimonial-card {
    background: var(--color-surface);
    border-radius: 25px;
    padding: 28px;
    box-shadow: 0 8px 0 color-mix(in srgb, var(--color-success) 45%, transparent), 0 12px 30px color-mix(in srgb, var(--color-text) 15%, transparent);
    transition: all 0.3s ease;
    border: 5px solid var(--color-success);
    position: relative;
}

    .testimonial-card::before {
        content: '💬';
        position: absolute;
        top: -15px;
        right: 20px;
        font-size: 40px;
        background: var(--color-surface);
        border-radius: 50%;
        padding: 5px;
        border: 4px solid var(--color-success);
    }

    .testimonial-card:hover {
        transform: translateY(-10px) rotate(2deg);
        box-shadow: 0 12px 0 color-mix(in srgb, var(--color-success) 55%, transparent), 0 18px 40px color-mix(in srgb, var(--color-text) 20%, transparent);
        border-color: var(--color-border);
    }

/* News cards */
.news-card {
    background: var(--color-surface);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 0 color-mix(in srgb, var(--color-border) 35%, transparent), 0 12px 30px color-mix(in srgb, var(--color-text) 15%, transparent);
    transition: all 0.3s ease;
    border: 4px solid var(--color-success);
    position: relative;
}

    .news-card::before {
        content: '✨';
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        z-index: 2;
        animation: sparkle 2s ease-in-out infinite;
    }

    .news-card:hover {
        transform: translateY(-12px) rotate(-2deg);
        box-shadow: 0 12px 0 color-mix(in srgb, var(--color-border) 45%, transparent), 0 20px 40px color-mix(in srgb, var(--color-text) 20%, transparent);
        border-color: var(--color-border);
    }

.news-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--news-grad-1), var(--news-grad-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--footer-text);
    position: relative;
    overflow: hidden;
}

    .news-image::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: repeating-linear-gradient( 45deg, transparent, transparent 10px, color-mix(in srgb, #ffffff 10%, transparent) 10px, color-mix(in srgb, #ffffff 10%, transparent) 20px );
        animation: slide 20s linear infinite;
    }

@keyframes slide {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50%, 50%);
    }
}

/* =========================
   ✅ Mega menu (FIX)
   - عمودي "واحدة تحت واحدة"
   - لا يلمس أي a عام
   ========================= */
.nav-item {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-surface);
    border-radius: 16px;
    box-shadow: 0 12px 40px color-mix(in srgb, #000 15%, transparent);
    /* ✅ بدل opacity/visibility لتفادي أي انهيار */
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    min-width: 280px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

/* يظهر عند hover */
.nav-item:hover .mega-menu {
    display: flex;
}

/* العناصر عمودية */
.mega-menu-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text);
    white-space: nowrap;
}

    .mega-menu-item:hover {
        background: var(--color-background);
    }

/* لو داخلها روابط */
.mega-menu a,
.mega-menu a:visited {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

/* =========================
   Mobile menu
   ========================= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: var(--color-surface);
    box-shadow: -4px 0 20px color-mix(in srgb, #000 15%, transparent);
    transition: right 0.4s ease;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

    .mobile-menu.active {
        right: 0;
    }

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, #000 50%, transparent);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* ✅ حماية روابط الموبايل */
.mobile-menu a,
.mobile-menu a:visited {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.mobile-menu-item {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

    .mobile-menu-item:hover {
        background: var(--color-background);
    }

/* ✅ submenu عمودي 100% */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .mobile-submenu.active {
        max-height: 900px;
    }

.mobile-submenu-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: color-mix(in srgb, var(--color-text) 60%, transparent);
    cursor: pointer;
    border-radius: 10px;
    margin: 0;
}

    .mobile-submenu-item:hover {
        background: var(--color-background);
    }

/* Responsive */
@media (max-width: 768px) {
    .anime-card {
        border-radius: 16px;
    }

    .anime-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .quick-action-btn {
        width: 70px;
        height: 70px;
    }
}

/* =========================
   FIX: Dropdown / Mega Menu too big
   (no color changes)
   ========================= */

/* الصندوق نفسه */
.mega-menu {
    min-width: 220px; /* كان كبير */
    max-width: 320px; /* يمنع التمدد العرضي */
    padding: 10px 10px; /* تقليل الفراغ الداخلي */
    border-radius: 14px;
    /* التحكم في الارتفاع */
    max-height: 320px; /* بدل 400+ */
    overflow-y: auto; /* لو زادت العناصر يصير Scroll */
    /* ظهور مرتب */
    box-sizing: border-box;
}

/* العناصر داخل القائمة */
.mega-menu-item {
    padding: 8px 10px; /* أصغر */
    margin: 2px 0; /* مسافة صغيرة بين العناصر */
    font-size: 14px; /* ثابت ومناسب */
    line-height: 1.4; /* يمنع ارتفاع مبالغ */
    white-space: nowrap; /* يمنع التفاف النص */
    overflow: hidden;
    text-overflow: ellipsis; /* لو النص طويل يقصه بنقاط */
}

/* لو عندك روابط a داخل mega-menu */
.mega-menu a,
.mega-menu a:visited {
    text-decoration: none;
    display: block; /* يخلي كل عنصر سطر كامل */
}

/* Scrollbar أخف (اختياري) */
.mega-menu::-webkit-scrollbar {
    width: 8px;
}

.mega-menu::-webkit-scrollbar-thumb {
    border-radius: 10px;
}
.mobile-overlay {
    pointer-events: none;
}

    .mobile-overlay.active {
        pointer-events: auto;
    }

.mega-menu {
    pointer-events: auto;
}
    .mobile-menu a.mobile-menu-item,
    .mobile-menu a.mobile-submenu-item,
    .mega-menu a.mega-menu-item {
        display: block;
        text-decoration: none;
        color: inherit;
    }


/* =========================
   ✅ FIX: Desktop dropdown hidden behind Hero
   السبب: السلايدر (qb-hero) عنده عناصر positioned مع z-index
   فكانت تغطي القائمة المنسدلة لأن الهيدر بدون z-index واضح.
   الحل: نعطي الهيدر stacking context أعلى + نضمن overflow:visible
   ========================= */

body > header {
    z-index: 9999;
    overflow: visible;
}

    body > header nav {
        overflow: visible;
    }

    body > header .mega-menu {
        z-index: 10000;
    }

/* نخلي الـ Hero بمستوى أقل (احتياطي) */
.qb-hero {
    position: relative;
    z-index: 0;
}

/* ======================
   Contact Page (t01-anime)
   ====================== */

.qb-page {
    padding: 30px 0 60px;
    background: #f7f7f7;
}

.qb-page__header {
    padding: 14px 0;
}

.qb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Breadcrumb */
.qb-breadcrumb {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    color: #333;
}

.qb-breadcrumb__link {
    color: #2d2d2d;
    text-decoration: none;
    font-weight: 700;
}

.qb-breadcrumb__sep {
    opacity: .6;
}

.qb-breadcrumb__current {
    font-weight: 800;
}

/* Alerts */
.qb-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 0 0 14px;
    font-weight: 700;
}

.qb-alert--success {
    background: #e9f9ef;
    border: 1px solid #bde9cc;
    color: #1a7f3b;
}

/* ======================
   ✅ Layout (جنب بعض)
   الفورم يمين وأعرض
   ====================== */

.qb-contact-grid {
    display: grid;
    gap: 22px;
    align-items: start;
    direction: rtl; /* يخلي العمود الأول يبدأ من اليمين */
    grid-template-columns: 1fr 340px; /* ✅ الفورم (يمين) واسع + التواصل (يسار) ثابت */
}

/* ✅ الكروت */
.qb-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
    padding: 18px;
}

.qb-card__title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 900;
    color: #2b2b2b;
    text-align: right;
}

/* ✅ الفورم يمين */
.qb-form-card {
    grid-column: 1;
}

/* ✅ التواصل يسار */
.qb-contact-card {
    grid-column: 2;
}

    /* Contact items */
    .qb-contact-card .qb-contact-item {
        display: flex;
        flex-direction: row-reverse;
        gap: 14px;
        align-items: center;
        padding: 12px 0;
    }

.qb-contact-ic {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #111;
    color: #fff;
    flex: 0 0 44px;
}

.qb-contact-value {
    font-weight: 800;
    color: #333;
    line-height: 1.6;
    text-align: right;
}

/* Form */
.qb-form {
    width: 100%;
}

.qb-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.qb-form-row {
    margin-bottom: 14px;
}

.qb-label {
    display: block;
    margin: 0 0 8px;
    font-weight: 800;
    color: #333;
    text-align: right;
}

.qb-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    outline: none;
    font-size: 14px;
    background: #fff;
}

    .qb-input:focus {
        border-color: #333;
        box-shadow: 0 0 0 2px rgba(0,0,0,.06);
    }

.qb-select {
    height: 42px;
}

.qb-textarea {
    resize: vertical;
}

.qb-form-actions {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.qb-btn {
    border: 0;
    padding: 10px 46px;
    border-radius: 4px;
    background: #3c3340;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    cursor: pointer;
}

    .qb-btn:hover {
        filter: brightness(.95);
    }

.qb-val {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: 12px;
    text-align: right;
}

/* ======================
   Responsive
   ====================== */
@media (max-width: 992px) {
    .qb-contact-grid {
        grid-template-columns: 1fr; /* تحت بعض */
    }

    .qb-form-card,
    .qb-contact-card {
        grid-column: auto;
    }

    .qb-form-grid-2 {
        grid-template-columns: 1fr; /* حقول سطر واحد بالموبايل */
    }
}


/* ======================
   Achievements  الانجازات(t01-anime)
   ====================== */

.qb-achievements {
    padding: 56px 0;
    background: #f7f7f7;
}

.qb-achievements__head {
    text-align: center;
    margin-bottom: 18px;
}

.qb-achievements__title {
    margin: 0;
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 900;
    color: var(--color-text);
}

.qb-achievements__subtitle {
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: rgba(0,0,0,.65);
}

.qb-achievements__grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.qb-achievement {
    padding: 22px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.qb-achievement__icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    background: rgba(0,0,0,.08);
    color: var(--color-text);
}

.qb-achievement__num {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.qb-achievement__num--secondary {
    color: var(--color-secondary);
}

.qb-achievement__num--success {
    color: #10b981;
}

.qb-achievement__num--warn {
    color: #f59e0b;
}

.qb-achievement__label {
    margin-top: 8px;
    font-weight: 800;
    color: var(--color-text);
}

/* responsive */
@media (max-width: 992px) {
    .qb-achievements__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .qb-achievements__grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   المشاريع Cards
   ========================= */

.rooms-carousel-section {
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

    .rooms-carousel-section .section-intro {
        text-align: center;
        margin-bottom: 28px;
    }

    .rooms-carousel-section .section-badge {
        display: inline-block;
        padding: 10px 22px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 1px;
        margin-bottom: 12px;
        border: 2px solid rgba(0,0,0,.12);
        background: rgba(255,255,255,.7);
    }

    .rooms-carousel-section .section-main-title {
        font-size: 34px;
        font-weight: 900;
        margin: 0 0 10px;
        line-height: 1.2;
    }

    .rooms-carousel-section .section-subtitle {
        font-size: 16px;
        opacity: 0.85;
        max-width: 850px;
        margin: 0 auto;
        line-height: 1.8;
    }

/* wrapper */
.carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 16px;
}

/* track horizontal */
.rooms-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 18px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .rooms-track::-webkit-scrollbar {
        display: none;
    }

/* card */
.room-card-modern {
    min-width: 360px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    transition: all .45s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
    background: #fff;
}

    .room-card-modern:hover {
        transform: translateY(-12px);
        box-shadow: 0 26px 60px rgba(0,0,0,.22);
    }

/* image box */
.room-image-box {
    height: 300px;
    overflow: hidden;
    position: relative;
}

    .room-image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .8s cubic-bezier(.4,0,.2,1);
    }

.room-card-modern:hover .room-image-box img {
    transform: scale(1.15);
}

/* price tag */
.room-price-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 10px 14px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.75);
    border: 2px solid rgba(0,0,0,.1);
    font-weight: 900;
    font-size: 16px;
}

html[dir="rtl"] .room-price-tag {
    left: auto;
    right: 16px;
}

/* info box */
.room-info-box {
    padding: 16px 16px 18px;
}

.room-type-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    opacity: .75;
    margin-bottom: 8px;
}

.room-title {
    font-size: 12px;
    font-weight: 900;
    margin: 0 0 8px;
}

.room-description {
    font-size: 14px;
    line-height: 1.7;
    opacity: .85;
    margin: 0 0 12px;
}

/* pills */
.room-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.feature-pill {
    padding: 8px 10px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(0,0,0,.03);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* button */
.room-book-btn {
    width: 100%;
    padding: 12px 14px;
    border-radius: 18px;
    border: none;
    font-weight: 900;
    cursor: pointer;
    transition: all .35s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #3c3340;
    color: #fff;
}

    .room-book-btn:hover {
        transform: translateY(-2px);
        filter: brightness(.95);
        box-shadow: 0 10px 26px rgba(0,0,0,.2);
    }

/* controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.carousel-btn {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 2px solid rgba(0,0,0,.15);
    background: #fff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: all .25s;
}

    .carousel-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 10px 24px rgba(0,0,0,.12);
    }

/* responsive */
@media (max-width: 768px) {
    .rooms-carousel-section .section-main-title {
        font-size: 26px;
    }

    .room-card-modern {
        min-width: 300px;
    }

    .room-image-box {
        height: 240px;
    }
}


/* =========================
   Projects Carousel (reuse rooms styles)
   ========================= */
.qb-projects-track {
    direction: rtl; /* يخلي أول بطاقة تبدأ من اليمين */
}

.qb-project-card {
    min-width: 360px; /* مثل الصورة بطاقات طويلة */
}

.qb-project-image {
    position: relative;
}

.qb-project-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ef4444;
    color: #fff;
    font-weight: 900;
    padding: 10px 14px;
    border-radius: 12px;
}

.qb-project-body {
    text-align: right;
}

.qb-project-meta {
    opacity: .85;
}

.qb-project-title {
    margin-top: 8px;
}

.qb-amounts {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qb-amount-btn {
    border: 1px solid rgba(0,0,0,.2);
    background: #fff;
    padding: 10px 12px;
    border-radius: 8px;
   
    cursor: pointer;
}

    .qb-amount-btn:hover {
        filter: brightness(.97);
    }

.qb-amount-input-wrap {
    margin-top: 12px;
    position: relative;
}

.qb-amount-input {
    width: 100%;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 8px;
    padding: 12px 44px 12px 12px;
    outline: none;
    font-weight: 800;
}

.qb-currency {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    font-weight: 900;
    opacity: .75;
}

.qb-project-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.qb-donate-btn {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    gap: 10px;
}

.qb-mini-btn {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    background: #111;
    color: #fff;
    display: grid;
    place-items: center;
}

    .qb-mini-btn:hover {
        filter: brightness(.95);
    }

/* Responsive */
@media (max-width: 1200px) {
    .qb-achievements__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .qb-achievements__grid {
        grid-template-columns: 1fr;
    }

    .qb-project-card {
        min-width: 300px;
    }
}
