@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
    --emerald-dark: #093726;
    --emerald-primary: #0F5132;
    --emerald-medium: #15803D;
    --emerald-light: #22C55E;
    --emerald-soft: #ECFDF5;
    --gold-primary: #D4AF37;
    --gold-dark: #A17D19;
    --gold-light: #FDE047;
    --gold-bg: #FEFCE8;
    --body-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 81, 50, 0.08);
    --shadow-lg: 0 20px 35px -10px rgba(15, 81, 50, 0.15);
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Navbar Customization */
.top-announcement-bar {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.altouba-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar-brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding-right: 0;
}

.brand-logo-img {
    height: 85px;
    max-height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18));
    transition: transform 0.3s ease;
}
.brand-logo-img:hover {
    transform: scale(1.06);
}

.brand-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.6rem;
    box-shadow: 0 4px 10px rgba(15, 81, 50, 0.2);
    border: 1px solid var(--gold-primary);
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--emerald-dark);
    margin: 0;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--gold-dark);
    font-weight: 600;
    margin: 0;
}

/* Primary Button Styling */
.btn-emerald {
    background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-medium));
    color: #FFFFFF;
    border: none;
    font-weight: 700;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(15, 81, 50, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-emerald:hover {
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald-primary));
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 81, 50, 0.35);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #FFFFFF;
    border: none;
    font-weight: 700;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-dark), #856404);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero-banner {
    position: relative;
    background: linear-gradient(145deg, #072B1E 0%, #0F5132 50%, #15803D 100%);
    color: #FFFFFF;
    padding: 4.5rem 0 5.5rem 0;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.8;
}

.license-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--gold-light);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #E2E8F0;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Progress Glass Card */
.progress-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: var(--text-dark);
}

.progress-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--emerald-dark);
}

.progress-bar-custom {
    height: 22px;
    background-color: #E2E8F0;
    border-radius: 50px;
    overflow: hidden;
    margin: 1.2rem 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--emerald-light));
    border-radius: 50px;
    transition: width 1.5s ease-in-out;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: var(--body-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--emerald-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Statistics Counter Section */
.counter-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--emerald-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.counter-icon {
    width: 70px;
    height: 70px;
    background: var(--emerald-soft);
    color: var(--emerald-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.2rem auto;
}

.counter-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--emerald-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.counter-unit {
    font-size: 0.9rem;
    color: var(--gold-dark);
    font-weight: 700;
}

/* Achievements Card */
.achievement-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-primary), var(--emerald-primary));
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.4);
}

.achievement-icon-wrapper {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--emerald-soft), #DCFCE7);
    color: var(--emerald-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.achievement-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--emerald-dark);
    margin: 0;
}

.achievement-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Donation Card Section */
.donation-box {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.amount-btn-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    .amount-btn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.btn-amount-chip {
    background: var(--body-bg);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 0.8rem 0.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--emerald-dark);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-amount-chip.active, .btn-amount-chip:hover {
    background: var(--emerald-soft);
    border-color: var(--emerald-primary);
    color: var(--emerald-primary);
}

/* BenefitPay QR Box */
.benefit-qr-container {
    background: linear-gradient(145deg, #F8FAFC, #EFF6FF);
    border: 2px dashed var(--emerald-primary);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
}

.benefit-qr-img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #FFFFFF;
    padding: 8px;
}

/* Bank Account Card */
.bank-info-card {
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald-primary));
    color: #FFFFFF;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.iban-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 12px 18px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 1.15rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
    margin-top: 1rem;
}

/* Footer Styling */
.altouba-footer {
    background: #031B12;
    color: #FFFFFF !important;
    padding: 4rem 0 2rem 0;
    border-top: 4px solid var(--gold-primary);
}

.altouba-footer p, 
.altouba-footer li, 
.altouba-footer span, 
.altouba-footer div,
.altouba-footer small {
    color: #F8FAFC !important;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.7;
}

.footer-title {
    color: #FDE047 !important;
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-link {
    color: #FFFFFF !important;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #FDE047 !important;
    padding-right: 5px;
}

/* Sticky Bottom Mobile Bar */
.sticky-mobile-donate {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    z-index: 1050;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

/* Custom Yearly Achievements Table Styling */
.yearly-achievements-table {
/* Achievements Section Styles */
.achievement-header-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    color: #854d0e;
    border: 1px solid #facc15;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(250, 204, 21, 0.2);
}

.achievements-card {
    border-top: 4px solid #d4af37 !important;
    box-shadow: 0 10px 30px rgba(7, 43, 30, 0.08) !important;
    background-color: #ffffff;
}

.yearly-achievements-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.yearly-achievements-table thead th {
    background: linear-gradient(135deg, #072B1E 0%, #0F5132 100%) !important;
    color: #FDE047 !important;
    font-size: 1.15rem;
    font-weight: 900;
    padding: 1.1rem 1.5rem;
    border: none;
    letter-spacing: 0.3px;
}

.yearly-achievements-table tbody tr {
    transition: all 0.25s ease;
    border-bottom: 1px solid #f1f5f9;
}

.yearly-achievements-table tbody tr:hover {
    background-color: #f0fdf4 !important;
}

.yearly-achievements-table tbody tr:nth-child(even) {
    background-color: #fafdfc;
}

.yearly-achievements-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.yearly-achievements-table tbody tr.row-highlight {
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-right: 5px solid #d4af37 !important;
}

.year-pill-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0F5132, #15803D);
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 6px 18px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(15, 81, 50, 0.2);
    border: 1px solid #059669;
    direction: ltr;
}

.year-pill-badge.highlight {
    background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35);
    border: 1px solid #f59e0b;
    font-weight: 900;
}

/* Rank Badges - Unified Harmonic Palette */
.rank-gold {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e !important;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 800;
    border: 1px solid #f59e0b;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.rank-silver {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #334155 !important;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 800;
    border: 1px solid #cbd5e1;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.12);
}

.rank-top-output {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #14532d !important;
    font-weight: 900;
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid #22c55e;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.rank-icon-gold {
    color: #eab308;
    font-size: 1.25rem;
    vertical-align: middle;
}

.rank-icon-silver {
    color: #64748b;
    font-size: 1.25rem;
    vertical-align: middle;
}

.rank-icon-emerald {
    color: #10b981;
    font-size: 1.25rem;
    vertical-align: middle;
}

.rank-icon-top {
    color: #16a34a;
    font-size: 1.3rem;
    vertical-align: middle;
}

