/* =========================================================
   أبواب الخير — Custom Stylesheet
   Font: Cairo (Google Fonts)
   Colors: Emerald Green + Gold
   ========================================================= */

/* ── Variables ─────────────────────────────────────────── */
:root {
    --green-dark:   #1a5c3a;
    --green-main:   #2d7a52;
    --green-light:  #4caf81;
    --green-pale:   #e8f5ee;
    --gold-main:    #c9a227;
    --gold-light:   #f0c940;
    --gold-pale:    #fdf8e1;
    --text-dark:    #1a1a2e;
    --text-muted:   #6c757d;
    --white:        #ffffff;
    --shadow-sm:    0 2px 12px rgba(0,0,0,.08);
    --shadow-md:    0 6px 30px rgba(0,0,0,.13);
    --radius:       12px;
    --radius-lg:    20px;
    --transition:   all .3s ease;
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: #f9fbf9;
    direction: rtl;
    line-height: 1.8;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--green-pale); }
::-webkit-scrollbar-thumb { background: var(--green-main); border-radius: 4px; }

/* ── Navbar ────────────────────────────────────────────── */
#mainNav {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
    box-shadow: 0 3px 20px rgba(0,0,0,.25);
    padding: .75rem 0;
    z-index: 1050;
}

.brand-icon {
    width: 46px; height: 46px;
    background: var(--gold-main);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(201,162,39,.4);
}

.brand-name {
    font-size: 1.3rem; font-weight: 900;
    color: var(--white); line-height: 1.1;
    letter-spacing: .5px;
}

.brand-tagline {
    font-size: .72rem; font-weight: 400;
    color: rgba(255,255,255,.75);
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,.90) !important;
    font-weight: 600; font-size: .93rem;
    padding: .4rem .85rem !important;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold-light) !important;
    background: rgba(255,255,255,.1);
}

.btn-donate {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-light));
    color: var(--text-dark) !important;
    font-weight: 700; font-size: .9rem;
    border: none; border-radius: 30px;
    padding: .45rem 1.4rem;
    box-shadow: 0 4px 15px rgba(201,162,39,.4);
    transition: var(--transition);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,162,39,.5);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--green-dark) 0%, #0d3320 50%, #1a4a2e 100%);
    position: relative;
    display: flex; align-items: center;
    overflow: hidden;
}

.hero-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(201,162,39,.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(77,175,129,.12) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-block;
    background: rgba(201,162,39,.2);
    border: 1px solid rgba(201,162,39,.4);
    color: var(--gold-light);
    padding: .3rem 1rem;
    border-radius: 30px;
    font-size: .85rem; font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 3px 20px rgba(0,0,0,.3);
}

.hero-title span { color: var(--gold-main); }

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,.85);
    max-width: 550px;
    line-height: 2;
}

.hero-verse {
    background: rgba(255,255,255,.05);
    border-right: 3px solid var(--gold-main);
    padding: .8rem 1.2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: rgba(255,255,255,.9);
    font-size: .95rem;
    font-style: italic;
    margin: 1.5rem 0;
}

.hero-verse cite { display: block; font-size: .8rem; color: var(--gold-light); margin-top: .3rem; font-style: normal; }

.hero-stats {
    display: flex; gap: 2rem; flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-item .number {
    display: block;
    font-size: 2.2rem; font-weight: 900;
    color: var(--gold-main);
    line-height: 1;
}

.hero-stat-item .label {
    display: block;
    font-size: .8rem;
    color: rgba(255,255,255,.7);
    margin-top: .2rem;
}

.hero-image-wrap {
    position: relative; z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-18px); }
}

.hero-card-float {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    color: var(--white);
}

.hero-card-float i {
    font-size: 5rem;
    color: var(--gold-main);
    margin-bottom: 1rem;
    display: block;
}

/* ── Scroll Down Arrow ─────────────────────────────────── */
.scroll-arrow {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.5);
    font-size: 1.8rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Section Titles ────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }

.section-badge {
    display: inline-block;
    background: var(--green-pale);
    color: var(--green-main);
    padding: .3rem 1.1rem;
    border-radius: 30px;
    font-size: .8rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: .75rem;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--gold-main), var(--green-main));
    border-radius: 2px;
    margin: .6rem auto 0;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ── Achievement Cards ─────────────────────────────────── */
.section-achievements { background: var(--white); padding: 5rem 0; }

.achievement-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,.05);
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.achievement-img {
    width: 100%; height: 210px;
    object-fit: cover;
}

.achievement-img-placeholder {
    width: 100%; height: 210px;
    background: linear-gradient(135deg, var(--green-pale), var(--green-main));
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; color: var(--white);
}

.achievement-body { padding: 1.4rem; }

.achievement-date {
    display: inline-flex; align-items: center; gap: .3rem;
    background: var(--green-pale);
    color: var(--green-main);
    font-size: .78rem; font-weight: 700;
    padding: .25rem .75rem;
    border-radius: 30px;
    margin-bottom: .75rem;
}

.achievement-title {
    font-size: 1.05rem; font-weight: 700;
    color: var(--text-dark);
    margin-bottom: .5rem;
}

.achievement-desc {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Founder Section ───────────────────────────────────── */
.section-founder {
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--gold-pale) 100%);
    padding: 5rem 0;
}

.founder-img-wrap {
    position: relative;
}

.founder-img {
    width: 300px; height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-md);
}

.founder-placeholder {
    width: 300px; height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem; color: var(--white);
    border: 8px solid var(--white);
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.founder-badge-card {
    position: absolute;
    bottom: 10px; left: 50%;
    transform: translateX(-50%);
    background: var(--gold-main);
    color: var(--white);
    padding: .5rem 1.2rem;
    border-radius: 30px;
    font-size: .85rem; font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.founder-name {
    font-size: 1.9rem; font-weight: 900;
    color: var(--green-dark);
}

.founder-role {
    color: var(--gold-main);
    font-weight: 700; font-size: 1rem;
    margin-bottom: 1rem;
}

.founder-bio {
    color: #444;
    line-height: 2;
    font-size: 1rem;
}

/* ── Service Cards (Appeals / Cases) ───────────────────── */
.section-services { padding: 5rem 0; background: var(--white); }

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover { border-color: var(--green-main); transform: translateY(-6px); box-shadow: var(--shadow-md); }

.service-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.2rem;
}

.service-icon.green { background: var(--green-pale); color: var(--green-main); }
.service-icon.gold  { background: var(--gold-pale);  color: var(--gold-main); }

.service-card h3 {
    font-size: 1.3rem; font-weight: 800;
    color: var(--text-dark); margin-bottom: .75rem;
}

.service-card p {
    color: var(--text-muted); line-height: 1.8; font-size: .95rem;
}

/* ── Donation Section ──────────────────────────────────── */
.section-donation {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0a2e1a 100%);
    padding: 5rem 0;
    position: relative; overflow: hidden;
}

.section-donation::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.section-donation .section-title { color: var(--white); }
.section-donation .section-title::after { background: linear-gradient(90deg, var(--gold-main), var(--gold-light)); }
.section-donation .section-badge { background: rgba(201,162,39,.2); color: var(--gold-light); }
.section-donation .section-desc { color: rgba(255,255,255,.75); }

.donation-card {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.donation-card:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-6px);
}

.donation-logo {
    height: 56px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.donation-card h4 { color: var(--white); font-weight: 800; margin-bottom: .5rem; }
.donation-card p  { color: rgba(255,255,255,.7); font-size: .93rem; line-height: 1.8; }

.donation-method-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--gold-main); color: var(--text-dark);
    padding: .3rem .9rem; border-radius: 30px;
    font-size: .8rem; font-weight: 700;
    margin-bottom: .75rem;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    color: var(--white) !important;
    border: none; border-radius: 30px;
    padding: .65rem 2rem;
    font-weight: 700; font-size: .95rem;
    box-shadow: 0 4px 15px rgba(45,122,82,.35);
    transition: var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(45,122,82,.45);
    color: var(--white) !important;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-light));
    color: var(--text-dark) !important;
    border: none; border-radius: 30px;
    padding: .65rem 2rem;
    font-weight: 700; font-size: .95rem;
    box-shadow: 0 4px 15px rgba(201,162,39,.35);
    transition: var(--transition);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(201,162,39,.5);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: 30px;
    padding: .63rem 2rem;
    font-weight: 700; font-size: .95rem;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--white);
}

/* ── Forms ─────────────────────────────────────────────── */
.form-section { padding: 5rem 0; background: var(--white); }

.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.form-card-header {
    background: linear-gradient(135deg, var(--green-dark), var(--green-main));
    padding: 2rem;
    color: var(--white);
    text-align: center;
}

.form-card-header h2 { font-weight: 900; margin: 0; }
.form-card-header p  { color: rgba(255,255,255,.8); margin: .4rem 0 0; }

.form-card-body { padding: 2.5rem; }

.form-label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: .93rem;
    margin-bottom: .4rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--radius);
    padding: .65rem 1rem;
    font-family: 'Cairo', sans-serif;
    font-size: .93rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--green-main);
    box-shadow: 0 0 0 .2rem rgba(45,122,82,.15);
}

.form-note {
    font-size: .82rem;
    color: var(--text-muted);
    background: var(--green-pale);
    border-right: 3px solid var(--green-main);
    padding: .6rem .9rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-top: .4rem;
}

textarea.form-control { resize: vertical; min-height: 120px; }

/* ── File Upload ───────────────────────────────────────── */
.file-upload-area {
    border: 2px dashed #ced4da;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fafafa;
}

.file-upload-area:hover, .file-upload-area.dragover {
    border-color: var(--green-main);
    background: var(--green-pale);
}

.file-upload-area i { font-size: 2rem; color: var(--green-main); }
.file-upload-area input[type="file"] { display: none; }
.file-upload-area .upload-text { font-size: .9rem; color: var(--text-muted); margin-top: .5rem; }

/* ── Alerts ─────────────────────────────────────────────── */
.alert-success-custom {
    background: #d1fae5; color: #065f46;
    border: 1px solid #6ee7b7;
    border-radius: var(--radius); padding: 1rem 1.5rem;
    display: flex; align-items: flex-start; gap: .75rem;
    font-weight: 600;
}

.alert-danger-custom {
    background: #fee2e2; color: #991b1b;
    border: 1px solid #fca5a5;
    border-radius: var(--radius); padding: 1rem 1.5rem;
    display: flex; align-items: flex-start; gap: .75rem;
    font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--green-dark);
    color: rgba(255,255,255,.85);
    padding: 4rem 0 1.5rem;
}

.footer-brand { font-size: 1.5rem; font-weight: 900; color: var(--white); }
.footer-tagline { color: var(--gold-light); font-size: .85rem; }
.footer-desc { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.9; margin-top: .75rem; }

.footer-title {
    color: var(--gold-main);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -6px; right: 0;
    width: 30px; height: 2px;
    background: var(--gold-main);
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-links a:hover { color: var(--gold-light); padding-right: 4px; }

.footer-contact-item {
    display: flex; align-items: center; gap: .7rem;
    color: rgba(255,255,255,.7); font-size: .9rem;
    margin-bottom: .6rem;
}

.footer-contact-item i { color: var(--gold-main); width: 18px; }

.footer-divider { border-color: rgba(255,255,255,.12); margin: 2rem 0 1rem; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: .5rem;
    font-size: .83rem; color: rgba(255,255,255,.5);
}

.social-links { display: flex; gap: .6rem; }
.social-links a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7); font-size: .95rem;
    transition: var(--transition);
}
.social-links a:hover { background: var(--gold-main); color: var(--white); transform: translateY(-2px); }

/* ── Achievements Page ─────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--green-dark), var(--green-main));
    padding: 5rem 0 3rem;
    text-align: center; color: var(--white);
}

.page-hero h1 { font-size: 2.5rem; font-weight: 900; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 1.05rem; }

.breadcrumb-custom {
    background: rgba(255,255,255,.12);
    padding: .5rem 1rem;
    border-radius: 30px;
    display: inline-flex;
    gap: .5rem; align-items: center;
    font-size: .85rem;
}

.breadcrumb-custom a { color: var(--gold-light); }
.breadcrumb-custom span { color: rgba(255,255,255,.5); }

/* ── Utility ───────────────────────────────────────────── */
.text-green { color: var(--green-main) !important; }
.text-gold  { color: var(--gold-main)  !important; }
.bg-green-pale { background: var(--green-pale) !important; }

.divider-wave {
    overflow: hidden;
    line-height: 0;
}

.divider-wave svg { display: block; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-stats { gap: 1.2rem; }
    .hero-stat-item .number { font-size: 1.8rem; }
    .founder-img, .founder-placeholder { width: 220px; height: 220px; }
    .form-card-body { padding: 1.5rem; }
}
