/* ================================================
   üMiT Charity Foundation – Main Stylesheet
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #EFF6FF;
    --text: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --card-bg: #FFFFFF;
    --bg: #FFFFFF;
    --cream: #F8F5F0;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: 0.25s ease;
    --font: 'Inter', system-ui, sans-serif;
    --header-h: 72px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── UTILITIES ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-auto { margin-top: auto; }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 12px; font-weight: 700;
    font-size: 14px; cursor: pointer; border: none; font-family: var(--font);
    transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.4); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-sm { padding: 8px 20px; font-size: 13px; background: transparent; color: var(--primary); border: 2px solid var(--primary); border-radius: 8px; font-weight: 700; cursor: pointer; font-family: var(--font); transition: all var(--transition); }
.btn-outline-sm:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── HEADER ─── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h); background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: var(--text); }
.logo-box { width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; }
.logo-white .logo-text { color: #fff; }
.logo-white .logo-box { background: rgba(255,255,255,0.2); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); background: none; border: none; cursor: pointer; font-family: var(--font); transition: all var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }

/* Dropdown nav */
.nav-dropdown-wrap, .donate-dropdown-wrap { position: relative; }
.nav-dropdown, .donate-dropdown {
    display: none; position: absolute; top: 100%; left: 0; background: #fff;
    border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    min-width: 180px; padding: 8px; z-index: 200;
}
.nav-dropdown-wrap:hover .nav-dropdown,
.donate-dropdown-wrap:hover .donate-dropdown { display: block; }
.nav-dropdown-item { display: block; padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--text); border-radius: 8px; transition: all var(--transition); }
.nav-dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-dropdown-btn { display: flex; align-items: center; gap: 6px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.donate-header-btn { display: flex; align-items: center; gap: 8px; }

/* Lang switcher */
.lang-switcher { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: none; border: 1px solid var(--border); cursor: pointer; font-size: 13px; font-weight: 600; font-family: var(--font); color: var(--text-muted); transition: all var(--transition); }
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-dropdown { display: none; position: absolute; top: 100%; right: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); min-width: 140px; padding: 8px; z-index: 200; }
.lang-switcher:hover .lang-dropdown { display: block; }
.lang-option { display: block; padding: 9px 14px; font-size: 14px; font-weight: 500; border-radius: 8px; transition: all var(--transition); color: var(--text); }
.lang-option:hover, .lang-option.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }

/* Mobile toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ─── HERO ─── */
.hero { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, #F0F7FF 0%, #FAFBFF 50%, #EEF4FF 100%); padding-top: var(--header-h); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -100px; top: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 80px 24px; }
.hero-eyebrow { font-size: 14px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.hero-title { font-size: clamp(32px, 4vw, 52px); font-weight: 900; line-height: 1.1; color: var(--text); margin-bottom: 20px; }
.hero-desc { font-size: 17px; color: var(--text-muted); margin-bottom: 36px; max-width: 480px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 0; border-top: 1px solid var(--border); padding-top: 32px; }
.hero-stat { flex: 1; padding-right: 24px; border-right: 1px solid var(--border); }
.hero-stat:last-child { border-right: none; padding-right: 0; padding-left: 24px; }
.hero-stat strong { display: block; font-size: 32px; font-weight: 900; color: var(--primary); }
.hero-stat span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.hero-media { position: relative; }
.hero-img-wrap { border-radius: 24px; overflow: hidden; position: relative; }
.hero-img { width: 100%; height: 500px; object-fit: cover; }
.hero-card-float { position: absolute; bottom: 20px; right: 20px; }
.hero-card { background: #fff; border-radius: 16px; padding: 20px 24px; box-shadow: var(--shadow-lg); min-width: 220px; }
.hero-card-label { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.hero-card-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-top: 8px; color: var(--text-muted); }

/* ─── SECTIONS ─── */
.section { padding: 80px 0; }
.section-cream { background: var(--cream); }
.section-eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 16px; }
.section-title { font-size: clamp(24px, 3vw, 38px); font-weight: 900; line-height: 1.2; margin-bottom: 12px; }
.section-sub { color: var(--text-muted); max-width: 480px; }
.section-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 24px; }

/* ─── CATEGORIES ─── */
.section-categories { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 48px 0; }
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 32px; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px; border-radius: var(--radius); background: var(--primary-light); color: var(--primary); transition: all var(--transition); border: 1px solid transparent; }
.category-card:hover { background: var(--primary); color: #fff; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(37,99,235,0.25); }
.category-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.category-label { font-size: 13px; font-weight: 700; text-align: center; }

/* ─── CARDS GRID ─── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ─── NEWS CARD ─── */
.news-card, .donation-card {
    background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); box-shadow: var(--shadow); transition: all var(--transition);
    display: flex; flex-direction: column;
}
.news-card:hover, .donation-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img-wrap { position: relative; height: 220px; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .card-img-wrap img,
.donation-card:hover .card-img-wrap img { transform: scale(1.05); }
.card-badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,0.92); backdrop-filter: blur(4px); color: var(--primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 20px; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.card-date { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.card-title { font-size: 17px; font-weight: 800; line-height: 1.3; }
.card-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }

/* Progress bar */
.card-progress { margin: 12px 0; }
.progress-bar { height: 8px; background: #E2E8F0; border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 99px; }
.progress-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.progress-row span:last-child { color: var(--text-muted); }

/* ─── TRUST SECTION ─── */
.section-trust { background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 48px 0; }
.trust-title { font-size: 15px; font-weight: 700; color: var(--text-muted); margin-bottom: 36px; }
.trust-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 32px 48px; align-items: center; }
.trust-logo { font-size: 18px; font-weight: 900; color: #94A3B8; letter-spacing: -0.5px; transition: color var(--transition); }
.trust-logo:hover { color: var(--primary); }

/* ─── FAQ ─── */
.faq-container { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; background: none; border: none; cursor: pointer; font-size: 16px; font-weight: 700; text-align: left; font-family: var(--font); color: var(--text); gap: 16px; }
.faq-icon { flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--primary); }
.faq-item.open .faq-question { color: var(--primary); }
.faq-answer { padding-bottom: 20px; }
.faq-answer p { color: var(--text-muted); line-height: 1.7; }

/* ─── PAGE HEADER ─── */
.page-header { padding: 120px 0 48px; background: var(--primary-light); border-bottom: 1px solid var(--border); text-align: center; margin-bottom: 60px; }
.page-header h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; margin-bottom: 12px; }
.page-header p { color: var(--text-muted); font-size: 17px; max-width: 540px; margin: 0 auto; }

/* ─── FILTER BAR ─── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn { padding: 9px 20px; border-radius: 99px; font-size: 14px; font-weight: 700; border: 2px solid var(--border); background: #fff; color: var(--text-muted); cursor: pointer; font-family: var(--font); transition: all var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── SUCCESS / CANCEL PAGES ─── */
.result-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.result-box { max-width: 480px; }
.result-icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 36px; }
.result-icon.success { background: #DCFCE7; }
.result-icon.cancel { background: #FEE2E2; }
.result-box h1 { font-size: 36px; font-weight: 900; margin-bottom: 12px; }
.result-box p { color: var(--text-muted); margin-bottom: 32px; font-size: 17px; }

/* ─── DONATE MODAL ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: #fff; border-radius: 24px; padding: 36px; max-width: 480px; width: 100%; position: relative; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text-muted); line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.modal-for { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.modal-label { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.amount-btn { padding: 12px; border-radius: 10px; border: 2px solid var(--border); background: #fff; font-size: 16px; font-weight: 700; cursor: pointer; font-family: var(--font); color: var(--text); transition: all var(--transition); }
.amount-btn:hover, .amount-btn.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.modal-input { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 16px; font-family: var(--font); margin-bottom: 4px; outline: none; transition: border-color var(--transition); }
.modal-input:focus { border-color: var(--primary); }
.modal-input.error { border-color: #EF4444; animation: shake 0.3s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.modal-secure { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-top: 16px; justify-content: center; }

/* Payment method dividers */

.payment-or { display: none; align-items: center; gap: 10px; margin: 12px 0; }
.payment-or::before, .payment-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.payment-or span { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* PayPal & Card containers */
.paypal-wrap, .card-wrap { min-height: 48px; }
.paypal-loading, .paypal-processing { text-align: center; padding: 14px; font-size: 14px; color: var(--text-muted); }
.paypal-error { text-align: center; padding: 10px 12px; font-size: 13px; color: #EF4444; background: #FEF2F2; border-radius: 8px; border: 1px solid #FECACA; }

div#paypal-button-container { display: none;}
.paypal-powered-by {display: none}

/* Hosted card fields (PayPal CardFields API) */
.paypal-card-wrap { display: flex; flex-direction: column; gap: 10px; }
.paypal-card-field { border: 2px solid var(--border); border-radius: 10px; padding: 0 4px; background: #fff; height: 50px; transition: border-color var(--transition); }
.paypal-card-row {display: grid; grid-template-columns: 1fr 1fr; gap: 10px;}
.btn-card { background: #1e293b; color: #fff; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; display: flex; align-items: center; width: 100%; transition: background var(--transition); }
.btn-card:hover { background: #0f172a; }
.btn-card:disabled { opacity: 0.65; cursor: not-allowed; }

/* ─── FOOTER ─── */
.site-footer { background: #0F172A; color: #94A3B8; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-tagline { font-size: 14px; color: #64748B; margin: 16px 0 24px; max-width: 220px; line-height: 1.6; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #94A3B8; transition: all var(--transition); }
.social-link:hover { background: var(--primary); color: #fff; }
.footer-heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: #64748B; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; font-size: 13px; color: #475569; }

/* ─── RTL SUPPORT ─── */
[dir="rtl"] .hero-inner { direction: rtl; }
[dir="rtl"] .hero-stat { border-right: none; border-left: 1px solid var(--border); padding-right: 0; padding-left: 24px; }
[dir="rtl"] .hero-stat:last-child { border-left: none; padding-left: 0; padding-right: 24px; }
[dir="rtl"] .section-header-row { flex-direction: row-reverse; }
[dir="rtl"] .faq-question { flex-direction: row-reverse; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .faq-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav, .header-actions { display: none; }
    .mobile-toggle { display: flex; }
    .main-nav.open { display: flex; flex-direction: column; position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; padding: 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); z-index: 99; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 60px 24px; }
    .hero-desc, .section-sub { max-width: 100%; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-media { display: none; }
    .cards-grid, .cards-grid-3 { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .section-header-row { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    .trust-logos { gap: 20px 32px; }
    .amount-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-stat { border: none !important; padding: 0 !important; text-align: center; }
    .filter-bar { justify-content: center; }
}



.tab-nav {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}
.tab-btn {
  position: relative;
  padding: 10px 20px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.15s;
}
.tab-btn:hover { color: #111; }
.tab-btn.active {
  color: #111;
  font-weight: 500;
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: #111;
  border-radius: 2px 2px 0 0;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }