/* --- الإعدادات العامة والخطوط --- */
a, body, h1, h2, h3 {
    font-family: Cairo, sans-serif;
}

li, p {
    font-family: Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 120px;
}

/* --- الهوامش عند التنقل (Scroll Margin) --- */
#partners {
    scroll-margin-top: 160px;
}

#Contact {
    scroll-margin-top: 200px;
}

/* --- أزرار التبرع (Donate Buttons) --- */
.donate-btn, 
.donate-float-btn {
    background-color: #f0cc8e;
    text-decoration: none;
    font-weight: 700;
}

.donate-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #000;
    font-size: 18px;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: transform .3s, box-shadow .3s, opacity .5s;
    animation: pulse 2s infinite;
}

.donate-float-btn.show {
    opacity: 1;
    pointer-events: auto;
}

.donate-float-btn i {
    font-size: 22px;
    color: red;
}

.donate-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #f0cc8e;
}

.donate-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.donate-btn {
    font-size: 14px;
    padding: 8px 20px;
    color: #000;
    border-radius: 25px;
    border: 3px solid #f0cc8e;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 0 20px #f0cc8e, 0 0 40px rgba(240,204,142,.8), 0 0 60px rgba(240,204,142,.6);
    animation: pulseGlow 2s ease-in-out infinite;
    transition: .3s;
}

.donate-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 40px #f0cc8e, 0 0 80px rgba(240,204,142,.95), 0 0 120px rgba(240,204,142,.85);
}

/* --- قسم الهيرو (Hero Section) --- */
.hero-section {
    position: relative;
    background-image: url('img/5نهائي.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    margin-top: 36px;
    box-sizing: border-box;
    border-radius: 20px;
    overflow: hidden;
}

.header-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 86%;
    margin: 0;
    color: #000;
    font-size: 32px;
    line-height: 1.2;
    text-align: left;
    word-break: break-word;
    white-space: normal;
    z-index: 5;
}

/* --- قسم فريق العمل (Team Section) --- */
.team-section {
    text-align: center;
    padding: 30px 20px;
    background: #f4f5f6;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
    margin: 20px auto;
    max-width: 1150px;
}

.partners-section h2, 
.team-section h2 {
    font-size: 30px;
    margin-bottom: 50px;
    position: relative;
    top: -30px;
    font-weight: 700;
    background: linear-gradient(90deg, #000, #000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.team-card {
    background: #fff;
    border-radius: 20px;
    padding: 50px 20px 20px;
    width: 280px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    transition: transform .8s, opacity .8s, box-shadow .4s;
    position: relative;
    overflow: visible;
    opacity: 0;
    transform: translateY(50px);
}

.team-card.show {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

/* 🛠️ تعديل الإطار الخارجي للصورة عشان تطلع دائرية تماماً 🛠️ */
.team-img {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;         /* عرض ثابت ومحدد */
    height: 120px;        /* ارتفاع ثابت مساوي للعرض تماماً */
    border-radius: 50%;   /* إجبار الإطار على أن يكون دائري */
    overflow: hidden;     /* إخفاء أي أجزاء من الصورة تخرج عن الدائرة */
    border: 4px solid #f0cc8e;
    background: #fff;
}

/* 🛠️ تعديل الصورة نفسها لتملأ الدائرة بدون تمطيط 🛠️ */
.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* قص الزوائد تلقائياً والمحافظة على أبعاد الصورة الأصلية */
    object-position: center; /* تمركز الصورة في المنتصف */
    transition: transform .3s;
    border-radius: 0;     /* تصفير بوردر الصورة لأن الإطار الخارجي دائري بالفعل */
    border: none;         /* حذف البوردر القديم من الصورة ونقله للإطار الخارجي */
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.team-info {
    margin-top: 70px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.team-info h3 {
    white-space: nowrap;
    text-align: center;
    margin: 0 auto;
}

.team-card h3 {
    margin: 0;
    font-size: 20px;
    color: #000;
}

.team-card p {
    font-size: 15px;
    color: #555;
    margin: 0;
}

/* --- روابط السوشيال ميديا للشركاء وفريق العمل --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    font-size: 20px;
    color: #555;
    transition: color .3s, transform .3s;
}

.social-links a.fb:hover {
    color: #3b5998;
    transform: scale(1.2);
}

.social-links a.ig:hover {
    color: #e4405f;
    transform: scale(1.2);
}

/* --- قسم الشركاء (Partners Section) --- */
.partners-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px;
    background: #f5eee3;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
    margin: 30px auto;
    max-width: 1200px;
    transition: transform .2s, box-shadow .2s;
}

.partners-section::before {
    content: "";
    position: absolute;
    bottom: 50%;
    left: -100%;
    width: 300%;
    height: 20px;
    background: #f0c080;
    border-radius: 50%;
    transform: rotate(0);
    animation: waveMove 4s linear infinite;
    clip-path: polygon(0% 50%, 10% 40%, 20% 60%, 30% 40%, 40% 60%, 50% 40%, 60% 60%, 70% 40%, 80% 60%, 90% 40%, 100% 50%);
}

.partners-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.partners-slider {
    overflow: hidden;
    width: 100%;
}

.partners-track {
    display: flex;
    gap: 60px;
    animation: slide 20s linear infinite, fadeIn 1.5s forwards;
    opacity: 0;
}

.partners-track .partner-logo {
    flex-shrink: 0;
}

.partner-logo img {
    max-height: 120px;
    width: auto;
    display: block;
    cursor: pointer;
    transition: transform .2s;
}

.partner-logo a {
    display: inline-block;
    transition: transform .2s;
}

.partner-logo a:hover {
    transform: scale(.95);
}

.partner-logo a:active {
    transform: scale(.9);
}

.partner-logo:hover img, 
.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

/* --- قسم الإنجازات (Achievements Section) --- */
.achievements-section {
    background: linear-gradient(135deg, #bdb8b1, #ecd9b8, #f1ece5, #e3d9c9);
    background-size: 400% 400%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 60px;
    animation: gradientMove 15s infinite;
}

.achievements-section .row > [class*=col-] {
    margin-bottom: 60px;
    padding-left: 30px;
    padding-right: 30px;
}

.achievements-section h2 {
    margin-bottom: 50px;
    font-size: 32px;
    font-weight: 700;
}

.achievements-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.achievement-card {
    position: relative;
    text-align: center;
    overflow: hidden;
    background: #fff;
    border-radius: 25px;
    padding: 15px 10px;
    width: 140px;
    height: 260px;
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.achievement-card .icon i {
    font-size: 3rem;
    margin-bottom: 0;
}

.achievement-card .counter {
    font-size: 28px;
    font-weight: 700;
    color: #f0cc8e;
    margin: 0;
}

.achievement-card p {
    font-size: 20px;
    color: #444;
    margin: 0;
}

/* --- شاشات الميديا ورسائل التجاوب (Media Queries) --- */
@media (max-width: 768px) {
    .donate-float-btn {
        font-size: 16px;
        padding: 12px 20px;
        bottom: 15px;
        right: 15px;
    }
    
    .donate-float-btn i {
        font-size: 20px;
    }
    
    .hero-section {
        height: 200px;
    }
    
    .header-text {
        font-size: 28px;
    }
    
    .donate-container {
        bottom: auto;
        top: 90%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .donate-btn {
        font-size: 12px;
        padding: 6px 12px;
        animation: pulseGlowMobile 2s ease-in-out infinite;
    }
    
    .partners-track {
        gap: 20px;
    }
    
    .partner-logo img {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        background-size: cover;
        background-position: center;
        padding: 0 15px;
    }
    
    .header-text {
        font-size: 15px !important;
        padding: 3px !important;
        top: 50% !important;
    }
}

/* --- الأنيميشن (Keyframes) --- */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(240,204,142,.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px #f0cc8e;
    }
}

@keyframes pulseGlowMobile {
    0%, 100% {
        transform: translate(-50%, -50%) scale(.8);
        box-shadow: 0 0 15px rgba(240,204,142,.9), 0 0 30px rgba(240,204,142,.7), 0 0 45px rgba(240,204,142,.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(.88);
        box-shadow: 0 0 25px #f0cc8e, 0 0 50px rgba(240,204,142,.9), 0 0 75px rgba(240,204,142,.7);
    }
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%);
    }
}

@keyframes slide {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}