@import "./fonts.css";

html[lang="ar"],
html[dir="rtl"],
body[dir="rtl"],
.font-almarai {
  font-family: "Almarai", Arial, sans-serif;
}

html[lang="en"],
html[dir="ltr"],
body[dir="ltr"],
.font-inter {
  font-family: "Inter", Arial, sans-serif;
}

body {
  font-family: "Almarai", "Inter", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.site-main {
    min-height: calc(100vh - 160px);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: 0;
}

.card {
    background: #fff;
    border: 1px solid #eadfca;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .06);
}

.alert {
    padding: 14px 16px;
    margin: 14px 0;
    border-radius: 14px;
    font-weight: 800;
}

.alert-danger {
    color: #991b1b;
    background: #fee2e2;
}

.alert-success {
    color: #166534;
    background: #dcfce7;
}

.form-group {
    margin-bottom: 16px;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.da-mobile-links button {
    text-align: inherit;
    background: transparent;
    font: inherit;
    color: inherit;
    padding: 0;
}

.da-mobile-links .is-danger {
    color: #b91c1c;
    font-weight: 900;
}

.exact-loader {
    width: min(1180px, 94%);
    margin: 36px auto;
    background: #fff;
    border: 1px solid #eadfca;
    border-radius: 24px;
    padding: 26px;
}

/* Beautiful loading skeleton used instead of plain Loading... */
.page-skeleton {
  width: min(1180px, 94%);
  margin: 36px auto;
}

.page-skeleton__hero,
.page-skeleton__card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eadfca;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .06);
}

.page-skeleton__hero {
  border-radius: 28px;
  padding: 30px;
  margin-bottom: 22px;
}

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

.page-skeleton__card {
  border-radius: 24px;
  padding: 16px;
}

.page-skeleton__pill,
.page-skeleton__title,
.page-skeleton__text,
.page-skeleton__image,
.page-skeleton__line {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5ead8 0%, #fff7eb 45%, #f0dfc5 100%);
  background-size: 220% 100%;
  animation: page-skeleton-shimmer 1.35s ease-in-out infinite;
}

.page-skeleton__pill {
  width: 120px;
  height: 16px;
  margin-bottom: 18px;
}

.page-skeleton__title {
  width: min(460px, 85%);
  height: 34px;
  margin-bottom: 18px;
}

.page-skeleton__text {
  width: min(520px, 80%);
  height: 14px;
  margin-top: 12px;
}

.page-skeleton__text--wide {
  width: min(680px, 95%);
}

.page-skeleton__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  margin-bottom: 18px;
}

.page-skeleton__line {
  width: 95%;
  height: 13px;
  margin: 12px 0;
}

.page-skeleton__line--medium {
  width: 70%;
}

.page-skeleton__line--short {
  width: 45%;
}

@keyframes page-skeleton-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@media (max-width: 900px) {
  .page-skeleton__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-skeleton {
    width: min(94%, 520px);
    margin: 22px auto;
  }

  .page-skeleton__grid {
    grid-template-columns: 1fr;
  }

  .page-skeleton__hero {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-skeleton__pill,
  .page-skeleton__title,
  .page-skeleton__text,
  .page-skeleton__image,
  .page-skeleton__line {
    animation: none;
  }
}
