/* ============================================================
   QUENARA FOUNDATION — MAIN THEME CSS
   Structure: iddef.org clone | Colors: Emerald Green + Gold
   ============================================================ */

/* ---------- GOOGLE FONT ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Primary: Emerald Green Gradient */
  --q-green-900: #064e3b;
  --q-green-800: #065f46;
  --q-green-700: #047857;
  --q-green-600: #059669;
  --q-green-500: #10b981;
  --q-green-400: #34d399;
  --q-green-300: #6ee7b7;
  --q-green-200: #a7f3d0;
  --q-green-100: #d1fae5;
  --q-green-50: #ecfdf5;

  /* Accent: Gold */
  --q-gold-700: #b45309;
  --q-gold-600: #d97706;
  --q-gold-500: #f59e0b;
  --q-gold-400: #fbbf24;
  --q-gold-300: #fcd34d;
  --q-gold-200: #fde68a;
  --q-gold-100: #fef3c7;

  /* Neutrals */
  --q-dark: #0f172a;
  --q-gray-900: #1e293b;
  --q-gray-800: #334155;
  --q-gray-700: #475569;
  --q-gray-600: #64748b;
  --q-gray-500: #94a3b8;
  --q-gray-400: #cbd5e1;
  --q-gray-300: #e2e8f0;
  --q-gray-200: #f1f5f9;
  --q-gray-100: #f8fafc;
  --q-white: #ffffff;

  /* Gradients */
  --q-grad-green: linear-gradient(135deg, #064e3b 0%, #059669 50%, #10b981 100%);
  --q-grad-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  --q-grad-hero: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  --q-grad-cta: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --q-grad-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

  /* Shadows */
  --q-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --q-shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --q-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --q-shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --q-shadow-glow: 0 0 30px rgba(16,185,129,.25);

  /* Layout */
  --q-max-w: 1280px;
  --q-header-h: 72px;
  --q-sidebar-w: 340px;
  --q-radius: 12px;
  --q-radius-lg: 16px;
  --q-radius-xl: 24px;

  /* Font */
  --q-font: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --q-font-size: 16px;
  --q-line-height: 1.6;

  /* Transitions */
  --q-trans: all .25s cubic-bezier(.4,0,.2,1);
  --q-trans-fast: all .15s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--q-font-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--q-font);
  line-height: var(--q-line-height);
  color: var(--q-dark);
  background: var(--q-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--q-trans-fast); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.q-container {
  width: 100%;
  max-width: var(--q-max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--q-dark);
}

.q-section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: .5rem;
}

.q-section-subtitle {
  font-size: 1.05rem;
  color: var(--q-gray-600);
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
}

/* ============================================================
   HEADER — iddef.org structure
   Logo left | Nav center | Login + Donate + Lang right
   ============================================================ */
.q-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--q-grad-green);
  height: var(--q-header-h);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}

.q-header-inner {
  max-width: var(--q-max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

/* Logo */
.q-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.q-logo img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
  transition: var(--q-trans);
}

.q-logo:hover img {
  transform: scale(1.05);
}

/* Main Navigation */
.q-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.q-nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.q-nav-item {
  position: relative;
}

.q-nav-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .75rem;
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: .875rem;
  white-space: nowrap;
  border-radius: 8px;
  transition: var(--q-trans-fast);
}

.q-nav-link:hover,
.q-nav-item.active > .q-nav-link {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.q-nav-link .q-caret {
  width: 12px;
  height: 12px;
  transition: transform .2s ease;
}

.q-nav-item:hover > .q-nav-link .q-caret,
.q-nav-item.open > .q-nav-link .q-caret {
  transform: rotate(180deg);
}

/* Dropdown */
.q-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--q-white);
  border-radius: var(--q-radius);
  box-shadow: var(--q-shadow-xl);
  border: 1px solid var(--q-gray-300);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--q-trans-fast);
  z-index: 1100;
}

.q-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: var(--q-white);
  border-left: 1px solid var(--q-gray-300);
  border-top: 1px solid var(--q-gray-300);
  transform: rotate(45deg);
}

.q-nav-item:hover > .q-dropdown,
.q-nav-item.open > .q-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.q-dropdown-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .75rem;
  border-radius: 8px;
  color: var(--q-dark);
  font-weight: 600;
  font-size: .9rem;
  transition: var(--q-trans-fast);
}

.q-dropdown-link:hover {
  background: var(--q-green-50);
  color: var(--q-green-700);
}

.q-dropdown-link .q-dd-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Mega Menu — for Bağışlar */
.q-mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(1100px, calc(100vw - 2rem));
  background: var(--q-white);
  border-radius: var(--q-radius-lg);
  box-shadow: 0 25px 60px rgba(0,0,0,.18);
  border: 1px solid var(--q-gray-300);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--q-trans-fast);
  z-index: 1100;
  overflow: hidden;
  max-height: calc(100vh - var(--q-header-h) - 2rem);
}

.q-nav-item:hover > .q-mega,
.q-nav-item.open > .q-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.q-mega-inner {
  display: flex;
  height: 100%;
  max-height: calc(100vh - var(--q-header-h) - 4rem);
}

/* Mega Left — Category Sidebar */
.q-mega-left {
  width: 260px;
  flex-shrink: 0;
  background: var(--q-gray-100);
  border-right: 1px solid var(--q-gray-300);
  display: flex;
  flex-direction: column;
}

.q-mega-left-header {
  padding: 1rem;
  border-bottom: 1px solid var(--q-gray-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.q-mega-left-title {
  font-weight: 800;
  font-size: .95rem;
  color: var(--q-dark);
}

.q-mega-see-all {
  font-size: .8rem;
  font-weight: 700;
  color: var(--q-white);
  background: var(--q-green-700);
  padding: .3rem .7rem;
  border-radius: 8px;
  transition: var(--q-trans-fast);
}

.q-mega-see-all:hover {
  background: var(--q-green-600);
}

.q-mega-cats {
  padding: .5rem;
  overflow-y: auto;
  flex: 1;
}

.q-mega-cat-btn {
  width: 100%;
  text-align: left;
  padding: .65rem .75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--q-dark);
  background: transparent;
  border: 1px solid transparent;
  margin-bottom: 2px;
  transition: var(--q-trans-fast);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.q-mega-cat-btn:hover {
  background: var(--q-white);
  border-color: var(--q-gray-300);
}

.q-mega-cat-btn.active {
  background: var(--q-grad-green);
  color: var(--q-white);
  border-color: transparent;
  box-shadow: var(--q-shadow-md);
}

.q-mega-cat-emoji {
  font-size: 1.1rem;
}

/* Mega Right — Items Grid */
.q-mega-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.q-mega-search-wrap {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--q-gray-300);
  background: var(--q-white);
  position: sticky;
  top: 0;
  z-index: 2;
}

.q-mega-search {
  width: 100%;
  padding: .6rem .9rem;
  border: 1px solid var(--q-gray-300);
  border-radius: 10px;
  font-weight: 500;
  outline: none;
  transition: var(--q-trans-fast);
}

.q-mega-search:focus {
  border-color: var(--q-green-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}

.q-mega-items {
  flex: 1;
  overflow-y: auto;
  padding: .75rem;
}

.q-mega-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem;
}

.q-mega-grid.active {
  display: grid;
}

.q-mega-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .75rem;
  border-radius: 10px;
  background: var(--q-white);
  border: 1px solid var(--q-gray-200);
  font-weight: 600;
  font-size: .85rem;
  color: var(--q-dark);
  transition: var(--q-trans-fast);
  line-height: 1.3;
}

.q-mega-item:hover {
  border-color: var(--q-green-400);
  background: var(--q-green-50);
  transform: translateY(-1px);
  box-shadow: var(--q-shadow-sm);
}

.q-mega-footer {
  padding: .75rem 1rem;
  border-top: 1px solid var(--q-gray-300);
  display: flex;
  justify-content: flex-end;
  background: var(--q-gray-50);
}

.q-mega-footer-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  background: var(--q-green-700);
  color: var(--q-white);
  border-radius: 10px;
  font-weight: 700;
  font-size: .85rem;
  transition: var(--q-trans-fast);
}

.q-mega-footer-link:hover {
  background: var(--q-green-600);
}

/* Header Right Actions */
.q-header-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.q-btn-login {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 10px;
  color: var(--q-white);
  font-weight: 700;
  font-size: .85rem;
  transition: var(--q-trans-fast);
}

.q-btn-login:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.8);
}

.q-btn-donate-header {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  background: var(--q-grad-gold);
  color: var(--q-dark);
  border-radius: 10px;
  font-weight: 800;
  font-size: .85rem;
  box-shadow: 0 4px 15px rgba(217,119,6,.35);
  transition: var(--q-trans);
}

.q-btn-donate-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,119,6,.45);
}

/* Language Switcher */
.q-lang-switch {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
}

.q-lang-btn {
  padding: .35rem .55rem;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  transition: var(--q-trans-fast);
}

.q-lang-btn.active {
  background: rgba(255,255,255,.2);
  color: var(--q-white);
}

.q-lang-btn:hover {
  color: var(--q-white);
}

/* Mobile Hamburger */
.q-burger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1001;
}

.q-burger-line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--q-white);
  border-radius: 2px;
  transition: var(--q-trans-fast);
}

.q-burger-line:nth-child(1) { top: 14px; }
.q-burger-line:nth-child(2) { top: 21px; }
.q-burger-line:nth-child(3) { top: 28px; }

.q-header.menu-open .q-burger-line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.q-header.menu-open .q-burger-line:nth-child(2) { opacity: 0; }
.q-header.menu-open .q-burger-line:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ============================================================
   QUICK DONATION SIDEBAR — Right side (iddef.org style)
   ============================================================ */
.q-quick-donate {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  width: var(--q-sidebar-w);
  background: var(--q-white);
  border-radius: var(--q-radius-lg) 0 0 var(--q-radius-lg);
  box-shadow: -5px 0 30px rgba(0,0,0,.12);
  padding: 1.5rem;
  transition: var(--q-trans);
}

.q-quick-donate-title {
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--q-grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.q-qd-field {
  margin-bottom: .75rem;
}

.q-qd-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--q-gray-600);
  margin-bottom: .3rem;
}

.q-qd-select,
.q-qd-input {
  width: 100%;
  padding: .6rem .75rem;
  border: 2px solid var(--q-gray-300);
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  outline: none;
  transition: var(--q-trans-fast);
  background: var(--q-white);
}

.q-qd-select:focus,
.q-qd-input:focus {
  border-color: var(--q-green-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}

/* Quick amount buttons */
.q-qd-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
  margin-bottom: .75rem;
}

.q-qd-amount {
  padding: .5rem;
  text-align: center;
  border: 2px solid var(--q-gray-300);
  border-radius: 10px;
  font-weight: 700;
  font-size: .85rem;
  transition: var(--q-trans-fast);
  cursor: pointer;
}

.q-qd-amount:hover,
.q-qd-amount.active {
  border-color: var(--q-green-500);
  background: var(--q-green-50);
  color: var(--q-green-700);
}

/* Frequency Selector */
.q-qd-freq {
  display: flex;
  border: 2px solid var(--q-gray-300);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: .75rem;
}

.q-qd-freq-btn {
  flex: 1;
  padding: .5rem;
  text-align: center;
  font-weight: 700;
  font-size: .78rem;
  color: var(--q-gray-600);
  transition: var(--q-trans-fast);
  border-right: 1px solid var(--q-gray-300);
}

.q-qd-freq-btn:last-child { border-right: none; }

.q-qd-freq-btn:hover { background: var(--q-green-50); }

.q-qd-freq-btn.active {
  background: var(--q-grad-green);
  color: var(--q-white);
}

/* CTA Button */
.q-qd-submit {
  width: 100%;
  padding: .85rem;
  background: var(--q-grad-gold);
  color: var(--q-dark);
  border: none;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: .02em;
  box-shadow: 0 4px 15px rgba(217,119,6,.35);
  transition: var(--q-trans);
  text-transform: uppercase;
}

.q-qd-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217,119,6,.45);
}

/* Quick donate toggle for mobile */
.q-qd-toggle {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 901;
  writing-mode: vertical-rl;
  background: var(--q-grad-gold);
  color: var(--q-dark);
  padding: 1rem .6rem;
  font-weight: 800;
  font-size: .85rem;
  border-radius: 12px 0 0 12px;
  box-shadow: -3px 0 15px rgba(0,0,0,.15);
  cursor: pointer;
}

/* ============================================================
   HERO SLIDER — Full-width iddef.org style
   ============================================================ */
.q-hero {
  position: relative;
  width: 100%;
  height: clamp(400px, 60vh, 650px);
  overflow: hidden;
  background: var(--q-green-900);
}

.q-hero-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.q-hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.q-hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.65);
}

.q-hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,78,59,.85) 0%, rgba(6,78,59,.4) 60%, transparent 100%);
}

.q-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--q-max-w);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.q-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: var(--q-gold-400);
  padding: .4rem 1rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,.15);
}

.q-hero-title {
  color: var(--q-white);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  max-width: 600px;
  margin-bottom: 1rem;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.q-hero-desc {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.q-hero-btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.q-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  transition: var(--q-trans);
  border: none;
  cursor: pointer;
}

.q-btn-primary {
  background: var(--q-grad-gold);
  color: var(--q-dark);
  box-shadow: 0 4px 15px rgba(217,119,6,.4);
}

.q-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217,119,6,.5);
}

.q-btn-outline-white {
  background: transparent;
  color: var(--q-white);
  border: 2px solid rgba(255,255,255,.5);
}

.q-btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.8);
}

.q-btn-green {
  background: var(--q-grad-green);
  color: var(--q-white);
  box-shadow: 0 4px 15px rgba(5,150,105,.35);
}

.q-btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5,150,105,.45);
}

/* Hero dots & arrows */
.q-hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 5;
}

.q-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: var(--q-trans-fast);
  cursor: pointer;
}

.q-hero-dot.active {
  background: var(--q-gold-400);
  width: 28px;
  border-radius: 10px;
}

.q-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: var(--q-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--q-trans-fast);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.2);
}

.q-hero-arrow:hover {
  background: rgba(255,255,255,.25);
}

.q-hero-arrow.prev { left: 1.5rem; }
.q-hero-arrow.next { right: 1.5rem; }

/* ============================================================
   STATS BAR — Counters
   ============================================================ */
.q-stats {
  background: var(--q-grad-dark);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.q-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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");
}

.q-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.q-stat-item {
  text-align: center;
  color: var(--q-white);
}

.q-stat-number {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  background: var(--q-grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.q-stat-label {
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  margin-top: .25rem;
}

/* ============================================================
   PROJECT TABS — iddef.org "Güncel Projeler" style
   ============================================================ */
.q-projects {
  padding: 3.5rem 0;
  background: var(--q-gray-100);
}

.q-project-tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.q-project-tab {
  padding: .6rem 1.25rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--q-gray-600);
  background: var(--q-white);
  border: 2px solid var(--q-gray-300);
  transition: var(--q-trans-fast);
}

.q-project-tab:hover {
  border-color: var(--q-green-400);
  color: var(--q-green-700);
}

.q-project-tab.active {
  background: var(--q-grad-green);
  color: var(--q-white);
  border-color: transparent;
  box-shadow: var(--q-shadow-md);
}

.q-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.q-project-panel {
  display: none;
}

.q-project-panel.active {
  display: block;
}

/* ============================================================
   DONATION CARD — Project Cards
   ============================================================ */
.q-card {
  background: var(--q-white);
  border-radius: var(--q-radius-lg);
  overflow: hidden;
  box-shadow: var(--q-shadow-md);
  transition: var(--q-trans);
  border: 1px solid var(--q-gray-200);
}

.q-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--q-shadow-xl);
}

.q-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.q-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.q-card:hover .q-card-img img {
  transform: scale(1.05);
}

.q-card-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .3rem .7rem;
  background: var(--q-grad-green);
  color: var(--q-white);
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
}

.q-card-badge.urgent {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.q-card-body {
  padding: 1.25rem;
}

.q-card-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.q-card-desc {
  font-size: .875rem;
  color: var(--q-gray-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* Progress Bar */
.q-progress {
  margin-bottom: 1rem;
}

.q-progress-bar {
  height: 8px;
  background: var(--q-gray-200);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: .4rem;
}

.q-progress-fill {
  height: 100%;
  background: var(--q-grad-green);
  border-radius: 100px;
  transition: width 1s ease;
  position: relative;
}

.q-progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4));
  animation: q-shimmer 2s infinite;
}

@keyframes q-shimmer {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.q-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  font-weight: 600;
  color: var(--q-gray-600);
}

.q-progress-pct {
  color: var(--q-green-600);
  font-weight: 800;
}

/* Card Footer */
.q-card-footer {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.q-card-price {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--q-green-700);
}

.q-card-donate-btn {
  flex: 1;
  padding: .6rem;
  background: var(--q-grad-green);
  color: var(--q-white);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: .85rem;
  text-align: center;
  transition: var(--q-trans);
}

.q-card-donate-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--q-shadow-md);
}

/* ============================================================
   DONATION WIDGET — on donation detail pages
   ============================================================ */
.q-donate-widget {
  background: var(--q-white);
  border-radius: var(--q-radius-lg);
  box-shadow: var(--q-shadow-lg);
  border: 1px solid var(--q-gray-200);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--q-header-h) + 1rem);
}

.q-donate-widget-title {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-align: center;
}

/* Amount Grid */
.q-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: 1rem;
}

.q-amount-btn {
  padding: .65rem;
  text-align: center;
  border: 2px solid var(--q-gray-300);
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  transition: var(--q-trans-fast);
  cursor: pointer;
}

.q-amount-btn:hover,
.q-amount-btn.active {
  border-color: var(--q-green-500);
  background: var(--q-green-50);
  color: var(--q-green-700);
}

.q-custom-amount {
  position: relative;
  margin-bottom: 1rem;
}

.q-custom-amount-symbol {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--q-gray-600);
}

.q-custom-amount input {
  width: 100%;
  padding: .7rem .75rem .7rem 1.75rem;
  border: 2px solid var(--q-gray-300);
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  outline: none;
}

.q-custom-amount input:focus {
  border-color: var(--q-green-500);
}

/* Frequency */
.q-freq-tabs {
  display: flex;
  border: 2px solid var(--q-gray-300);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.q-freq-tab {
  flex: 1;
  padding: .6rem;
  text-align: center;
  font-weight: 700;
  font-size: .82rem;
  color: var(--q-gray-600);
  transition: var(--q-trans-fast);
}

.q-freq-tab.active {
  background: var(--q-grad-green);
  color: var(--q-white);
}

/* Quantity */
.q-qty-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.q-qty-label {
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.q-qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--q-gray-300);
  border-radius: 10px;
  overflow: hidden;
}

.q-qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--q-gray-600);
  transition: var(--q-trans-fast);
}

.q-qty-btn:hover {
  background: var(--q-green-50);
  color: var(--q-green-700);
}

.q-qty-value {
  width: 48px;
  text-align: center;
  font-weight: 800;
  border: none;
  border-left: 1px solid var(--q-gray-300);
  border-right: 1px solid var(--q-gray-300);
  padding: .4rem;
}

/* Bundle Deal */
.q-bundle {
  background: linear-gradient(135deg, var(--q-green-50) 0%, var(--q-gold-100) 100%);
  border: 2px solid var(--q-green-300);
  border-radius: var(--q-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.q-bundle-title {
  font-size: .9rem;
  font-weight: 800;
  color: var(--q-green-800);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.q-bundle-items {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.q-bundle-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--q-gray-700);
}

.q-bundle-item input[type="checkbox"] {
  accent-color: var(--q-green-600);
  width: 18px;
  height: 18px;
}

/* Submit Button */
.q-donate-submit {
  width: 100%;
  padding: .9rem;
  background: var(--q-grad-gold);
  color: var(--q-dark);
  border: none;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .02em;
  box-shadow: 0 4px 15px rgba(217,119,6,.35);
  transition: var(--q-trans);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.q-donate-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217,119,6,.45);
}

.q-donate-submit::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,.15), transparent);
  transform: rotate(45deg) translateX(-100%);
  transition: .6s;
}

.q-donate-submit:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* ============================================================
   TRUST SECTION
   ============================================================ */
.q-trust {
  padding: 3.5rem 0;
  background: var(--q-white);
}

.q-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.q-trust-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--q-radius-lg);
  border: 1px solid var(--q-gray-200);
  transition: var(--q-trans);
}

.q-trust-item:hover {
  border-color: var(--q-green-300);
  box-shadow: var(--q-shadow-lg);
  transform: translateY(-4px);
}

.q-trust-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: var(--q-green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--q-green-600);
}

.q-trust-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .4rem;
}

.q-trust-desc {
  font-size: .85rem;
  color: var(--q-gray-600);
  line-height: 1.5;
}

/* ============================================================
   NEWS SECTION — iddef.org style
   ============================================================ */
.q-news {
  padding: 3.5rem 0;
  background: var(--q-gray-100);
}

.q-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.q-news-card {
  background: var(--q-white);
  border-radius: var(--q-radius-lg);
  overflow: hidden;
  box-shadow: var(--q-shadow-sm);
  transition: var(--q-trans);
  border: 1px solid var(--q-gray-200);
}

.q-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--q-shadow-lg);
}

.q-news-img {
  height: 200px;
  overflow: hidden;
}

.q-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.q-news-card:hover .q-news-img img {
  transform: scale(1.05);
}

.q-news-body {
  padding: 1.25rem;
}

.q-news-date {
  font-size: .8rem;
  font-weight: 600;
  color: var(--q-green-600);
  margin-bottom: .4rem;
}

.q-news-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.q-news-excerpt {
  font-size: .875rem;
  color: var(--q-gray-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   FOOTER — iddef.org style
   ============================================================ */
.q-footer {
  background: var(--q-grad-dark);
  color: var(--q-white);
  padding: 3.5rem 0 0;
}

.q-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.q-footer-about p {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.q-footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(1.1);
}

.q-footer-app-btns {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}

.q-footer-app-btn {
  height: 40px;
  width: auto;
  border-radius: 8px;
  transition: var(--q-trans-fast);
}

.q-footer-app-btn:hover {
  transform: scale(1.05);
}

.q-footer-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--q-white);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: .5rem;
}

.q-footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--q-grad-gold);
  border-radius: 2px;
}

.q-footer-links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.q-footer-link {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--q-trans-fast);
}

.q-footer-link:hover {
  color: var(--q-gold-400);
  padding-left: .3rem;
}

.q-footer-social {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}

.q-footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--q-trans-fast);
  border: 1px solid rgba(255,255,255,.1);
}

.q-footer-social-link:hover {
  background: var(--q-green-600);
  color: var(--q-white);
  border-color: transparent;
  transform: translateY(-2px);
}

.q-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.q-footer-copy {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

.q-footer-copy a {
  color: var(--q-gold-400);
}

/* ============================================================
   MOBILE BOTTOM NAV — iddef.org style
   ============================================================ */
.q-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--q-white);
  border-top: 1px solid var(--q-gray-300);
  box-shadow: 0 -2px 20px rgba(0,0,0,.08);
  padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom, 0px));
}

.q-mobile-nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.q-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .35rem .5rem;
  color: var(--q-gray-600);
  font-size: .65rem;
  font-weight: 700;
  transition: var(--q-trans-fast);
  text-decoration: none;
  position: relative;
}

.q-mobile-nav-item.active {
  color: var(--q-green-600);
}

.q-mobile-nav-item .q-mn-icon {
  width: 22px;
  height: 22px;
}

.q-mobile-nav-item.donate-cta {
  position: relative;
}

.q-mobile-nav-item.donate-cta .q-mn-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--q-grad-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -22px;
  box-shadow: 0 4px 15px rgba(5,150,105,.35);
  color: var(--q-white);
}

.q-mobile-nav-item.donate-cta .q-mn-icon {
  width: 24px;
  height: 24px;
}

/* Cart badge */
.q-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: var(--q-white);
  font-size: .6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   MOBILE PANEL (Full screen mobile menu)
   ============================================================ */
.q-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--q-white);
  overflow-y: auto;
  padding: calc(var(--q-header-h) + 1rem) 1rem 6rem;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.q-mobile-panel.open {
  transform: translateX(0);
}

.q-mp-item {
  border-bottom: 1px solid var(--q-gray-200);
}

.q-mp-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem .5rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--q-dark);
}

.q-mp-sub {
  display: none;
  padding: 0 .5rem .75rem;
}

.q-mp-sub.open {
  display: block;
}

.q-mp-sub-link {
  display: block;
  padding: .6rem .75rem;
  font-weight: 600;
  font-size: .875rem;
  color: var(--q-gray-700);
  border-radius: 8px;
  margin-bottom: .25rem;
}

.q-mp-sub-link:hover {
  background: var(--q-green-50);
  color: var(--q-green-700);
}

/* ============================================================
   DONATION DETAIL PAGE
   ============================================================ */
.q-donation-detail {
  padding: 2rem 0;
}

.q-donation-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.q-donation-gallery {
  border-radius: var(--q-radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.q-donation-gallery-main {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--q-radius-lg);
}

.q-donation-gallery-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}

.q-donation-gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--q-trans-fast);
}

.q-donation-gallery-thumb:hover,
.q-donation-gallery-thumb.active {
  border-color: var(--q-green-500);
}

.q-donation-video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--q-radius-lg);
  margin-bottom: 1.5rem;
}

.q-donation-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.q-donation-content p {
  color: var(--q-gray-700);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ============================================================
   CART / CHECKOUT
   ============================================================ */
.q-cart-page {
  padding: 2rem 0;
}

.q-cart-items {
  margin-bottom: 2rem;
}

.q-cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--q-gray-200);
  border-radius: var(--q-radius);
  margin-bottom: .75rem;
  background: var(--q-white);
}

.q-cart-item-img {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.q-cart-item-info {
  flex: 1;
}

.q-cart-item-title {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .25rem;
}

.q-cart-item-freq {
  font-size: .8rem;
  color: var(--q-green-600);
  font-weight: 600;
}

.q-cart-total {
  padding: 1.5rem;
  background: var(--q-gray-100);
  border-radius: var(--q-radius-lg);
  text-align: right;
}

.q-cart-total-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--q-green-700);
}

/* ============================================================
   STRIPE CHECKOUT
   ============================================================ */
.q-checkout {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

.q-stripe-element {
  padding: 1rem;
  border: 2px solid var(--q-gray-300);
  border-radius: var(--q-radius);
  margin-bottom: 1rem;
  background: var(--q-white);
}

.q-stripe-element.StripeElement--focus {
  border-color: var(--q-green-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}

/* ============================================================
   CALL TO ACTION SECTION
   ============================================================ */
.q-cta-section {
  background: var(--q-grad-green);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.q-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
  opacity: .5;
}

.q-cta-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--q-white);
  margin-bottom: 1rem;
  position: relative;
}

.q-cta-desc {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  position: relative;
}

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */
.q-page-hero {
  background: var(--q-grad-green);
  padding: 3rem 0;
  text-align: center;
}

.q-page-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--q-white);
  margin-bottom: .5rem;
}

.q-page-hero-breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
}

.q-page-hero-breadcrumb a {
  color: var(--q-gold-400);
}

.q-page-content {
  padding: 3rem 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes q-fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes q-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes q-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.q-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.q-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.q-animate-delay-1 { transition-delay: .1s; }
.q-animate-delay-2 { transition-delay: .2s; }
.q-animate-delay-3 { transition-delay: .3s; }
.q-animate-delay-4 { transition-delay: .4s; }

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */
.elementor-page .q-header,
.elementor-page .q-footer,
.elementor-page .q-mobile-nav {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--q-max-w);
}

body.elementor-page {
  padding-bottom: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .q-nav { display: none; }
  .q-burger { display: block; }
  .q-mobile-nav { display: block; }
  .q-quick-donate { display: none; }
  .q-qd-toggle { display: block; }

  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  .q-hero {
    height: clamp(300px, 50vh, 500px);
  }

  .q-hero-title {
    font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  }

  .q-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .q-project-grid,
  .q-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .q-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .q-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .q-donation-layout {
    grid-template-columns: 1fr;
  }

  .q-donate-widget {
    position: static;
  }

  .q-header-actions .q-lang-switch,
  .q-header-actions .q-btn-login {
    display: none;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --q-header-h: 60px;
  }

  .q-logo img {
    height: 42px;
  }

  .q-hero {
    height: clamp(280px, 55vh, 420px);
  }

  .q-hero-content {
    padding: 0 1rem;
  }

  .q-hero-title {
    font-size: 1.35rem;
  }

  .q-hero-desc {
    font-size: .9rem;
  }

  .q-hero-btns {
    flex-direction: column;
  }

  .q-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }

  .q-stat-number {
    font-size: 1.3rem;
  }

  .q-project-grid,
  .q-news-grid {
    grid-template-columns: 1fr;
  }

  .q-trust-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .q-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .q-section-title {
    font-size: 1.35rem;
  }

  .q-card-img {
    height: 160px;
  }

  .q-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .q-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Print */
@media print {
  .q-header, .q-footer, .q-mobile-nav, .q-quick-donate, .q-qd-toggle { display: none !important; }
  body { padding: 0; }
}
