﻿:root {
  --teal-dark: #0C7B7F;
  --teal: #1BA5A5;
  --teal-light: #4DC8C8;
  --teal-pale: #7EDDD6;
  --teal-wash: #E8F8F6;
  --navy: #1A3A4A;
  --navy-deep: #0E2530;
  --gold: #C8A45C;
  --gold-light: #E8D5A0;
  --white: #FFFFFF;
  --off-white: #F7FAFA;
  --gray-100: #F0F4F4;
  --gray-200: #D8E0E0;
  --gray-500: #6B7F7F;
  --gray-700: #3A4F4F;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  direction: rtl;
}

body {
  font-family: 'Tajawal', sans-serif;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== GEOMETRIC PATTERN ===== */
.geo-pattern {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
}

/* ===== TOP HEADER ===== */
.top-header {
  background: var(--white);
  border-bottom: 1px solid rgba(12, 123, 127, 0.08);
}

.top-header-inner {
  max-width: 1300px;
  margin: auto;
  padding: 14px 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 32px;
}

.brand-right {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-self: end;
  text-align: right;
}

.brand-right img {
  width: 70px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
}

.brand-text {
  text-align: right;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-top: 4px;
}
.top-contact {
  justify-self: start;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
}

.top-contact .contact-badge {
  min-width: 220px;
  width: auto;
}

.contact-badge {
  min-width: 260px;
  background: linear-gradient(135deg, #f7fbfb, #edf7f6);
  border: 1px solid rgba(12, 123, 127, 0.12);
  border-right: 4px solid var(--teal-dark);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 8px 22px rgba(12, 123, 127, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal-dark);
  white-space: nowrap;
}

.badge-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  direction: ltr;
  text-align: left;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12, 123, 127, 0.08);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(12, 123, 127, 0.1);
}

#site-header.navbar {
  overflow: visible;
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 80px;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 55px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text span:first-child {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
}

.nav-logo-text span:last-child {
  font-size: 0.7rem;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}

/* القائمة الأساسية */
.nav-links,
.nav-links-advanced {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-links-advanced {
  gap: 1.2rem;
}

.nav-links a,
.nav-links-advanced > li > a,
.drop-link {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-links a::after,
.nav-links-advanced > li > a::after,
.drop-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links-advanced > li > a:hover,
.drop-link:hover {
  color: var(--teal-dark);
}

.nav-links a:hover::after,
.nav-links-advanced > li > a:hover::after,
.drop-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--white) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: all 0.3s !important;
  box-shadow: 0 4px 15px rgba(12, 123, 127, 0.25);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(12, 123, 127, 0.35) !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  flex-shrink: 0;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 3px;
  transition: 0.3s;
}

/* ===== ADVANCED HEADER / DROPDOWNS ===== */
.header-advanced {
  position: relative;
  gap: 1.5rem;
}

.brand-block {
  flex-shrink: 0;
}

.nav-links-advanced > li {
  position: relative;
}

.drop-arrow {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}

.has-dropdown:hover .drop-arrow,
.has-dropdown.open .drop-arrow {
  transform: rotate(180deg);
}

.nav-drop {
  list-style: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(12, 123, 127, 0.10);
  border-radius: 18px;
  padding: 0.65rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1200;
}

.nav-drop li {
  margin: 0;
}

.nav-drop li a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.nav-drop li a:hover {
  background: var(--teal-wash);
  color: var(--teal-dark);
}

.has-dropdown:hover > .nav-drop,
.has-dropdown.open > .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== HERO ===== */
.hero {
 min-height: 48vh; 
  padding-top: 5px;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(160deg, var(--navy-deep) 0%, #0A3545 40%, var(--teal-dark) 100%);
  overflow: hidden;
  padding-top: 0;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 50%, var(--teal-pale) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--teal-pale) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px;
}

.hero-geometric {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  opacity: 0.05;
}

.hero-geometric svg {
  width: 100%;
  height: 100%;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.hero-glow-1 {
  background: var(--teal);
  top: -100px;
  left: -100px;
}

.hero-glow-2 {
  background: var(--teal-pale);
  bottom: -150px;
  right: -100px;
  opacity: 0.1;
}

.hero-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-family: 'Amiri', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.hero-text h1 span {
  display: block;
  color: var(--teal-pale);
  font-size: 1.8rem;
  font-weight: 400;
  margin-top: 0.5rem;
  font-family: 'Tajawal', sans-serif;
}

.hero-text p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.35s ease;
  cursor: pointer;
  border: none;
  font-family: 'Tajawal', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-pale), var(--teal-light));
  color: var(--navy-deep);
  box-shadow: 0 8px 30px rgba(77, 200, 200, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(77, 200, 200, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-mosque-frame {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(10px);
  text-align: center;
}

.hero-mosque-frame img {
  width: 180px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 30px rgba(77, 200, 200, 0.2));
  border-radius: 20px;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
}

.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-pale);
  display: block;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.3rem;
}

/* ===== MARQUEE ===== */
.marquee-section {
  background: var(--teal-dark);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  flex-shrink: 0;
}

.marquee-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTIONS COMMON ===== */
section {
  padding: 2rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-wash);
  color: var(--teal-dark);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-tag svg {
  width: 16px;
  height: 16px;
}

.section-header h2 {
  font-family: 'Amiri', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.about {
  background: var(--off-white);
  position: relative;
}

.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-frame {
  position: relative;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: 24px;
  padding: 1rem;
  overflow: hidden;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.03) 20px, rgba(255, 255, 255, 0.03) 40px);
}

.about-image-frame svg {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 2;
}

.about-badge-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-wash);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-badge-icon svg {
  width: 24px;
  height: 24px;
  color: var(--teal-dark);
}

.about-badge-text .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
}

.about-badge-text .label {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.about-text h2 {
  font-family: 'Amiri', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.about-feature-icon {
  width: 36px;
  height: 36px;
  background: var(--teal-wash);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 18px;
  height: 18px;
  color: var(--teal-dark);
}

.about-feature span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

/* ===== SERVICES ===== */
.services {
  background: var(--white);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal-light));
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  border-color: var(--teal-light);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(12, 123, 127, 0.12);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--teal-wash), rgba(77, 200, 200, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  color: var(--teal-dark);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== DONATE ===== */
.donate {
  background: linear-gradient(160deg, var(--navy-deep) 0%, #0A3545 40%, var(--teal-dark) 100%);
  position: relative;
  overflow: hidden;
}

.donate .hero-bg-pattern {
  opacity: 0.04;
}

.donate-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.donate-text h2 {
  font-family: 'Amiri', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.donate-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.donate-verse {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  color: var(--teal-pale);
  margin: 2rem 0;
  padding-right: 1.5rem;
  border-right: 3px solid var(--teal-pale);
  line-height: 1.8;
}

.donate-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.donate-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.35s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.donate-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: rgba(126, 221, 214, 0.3);
}

.donate-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(126, 221, 214, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donate-card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--teal-pale);
}

.donate-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.donate-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ===== STATS ===== */
.stats {
  background: var(--white);
  padding: 4rem 2rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  background: var(--teal-wash);
  border: 1px solid rgba(12, 123, 127, 0.08);
}

.stat-item .num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--teal-dark);
  display: block;
  margin-bottom: 0.3rem;
}

.stat-item .label {
  font-size: 0.95rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* ===== PROGRAMS ===== */
.programs {
  background: var(--off-white);
}

.programs-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.program-card {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.35s;
}

.program-card:hover {
  border-color: var(--teal-light);
  box-shadow: 0 12px 40px rgba(12, 123, 127, 0.08);
  transform: translateY(-3px);
}

.program-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.program-icon svg {
  width: 32px;
  height: 32px;
  color: var(--white);
}

.program-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.program-info p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== VOLUNTEER ===== */
.volunteer {
  background: var(--white);
}

.volunteer-banner {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: 28px;
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.volunteer-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(255, 255, 255, 0.03) 30px, rgba(255, 255, 255, 0.03) 60px);
}

.volunteer-content {
  position: relative;
  z-index: 1;
}

.volunteer-content h2 {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.volunteer-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  line-height: 1.7;
}

.volunteer-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
}

.btn-white {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ===== NEWS ===== */
.news {
  background: var(--off-white);
}

.news-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.35s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.news-img {
  height: 200px;
  background: linear-gradient(135deg, var(--teal-dark), var(--navy));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255, 255, 255, 0.02) 15px, rgba(255, 255, 255, 0.02) 30px);
}

.news-img svg {
  width: 60px;
  height: 60px;
  color: rgba(255, 255, 255, 0.15);
  position: relative;
}

.news-body {
  padding: 1.5rem;
}

.news-date {
  font-size: 0.78rem;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.news-body p {
  font-size: 0.87rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--white);
}

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  background: var(--off-white);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Tajawal', sans-serif;
  background: var(--white);
  transition: border-color 0.3s;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27, 165, 165, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--white);
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  font-family: 'Tajawal', sans-serif;
  transition: all 0.35s;
  box-shadow: 0 6px 25px rgba(12, 123, 127, 0.25);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(12, 123, 127, 0.35);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--off-white);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-wash);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--teal-dark);
}

.contact-info-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.contact-info-text p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.contact-map {
  width: 100%;
  height: 220px;
  background: var(--gray-100);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-deep);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-brand .reg {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--teal-pale);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social a:hover svg {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

.ft-bottom p {
  font-size: 13px;
  color: white;
}

.ft-bottom a {
  color: var(--gold-light);
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero,
section,
.marquee-section,
.footer {
  position: relative;
  z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .nav-links-advanced {
    gap: 0.8rem;
  }

  .nav-links-advanced > li > a,
  .drop-link {
    font-size: 0.88rem;
  }

  .brand-title {
    font-size: 1.55rem;
  }

  .brand-sub {
    font-size: 0.85rem;
  }

  .contact-badge {
    min-width: 220px;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .donate-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .top-header-inner {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .brand-right {
    justify-self: end;
  }

  .top-contact {
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .top-header-inner {
    padding: 12px 1rem;
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .brand-right {
    gap: 12px;
    justify-self: stretch;
  }

  .brand-right img {
    width: 58px;
    height: 68px;
  }

  .brand-title {
    font-size: 1.25rem;
  }

  .brand-sub {
    font-size: 0.8rem;
  }

  .top-contact {
    justify-self: stretch;
    width: 100%;
    align-items: stretch;
  }

  .contact-badge {
    min-width: 100%;
    width: 100%;
  }

  .nav-links,
  .nav-links-advanced {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links.open,
  .nav-links-advanced.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.99);
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    gap: 0.35rem;
    z-index: 1500;
    width: auto;
    align-items: stretch;
    justify-content: flex-start;
  }

  .nav-links-advanced > li,
  .nav-links > li {
    width: 100%;
  }

  .nav-links-advanced > li > a,
  .nav-links > li > a,
  .drop-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.4rem;
  }

  .nav-drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    min-width: 100%;
    margin-top: 0.2rem;
    border-radius: 14px;
    background: var(--off-white);
    box-shadow: none;
    border: 1px solid var(--gray-200);
    padding: 0.45rem;
  }

  .has-dropdown.open > .nav-drop {
    display: block;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .volunteer-banner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem;
  }

  .donate-cards {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-contact {
    display: none;
  }
}


/* دعم Dropdown داخل Dropdown */
.nav-drop li {
    position: relative;
}

.sub-drop {
    position: absolute;
    right: 100%;
    top: 0;
    background: #fff;
    min-width: 180px;
    display: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-radius: 6px;
}

.nav-drop li:hover > .sub-drop {
    display: block;
}