/* ========= XB NILOOfAR FONT ========= */
@font-face {
  font-family: "XB Niloofar";
  src: url("fonts/XB_Niloofar.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
.hero-text h1 { font-family: "XB Niloofar", serif; }

/* ========= ROOT & RESETS ========= */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --color-bg: #ffffff;
  --color-bg-light: #f7f8fa;

  --color-primary: #1e40af;
  --color-primary-soft: #2563eb;
  --color-accent: #2563eb;

  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;

  --radius-lg: 18px;
  --radius-full: 999px;

  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; }

/* Generic container */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ========= HEADER ========= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
  gap: 1.5rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo { height: 75px; width: auto; }

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.brand-sub { font-size: 0.8rem; color: var(--color-text-muted); }

/* Right side of header */
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: nowrap; /* ✅ keep one line */
}

/* ========= LANGUAGE DROPDOWN ========= */
.lang-dropdown { position: relative; display: flex; align-items: center; }

.lang-trigger {
  font-size: 1.1rem;
  background: #f9fafb;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.lang-trigger:hover {
  background: #ffffff;
  color: var(--color-text);
  border-color: #cbd5f5;
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.35);
}

/* Dropdown menu box */
.lang-menu {
  position: absolute;
  right: 0;
  top: 120%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  display: none;
  flex-direction: column;
  min-width: 140px;
  padding: 0.4rem;
  z-index: 1000;
}

/* Menu shown */
.lang-dropdown.open .lang-menu { display: flex; }

/* Each language button */
.lang-option {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  padding: 0.45rem 0.55rem;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lang-option:hover { background: #f3f4ff; color: var(--color-text); }

/* CTAs */
.cta-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap; /* ✅ keep one line */
}

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn.small { padding: 0.45rem 0.95rem; font-size: 0.84rem; }

.btn.primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
}

.btn.outline {
  background: #ffffff;
  border-color: var(--color-border);
  color: var(--color-primary);
}

.btn.outline:hover {
  border-color: var(--color-primary-soft);
  background: #eff6ff;
}

/* ========= HAMBURGER BUTTON ========= */
.nav-toggle {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover { transform: translateY(-1px); background: #ffffff; }

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ========= HAMBURGER MENU ========= */
.main-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
  z-index: 90;
  display: none;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.9rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.main-nav a {
  font-size: 0.96rem;
  color: var(--color-text-muted);
  position: relative;
  padding-block: 0.25rem;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--color-primary); }

body.nav-open .main-nav { display: block; }

/* Search inside menu */
.menu-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: #f9fafb;
  border: 1px solid var(--color-border);
  width: 100%;
}

.menu-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text);
  font-size: 0.9rem;
  width: 100%;
}

.menu-search input::placeholder { color: var(--color-text-muted); }
.search-icon { font-size: 0.95rem; color: var(--color-text-muted); }

/* ========= RESPONSIVE HEADER (FIXED) ========= */
@media (max-width: 720px) {
  .container { width: min(100% - 1.5rem, 100%); }

  .header-inner {
    padding-block: 0.7rem;
    gap: 0.75rem;
  }

  .brand-logo { height: 58px; }

  .header-right {
    gap: 0.45rem;
    flex-wrap: nowrap;          /* ✅ FIX */
    align-items: center;
  }

  .cta-group {
    flex-wrap: nowrap;          /* ✅ FIX */
    gap: 0.4rem;
    align-items: center;
  }

  .btn.small {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .lang-trigger {
    padding: 0.3rem 0.6rem;
    font-size: 1rem;
  }

  .nav-toggle { width: 42px; height: 42px; }
}

/* ========= HERO SECTION ========= */
.hero {
  padding-block: 3.8rem 4.2rem;
  background: radial-gradient(circle at top left, #eef2ff, #ffffff);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner { display: flex; flex-direction: column; gap: 2.1rem; }

.hero-text h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
  color: #0f172a;
}

.hero-subtitle {
  max-width: 32rem;
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

/* ========= OVERVIEW SECTION ========= */
.overview {
  padding-block: 3rem 4rem;
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
}

.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }

.overview-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.overview-card h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  color: #0f172a;
}

.overview-card p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--color-text-muted);
}

.overview-meta { font-size: 0.85rem; color: var(--color-text-muted); }

.overview-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
}

.overview-link:hover { text-decoration: underline; }

/* ========= GENERIC SECTION STYLES ========= */
.section { padding: 3rem 0; }

.section.alt {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header { margin-bottom: 1.5rem; }

.section-title { font-size: 1.6rem; margin: 0 0 0.4rem; color: #0f172a; }

.section-subtitle { margin: 0; color: var(--color-text-muted); max-width: 38rem; }

/* ========= FOOTER ========= */
.site-footer {
  padding: 2.5rem 0 2rem;
  background: #0f172a;
  color: #e5e7eb;
  margin-top: 3rem;
  width: 100%;
  display: block;
  clear: both;
  grid-column: 1 / -1;
  flex: 0 0 100%;
  align-self: stretch;
}

.site-footer a { color: #e5e7eb; }
.site-footer a:hover { text-decoration: underline; }

.footer-inner { display: flex; flex-direction: column; gap: 1.2rem; }
.footer-meta { font-size: 0.85rem; color: #9ca3af; }

/* ========= RESPONSIVE LAYOUT ========= */
@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-text { max-width: 60%; }

  .overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero { padding-block: 3rem 3.2rem; }
}

/* ========= SOCIAL LINKS ========= */
.social-links .social-icon {
  font-size: 1.8rem;
  color: var(--color-primary);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.social-links .social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.7;
}

/* ========= DONATE PAGE ========= */
.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  margin-top: 1.5rem;
}

.donate-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.donate-card h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  color: #0f172a;
}

.donate-card p { margin-top: 0; }

.donate-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.donate-card li { margin-bottom: 0.35rem; }

@media (min-width: 768px) {
  .donate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* QR image styling + responsive sizing */
.qr-image {
  width: 180px;
  max-width: 100%;
  height: auto;
  border: 1px solid #e5e5e5;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 480px) {
  .qr-image { width: 140px; }
}

/* ========= FOOTER SOCIAL ICONS ========= */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social p { margin: 0; }

.footer-social-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #000000;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.footer-social a:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Vision image (if used) */
.vision-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin: 20px 0 24px;
}
/* ========= HUMAN RIGHTS QUOTE ========= */
.udhr-quote {
  font-family: "XB Niloofar", serif;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #0f172a;
  background: #f8fafc;
  border-left: 5px solid var(--color-primary);
  padding: 1.2rem 1.6rem;
  margin: 2.5rem 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.udhr-quote span {
  display: block;
  margin-top: 0.6rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
/* ========= OBJECTIVES PAGE IMAGE SIZE ========= */
.objectives-image {
  width: 120%;
  max-width: 620px;   /* 👈 controls size */
  display: block;
  margin: 24px auto;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}
/* ========= MOBILE POLISH ========= */
@media (max-width: 600px) {

  /* Bigger tap areas */
  .overview-card {
    padding: 1.9rem 1.6rem;
  }

  .overview-card h2 {
    font-size: 1.35rem;
  }

  .overview-card p {
    font-size: 1rem;
  }

  /* Links easier to tap */
  .text-link {
    font-size: 1rem;
    padding: 0.2rem 0;
  }
}
@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .hero-actions {
    gap: 0.75rem;
  }
}
/* ========= MOBILE POLISH ========= */
@media (max-width: 600px) {

  /* Bigger tap areas */
  .overview-card {
    padding: 1.9rem 1.6rem;
  }

  .overview-card h2 {
    font-size: 1.35rem;
  }

  .overview-card p {
    font-size: 1rem;
  }

  /* Links easier to tap */
  .text-link {
    font-size: 1rem;
    padding: 0.2rem 0;
  }
}
@media (max-width: 600px) {
  .btn {
    min-height: 44px; /* Apple / Android touch standard */
  }
}
@media (max-width: 600px) {
  .lang-menu {
    min-width: 160px;
  }

  .lang-option {
    font-size: 1rem;
    padding: 0.6rem 0.7rem;
  }
}
/* ========= MOBILE CARD ALIGNMENT FIX ========= */
@media (max-width: 600px) {

  /* Make container truly centered */
  .container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Ensure overview grid centers cards */
  .overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  /* Force cards to stay inside screen */
  .overview-card {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}
/* ========= OBJECTIVES DIAGRAM (replaces image) ========= */
.objectives-diagram{
  max-width: 900px;
  margin: 24px auto 30px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items: center;
}

.obj-center{
  display: flex;
  justify-content: center;
  align-items: center;
}

.obj-logo{
  width: 230px;
  max-width: 100%;
  height: auto;
}

.obj-items{
  display: grid;
  gap: 14px;
}

.obj-item{
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.obj-num{
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}

.obj-text{
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #0f172a;
  font-size: 14px;
}

/* colors */
.obj-blue .obj-num{ background: #1e40af; }
.obj-gray .obj-num{ background: #64748b; }
.obj-red  .obj-num{ background: #ef4444; }
.obj-green .obj-num{ background: #22c55e; }

/* mobile */
@media (max-width: 720px){
  .objectives-diagram{
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .obj-logo{ width: 200px; }
  .obj-text{ font-size: 14px; }
}
.site-header {
    padding: 10px 0;
}

.brand-logo {
    height: 110px;   /* BIG logo */
    width: auto;
    display: block;
}

.header-inner {
    align-items: center;
}
@media (max-width: 768px) {
  .brand-logo {
    height: 70px;
  }
  .brand-logo { height: 130px; }
@media (max-width: 768px) {
  .brand-logo {
    max-width: 180px;
  }
}
.site-header {
    padding: 10px 0;
}

.brand-logo {
    height: 110px;
    width: auto;
    display: block;
}

.header-inner {
    align-items: center;
}
@media (max-width: 768px) {
  .brand-logo {
    height: 70px;
  }
  .brand-logo { height: 130px; }
@media (max-width: 768px) {
  .brand-logo {
    max-width: 180px;
  }
}
/* ===== LOGO SIZE FIX (DESKTOP PERFECT + MOBILE CLEAN) ===== */

.brand-logo {
  height: 75px;      /* keeps your current nice desktop size */
  width: auto;
  display: block;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .brand-logo {
    height: 55px;    /* smaller so header stays compact */
  }
}

