:root {
  --bg: #f3f0e7;
  --surface: #ffffff;
  --surface-soft: #f6f5ef;
  --text: #15352f;
  --muted: #5b746d;
  --brand: #2d7a57;
  --brand-dark: #174b38;
  --brand-deep: #0f2f24;
  --accent: #c99d42;
  --accent-soft: #f1e2bc;
  --border: #d6e0d9;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(19, 49, 43, 0.08);
  --shadow-strong: 0 24px 70px rgba(12, 38, 30, 0.16);
  --radius: 22px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 157, 66, 0.2), transparent 26%),
    radial-gradient(circle at right 20%, rgba(45, 122, 87, 0.1), transparent 24%),
    linear-gradient(180deg, #f8f4ea 0%, #edf5ef 100%);
  line-height: 1.6;
}

html[dir="rtl"] body,
body[dir="rtl"] {
  font-family: Tahoma, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 244, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 122, 87, 0.08);
}

.site-header .container,
.footer-grid,
.hero-grid,
.split-grid,
.cards-grid,
.stats-grid,
.contact-grid,
.admin-layout {
  display: grid;
  gap: 1.5rem;
}

.site-header .container {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(45, 122, 87, 0.1);
  box-shadow: 0 8px 20px rgba(23, 75, 56, 0.18);
}

.brand-text strong {
  display: block;
  font-size: 1.02rem;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.lang-switcher {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(47, 125, 87, 0.08);
}

.lang-switcher button {
  background: transparent;
  color: var(--brand-dark);
  padding: 0.55rem 0.9rem;
}

.lang-switcher button.active {
  background: var(--brand-dark);
  color: #fff;
}

.main-nav a {
  font-weight: 600;
  color: var(--muted);
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--brand-dark);
}

.hero {
  padding: 2.2rem 0 3rem;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(45, 122, 87, 0.12);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.hero h1,
.page-hero h1 {
  margin: 1rem 0;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.12;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 2.4rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 245, 239, 0.88)),
    linear-gradient(120deg, rgba(201, 157, 66, 0.1), rgba(45, 122, 87, 0.08));
  border: 1px solid rgba(45, 122, 87, 0.12);
  box-shadow: var(--shadow-strong);
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-shell::before {
  width: 220px;
  height: 220px;
  right: -80px;
  top: -60px;
  background: rgba(201, 157, 66, 0.12);
}

.hero-shell::after {
  width: 280px;
  height: 280px;
  left: -120px;
  bottom: -140px;
  background: rgba(45, 122, 87, 0.08);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy p {
  max-width: 60ch;
  font-size: 1.08rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.mini-stat {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(45, 122, 87, 0.1);
}

.mini-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--brand-deep);
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero p,
.page-hero p,
.section-heading p,
.card p,
.panel p {
  color: var(--muted);
}

.actions,
.chip-list,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn,
button,
.file-label {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover,
button:hover,
.file-label:hover {
  transform: translateY(-1px);
}

.btn-primary,
button,
.file-label {
  background: var(--brand);
  color: #fff;
}

.btn-primary {
  box-shadow: 0 14px 26px rgba(45, 122, 87, 0.2);
}

.btn-secondary {
  background: rgba(45, 122, 87, 0.08);
  color: var(--brand-dark);
}

.hero-card,
.card,
.panel,
.admin-sidebar,
.admin-main,
.admin-login,
.table-wrap,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  position: relative;
  min-height: 100%;
}

.hero-card img {
  min-height: 520px;
  object-fit: cover;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(15, 47, 36, 0.75));
}

.hero-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  z-index: 1;
  color: #fff;
}

.hero-card-content h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.hero-card-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.section {
  padding: 2rem 0 4rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split-grid {
  grid-template-columns: 1fr 1fr;
}

.card {
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(17, 49, 40, 0.12);
  border-color: rgba(45, 122, 87, 0.2);
}

.card h3 {
  margin-top: 0;
}

.metric {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.chip {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(201, 157, 66, 0.16);
  color: #7b5d1f;
  font-size: 0.85rem;
  font-weight: 700;
}

.section-band {
  position: relative;
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 2rem 0 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  z-index: -1;
}

.icon-card {
  position: relative;
  overflow: hidden;
}

.icon-card::before {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  top: -14px;
  right: -12px;
  background: linear-gradient(135deg, rgba(201, 157, 66, 0.2), rgba(45, 122, 87, 0.06));
}

.icon-card h3 {
  position: relative;
}

.section-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--brand-dark);
  font-weight: 700;
}

.section-accent::before {
  content: "";
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}

.page-hero {
  padding: 3rem 0 2rem;
}

.page-hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 2.2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 245, 239, 0.9)),
    linear-gradient(120deg, rgba(201, 157, 66, 0.08), rgba(45, 122, 87, 0.06));
  border: 1px solid rgba(45, 122, 87, 0.1);
  box-shadow: var(--shadow);
}

.page-hero-shell::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: rgba(201, 157, 66, 0.12);
}

.page-hero-shell > * {
  position: relative;
  z-index: 1;
}

.list-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
  padding: 0;
}

.list-card img {
  height: 100%;
  object-fit: cover;
}

.list-content {
  padding: 1.5rem;
}

.content-stack {
  display: grid;
  gap: 1.4rem;
}

.info-panel {
  padding: 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(45, 122, 87, 0.1);
}

.info-panel h3,
.info-panel h4 {
  margin-top: 0;
}

.contact-note {
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(201, 157, 66, 0.12), rgba(45, 122, 87, 0.06));
  border: 1px solid rgba(45, 122, 87, 0.1);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer {
  background:
    radial-gradient(circle at top right, rgba(201, 157, 66, 0.16), transparent 20%),
    #17312b;
  color: #eff6f1;
  padding: 3rem 0;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.footer a {
  color: #dceee4;
}

.footer .muted {
  color: rgba(239, 246, 241, 0.75);
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.status-message {
  min-height: 1.5rem;
  color: var(--brand-dark);
  font-weight: 600;
}

.status-error {
  color: var(--danger);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  border-radius: 18px;
  height: 220px;
  object-fit: cover;
}

.admin-page {
  min-height: 100vh;
  padding: 2rem 0 4rem;
}

.admin-layout {
  grid-template-columns: 320px 1fr;
  align-items: start;
}

.admin-sidebar,
.admin-main,
.admin-login {
  padding: 1.4rem;
}

.admin-login {
  padding: 0;
  overflow: hidden;
}

.admin-login-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  padding: 2rem;
  background:
    radial-gradient(circle at top right, rgba(201, 157, 66, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 245, 239, 0.9));
}

.admin-login-panel {
  padding: 1.5rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 122, 87, 0.12);
}

.admin-login-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(201, 157, 66, 0.1);
  border: 1px solid rgba(201, 157, 66, 0.2);
}

.admin-nav {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.admin-tab {
  text-align: left;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  border: 1px solid rgba(45, 122, 87, 0.08);
}

.admin-tab.active {
  background: var(--brand-dark);
  color: #fff;
}

.admin-main {
  display: grid;
  gap: 1.5rem;
}

.admin-sidebar {
  position: sticky;
  top: 90px;
  background:
    linear-gradient(180deg, rgba(23, 75, 56, 0.98), rgba(15, 47, 36, 0.98)),
    #17312b;
  color: #eff6f1;
}

.admin-sidebar p {
  color: rgba(239, 246, 241, 0.74);
}

.admin-sidebar .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-sidebar .admin-tab {
  color: #eff6f1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.06);
}

.admin-sidebar .admin-tab.active {
  background: #fff;
  color: var(--brand-dark);
}

.admin-sidebar-top {
  margin-bottom: 1.2rem;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.admin-brand img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.admin-brand-text strong {
  display: block;
  font-size: 1rem;
}

.admin-brand-text span {
  color: rgba(239, 246, 241, 0.74);
  font-size: 0.9rem;
}

.admin-summary {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.admin-summary-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-summary-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.admin-summary-card span {
  color: rgba(239, 246, 241, 0.74);
  font-size: 0.92rem;
}

.panel {
  padding: 1.2rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.item-grid {
  display: grid;
  gap: 1rem;
}

.table-wrap {
  overflow: auto;
}

.admin-upload-panel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.logout-btn {
  margin-top: 1rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.6rem 1.8rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 245, 239, 0.9)),
    linear-gradient(120deg, rgba(201, 157, 66, 0.1), rgba(45, 122, 87, 0.08));
  border: 1px solid rgba(45, 122, 87, 0.1);
  box-shadow: var(--shadow);
}

.admin-dashboard-hero h1 {
  margin: 0.8rem 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.admin-dashboard-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.admin-panel-card,
.admin-table-card {
  border-radius: 26px;
}

.admin-table-card {
  padding: 0.3rem 0;
}

.admin-panel-card form,
#settings-form {
  gap: 1.1rem;
}

table thead th {
  background: rgba(45, 122, 87, 0.05);
  color: var(--brand-dark);
  font-size: 0.92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

[hidden],
.hidden {
  display: none !important;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .admin-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .admin-login-shell,
  .admin-dashboard-hero {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-sidebar {
    position: static;
  }

  .cards-grid,
  .stats-grid,
  .hero-highlights,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-nav {
    justify-content: flex-start;
  }

  .header-tools {
    justify-content: flex-start;
  }

  .cards-grid,
  .stats-grid,
  .hero-highlights,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-shell {
    padding: 1.4rem;
  }
}


.admin-lang-switcher {
  margin-bottom: 1rem;
}

.admin-sidebar .admin-lang-switcher {
  background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .admin-lang-switcher button {
  color: #fff;
}

.admin-sidebar .admin-lang-switcher button.active {
  background: #fff;
  color: var(--brand-dark);
}

.credentials-panel {
  margin-top: 1.5rem;
}
