:root {
    --primary: #2CB5B0;
    --primary-dark: #249692;
    --secondary: #E8A1A8;
    --secondary-dark: #d68a91;
    --text: #333333;
    --text-light: #666666;
    --bg: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --font-main: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Basics */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Typography */
h1, h2, h3 { font-weight: 700; color: var(--primary-dark); line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 2rem; }
p { margin-bottom: 1rem; color: var(--text-light); }

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.text-center { text-align: center; }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 700; cursor: pointer; border: none; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 15px rgba(44, 181, 176, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }

/* Dynamic Header Placeholder */
#header-placeholder { min-height: 80px; display: block; } /* Prevents CLS */

/* Navbar Styles (Injected) */
header { background: var(--white); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: var(--shadow); height: 80px; display: flex; align-items: center; }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-link { font-weight: 600; font-size: 1rem; }
.nav-link:hover { color: var(--primary); }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

/* Hero Slider */
.hero { position: relative; height: 85vh; min-height: 500px; display: flex; align-items: center; justify-content: center; color: var(--white); text-align: center; overflow: hidden; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; z-index: -1; }
.hero-slide.active { opacity: 1; }
/* الـ Overlay الجديد: أنعم، أرقى، ويبرز الصور */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* تدرج يبدأ بتركواز عميق في الأسفل وينتهي بلمسة وردية ناعمة في الأعلى */
    background: linear-gradient(
        to top, 
        rgba(36, 150, 146, 0.7) 0%,   /* تركواز أغمق قليلاً من الأسفل لبروز النص */
        rgba(44, 181, 176, 0.3) 50%,  /* تركواز شفاف جداً في المنتصف */
        rgba(232, 161, 168, 0.2) 100% /* لمسة وردية خفيفة جداً من الأعلى */
    );
    z-index: 0;
}

/* إضافة لمسة إضافية للنص لزيادة الوضوح بعد تقليل شفافية الألوان */
.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    /* ظل نص "خرافي" يعطي عمقاً للنص الأبيض فوق أي صورة */
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.3); 
}

.hero p {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 500;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 20px; animation: fadeUp 1s ease forwards; }

/* Cards */
.card { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); text-align: center; border-bottom: 4px solid transparent; }
.card:hover { transform: translateY(-5px); border-bottom-color: var(--secondary); }
.icon-box { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

/* Accordion (FAQ) */
.accordion-item { background: var(--white); border-radius: 8px; margin-bottom: 15px; box-shadow: var(--shadow); overflow: hidden; }
.accordion-header { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--primary-dark); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 20px; }
.accordion-content p { padding-bottom: 20px; }
.accordion-header.active { background: #f0fbfb; }


/* =========================================
   FAQ / HELP CENTER STYLES
   ========================================= */

/* 1. Hero & Search */
.faq-hero {
    background: linear-gradient(135deg, #f0fdfc 0%, #fff0f1 100%);
    padding: 100px 20px 60px;
    margin-bottom: 60px;
    border-radius: 0 0 40px 40px;
}

.faq-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
}

/* صندوق البحث */
.faq-search-box {
    background: #fff;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 50px;
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.faq-search-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(44, 181, 176, 0.15);
    border-color: var(--primary);
}

.faq-search-box i {
    color: #ccc;
    margin-left: 20px;
    font-size: 1.2rem;
}

.faq-search-box input {
    border: none;
    outline: none;
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    font-family: inherit;
}

.faq-search-box .btn {
    padding: 12px 30px;
    border-radius: 40px;
}

/* 2. FAQ Cards Styling */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* رأس السؤال */
.accordion-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header.active {
    background: #fcfcfc;
}

.question-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

/* الأيقونة بجانب السؤال */
.question-title .icon-box {
    width: 40px; height: 40px;
    background: rgba(44, 181, 176, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
}

.accordion-header.active .icon-box {
    background: var(--primary);
    color: #fff;
}

/* علامة الزائد (+) */
.toggle-icon {
    font-size: 1.5rem;
    color: #ccc;
    font-weight: 300;
    transition: transform 0.3s;
}

.accordion-header.active .toggle-icon {
    transform: rotate(45deg); /* تتحول لـ X */
    color: var(--secondary);
}

/* محتوى الجواب */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.answer-body {
    padding: 0 25px 25px 80px; /* تباعد عشان الكلام يجي تحت العنوان مش تحت الأيقونة */
    color: var(--text-light);
    line-height: 1.7;
}

/* موبايل */
@media (max-width: 768px) {
    .faq-search-box input { width: 100%; font-size: 1rem; }
    .faq-search-box .btn { display: none; } /* إخفاء زر البحث في الموبايل لتوفير مساحة */
    .answer-body { padding: 0 20px 20px 20px; }
}

/* --- تعديلات الهيرو في صفحة الأسئلة --- */

.faq-header-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px; /* مسافة تحت النص */
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* تنسيق زر "أبيض" ليظهر بوضوح فوق الخلفية الملونة */
.btn-white {
    background: #fff;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: var(--primary-dark);
}

/* تحسين زر الـ Primary في هذا القسم */
.faq-hero .btn-primary {
    padding: 12px 30px;
    box-shadow: 0 5px 15px rgba(44, 181, 176, 0.3);
}

.faq-hero .btn-primary:hover {
    transform: translateY(-3px);
}

/* للموبايل */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
    }
    .btn-white, .faq-hero .btn-primary {
        width: 100%; /* الأزرار تأخذ العرض الكامل في الموبايل */
    }
}


/* --- FAQ Final CTA (سكشن التواصل في نهاية الأسئلة) --- */
.faq-final-cta {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05); /* ظل ناعم وفخم */
    border: 1px solid rgba(44, 181, 176, 0.1); /* حدود تركواز خفيفة جداً */
    position: relative;
    overflow: hidden;
}

/* زخرفة خلفية خفيفة */
.cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 5px; height: 100%;
    background: var(--primary); /* خط ملون على اليسار */
}

.cta-icon-wrapper {
    width: 70px; height: 70px;
    background: rgba(44, 181, 176, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0; /* منع الانكماش */
    margin-right: 30px;
}

.cta-text-content {
    flex: 1; /* يأخذ المساحة المتبقية */
}

.cta-text-content h3 {
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: var(--text);
}

.cta-text-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 1.05rem;
}

.cta-action-btns {
    display: flex;
    gap: 15px;
    margin-left: 30px;
}

/* زر الواتساب المخصص */
.btn-whatsapp {
    background: #25D366; /* لون الواتساب الأصلي */
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1ebc57;
    transform: translateY(-3px);
    color: #fff;
}

/* تعديل للموبايل */
@media (max-width: 768px) {
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .cta-box::before {
        width: 100%; height: 5px; /* الخط يصير فوق في الموبايل */
    }

    .cta-icon-wrapper {
        margin: 0 auto 20px;
    }

    .cta-action-btns {
        margin: 25px 0 0 0;
        flex-direction: column;
        width: 100%;
    }

    .btn, .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
}


/* Forms */
.form-group { margin-bottom: 20px; }
input, textarea, select { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-family: var(--font-main); font-size: 1rem; transition: var(--transition); }
input:focus, textarea:focus { border-color: var(--primary); outline: none; }

/* Gallery */
/* =========================================
   GALLERY PAGE - MASONRY STYLE
   ========================================= */

/* 1. أزرار الفلتر */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    border: none;
    background: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(44, 181, 176, 0.3);
}

/* 2. Masonry Layout (ترتيب الصور زي الأحجار) */
.masonry-gallery {
    column-count: 3; /* 3 أعمدة للشاشات الكبيرة */
    column-gap: 25px;
    padding-bottom: 80px;
}

.masonry-item {
    break-inside: avoid; /* يمنع قص الصورة بين الأعمدة */
    margin-bottom: 25px;
    display: inline-block; /* ضروري لعمل الـ Masonry */
    width: 100%;
}

/* 3. كرت الصورة (Card Styling) */
.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-card img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

/* 4. الـ Overlay (الطبقة اللي بتظهر لما تحط الماوس) */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(44, 181, 176, 0.9), rgba(44, 181, 176, 0.4));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(3px); /* تغبيش للصورة الخلفية */
}

.overlay-content {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.overlay-content h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.overlay-content i {
    font-size: 2rem;
    margin-top: 15px;
    background: rgba(255,255,255,0.2);
    width: 50px; height: 50px;
    line-height: 50px;
    border-radius: 50%;
}

/* Hover Effects */
.gallery-card:hover img {
    transform: scale(1.1); /* زوم للصورة */
}

.gallery-card:hover .overlay {
    opacity: 1;
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
}

/* 5. Lightbox (النافذة المنبثقة) */
.lightbox {
    display: none; /* مخفي افتراضياً */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255,255,255,0.1);
}

#caption {
    margin-top: 20px;
    color: #ccc;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: 30px; right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover { color: var(--secondary); }

/* Responsive */
@media (max-width: 992px) {
    .masonry-gallery { column-count: 2; }
}

@media (max-width: 600px) {
    .masonry-gallery { column-count: 1; }
}


/* --- Video Specific Styles --- */

/* أيقونة التشغيل الثابتة في منتصف الفيديو */
.play-icon-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5); /* خلفية سوداء نصف شفافة */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    z-index: 1;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

/* عند تمرير الماوس، الأيقونة تكبر وتتغير ألوانها */
.gallery-card:hover .play-icon-center {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.2);
    border-color: var(--primary);
}

/* تعديل الفلتر ليكون 3 أزرار فقط */
.gallery-filters {
    gap: 20px;
}

.filter-btn {
    min-width: 120px; /* توحيد عرض الأزرار */
}

/* Footer */
footer { background: var(--primary-dark); color: var(--white); padding: 60px 0 20px; position: relative; margin-top: 50px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--secondary); margin-left: 5px; }
.copyright { text-align: center; padding-top: 30px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; opacity: 0.8; }

/* Animation Classes */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 768px) {
    .nav-menu { position: fixed; top: 80px; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 20px; box-shadow: var(--shadow); display: none; }
    .nav-menu.active { display: flex; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.75rem; }
}


/* 2. Service Card Design */
.service-card {
    background: #fff;
    border: 1px solid #f0f0f0; /* حدود خفيفة جداً */
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    /* ظل خفيف جداً في الحالة العادية */
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

/* Hover Effect: Lift + Border Bottom + Shadow */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44, 181, 176, 0.15);
    border-color: transparent;
    border-bottom: 4px solid var(--primary); /* الخط السفلي الملون */
}

/* 3. Icons Styling */
.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px; /* مربع بحواف دائرية - مودرن أكثر */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.icon-teal {
    background: rgba(44, 181, 176, 0.08);
    color: var(--primary);
}

.icon-pink {
    background: rgba(232, 161, 168, 0.1);
    color: var(--secondary-dark);
}

/* Icon Animation on Hover */
.service-card:hover .icon-teal {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg); /* حركة دوران بسيطة للأيقونة */
}

.service-card:hover .icon-pink {
    background: var(--secondary);
    color: white;
    transform: rotateY(180deg);
}

/* 4. Text Content */
.card-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 5. Link Styling */
.card-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.card-link i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.service-card:hover .card-link {
    color: var(--primary);
    gap: 15px; /* تباعد السهم عند الهوفر */
}

/* Mobile Fix */
@media (max-width: 768px) {
    .service-card { padding: 30px 20px; }
    .section-header h2 { font-size: 1.8rem; }
}

/* 1. Background Decor (Blobs) - أشكال خلفية ناعمة */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.blob-1 {
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: var(--secondary); /* Pink */
}

.blob-2 {
    bottom: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: rgba(44, 181, 176, 0.2); /* Teal transparent */
}

.relative-z {
    position: relative;
    z-index: 1; /* لضمان ظهور المحتوى فوق الخلفية */
}

/* 2. Typography Enhancements */
.badge-pill {
    display: inline-block;
    background: rgba(44, 181, 176, 0.1);
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
}

.mb-5 { margin-bottom: 3rem; }

/* 3. Premium Cards Design */
.feature-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* حركة نطاطة خفيفة */
    text-align: center;
    position: relative;
    top: 0;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(44, 181, 176, 0.15);
    border-color: rgba(44, 181, 176, 0.2);
}

/* 4. Icon Wrappers - دوائر الأيقونات */
.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px auto;
    transition: transform 0.4s ease;
}

.icon-teal {
    background: rgba(44, 181, 176, 0.1);
    color: var(--primary);
}

.icon-pink {
    background: rgba(232, 161, 168, 0.2);
    color: #d68a91;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg); /* تكبير ودوران خفيف عند الماوس */
}

/* 5. Card Text */
.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #777;
}

/* 6. Learn More Link */
.learn-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
}

.learn-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.feature-card:hover .learn-more::after {
    width: 100%;
}

/* Stagger Animation Utility */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive Tweaks */
@media (max-width: 768px) {
    .blob { display: none; } /* إخفاء الخلفية الثقيلة في الموبايل للأداء */
    .feature-card { padding: 30px 20px; }
}

/* --- 3D Flip Cards Section --- */

/* --- Premium 3D Flip Cards (Smaller & Slower) --- */

.mission-section {
    background-color: #f8fbfb;
    padding: 80px 0;
}

/* لتوسيط الكروت في حال كانت الشاشة كبيرة */
.centered-grid {
    justify-content: center;
    max-width: 900px; /* تحديد عرض الكونتير ككل */
    margin: 0 auto;
}

/* 1. Container (The Frame) */
.flip-card-container {
    background-color: transparent;
    width: 100%;
    max-width: 350px; /* العرض الأقصى للكارت (أصغر) */
    height: 240px;    /* الارتفاع (أصغر وأرتب) */
    perspective: 1500px; /* عمق ثلاثي الأبعاد */
    cursor: pointer;
    margin: 0 auto; /* توسيط في الموبايل */
}

/* 2. The Flipper (Animation) */
.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    /* الحركة بطيئة (1.2 ثانية) ومنحنى انسيابي */
    transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.1); 
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 16px;
}

/* --- تعديل مهم جداً لحل مشكلة الموبايل --- */

/* 1. الدوران عند إضافة كلاس "flipped" (عن طريق الجافاسكريبت للموبايل) */
.flip-card-container.flipped .flip-card {
    transform: rotateY(180deg);
}

/* 2. الدوران عند الـ Hover (فقط للشاشات التي تدعم الماوس - اللابتوب) */
/* هذا الكود يمنع التداخل في الموبايل */
@media (hover: hover) {
    .flip-card-container:hover .flip-card {
        transform: rotateY(180deg);
    }
}

/* 3. Faces Common Styles */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

/* --- Front Face --- */
.flip-card-front {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
}

/* Icon Styles */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.icon-teal {
    background: rgba(44, 181, 176, 0.1);
    color: var(--primary);
}

.icon-pink {
    background: rgba(232, 161, 168, 0.2);
    color: #d68a91;
}

.flip-card-front h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 700;
}

/* المؤشر الصغير في الأسفل */
.flip-indicator {
    font-size: 0.8rem;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.flip-card-container:hover .flip-indicator {
    color: var(--primary);
}

/* --- Back Face --- */
.flip-card-back {
    color: white;
    transform: rotateY(180deg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Gradients */
.mission-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.vision-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.flip-card-back h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
    position: relative;
    z-index: 2;
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.95);
    position: relative;
    z-index: 2;
}

/* زخرفة في الخلفية */
.bg-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(-15deg);
    z-index: 1;
}


/* --- Premium CTA Section --- */

.cta-wrapper {
    padding: 80px 0;
    background: transparent; /* الخلفية تأتي من الـ Body */
}

/* 1. The Main Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)); /* تدرج أخضر تيل فخم */
    border-radius: 30px;
    padding: 60px;
    position: relative;
    overflow: hidden; /* حتى لا تخرج الزخرفة عن الحدود */
    box-shadow: 0 20px 60px rgba(44, 181, 176, 0.3); /* ظل ملون وناعم */
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

/* 2. Decorative Pattern (الزخرفة الخلفية) */
.cta-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 0%, transparent 20%),
                      radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 20%);
    opacity: 0.6;
    pointer-events: none;
}

/* 3. Text Content */
.cta-content {
    flex: 1;
    max-width: 550px;
    z-index: 2;
    padding-right: 40px;
}

.cta-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* 4. Feature List */
.cta-features {
    margin-bottom: 35px;
    list-style: none;
}

.cta-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
}

.cta-features i {
    color: var(--secondary); /* Pink Checkmark */
    margin-right: 12px;
    font-size: 1.2rem;
}

/* 5. Glowing Button */
.btn-glow {
    background: white;
    color: var(--primary-dark);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: #f8f8f8;
}

/* 6. Image Section */
.cta-image-container {
    flex: 0 0 400px; /* عرض ثابت للصورة */
    position: relative;
    z-index: 2;
}

.floating-img {
    width: 100%;
    border-radius: 20px;
    border: 5px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: rotate(3deg); /* ميلان بسيط للحداثة */
    transition: transform 0.5s ease;
}

.cta-box:hover .floating-img {
    transform: rotate(0deg) scale(1.02); /* استقامة وتكبير عند الماوس */
}

/* 7. Floating Rating Badge */
.float-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    animation: float 3s ease-in-out infinite;
}

.float-badge .stars {
    color: #FFD700; /* Gold */
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.float-badge .text {
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px; /* زيادة مساحة التنفس */
    }

    .cta-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .cta-features {
        display: inline-flex; /* عشان يضلوا تحت بعض بس متمركزين */
        flex-direction: column;
        align-items: flex-start; /* النص يضل لليسار شوي أسهل للقراءة */
        margin: 0 auto 30px;
        text-align: left;
    }

    .cta-image-container {
        flex: auto;
        width: 100%;
        max-width: 280px; /* تصغير الصورة للموبايل */
        margin: 0 auto;
        position: relative; /* ضروري لتموضع الـ badge */
    }
    
    .floating-img { 
        transform: rotate(0); 
        width: 100%;
        border-radius: 20px;
    }
    
    /* --- تعديل الـ Badge للموبايل --- */
    .float-badge {
        left: 50% !important;
        /* الحل السحري: ندمج translateX مع الانيميشن في سطر واحد */
        transform: translateX(-50%) translateY(0);
        bottom: -20px;
        width: max-content;
        padding: 10px 15px;
        animation: floatMobile 3s ease-in-out infinite; /* أنيميشن خاص للموبايل */
    }
}

/* أنيميشن خاص للموبايل يحافظ على التوسط الأفقي */
@keyframes floatMobile {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}


/* --- PREMIUM FOOTER STYLE --- */

.main-footer {
    position: relative;
    background-color: var(--primary-dark); /* خلفية داكنة */
    color: #fff;
    padding-top: 150px; /* مسافة عشان التموج */
    padding-bottom: 30px;
    margin-top: 100px; /* ابعاد الفوتر عن المحتوى اللي قبله */
    font-size: 0.95rem;
}

/* 1. The Wave SVG Styling */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.footer-wave .shape-fill {
    fill: var(--bg); /* لون الخلفية اللي فوق الفوتر (الرمادي الفاتح/الأبيض) */
}

/* 2. Grid Layout */
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr; /* تقسيم الأعمدة */
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--secondary); /* الخط الوردي تحت العناوين */
    margin-top: 8px;
    border-radius: 2px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 3. Brand Column */
.footer-logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-decoration: none;
}

.logo-icon {
    color: var(--secondary);
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    color: #fff;
}

/* 4. Links Styling (Magic Hover) */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary); /* يتغير للوردي */
    transform: translateX(8px); /* يتحرك لليمين */
    text-shadow: 0 0 10px rgba(232, 161, 168, 0.4);
}

/* 5. Newsletter Input */
.newsletter-form {
    position: relative;
    margin-bottom: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 50px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: background 0.3s;
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--secondary);
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.newsletter-form button:hover {
    transform: scale(1.1);
    background: var(--secondary-dark);
}

.contact-mini p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-mini i {
    color: var(--secondary);
}

/* 6. Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 20px;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr; /* عمودين في التابلت */
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr; /* عمود واحد في الموبايل */
        text-align: center;
    }
    
    .footer-col h3::after {
        margin: 8px auto 0; /* توسيط الخط تحت العنوان */
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links a {
        margin: 0 10px;
    }
}

/* --- Modern Glass Parallax Section --- */
.parallax-section {
    position: relative;
    /* صورة خلفية بنمط هادئ أو نسيج (Pattern) لتعطي فخامة */
    background-image: url('https://www.tugraz.at/fileadmin/user_upload/tugrazInternal/News_Stories/TU_Graz_Blog/2022/ISA_Study_life_balance_Miha/Back-to-study-by-hd3dsh-AdobeStock.jpg'); /* صورة جبال PNW شهيرة */    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    padding: 100px 0; /* مساحة كبيرة فوق وتحت */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* هذه الطبقة تغمق الصورة قليلاً ليبرز الكرت الأبيض */
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(44, 181, 176, 0.3); /* لون التركواز الأساسي بشفافية خفيفة */
}

/* --- البطاقة الزجاجية (Glass Card) --- */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95); /* أبيض شبه شفاف */
    padding: 60px 50px;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); /* ظل ناعم وفخم */
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px); /* تأثير الضبابية خلف الكرت */
}

/* تنسيق النصوص داخل البطاقة */
.glass-card .sub-title {
    display: block;
    color: var(--secondary); /* اللون الوردي */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.glass-card h2 {
    color: var(--primary-dark); /* اللون التركواز الغامق - واضح جداً */
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.glass-card p {
    color: #555; /* رمادي غامق للقراءة المريحة */
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* --- الأزرار --- */
.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* زر أساسي */
.glass-card .btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(44, 181, 176, 0.3);
    border: none;
}

.glass-card .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* زر ثانوي (Outline) */
.glass-card .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 13px 35px;
    border-radius: 50px;
    font-weight: 700;
}

.glass-card .btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll; /* أداء أفضل للموبايل */
        padding: 60px 20px;
    }
    .glass-card {
        padding: 40px 20px;
    }
    .glass-card h2 {
        font-size: 2rem;
    }
}

/* =========================================
   ABOUT PAGE - STUNNING REDESIGN
   ========================================= */

/* 1. تصميم الهيدر الخاص بالصفحة */
.page-header {
    background: linear-gradient(135deg, #f0fdfc 0%, #fff0f1 100%); /* تدرج ناعم جداً بألوان الهوية */
    padding: 120px 20px 80px;
    margin-bottom: 80px;
    border-radius: 0 0 50% 50% / 40px; /* انحناء بسيط من الأسفل */
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* خط زخرفي تحت العنوان */
.page-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 2. سكشن القصة (Our Story) & Image Stack */
.image-stack {
    position: relative;
    width: 100%;
    height: 500px; /* ارتفاع ثابت للحاوية */
}

.image-stack img {
    position: absolute;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: cover;
}

/* الصورة الخلفية (المعلم) */
.img-back {
    width: 70%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.9;
}

/* الصورة الأمامية (الطالب) */
.img-front {
    width: 65%;
    height: 70%;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 10px solid var(--white); /* إطار أبيض عريض للفصل */
}

/* حركة عند مرور الماوس على الصور */
.image-stack:hover .img-front {
    transform: scale(1.05) translate(-10px, -10px);
    z-index: 3;
}
.image-stack:hover .img-back {
    transform: scale(0.95);
    filter: grayscale(100%); /* تأثير فني: الخلفية تصبح رمادية */
}

/* تنسيق النصوص في سكشن القصة */
.content-padding {
    padding-left: 40px;
}

.sub-title {
    color: var(--secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.methodology-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-left: 5px solid transparent;
    transition: all 0.3s ease;
}

.method-item:hover {
    transform: translateX(10px);
    border-left-color: var(--primary); /* يظهر خط ملون عند التحويم */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.method-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(44, 181, 176, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.method-item span {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

/* 3. سكشن القيم (Values Cards) - خرافي */
.value-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* تأثير التدرج عند التحويم */
.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0;
    z-index: 1;
    transition: all 0.4s ease;
    clip-path: circle(0% at 50% 100%); /* تأثير دائرة تتوسع */
}

.value-card:hover::before {
    opacity: 1;
    clip-path: circle(150% at 50% 100%);
}

.value-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(44, 181, 176, 0.3);
}

/* المحتوى داخل الكرت */
.value-card .icon-box, 
.value-card h3, 
.value-card p {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.value-card .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: rgba(232, 161, 168, 0.15); /* خلفية وردية فاتحة */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* عند التحويم، يصبح النص أبيض */
.value-card:hover h3, 
.value-card:hover p {
    color: #fff;
}

.value-card:hover .icon-box {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: rotateY(180deg); /* حركة دوران للأيقونة */
}

/* --- Responsive Styles for About Page --- */
@media (max-width: 992px) {
    .image-stack {
        height: 400px;
        margin-bottom: 50px;
    }
    .content-padding {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .page-header h1 { font-size: 2.5rem; }
    
    .image-stack {
        height: 350px; /* تصغير الارتفاع للموبايل */
    }
    .img-back { width: 85%; }
    .img-front { width: 80%; }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr; /* تحويل الشبكة لعمود واحد */
        gap: 40px;
    }
}

/* =========================================
   DONATE / SPONSORSHIP PAGE
   ========================================= */

/* 1. Hero Section */
.donate-hero {
    background: linear-gradient(135deg, rgba(44, 181, 176, 0.05) 0%, rgba(232, 161, 168, 0.1) 100%);
    padding: 100px 20px 60px;
    border-radius: 0 0 50px 50px;
    margin-bottom: 60px;
}

.donate-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.donate-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* 2. Impact Section (Icons) */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 80px;
}

.impact-item {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.impact-item:hover {
    transform: translateY(-5px);
}

.impact-icon {
    width: 70px; height: 70px;
    background: rgba(44, 181, 176, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.impact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 3. Donation Tiers (Pricing Cards Style) */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center; /* عشان الكرت المميز يكون أطول */
    margin-bottom: 80px;
}

.tier-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tier-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* تمييز الكرت الأوسط (Popular) */
.tier-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05); /* أكبر قليلاً */
    z-index: 2;
    box-shadow: 0 15px 40px rgba(44, 181, 176, 0.15);
}

.tier-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 20px;
}

.tier-header h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-header .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.tier-header .frequency {
    font-size: 0.9rem;
    color: #999;
}

.tier-features {
    text-align: left;
    margin-bottom: 30px;
}

.tier-features li {
    margin-bottom: 15px;
    color: #555;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tier-features li i {
    color: var(--secondary); /* علامة الصح وردية */
    font-size: 0.9rem;
}

.tier-btn {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    font-weight: 700;
}

/* 4. Custom Amount */
.custom-donation {
    background: #fff;
    max-width: 600px;
    margin: 0 auto 80px;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.custom-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.custom-input-group span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text);
}

.custom-input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1.2rem;
    outline: none;
    transition: 0.3s;
}

.custom-input-group input:focus {
    border-color: var(--primary);
}

/* 5. Hadith Quote */
.hadith-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 40px;
    background: linear-gradient(to right, #f8f9fa, #fff, #f8f9fa);
    border-radius: 20px;
    position: relative;
}

.hadith-box i {
    font-size: 2rem;
    color: var(--secondary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.hadith-box p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.8;
}

.hadith-box span {
    font-weight: 700;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .tier-card.popular { transform: scale(1); }
    .tier-card.popular:hover { transform: translateY(-5px); }
    .custom-input-group { flex-direction: column; }
    .custom-input-group button { width: 100%; }
}

/* --- الهيدر الأساسي --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent; /* بكون شفاف في البداية */
}

/* --- الحركة "الخرافية" ( Floating Capsule ) --- */
header.header-active {
    top: 15px; /* بينزل شوي عن السقف عشان يبين طايف */
    width: 95%; /* بيصغر عرضه شوي */
    left: 2.5%; /* عشان يتوسط */
    background: rgba(255, 255, 255, 0.85); /* لون أبيض شفاف زجاجي */
    backdrop-filter: blur(15px); /* تغبيش خلف الهيدر */
    border-radius: 50px; /* بيصير دائري الأطراف كأنه كبسولة */
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* ظل ناعم جداً */
    border: 1px solid rgba(255, 255, 255, 0.3); /* حدود زجاجية */
}

/* تنسيق اللوجو عشان يضل ثابت ومرتب */
.logo img {
    transition: transform 0.4s ease;
}

header.header-active .logo img {
    transform: scale(0.85); /* تصغير بسيط جداً غير مزعج للوجو */
}

/* تأكد إن الروابط تضل واضحة */
header.header-active .nav-link {
    color: var(--primary-dark);
}

/* --- تحسين سكشن Our Story للموبايل --- */

@media (max-width: 768px) {
    /* جعل العناصر فوق بعضها */
    .grid-2.align-center {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    /* ضبط حاوية الصور */
    .image-stack {
        position: relative;
        height: 300px; /* تحديد ارتفاع ثابت للموبايل */
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .img-back, .img-front {
        width: 80% !important; /* تصغير حجم الصور قليلاً */
        position: absolute;
    }

    .img-back {
        top: 0;
        left: 0;
    }

    .img-front {
        top: 40px; /* تقليل المسافة بين الصور */
        right: 0;
        left: auto;
    }

    /* ضبط النصوص */
    .content-padding {
        padding: 0 10px;
        text-align: center; /* توسيط النص للموبايل أجمل */
    }

    .content-padding h2 {
        font-size: 2rem; /* تصغير العنوان قليلاً */
        margin-bottom: 20px;
    }

    /* ضبط قائمة المنهجية لتكون سهلة القراءة */
    .methodology-list {
        display: grid;
        grid-template-columns: 1fr; /* عنصر واحد في كل سطر */
        gap: 15px;
        text-align: left; /* العودة للمحاذاة اليسرى داخل القائمة */
        margin-top: 30px;
    }

    .method-item {
        justify-content: flex-start;
        background: rgba(44, 181, 176, 0.05); /* إعطاء خلفية خفيفة لكل عنصر */
        padding: 15px;
        border-radius: 12px;
    }
}

/* صندوق الاعتمادات (Credentials) */
.credential-box {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.cred-item {
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(44, 181, 176, 0.1);
}

/* صندوق الاقتباس في سكشن الميزة */
.quote-box {
    background: var(--primary);
    color: white;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-box i {
    font-size: 2.5rem;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
}

.quote-box p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    z-index: 1;
}

/* تحسين أيقونات التخصصات */
.icon-teal { color: var(--primary); background: rgba(44, 181, 176, 0.1); }
.icon-pink { color: var(--secondary); background: rgba(232, 161, 168, 0.1); }


/* تصميم الـ Badge الشخصي */
.personal-badge {
    background: rgba(44, 181, 176, 0.1);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 25px;
    border-left: 4px solid var(--primary);
}

/* سكشن الميزة (Advantage Section) */
.advantage-section {
    background: linear-gradient(135deg, #f8fcfc 0%, #f1f7f7 100%);
    padding: 80px 0;
    margin: 40px 0;
}

.glass-box {
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(44, 181, 176, 0.1);
}

.sub-badge {
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.advantage-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.adv-item {
    background: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.adv-item i {
    color: var(--primary);
}

/* كروت المسارات (Track Cards) */
.track-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.track-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(44, 181, 176, 0.1);
}

.track-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

