/* =====================================
   مبادرة مطلق بن محمد الخثيمي - ملف التنسيقات
   ===================================== */

:root {
    --primary-color: #1E3A5F;
    --secondary-color: #C49A6C;
    --gold-color: #D4AF37;
    --silver-color: #C0C0C0;
    --bronze-color: #CD7F32;
    --light-bg: #F8F9FA;
    --dark-text: #333;
    --white: #fff;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.15);
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    color: var(--dark-text);
    line-height: 1.6;
    background-color: #fdfdfd;
}

/* =====================================
   شريط العودة
   ===================================== */

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.back-to-home {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.back-to-home:hover {
    color: var(--white);
}

.separator {
    margin: 0 10px;
    color: rgba(255,255,255,0.5);
}

.initiative-badge {
    font-weight: 500;
}

/* =====================================
   قسم الهيرو - خلفية بأشكال
   ===================================== */

.hero-section {
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), #2c4a6e);
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    pointer-events: none;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 154, 108, 0.3), transparent);
    top: -10%;
    right: -5%;
    animation: floatSlow 25s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    bottom: -10%;
    left: -5%;
    animation: floatSlow 20s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(196, 154, 108, 0.3), transparent);
    top: 50%;
    right: 5%;
    animation: floatMedium 18s ease-in-out infinite;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: rgba(196, 154, 108, 0.15);
    bottom: 20%;
    right: 15%;
    transform: rotate(45deg);
    border-radius: 20px;
    animation: rotateSlow 30s linear infinite;
}

.shape-5 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
    top: 20%;
    left: 10%;
    animation: floatMedium 22s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

@keyframes floatMedium {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 20px); }
}

@keyframes rotateSlow {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.85), rgba(44, 74, 110, 0.85));
    z-index: 1;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    width: 100%;
}

.initiative-logo {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    border: 2px solid var(--secondary-color);
}

.initiative-logo i {
    font-size: 3rem;
    color: var(--secondary-color);
}

.initiative-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.initiative-title span {
    color: var(--secondary-color);
    position: relative;
}

.initiative-title span::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-color);
    width: 60%;
    margin: 0 auto;
}

.initiative-subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.initiative-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.initiative-badges .badge {
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

/* =====================================
   الأقسام العامة
   ===================================== */

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 70px;
    height: 3px;
    background: var(--secondary-color);
}

.section-title.text-center::after {
    right: 50%;
    transform: translateX(50%);
}

.bg-light {
    background: var(--light-bg);
}

.bg-primary {
    background: var(--primary-color) !important;
}

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

.about-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--secondary-color);
}

.about-quote {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(196, 154, 108, 0.08);
    border-radius: 12px;
}

.about-quote i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}

.about-quote p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-quote span {
    font-size: 0.9rem;
    color: #666;
}

.about-info h4 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-info p {
    color: #666;
    line-height: 1.7;
}

/* =====================================
   الإحصائيات
   ===================================== */

.stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* =====================================
   بطاقات التفاصيل
   ===================================== */

.detail-card {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.detail-icon {
    width: 70px;
    height: 70px;
    background: rgba(30, 58, 95, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.detail-card:hover .detail-icon {
    background: var(--primary-color);
}

.detail-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.detail-card:hover .detail-icon i {
    color: var(--white);
}

.detail-card h4 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.detail-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =====================================
   بطاقات الجوائز
   ===================================== */

.prize-card {
    background: var(--white);
    padding: 35px 20px 25px;
    text-align: center;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.prize-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.prize-card.gold {
    border-color: var(--gold-color);
    background: linear-gradient(135deg, #fff8e1, #fff);
}

.prize-card.gold .prize-icon {
    background: var(--gold-color);
    color: var(--white);
}

.prize-card.silver {
    border-color: var(--silver-color);
    background: linear-gradient(135deg, #f5f5f5, #fff);
}

.prize-card.silver .prize-icon {
    background: var(--silver-color);
    color: var(--white);
}

.prize-card.bronze {
    border-color: var(--bronze-color);
    background: linear-gradient(135deg, #fdf0e6, #fff);
}

.prize-card.bronze .prize-icon {
    background: var(--bronze-color);
    color: var(--white);
}

.prize-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    transition: var(--transition);
}

.prize-card:hover .prize-icon {
    transform: scale(1.1);
}

.prize-card h3 {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.prize-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.prize-amount small {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.prize-card p {
    color: #666;
    font-size: 0.9rem;
}

/* =====================================
   الأسئلة الشائعة
   ===================================== */

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    background: var(--white);
    font-weight: 600;
    color: var(--primary-color);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* =====================================
   الفوتر
   ===================================== */

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
    border-top: 5px solid var(--secondary-color);
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-link {
    display: inline-block;
    margin-top: 10px;
}

/* =====================================
   زر العودة للأعلى
   ===================================== */

#back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background: var(--secondary-color);
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

#back-to-top:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* =====================================
   الأزرار
   ===================================== */

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* =====================================
   تحسينات الجوال
   ===================================== */

@media (max-width: 768px) {
    .initiative-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .prize-amount {
        font-size: 2rem;
    }
    
    .shape-1 { width: 200px; height: 200px; }
    .shape-2 { width: 150px; height: 150px; }
    .shape-3 { width: 80px; height: 80px; }
    .shape-4 { width: 100px; height: 100px; }
    .shape-5 { width: 60px; height: 60px; }
}

@media (max-width: 576px) {
    .initiative-title {
        font-size: 1.8rem;
    }
    
    .initiative-subtitle {
        font-size: 1rem;
    }
    
    .initiative-badges .badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}


/* =====================================
   تنسيق صورة الشعار في الهيرو
   ===================================== */

.initiative-logo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 40px rgba(196, 154, 108, 0.4);
    transition: var(--transition);
}

.initiative-logo-img:hover {
    transform: scale(1.05);
    border-color: var(--white);
    box-shadow: 0 0 60px rgba(196, 154, 108, 0.6);
}

/* تنسيق للشاشات الصغيرة */
@media (max-width: 576px) {
    .initiative-logo-img {
        width: 90px;
        height: 90px;
    }
}