/* ===== الخطوط والمتغيرات ===== */
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&family=Amiri:wght@400;700&display=swap");

:root {
  --green: #0a6b3d;
  --green-dark: #054a29;
  --red: #c8102e;
  --black: #17140f;
  --sand: #f3ead9;
  --sand-light: #faf6ec;
  --olive: #6f7d4a;
  --gold: #b98a2d;
  --text: #241f16;
  --muted: #6b6355;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 20, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", sans-serif;
  background: var(--sand-light);
  color: var(--text);
  line-height: 1.8;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== الهيدر ===== */
header.site-header {
  background: #fff;
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
  border-bottom: 1px solid #eee4cd;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

header.site-header.scrolled {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom-color: rgba(238, 228, 205, 0.4);
  box-shadow: 0 8px 24px rgba(23, 20, 15, 0.08);
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--black);
  justify-self: start;
}

.brand .brand-logo {
  height: 60px;
  width: auto;
  display: block;
}

nav.main-nav {
  display: flex;
  gap: 8px;
  justify-self: center;
}

nav.main-nav a {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.25s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--green);
  color: #fff;
}

.admin-session-group {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-session-link {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.admin-session-link:hover,
.admin-session-link.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.logout-link {
  background: none;
  border: none;
  color: var(--red);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 4px;
  white-space: nowrap;
}

.logout-link:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .admin-session-group {
    justify-self: center;
  }
}

/* ===== الهيرو ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--black);
  padding: 90px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(45deg, #fff 0, #fff 1.5px, transparent 1.5px, transparent 14px),
    repeating-linear-gradient(-45deg, #fff 0, #fff 1.5px, transparent 1.5px, transparent 14px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(10, 107, 61, 0.55), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(200, 16, 46, 0.35), transparent 55%);
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo {
  width: 150px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  margin: 0 0 18px;
  font-family: "Amiri", "Tajawal", serif;
}

.hero p.lead {
  max-width: 680px;
  margin: 0 auto 34px;
  color: #ddd6c6;
  font-size: 1.15rem;
}

.search-box {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(250, 246, 236, 0.97);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: var(--shadow);
}

.search-box .search-icon {
  font-size: 1.05rem;
  opacity: 0.6;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
}

.search-box input:focus {
  outline: none;
}

.search-box .search-btn {
  background: var(--green-dark);
  color: #fff;
  border: none;
  padding: 13px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.2s ease;
  flex-shrink: 0;
}

.search-box .search-btn:hover {
  filter: brightness(1.1);
}

/* ===== شريط الفلاتر ===== */
.filter-section {
  padding: 0;
  background: var(--sand);
  border-bottom: 1px solid #e6dcc4;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #fff;
  border: 1.5px solid #e3d9c2;
  border-radius: 999px;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  min-width: 128px;
  box-shadow: 0 2px 6px rgba(23, 20, 15, 0.06);
  transition: border-color 0.2s ease;
}

.dropdown-toggle .chevron {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: transform 0.2s ease;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.dropdown-toggle .chevron svg {
  display: block;
}

.dropdown.has-value .dropdown-toggle .chevron {
  color: var(--green-dark);
}

.dropdown.open .dropdown-toggle {
  border-color: var(--green);
}

.dropdown.open .dropdown-toggle .chevron {
  transform: rotate(180deg);
}

.dropdown.has-value .dropdown-toggle {
  border-color: var(--green);
  background: #eef6f0;
  color: var(--green-dark);
  font-weight: 700;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 190px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--sand-light);
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(23, 20, 15, 0.18);
  padding: 10px;
  z-index: 30;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: var(--sand-light);
  border-inline-start: 1.5px solid var(--gold);
  border-top: 1.5px solid var(--gold);
  transform: rotate(45deg);
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.15s ease;
}

.dropdown-option + .dropdown-option {
  margin-top: 2px;
}

.dropdown-option:hover {
  background: #fff;
}

.dropdown-option .check {
  color: var(--green-dark);
  font-weight: 900;
  opacity: 0;
}

.dropdown-option.selected {
  background: #fff;
  color: var(--green-dark);
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.dropdown-option.selected .check {
  opacity: 1;
}

.dropdown-option.option-all {
  color: var(--muted);
  font-style: italic;
  border-bottom: 1px dashed #ddceac;
  border-radius: 0;
  padding-bottom: 12px;
  margin-bottom: 6px;
}

.dropdown-option.option-all.selected {
  box-shadow: none;
  background: transparent;
  color: var(--red);
  font-weight: 700;
}

.year-menu {
  width: 220px;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  max-height: 240px;
  overflow-y: auto;
  padding-top: 4px;
}

.year-option {
  padding: 9px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text);
}

.year-option:hover {
  background: #fff;
}

.year-option.selected {
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.filter-reset-btn {
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-reset-btn:hover {
  background: var(--red);
  color: #fff;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.workers-hero {
  background-image: linear-gradient(180deg, rgba(12, 10, 7, 0.6), rgba(12, 10, 7, 0.9)),
    url("../img/banner.png");
  background-size: cover;
  background-position: center 38%;
}

.workers-hero::before,
.workers-hero::after {
  content: none;
}

.centers-hero {
  background-image: linear-gradient(180deg, rgba(12, 10, 7, 0.6), rgba(12, 10, 7, 0.9)),
    url("../img/banner2.png");
  background-size: cover;
  background-position: center 38%;
}

.centers-hero::before,
.centers-hero::after {
  content: none;
}

.home-hero {
  background-image: linear-gradient(180deg, rgba(12, 10, 7, 0.65), rgba(12, 10, 7, 0.9)),
    url("../img/banner3.png");
  background-size: cover;
  background-position: center;
}

.home-hero::before,
.home-hero::after {
  content: none;
}

/* ===== الأقسام ===== */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title .tag {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.section-title h2 {
  font-family: "Amiri", "Tajawal", serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 8px 0 14px;
  color: var(--black);
}

.section-title p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

#stories-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 240px));
  justify-content: space-evenly;
}

@media (max-width: 640px) {
  #stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .worker-photo {
    height: 130px;
    font-size: 2rem;
  }

  .worker-body {
    padding: 14px 16px;
  }

  .worker-body h3 {
    font-size: 1rem;
  }

  .worker-body .location-line,
  .worker-body .date {
    font-size: 0.78rem;
  }

  .worker-body .craft {
    font-size: 0.8rem;
  }
}

.load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  transition: transform 0.25s ease;
}

.card.card-photo {
  background-size: cover;
  background-position: center;
  border-top: none;
  min-height: 280px;
}

.card.card-photo p {
  color: var(--black);
}

.card-bg-tatreez {
  background-image: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
    url("../img/image1.png");
}

.card-bg-olive {
  background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    url("../img/image2.png");
}

.card-bg-soap {
  background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    url("../img/image4.png");
}

.card-bg-thob {
  background-image: linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    url("../img/image15.png");
  background-position: top center;
}

.card-bg-food {
  background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    url("../img/image7.png");
}

.card-bg-jerusalem {
  background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    url("../img/image6.png");
}

.card:hover {
  transform: translateY(-6px);
}

.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  overflow: hidden;
  margin-bottom: 18px;
}

.card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--black);
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card.accent-red {
  border-top-color: var(--red);
}

.card.accent-gold {
  border-top-color: var(--gold);
}

/* ===== قسم مائل بخلفية داكنة ===== */
.dark-section {
  background: var(--green-dark);
  color: #f4ecd8;
}

.dark-section .section-title h2 {
  color: #fff;
}

.dark-section .section-title p {
  color: #cfe4d6;
}

.ads-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.banner-carousel {
  position: relative;
  direction: ltr;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.banner-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-carousel-slide {
  flex: 0 0 100%;
  height: 320px;
  background: var(--sand);
}

.banner-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(23, 20, 15, 0.55);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(23, 20, 15, 0.8);
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: #fff;
}

@media (max-width: 640px) {
  .banner-carousel-slide {
    height: 200px;
  }
}

.quote-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-family: "Amiri", serif;
  font-size: 1.5rem;
  line-height: 2;
  position: relative;
  padding: 0 40px;
}

.quote-block span {
  display: block;
  margin-top: 16px;
  font-family: "Tajawal", sans-serif;
  font-size: 1rem;
  color: var(--gold);
}

/* ===== بطاقات عمالنا ===== */
.worker-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.worker-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(23, 20, 15, 0.16);
}

.worker-photo {
  height: 220px;
  background: linear-gradient(135deg, var(--sand), #e8dcc0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  color: var(--green-dark);
  flex-shrink: 0;
}

.worker-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.worker-body h3 {
  margin: 0 0 8px;
  color: var(--black);
}

.worker-body .location-line {
  color: var(--olive);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.worker-body .date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.worker-body .craft {
  color: var(--red);
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: auto;
}

/* ===== صفحة تفاصيل القصة ===== */
.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--green-dark);
  font-weight: 700;
  padding: 8px 4px;
}

.back-link:hover {
  text-decoration: underline;
}

.story-detail {
  max-width: 720px;
  margin: 0 auto;
}

.story-detail-photo {
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--sand), #e8dcc0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--green-dark);
  margin-bottom: 32px;
}

.story-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-gallery {
  margin-bottom: 32px;
}

.story-gallery-main {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--sand), #e8dcc0);
  margin-bottom: 12px;
}

.story-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-thumb {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.active {
  border-color: var(--green);
  opacity: 1;
}

.story-detail-body {
  padding: 0;
}

.craft-badge {
  display: inline-block;
  background: var(--sand);
  color: var(--red);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.story-detail-body h1 {
  font-family: "Amiri", serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 16px;
  color: var(--black);
}

.story-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--olive);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px dashed #e3d9c2;
}

.story-detail-text {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 2;
  white-space: pre-line;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* ===== نموذج الإدمن ===== */
.admin-panel {
  max-width: 720px;
  margin: 0 auto;
}

.admin-page {
  max-width: 1020px;
  margin: 0 auto;
}

#login-view {
  max-width: 460px;
  margin: 0 auto;
}

.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

.form-card h2 {
  margin-top: 0;
  font-family: "Amiri", serif;
  color: var(--black);
}

.field {
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--black);
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e3d9c2;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--sand-light);
  color: var(--text);
}

.field select {
  cursor: pointer;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
}

.field input[type="file"] {
  padding: 10px 14px;
  cursor: pointer;
}

.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.image-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid #e3d9c2;
}

.image-preview-remove {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.image-preview-remove:hover {
  filter: brightness(1.1);
}

.msg {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  display: none;
}

.msg.show {
  display: block;
}

.msg.error {
  background: #fbe4e6;
  color: var(--red);
}

.msg.success {
  background: #e2f2e6;
  color: var(--green-dark);
}

.admin-story-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.admin-story-row .info h4 {
  margin: 0 0 4px;
}

.admin-story-row .info span {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-danger {
  background: var(--red);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.btn-danger:hover {
  filter: brightness(1.1);
}

.btn-success {
  background: var(--green);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.btn-success:hover {
  filter: brightness(1.1);
}

.hint-text {
  color: var(--muted);
  font-size: 0.88rem;
  margin: -8px 0 18px;
}

.admin-dashboard {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 190px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  background: var(--sand);
  color: var(--text);
  text-align: right;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.admin-nav-btn:hover {
  background: #eee1c4;
}

.admin-nav-btn.active {
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.admin-nav-btn .nav-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.admin-nav-divider {
  height: 1px;
  background: #e6dcc4;
  margin: 8px 4px;
}

.admin-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 720px) {
  .admin-dashboard {
    flex-direction: column;
  }
  .admin-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    position: static;
  }
  .admin-nav-btn {
    text-align: center;
    justify-content: center;
    padding: 12px 10px;
    font-size: 0.85rem;
  }
  .admin-nav-divider {
    grid-column: 1 / -1;
    margin: 4px 0;
  }
}

.location-add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.location-add-row input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid #e3d9c2;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--sand-light);
}

.location-add-row input:focus {
  outline: none;
  border-color: var(--green);
}

.location-add-row button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0 18px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.location-add-row button:hover {
  filter: brightness(1.1);
}

.location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sand);
  color: var(--text);
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.location-tag button {
  background: rgba(200, 16, 46, 0.12);
  color: var(--red);
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
}

.location-tag button:hover {
  background: var(--red);
  color: #fff;
}

.location-empty {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.pending-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 14px;
  border-inline-start: 4px solid var(--gold);
}

.pending-card .info h4 {
  margin: 0 0 4px;
}

.pending-card .info .craft-line {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pending-card .info p.excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.pending-card .actions {
  display: flex;
  gap: 10px;
}

.hidden {
  display: none !important;
}

/* ===== الفوتر ===== */
footer.site-footer {
  background: var(--black);
  color: #cfc7b4;
  padding: 50px 0 30px;
  text-align: center;
}

footer.site-footer .foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  font-family: "Amiri", serif;
}

footer.site-footer .foot-brand img {
  height: 46px;
  width: auto;
  display: block;
}

footer.site-footer p {
  margin: 6px 0;
  font-size: 0.9rem;
}

.admin-login-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.72rem;
  color: #6b6355;
  opacity: 0.5;
  text-decoration: none;
}

.admin-login-link:hover {
  opacity: 1;
  text-decoration: underline;
}

footer.site-footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 18px 0;
}

@media (max-width: 720px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    row-gap: 14px;
    justify-items: center;
  }
  .brand {
    justify-self: center;
  }
  nav.main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
