:root {
  --primary: #113b2d;
  --primary-strong: #0a271d;
  --primary-soft: #1d5a45;
  --secondary: #c89c2b;
  --secondary-soft: #f1dfaf;
  --surface: #f7f5ef;
  --surface-alt: #eeece3;
  --surface-card: rgba(255, 255, 255, 0.78);
  --text: #17201b;
  --muted: #5c655f;
  --line: rgba(17, 59, 45, 0.12);
  --success: #2d7a4f;
  --danger: #b1412f;
  --shadow: 0 20px 60px rgba(17, 59, 45, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(200, 156, 43, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(17, 59, 45, 0.15), transparent 28%),
    linear-gradient(180deg, #fbfaf6 0%, var(--surface) 100%);
}

body[dir="rtl"] {
  text-align: right;
}

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

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

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 239, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 59, 45, 0.08);
}

.nav-shell,
.hero-grid,
.feature-grid,
.portal-grid,
.dashboard-grid,
.footer-grid,
.form-grid,
.stats-grid {
  display: grid;
  gap: 1.5rem;
}

.nav-shell {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
}

.nav-links {
  justify-content: center;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.button,
button,
input,
select,
textarea {
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.92rem 1.35rem;
  border: 1px solid transparent;
  transition: 180ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button-block {
  width: 100%;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: white;
  box-shadow: var(--shadow);
}

.button-secondary {
  border-color: rgba(200, 156, 43, 0.35);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.5);
}

.button-secondary:hover {
  background: rgba(200, 156, 43, 0.12);
}

.button-danger {
  background: linear-gradient(135deg, #a4382a 0%, #c94c3b 100%);
  color: white;
  box-shadow: 0 18px 36px rgba(177, 65, 47, 0.2);
}

.hero {
  padding: 4.8rem 0 3rem;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.page-title {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.4rem);
  margin-top: 1rem;
}

.hero p,
.lead,
.section-copy {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  font-size: 1.05rem;
  max-width: 60ch;
}

.hero-panel,
.glass-card,
.panel,
.stat-card,
.portal-card,
.metric-card,
.timeline-card {
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -8% -20% auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(200, 156, 43, 0.24), transparent 68%);
}

.crest-stage {
  min-height: 470px;
  padding: 2rem;
  border-radius: calc(var(--radius-lg) - 4px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(238, 236, 227, 0.84)),
    linear-gradient(180deg, rgba(17, 59, 45, 0.08), rgba(200, 156, 43, 0.08));
  display: grid;
  place-items: center;
}

.crest-stage img {
  width: min(100%, 430px);
  filter: drop-shadow(0 24px 40px rgba(17, 59, 45, 0.16));
}

.floating-note {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  padding: 1rem 1.1rem;
  background: rgba(17, 59, 45, 0.92);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 22px;
}

.floating-note strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.04rem;
}

.portal-grid,
.feature-grid,
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section {
  padding: 2.2rem 0 4rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.section-title,
.page-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.portal-card,
.metric-card,
.timeline-card,
.panel,
.stat-card {
  padding: 1.45rem;
}

.panel {
  min-width: 0;
}

.portal-card h3,
.metric-card h3,
.timeline-card h3,
.panel h3,
.stat-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.18rem;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(17, 59, 45, 0.08);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 1rem;
}

.portal-card p,
.metric-card p,
.timeline-card p,
.panel p,
.stat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.inline-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.split-band {
  padding: 1.5rem;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(17, 59, 45, 0.98), rgba(29, 90, 69, 0.96));
  color: white;
}

.feature-grid {
  align-items: stretch;
}

.feature-highlight {
  padding: 2rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  min-height: 100%;
}

.feature-highlight p,
.feature-highlight li,
.split-band p {
  color: rgba(255, 255, 255, 0.82);
}

.bullets {
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.bullets li::before {
  content: "•";
  color: var(--secondary);
  margin-right: 0.6rem;
}

.page-hero {
  padding: 3.4rem 0 2rem;
}

.page-hero .page-title {
  margin-bottom: 1rem;
}

.form-shell,
.dashboard-shell {
  padding-bottom: 4rem;
}

.form-layout,
.dashboard-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 1.5rem;
}

.panel-alt {
  background: rgba(238, 236, 227, 0.9);
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
.field-full {
  display: grid;
  gap: 0.55rem;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(17, 59, 45, 0.1);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.95rem 1rem;
  color: var(--text);
  transition: 180ms ease;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(200, 156, 43, 0.55);
  box-shadow: 0 0 0 4px rgba(200, 156, 43, 0.12);
}

.panel-stack {
  display: grid;
  gap: 1rem;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.metric:first-child {
  border-top: 0;
  padding-top: 0;
}

.metric strong,
.number {
  font-size: 1.9rem;
  color: var(--primary);
  letter-spacing: -0.04em;
}

.stats-grid {
  margin-bottom: 1.4rem;
}

.dashboard-main {
  display: grid;
  gap: 1.5rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-like {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.table-like th,
.table-like td {
  padding: 1rem 0;
  text-align: left;
  border-top: 1px solid var(--line);
}

.table-like th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-review {
  background: rgba(200, 156, 43, 0.16);
  color: #88650f;
}

.status-approved {
  background: rgba(45, 122, 79, 0.14);
  color: var(--success);
}

.status-pending {
  background: rgba(17, 59, 45, 0.09);
  color: var(--primary);
}

.footer {
  padding: 2.4rem 0 3rem;
  border-top: 1px solid rgba(17, 59, 45, 0.08);
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
}

.footer-copy {
  color: var(--muted);
  line-height: 1.7;
}

.muted {
  color: var(--muted);
}

.alert {
  margin: 1rem auto 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.alert-success {
  background: rgba(45, 122, 79, 0.14);
  color: var(--success);
}

.alert-error {
  background: rgba(177, 65, 47, 0.14);
  color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 0.82rem;
}

.admin-auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-section {
  width: min(560px, calc(100% - 2rem));
  margin: 3rem auto;
}

.auth-panel {
  padding: 2rem;
}

.auth-title {
  font-size: clamp(2rem, 5vw, 3rem);
}

.default-admin-note {
  margin-top: 1rem;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.admin-sidebar {
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--primary-strong), var(--primary));
  color: white;
  display: grid;
  gap: 1.2rem;
  align-content: start;
}

.brand-admin {
  color: white;
}

.admin-nav {
  display: grid;
  gap: 0.6rem;
}

.admin-nav a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.admin-content {
  padding: 2rem;
  min-width: 0;
}

.page-hero-admin {
  padding-top: 0;
}

.compact-head {
  margin-bottom: 0.8rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.career-detail-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.career-detail-head h2 {
  margin: 0.35rem 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
}

.profile-photo {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(17, 59, 45, 0.14);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 36px rgba(17, 59, 45, 0.12);
}

.profile-photo-empty {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}

.detail-full {
  grid-column: 1 / -1;
}

.file-list,
.timeline-list {
  display: grid;
  gap: 0.8rem;
}

.file-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(17, 59, 45, 0.08);
  color: var(--primary);
}

.timeline-item {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.status-rejected {
  background: rgba(177, 65, 47, 0.12);
  color: var(--danger);
}

.metric-inline {
  margin-top: 0.45rem;
  color: var(--muted);
  font-weight: 600;
}

small {
  color: var(--muted);
}

@media (max-width: 1200px) {
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .nav-shell,
  .hero-grid,
  .feature-grid,
  .portal-grid,
  .footer-grid,
  .form-layout,
  .dashboard-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .career-detail-head,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: min(220px, 100%);
    height: 240px;
  }

  .nav-links {
    display: none;
  }

  .nav-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
  }

  .brand {
    justify-self: start;
  }

  .actions {
    width: 100%;
  }

  .actions .button {
    flex: 1 1 220px;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-panel {
    padding: 1rem;
  }

  .crest-stage {
    min-height: 360px;
    padding: 1.25rem;
  }

  .floating-note {
    position: static;
    margin-top: 1rem;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .hero {
    padding-top: 2.6rem;
    padding-bottom: 2rem;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .portal-card,
  .stat-card,
  .timeline-card,
  .metric-card {
    padding: 1rem;
  }

  .page-hero {
    padding: 2.1rem 0 1.2rem;
  }

  .page-title,
  .section-title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    line-height: 1.05;
  }

  .lead {
    font-size: 0.98rem;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand-copy span {
    display: none;
  }

  .footer-grid {
    gap: 1rem;
  }

  .admin-content {
    padding: 1rem;
  }

  .admin-sidebar {
    padding: 1rem;
  }

  .auth-section {
    width: calc(100% - 1rem);
    margin: 1rem auto;
  }

  .auth-panel {
    padding: 1.2rem;
  }

  .button {
    width: 100%;
  }

  .table-like {
    min-width: 560px;
  }
}

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

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .table-like {
    min-width: 520px;
  }
}
