:root {
  --ink: #1d2733;
  --muted: #64748b;
  --line: #d9e2ec;
  --panel: #ffffff;
  --soft: #f4f7fa;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #c2410c;
  --warning: #f59e0b;
  --steel: #334155;
  --shadow: 0 18px 45px rgba(29, 39, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

html[lang="ar"] body {
  font-family: "Simplified Arabic", Arial, "Segoe UI", Tahoma, sans-serif;
}

html[lang="en"] body {
  font-family: "Times New Roman", Times, serif;
}

[id] {
  scroll-margin-top: 2.2cm;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand-link,
.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-link img,
.dashboard-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-link small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a,
.text-link {
  color: var(--steel);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 6px;
}

.site-nav a:hover,
.text-link:hover {
  background: #eef6f5;
  color: var(--brand-dark);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover {
  background: var(--brand-dark);
}

.button.secondary,
.button.muted {
  background: #e7eef5;
  color: var(--ink);
}

.button.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.button.danger {
  background: #dc2626;
  color: #fff;
}

.button.danger:hover {
  background: #b91c1c;
}

.flash {
  width: min(1100px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #075985;
}

.flash.success {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

.flash.error {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 62px 64px 78px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.10), rgba(255, 255, 255, 0)),
    #f9fbfd;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-head span,
.content-card span {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 14px 0 18px;
  font-size: 54px;
  line-height: 1.1;
}

.hero-copy p,
.page-hero p,
.split-section p {
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
}

.hero-visual {
  min-height: 440px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(231, 238, 245, 0.92)),
    repeating-linear-gradient(90deg, rgba(51, 65, 85, 0.08) 0, rgba(51, 65, 85, 0.08) 1px, transparent 1px, transparent 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 240px;
  max-height: 160px;
  object-fit: contain;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--steel);
}

.hero-metrics span {
  font-size: 42px;
  font-weight: 900;
  color: var(--brand-dark);
}

.section-band,
.split-section,
.page-hero,
.rich-content,
.form-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-band.subtle {
  padding-top: 32px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2,
.split-section h2,
.panel-block h2,
.table-section h2 {
  margin: 8px 0 0;
  font-size: 32px;
  line-height: 1.25;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.content-card,
.metric-grid article,
.panel-block,
.auth-panel,
.auth-brand,
.table-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(29, 39, 51, 0.06);
}

.content-card {
  min-height: 190px;
  padding: 24px;
}

.content-card.compact {
  min-height: 150px;
}

.content-card h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.content-card p,
.stack-list span,
.panel-block p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.stack-list article {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-hero {
  padding-bottom: 32px;
}

.rich-content {
  padding-top: 0;
  font-size: 18px;
}

.about-details-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 72px;
}

.about-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-detail-card {
  position: relative;
  min-height: 210px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(29, 39, 51, 0.06);
}

.about-detail-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: #e30613;
}

.about-detail-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 6px;
  background: #0f4a7d;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 800;
}

.about-detail-card h2 {
  margin: 0 0 12px;
  color: #202733;
  font-size: 28px;
  line-height: 1.25;
}

.about-detail-card p {
  margin: 0;
  color: #64748b;
  font-size: 18px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 64px;
  color: #d8dee9;
  background: #1f2937;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #eaf1f5;
}

.auth-home-link {
  position: fixed;
  top: 22px;
  inset-inline-start: 22px;
  z-index: 30;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 12px 28px rgba(29, 39, 51, 0.10);
}

.auth-home-link:hover {
  background: #eef6f5;
  border-color: #a7d8d2;
}

.auth-home-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.auth-shell {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 22px;
}

.auth-brand,
.auth-panel {
  padding: 34px;
}

.auth-brand {
  display: grid;
  align-content: center;
  justify-items: start;
  background: #17313b;
  color: #fff;
}

.auth-brand img {
  width: 150px;
  margin-bottom: 20px;
}

.auth-form,
.work-form {
  display: grid;
  gap: 14px;
}

.auth-links {
  margin: 16px 0 0;
  text-align: center;
}

.auth-links a {
  color: var(--brand-dark);
  font-weight: 700;
}

.auth-inline-flash {
  width: 100%;
  margin: 18px 0;
}

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

.work-form .full {
  grid-column: 1 / -1;
}

.whatsapp-contact-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid rgba(37, 211, 102, .28);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 211, 102, .12), rgba(255, 255, 255, .94));
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.whatsapp-mark {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .28);
}

.whatsapp-mark svg {
  width: 52px;
  height: 52px;
}

.whatsapp-mark path:first-child {
  fill: currentColor;
}

.whatsapp-mark path:last-child {
  fill: #25d366;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.whatsapp-contact-panel h2 {
  margin: 0 0 6px;
  color: #0f2742;
  font-size: 28px;
  line-height: 1.25;
}

.whatsapp-contact-panel p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
}

.whatsapp-open-link {
  width: fit-content;
  margin-top: 14px;
  background: #25d366;
  color: #fff;
}

.whatsapp-open-link:hover {
  background: #1fb65a;
}

label {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.muted-note {
  color: var(--muted);
  font-size: 14px;
}

.content-admin-help,
.content-media-note {
  color: var(--muted);
}

.content-admin-help a,
.content-media-note a,
.content-media-link {
  color: var(--brand-dark);
  font-weight: 800;
}

.content-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-media-remove {
  align-self: center;
}

.content-admin-table {
  min-width: 920px;
}

.content-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-row-actions form {
  margin: 0;
}

.dashboard-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #eef3f7;
}

.dashboard-sidebar {
  padding: 22px;
  background: #182534;
  color: #e6edf5;
}

.dashboard-brand {
  margin-bottom: 28px;
}

.dashboard-brand img {
  width: 44px;
  height: 44px;
}

.dashboard-sidebar nav {
  display: grid;
  gap: 8px;
}

.dashboard-sidebar nav a {
  padding: 11px 12px;
  border-radius: 6px;
  color: #d8dee9;
}

.dashboard-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.09);
}

.dashboard-main {
  min-width: 0;
}

.dashboard-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.dashboard-topbar small {
  display: block;
  color: var(--muted);
}

.dashboard-account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-content {
  padding: 28px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-grid article,
.panel-block,
.table-section {
  padding: 22px;
}

.metric-grid span {
  color: var(--muted);
  font-weight: 700;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.data-table th {
  color: var(--steel);
  background: #f8fafc;
}

.typography-form {
  display: grid;
  gap: 18px;
}

.typography-table td:first-child small {
  display: block;
  color: var(--muted);
  direction: ltr;
  font-size: 12px;
  font-weight: 700;
}

.typography-table select {
  min-width: 190px;
}

.typography-table input[type="number"] {
  max-width: 120px;
}

.typography-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.section-layout-admin {
  display: grid;
  gap: 18px;
  width: min(1280px, 100%);
  margin-inline: auto;
}

.section-layout-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px);
  align-items: start;
  gap: 22px;
}

.section-layout-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.35;
}

.section-layout-intro-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.section-layout-lang-form {
  min-width: 0;
  align-self: start;
}

.section-layout-help {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.section-layout-workspace {
  overflow-x: visible;
  overflow-y: visible;
}

.section-layout-form {
  display: grid;
  gap: 18px;
}

.section-layout-table-wrap {
  width: 100%;
  overflow-x: visible;
}

.section-layout-table {
  display: block;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.section-layout-table thead {
  display: none;
}

.section-layout-table tbody {
  display: grid;
  gap: 14px;
}

.section-layout-table tbody tr {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  background: #f8fafc;
}

.section-layout-table tbody th,
.section-layout-table tbody td {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  vertical-align: top;
}

.section-layout-table tbody td::before {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.section-layout-table tbody td:nth-of-type(1)::before {
  content: "العرض";
}

.section-layout-table tbody td:nth-of-type(2)::before {
  content: "الارتفاع";
}

.section-layout-table tbody td:nth-of-type(3)::before {
  content: "الصورة";
}

.section-layout-table tbody td:nth-of-type(4)::before {
  content: "الزوايا";
}

.section-layout-name {
  flex: 0 0 170px;
  align-self: stretch;
  padding: 12px;
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  background: #fff;
  color: var(--steel);
  font-size: 18px;
  line-height: 1.35;
}

.section-layout-table tbody td {
  flex: 1 1 220px;
}

.section-layout-table tbody td:nth-of-type(1) {
  flex-basis: 180px;
}

.section-layout-table tbody td:nth-of-type(2) {
  flex-basis: 270px;
}

.section-layout-table tbody td:nth-of-type(3) {
  flex-grow: 2;
  flex-basis: 520px;
}

.section-layout-table tbody td:nth-of-type(4) {
  flex-basis: 340px;
}

.section-layout-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  min-width: 0;
}

.section-layout-fields-2 {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.section-layout-fields-3 {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.section-layout-fields-4 {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.section-layout-fields-media {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.section-layout-fields label {
  min-width: 0;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}

.section-layout-fields input,
.section-layout-fields select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 8px;
  font-size: 13px;
}

.section-layout-fields input:disabled,
.section-layout-fields select:disabled {
  color: #94a3b8;
  background: #eef2f6;
}

.section-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  justify-content: center;
}

.section-layout-card {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.section-layout-card h3 {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  background: #fff;
  color: var(--steel);
  font-size: 20px;
  line-height: 1.35;
}

.section-layout-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.section-setting-group {
  grid-column: 1 / -1;
  min-inline-size: 0;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  background: #fff;
}

.section-setting-group-wide {
  grid-column: auto;
}

.section-setting-group legend {
  padding: 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.section-layout-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.section-layout-row:first-of-type {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.section-height-setting .section-layout-row {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.section-media-setting .section-layout-row {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.section-radius-setting .section-layout-row {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.section-layout-card label {
  min-width: 0;
  line-height: 1.35;
  font-size: 13px;
  white-space: nowrap;
}

.section-layout-card input,
.section-layout-card select {
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  font-size: 14px;
}

.section-layout-card input:disabled,
.section-layout-card select:disabled {
  color: #94a3b8;
  background: #eef2f6;
}

.section-layout-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-line input {
  width: auto;
  min-height: auto;
}

.permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-permissions-panel {
  scroll-margin-top: 24px;
}

.user-permissions-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 16px;
}

.user-permissions-panel-head h2 {
  margin: 0;
}

.user-permissions-panel-head p {
  margin: 0;
  font-weight: 800;
}

.user-hover-permission-list {
  min-height: 38px;
}

.permission-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.permission-fieldset legend {
  padding: 0 8px;
  color: var(--steel);
  font-weight: 800;
}

.permission-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.permission-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef6f5;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.permission-list span.is-empty {
  color: #64748b;
  background: #f1f5f9;
}

.users-admin-table tbody tr[data-user-permissions] {
  cursor: help;
}

.users-admin-table tbody tr[data-user-permissions]:hover td,
.users-admin-table tbody tr[data-user-permissions]:focus td {
  background: #f8fafc;
}

.users-admin-table tr.is-inactive td {
  color: #64748b;
  background: #f8fafc;
}

.user-admin-form .muted-note {
  margin: 0 0 10px;
}

.user-self-badge,
.status-badge,
.permission-count {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.user-self-badge {
  margin-inline-start: 8px;
  color: var(--brand-dark);
  background: #eef6f5;
}

.status-badge.is-active {
  color: #166534;
  background: #dcfce7;
}

.status-badge.is-disabled {
  color: #991b1b;
  background: #fee2e2;
}

.permission-count {
  color: var(--steel);
  background: #edf2f7;
  cursor: help;
}

.user-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.user-row-actions form {
  margin: 0;
}

.app-card {
  border-top: 4px solid var(--warning);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 14px 18px;
  }

  .site-nav,
  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-section,
  .split-section,
  .auth-shell,
  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding: 42px 18px 56px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .card-grid.three,
  .card-grid.two,
  .metric-grid,
  .work-form,
  .permission-checks {
    grid-template-columns: 1fr;
  }

  .section-layout-intro,
  .section-layout-grid {
    grid-template-columns: 1fr;
  }

  .section-layout-workspace {
    overflow-x: visible;
  }

  .section-layout-table {
    min-width: 0;
  }

  .section-layout-table tbody tr {
    flex-direction: column;
    align-items: stretch;
  }

  .section-layout-name,
  .section-layout-table tbody td {
    flex: 0 0 auto;
    width: 100%;
  }

  .section-layout-table tbody td:nth-of-type(1),
  .section-layout-table tbody td:nth-of-type(2),
  .section-layout-table tbody td:nth-of-type(3),
  .section-layout-table tbody td:nth-of-type(4) {
    flex: 0 0 auto;
  }

  .section-layout-card {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .section-layout-groups {
    grid-template-columns: 1fr;
  }

  .section-height-setting .section-layout-row,
  .section-radius-setting .section-layout-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .section-media-setting .section-layout-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .site-footer {
    flex-direction: column;
    padding: 28px 18px;
  }

  .dashboard-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero-actions,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .dashboard-content {
    padding: 16px;
  }

  .section-layout-row,
  .section-layout-row:first-of-type {
    grid-template-columns: 1fr;
  }

  .table-section {
    overflow-x: auto;
  }
}

@media (max-width: 420px) {
  .section-layout-card {
    padding: 12px;
  }

  .section-setting-group {
    padding: 10px;
  }

  .section-layout-card input,
  .section-layout-card select {
    padding-inline: 8px;
  }
}

/* Public catalogue-style redesign */
.public-body {
  background: #fff;
}

.dannoun-like-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr minmax(calc(520px + 3cm), calc(27.5% + 3cm));
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: #fff;
  border-bottom: 4px solid #e30613;
  backdrop-filter: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

html[lang="ar"] .brand-ribbon,
html[lang="en"] .brand-ribbon {
  grid-column: 2;
  grid-row: 1;
}

html[lang="ar"] .nav-panel,
html[lang="en"] .nav-panel {
  grid-column: 1;
  grid-row: 1;
}

.brand-ribbon {
  height: 1.78cm;
  min-height: 1.78cm;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: #0a3d78;
  color: #fff;
  overflow: hidden;
}

.brand-ribbon .brand-link {
  color: #fff;
  gap: 12px;
}

html[lang="ar"] .brand-ribbon .brand-link,
html[lang="en"] .brand-ribbon .brand-link {
  flex-direction: row-reverse;
}

.brand-ribbon .brand-link img {
  width: 68px;
  height: 42px;
  filter: brightness(0) saturate(100%) invert(78%) sepia(78%) saturate(1033%) hue-rotate(359deg) brightness(103%) contrast(106%);
}

.brand-ribbon .brand-link strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
}

.brand-ribbon .brand-link small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  line-height: 1.1;
}

.nav-panel {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  height: 1.78cm;
  min-height: 1.78cm;
  padding: 0 18px;
  background: #0a3d78;
}

.nav-panel .header-actions {
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
}

.nav-panel .menu-toggle {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  display: none;
}

.nav-panel .nav-home-action {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}

.nav-panel .site-nav {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 22px;
  min-width: 0;
  overflow: visible;
  scrollbar-width: none;
  white-space: nowrap;
}

.nav-panel .site-nav::-webkit-scrollbar {
  display: none;
}

.nav-panel .site-nav a {
  flex: 0 0 auto;
  padding: 8px 0;
  border-radius: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.nav-panel .site-nav a:hover {
  color: #ffd21a;
  background: transparent;
}

.header-nav-entry {
  position: relative;
  flex: 0 0 auto;
}

.nav-panel .site-nav .header-nav-parent {
  min-width: 170px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 0;
  background: #fff;
  color: #202733;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.header-nav-caret {
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.header-nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  z-index: 90;
  min-width: 220px;
  display: grid;
  gap: 0;
  padding: 8px 0;
  border: 1px solid #dbe3eb;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.header-nav-entry:hover .header-nav-submenu,
.header-nav-entry:focus-within .header-nav-submenu,
.header-nav-entry.is-pinned .header-nav-submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-panel .site-nav .header-nav-submenu a {
  display: block;
  padding: 11px 18px;
  color: #202733;
  font-size: 16px;
  line-height: 1.25;
  text-align: start;
}

.nav-panel .site-nav .header-nav-submenu a:hover,
.nav-panel .site-nav .header-nav-submenu a:focus-visible {
  color: #e30613;
  background: #f8fafc;
  outline: none;
}

.nav-action {
  min-width: 58px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 8px;
  background: #fff;
  color: #202733;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.nav-action:hover {
  border-color: #e30613;
  color: #e30613;
}

.lang-switch {
  color: #e30613;
}

.nav-panel .lang-switch {
  display: inline-flex;
  order: 2;
  min-width: 38px;
  min-height: 20px;
  padding: 0 7px;
  border-color: #e30613;
  border-radius: 4px;
  background: #fff;
  color: #e30613;
  font-size: 12px;
  line-height: 1;
  box-shadow: none;
}

.login-action svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.login-action {
  position: relative;
  order: 1;
  min-width: 46px;
  min-height: 42px;
  color: #38bdf8;
}

.login-action::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background: #38bdf8;
}

.nav-home-action {
  width: 58px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 8px;
  background: #fff;
  color: #0a3d78;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.nav-home-action svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-home-action:hover,
.nav-home-action:focus-visible {
  color: #e30613;
  border-color: #e30613;
  outline: none;
}

.menu-toggle {
  width: 94px;
  height: 46px;
  display: inline-grid;
  place-content: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #0d3c72, #071f3d);
  box-shadow: 0 8px 20px rgba(7, 31, 61, .18);
  cursor: pointer;
}

.menu-toggle span {
  width: 38px;
  height: 4px;
  display: block;
  background: #fff;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  outline: 2px solid #e30613;
  outline-offset: 3px;
}

body.menu-open {
  overflow: hidden;
}

.menu-overlay {
  position: fixed;
  inset-inline: 0;
  top: 1.78cm;
  bottom: 0;
  z-index: 70;
  display: block;
  padding: 0;
  background: rgba(241, 245, 249, .42);
  backdrop-filter: blur(1.5px) saturate(112%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, backdrop-filter 160ms ease;
}

.menu-overlay[hidden] {
  display: none;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-panel {
  position: absolute;
  top: 54px;
  right: clamp(24px, 12vw, 260px);
  width: min(620px, calc(100vw - 48px));
  max-height: 84vh;
  display: grid;
  justify-items: stretch;
  gap: 5px;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 28px 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  filter: none;
  transform: translateY(6px);
  transform-origin: center;
  transition:
    opacity 160ms ease,
    transform 180ms ease;
  will-change: opacity, transform;
}

.menu-panel::-webkit-scrollbar {
  display: none;
}

.menu-overlay.is-open .menu-panel {
  opacity: 1;
  transform: translateY(0);
}

.menu-entry {
  position: relative;
  width: 100%;
}

.menu-panel a,
.menu-parent {
  width: 100%;
  display: block;
  padding: 2px 18px 6px;
  border: 0;
  background: transparent;
  color: #0a3d78;
  font: inherit;
  font-size: clamp(24px, 3.1vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  text-align: right;
  text-shadow: none;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 180ms ease;
  cursor: pointer;
}

.menu-panel a:hover,
.menu-panel a:focus-visible,
.menu-parent:hover,
.menu-parent:focus-visible {
  color: #0a3d78;
  background: rgba(255, 255, 255, .38);
  outline: none;
  transform: translateY(-2px);
}

.menu-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 34px;
  z-index: 2;
  width: max-content;
  min-width: 150px;
  max-height: none;
  overflow: hidden;
  opacity: 0;
  display: grid;
  gap: 3px;
  margin: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.menu-entry.is-expanded .menu-submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  margin: 0;
}

.menu-submenu a {
  padding: 2px 12px;
  color: #0a3d78;
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 400;
  text-align: right;
  text-shadow: none;
}

.menu-submenu a:hover,
.menu-submenu a:focus-visible {
  color: #c5161d;
}

.menu-close {
  position: fixed;
  top: 20px;
  inset-inline-end: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  color: #202733;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.menu-close:hover,
.menu-close:focus-visible {
  color: #e30613;
  outline: 2px solid #e30613;
  outline-offset: 3px;
}

.social-rail {
  position: fixed;
  top: 390px;
  z-index: 25;
  display: grid;
  gap: 10px;
  width: .5cm;
  padding: 10px 0;
  overflow: hidden;
  border-radius: 18px;
  background: #e30613;
  box-shadow: 0 18px 40px rgba(227, 6, 19, 0.24);
  transition: width 220ms ease, padding 220ms ease, border-radius 220ms ease;
}

.social-rail:hover,
.social-rail:focus-within {
  width: 62px;
  padding: 10px;
}

html[lang="ar"] .social-rail {
  right: 18px;
  left: auto;
}

html[lang="en"] .social-rail {
  right: auto;
  left: 18px;
}

.social-rail a {
  width: 42px;
  height: 42px;
  justify-self: center;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #e30613;
  font-weight: 900;
  font-size: 20px;
  opacity: 0;
  transform: scale(.82);
  transition: opacity 160ms ease, transform 160ms ease;
}

.social-rail:hover a,
.social-rail:focus-within a {
  opacity: 1;
  transform: scale(1);
}

.catalog-hero {
  display: block;
  width: min(var(--section-width, 100vw), 100vw);
  margin-right: auto;
  margin-left: auto;
  min-height: var(--section-min-height, 90vh);
  margin-top: 1cm;
  padding: 0;
  overflow: hidden;
  border-radius: var(--section-card-radius, 0);
  background: #fff;
}

.hero-slide {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: var(--section-min-height, 90vh);
  background: #f7f7f5;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: var(--section-min-height, 90vh);
  min-height: var(--section-min-height, 90vh);
  overflow: hidden;
  border-radius: var(--section-card-radius, 0);
  background: #f7f7f5;
}

.hero-track {
  position: relative;
  width: 100%;
  height: var(--section-min-height, 90vh);
  min-height: var(--section-min-height, 90vh);
}

.hero-track .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-28px);
  transition: opacity 700ms ease, transform 850ms ease;
}

[dir="rtl"] .hero-track .hero-slide {
  transform: translateX(28px);
}

.hero-track .hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}

.hero-track .hero-slide.is-active .hero-slide-image {
  animation: heroImageDrift 5.4s ease both;
}

.slide-copy {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: var(--section-min-height, 90vh);
  padding: 58px 74px;
  background: transparent;
  pointer-events: none;
}

[dir="ltr"] .slide-copy {
  background: transparent;
}

.slide-copy h1 {
  margin: 0;
  max-width: 720px;
  color: #fff;
  font-size: clamp(42px, 3.4vw, 62px);
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(15, 23, 42, .38);
}

.slide-copy p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(22px, 1.7vw, 30px);
  line-height: 1.55;
  text-shadow: 0 2px 14px rgba(15, 23, 42, .34);
}

.slide-copy .eyebrow,
.slide-copy .hero-actions {
  pointer-events: auto;
}

.slide-copy .eyebrow {
  font-size: clamp(24px, 1.9vw, 32px);
  line-height: 1.25;
}

.slide-copy .hero-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.slide-copy .hero-actions .button {
  min-width: 230px;
  min-height: 58px;
  padding: 0 24px;
  font-size: 20px;
  line-height: 1.2;
}

.slide-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  min-height: var(--section-min-height, 90vh);
  padding: 44px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.85), transparent 34%),
    linear-gradient(135deg, #e30613, #a9000d);
}

.slide-art img {
  width: 240px;
  max-height: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.slide-art .hero-slide-image {
  position: absolute;
  inset: 0;
  width: var(--section-media-width, 100%);
  height: var(--section-media-height, 100%);
  margin: auto;
  max-height: none;
  border-radius: var(--section-media-radius, 0);
  object-fit: var(--section-media-fit, cover);
  object-position: var(--section-media-position, 50% 50%);
  filter: none;
  opacity: .94;
}

.slide-art video.hero-slide-image {
  display: block;
}

.slide-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(227, 6, 19, .22), rgba(18, 26, 38, .12)),
    radial-gradient(circle at 18% 24%, rgba(255,255,255,.38), transparent 28%);
}

.slide-art.has-media::after {
  background: linear-gradient(135deg, rgba(15, 23, 42, .24), rgba(15, 23, 42, .10));
}

.control-panel-illustration {
  position: relative;
  z-index: 2;
  width: min(320px, 88%);
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 24px 55px rgba(22, 27, 34, .22);
}

.control-panel-illustration span {
  border-radius: 6px;
  background: linear-gradient(180deg, #dbe3eb, #94a3b8);
  box-shadow: inset 0 -20px 0 rgba(15, 23, 42, .16);
}

.slide-dots {
  position: absolute;
  bottom: 30px;
  inset-inline-start: 74px;
  display: flex;
  gap: 12px;
  z-index: 5;
}

.slide-dots b,
.slide-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  background: #1f2937;
  cursor: pointer;
}

.slide-dots b:nth-child(even),
.slide-dots button.is-active {
  background: #e30613;
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #e30613;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .18);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-nav:hover {
  background: #e30613;
  color: #fff;
}

.hero-prev {
  inset-inline-start: 24px;
}

.hero-next {
  inset-inline-end: 24px;
}

@keyframes heroImageDrift {
  from {
    transform: scale(1.03) translateX(0);
  }
  to {
    transform: scale(1.12) translateX(-14px);
  }
}

.products-section,
.brands-section,
.news-section,
.projects-strip {
  width: min(var(--section-width, 1160px), calc(100% - 34px));
  min-height: var(--section-min-height, auto);
  margin: 0 auto;
  padding: 58px 0;
}

.center-heading {
  display: grid;
  justify-items: center;
  margin-bottom: 34px;
}

.center-heading h2 {
  position: relative;
  margin: 0;
  padding-bottom: 12px;
  color: #202733;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.35;
}

.center-heading h2::after {
  content: "";
  position: absolute;
  inset-inline: 18%;
  bottom: 0;
  height: 6px;
  background: #e30613;
}

.product-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(248px, 1fr);
  grid-template-columns: none;
  grid-template-rows: 1fr;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding: 2px;
}

.product-grid::-webkit-scrollbar,
.project-mini-list::-webkit-scrollbar {
  display: none;
}

.product-card {
  overflow: hidden;
  min-height: 330px;
  scroll-snap-align: start;
  border: 1px solid #d7dce2;
  border-radius: var(--section-card-radius, 8px);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.product-thumb {
  position: relative;
  min-height: 168px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--section-media-radius, 8px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.2), transparent),
    #20303c;
}

.product-thumb::before,
.product-thumb::after {
  content: "";
  position: absolute;
  border-radius: var(--section-media-radius, 8px);
}

.product-thumb::before {
  width: 58%;
  height: 42%;
  background: rgba(255, 255, 255, .88);
  box-shadow: inset 0 -16px 0 rgba(15, 23, 42, .14);
}

.product-thumb::after {
  width: 34%;
  height: 8px;
  bottom: 36px;
  background: #e30613;
}

.product-thumb.has-media::before,
.product-thumb.has-media::after {
  display: none;
}

.product-thumb-image {
  position: absolute;
  inset: 0;
  width: var(--section-media-width, 100%);
  height: var(--section-media-height, 100%);
  margin: auto;
  border-radius: var(--section-media-radius, 8px);
  object-fit: var(--section-media-fit, cover);
  object-position: var(--section-media-position, 50% 50%);
}

.product-thumb span {
  position: absolute;
  top: 14px;
  inset-inline-start: 16px;
  z-index: 1;
  color: rgba(255,255,255,.88);
  font-size: 24px;
  font-weight: 900;
}

.thumb-2 { background-color: #32404c; }
.thumb-3 { background-color: #0f766e; }
.thumb-4 { background-color: #475569; }
.thumb-5 { background-color: #8a1f2d; }
.thumb-6 { background-color: #243b53; }
.thumb-7 { background-color: #5b6470; }
.thumb-8 { background-color: #17313b; }

.product-card h3 {
  min-height: 64px;
  margin: 22px 22px 10px;
  color: #202733;
  font-size: 24px;
  line-height: 1.35;
}

.product-card p {
  margin: 0 22px 24px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.45;
}

.consultation-placeholder-card h3,
.consultation-placeholder-card p {
  color: transparent;
  user-select: none;
}

.brands-section {
  width: 100%;
  padding-inline: 34px;
  background: #f8fafc;
  border-block: 1px solid #e2e8f0;
}

.brand-carousel,
.section-carousel {
  position: relative;
  width: min(var(--section-width, 1160px), 100%);
  margin: 0 auto;
  padding: 0 58px;
}

.brand-logo-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  grid-template-rows: repeat(2, 112px);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding: 2px;
}

.brand-logo-grid::-webkit-scrollbar {
  display: none;
}

.brand-logo-grid a {
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe3eb;
  border-radius: var(--section-card-radius, 6px);
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.brand-logo-grid a strong {
  font-size: 18px;
  line-height: 1.1;
  text-align: center;
}

.brand-logo-grid a img {
  width: var(--section-media-width, 108px);
  height: var(--section-media-height, 46px);
  max-width: 100%;
  max-height: 78px;
  border-radius: var(--section-media-radius, 0);
  object-fit: var(--section-media-fit, contain);
  object-position: var(--section-media-position, 50% 50%);
}

.brand-logo-grid a.logo-missing img {
  display: none;
}

.brand-scroll,
.catalog-scroll {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #e30613;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
  cursor: pointer;
  transform: translateY(-50%);
}

.brand-scroll:hover,
.catalog-scroll:hover {
  background: #e30613;
  color: #fff;
}

.brand-scroll-prev,
.catalog-scroll-prev {
  inset-inline-start: 0;
}

.brand-scroll-next,
.catalog-scroll-next {
  inset-inline-end: 0;
}

.brand-logo-grid a:hover,
.brand-logo-grid a:focus-visible {
  border-color: #e30613;
  box-shadow: 0 10px 24px rgba(227, 6, 19, .12);
  outline: none;
}

.brand-logo-grid a.is-bouncing {
  animation: brandBounce 620ms cubic-bezier(.2, .9, .25, 1.2);
}

@keyframes brandBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-14px) scale(1.04);
  }
  62% {
    transform: translateY(4px) scale(.98);
  }
  82% {
    transform: translateY(-5px) scale(1.01);
  }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.brand-page-hero {
  padding-bottom: 28px;
}

.brand-page-logo-frame {
  width: min(460px, 100%);
  height: 190px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  margin: 16px 0 8px;
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  background: #fff;
}

.brand-page-logo {
  width: auto;
  height: auto;
  max-width: 86%;
  max-height: 76%;
  object-fit: contain;
}

.brand-page-logo-frame strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #e30613;
  font-family: Arial, sans-serif;
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 900;
  line-height: 1;
  opacity: 0;
}

.brand-page-logo-frame.logo-missing .brand-page-logo {
  display: none;
}

.brand-page-logo-frame.logo-missing strong {
  opacity: 1;
}

.brand-products-section {
  width: min(1160px, calc(100% - 34px));
  margin: 0 auto;
  padding: 36px 0 70px;
}

.brand-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.brand-product-card {
  min-height: 145px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid #d7dce2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.brand-product-card span {
  color: #e30613;
  font-weight: 900;
}

.brand-product-card h3 {
  margin: 0;
  color: #202733;
  font-size: 24px;
  line-height: 1.3;
}

.brand-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.news-card {
  overflow: hidden;
  border: 1px solid #d7dce2;
  border-radius: var(--section-card-radius, 8px);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.news-card > div:last-child {
  padding: 18px;
}

.news-image {
  width: min(var(--section-media-width, 100%), 100%);
  min-height: var(--section-media-height, 150px);
  overflow: hidden;
  border-radius: var(--section-media-radius, 8px);
  background:
    linear-gradient(135deg, rgba(227, 6, 19, .82), rgba(31, 41, 55, .86)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0, rgba(255,255,255,.2) 1px, transparent 1px, transparent 24px);
}

.news-image img,
.news-image video {
  width: 100%;
  height: var(--section-media-height, 150px);
  border-radius: var(--section-media-radius, 8px);
  object-fit: var(--section-media-fit, cover);
  object-position: var(--section-media-position, 50% 50%);
}

.news-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.news-card time {
  display: block;
  color: #e30613;
  font-size: 13px;
  font-weight: 800;
}

.news-card p {
  color: #64748b;
}

.news-card a {
  color: #e30613;
  font-weight: 900;
}

.projects-strip {
  display: grid;
  gap: 28px;
  align-items: start;
}

.projects-strip .center-heading {
  margin-bottom: 0;
}

.projects-intro {
  max-width: 760px;
  margin: 14px 0 0;
  color: #64748b;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}

.project-mini-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  grid-template-columns: none;
  grid-template-rows: 1fr;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding: 2px;
}

.project-mini-list:empty {
  min-height: 130px;
}

.project-mini-list article {
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 18px;
  border-inline-start: 6px solid #e30613;
  border-radius: var(--section-card-radius, 8px);
  border: 1px solid #d7dce2;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  scroll-snap-align: start;
}

.project-mini-list article.has-media {
  align-content: stretch;
  padding: 0;
  background: #111827;
}

.project-mini-media {
  min-height: 116px;
  overflow: hidden;
}

.project-mini-media img,
.project-mini-media video {
  width: var(--section-media-width, 100%);
  height: var(--section-media-height, 116px);
  margin: auto;
  border-radius: var(--section-media-radius, 8px);
  object-fit: var(--section-media-fit, cover);
  object-position: var(--section-media-position, 50% 50%);
}

.project-mini-list article.has-media strong,
.project-mini-list article.has-media small {
  padding-inline: 18px;
}

.project-mini-list article.has-media strong {
  padding-top: 16px;
}

.project-mini-list article.has-media small {
  padding-bottom: 18px;
}

.project-mini-list strong {
  color: #202733;
  font-size: 20px;
  line-height: 1.25;
}

.project-mini-list small {
  display: block;
  color: #64748b;
  font-size: 15px;
  line-height: 1.45;
}

.detailed-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 46px 64px;
  background: #202733;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-column h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
}

.footer-column p,
.footer-column a {
  margin: 0;
  color: #cbd5e1;
}

.footer-logo {
  width: 128px;
  filter: brightness(0) invert(1);
}

@media (max-width: 1100px) {
  .product-grid {
    grid-auto-columns: minmax(250px, 45%);
  }

  .project-mini-list {
    grid-auto-columns: minmax(250px, 45%);
  }

  .brand-logo-grid {
    grid-auto-columns: 170px;
  }
}

@media (max-width: 860px) {
  .dannoun-like-header,
  .hero-slide,
  .projects-strip,
  .detailed-footer {
    grid-template-columns: 1fr;
  }

  .brand-ribbon,
  .nav-panel {
    min-height: auto;
  }

  html[lang="ar"] .brand-ribbon,
  html[lang="en"] .brand-ribbon,
  html[lang="ar"] .nav-panel,
  html[lang="en"] .nav-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .nav-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .nav-panel .header-actions,
  .nav-panel .site-nav,
  .nav-panel .menu-toggle,
  .nav-panel .nav-home-action {
    grid-column: 1;
    grid-row: auto;
  }

  .nav-panel .header-actions {
    justify-content: flex-start;
  }

  .nav-panel .site-nav {
    display: none;
  }

  .nav-panel .lang-switch {
    display: inline-flex;
  }

  .nav-panel .menu-toggle,
  .nav-panel .nav-home-action {
    justify-self: flex-start;
  }

  .nav-panel .menu-toggle {
    display: inline-grid;
  }

  .slide-copy {
    padding: 42px 24px;
  }

  .slide-copy h1 {
    font-size: 38px;
  }

  .slide-copy p {
    font-size: 22px;
  }

  .slide-copy .eyebrow {
    font-size: 23px;
  }

  .slide-copy .hero-actions .button {
    min-width: 210px;
    min-height: 54px;
    font-size: 18px;
  }

  .social-rail {
    display: none;
  }

  .menu-panel {
    top: 24px;
    right: 18px;
    left: 18px;
    width: auto;
  }

  .menu-submenu {
    position: static;
    width: auto;
    min-width: 0;
    transform: none;
    margin: 0;
  }

  .menu-entry.is-expanded .menu-submenu {
    margin: 2px 22px 8px 0;
  }

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

@media (max-width: 560px) {
  .news-grid,
  .brand-products-grid {
    grid-template-columns: 1fr;
  }

  .brand-carousel,
  .section-carousel {
    padding: 0 44px;
  }

  .product-grid,
  .project-mini-list {
    grid-auto-columns: minmax(230px, 88%);
  }

  .brand-logo-grid {
    grid-auto-columns: 160px;
  }

  .brand-ribbon .brand-link {
    align-items: flex-start;
  }

  .brand-ribbon .brand-link strong {
    font-size: 22px;
  }
}
