:root {
  --header-bg: rgb(252, 250, 243);
  --navbar-bg: rgb(193, 199, 173);
  --text-color: rgb(51, 51, 51);
  --primary: #007773;
  --radius: 5px;
}

@font-face {
  font-family: Afarin;
  src: url("/assets/fonts/Afarinw-Light.woff") format("woff");
  font-weight: 400;
}

@font-face {
  font-family: Afarin;
  src: url("/assets/fonts/Afarinw-Bold.woff") format("woff");
  font-weight: 600;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Afarin", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  direction: rtl;
  list-style: none;
  color: var(--text-color);
}

body {
  overflow-x: hidden;
}

.header {
  position: sticky;
  top: 0;
  z-index: 15;
  background-color: var(--header-bg);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.16);
}

.header-top {
  background-color: var(--navbar-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 0 16px; */
}

.breadcrumb {
  padding: 8px 0;
}

.breadcrumb ul {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb ul li a,
.breadcrumb ul li span {
  color: var(--text-color);
  font-size: 16px;
}

.header-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-side {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.logo-side img {
  max-width: 160px;
  /* padding-right: 16px; */
}

.logo-side h3 {
  font-size: clamp(1.5rem, 5vw, 1.8rem);
  font-weight: 600;
}

.btn-return {
  background-color: var(--primary);
  padding: 10px 20px;
  border-radius: var(--radius);
  color: white;
  font-size: 14px;
  text-align: center;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.btn-return:hover {
  background-color: #005f5b;
}

.wrapper {
  margin: 22px 0 84px 0;
  background-color: var(--header-bg);
  border: 1px solid #ececec;
  padding: 16px;
  border-radius: var(--radius);
  min-height: 700px;
}

.wrapper h4 {
  color: var(--primary);
  font-size: 20px;
  font-weight: 600;
}

.wrapper p {
  margin-top: 24px;
  line-height: 28px;
  font-size: 16px;
}

.download-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.download-box {
  background-color: white;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 22px 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  height: 250px;
}

.download-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.download-box svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.download-box h5 {
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.download-box p {
  font-size: 14px;
  color: var(--text-color);
  line-height: 22px;
  margin-bottom: 22px;
}

.download-wrapper {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  /* outline: 1px solid red; */
}
.download-box .download-label {
  background-color: var(--primary);
  color: white;
  padding: 4px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  width: 200px;
  outline: unset !important;
  border: unset;
  cursor: pointer;
  margin-bottom: 6px;
  /* text-align: center; */
  /* margin-top: 22px; */
}

.footer {
  background-color: var(--navbar-bg);
  padding: 16px;
  text-align: center;
  width: 100%;
  position: fixed;
  bottom: 0;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-bottom {
    /* flex-direction: column; */
    padding: 12px;
    /* align-items: flex; */
    justify-content: space-between;
  }

  .logo-side h3 {
    display: none;
  }

  .logo-side {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .logo-side img {
    padding-right: 0;
  }

  .btn-return {
    width: 100%;
    text-align: center;
  }

  .footer {
    position: static;
  }
}

@media (max-width: 480px) {
  .breadcrumb ul li a,
  .breadcrumb ul li span {
    font-size: 14px;
  }

  .logo-side h3 {
    font-size: 1.5rem;
  }

  .wrapper h4 {
    font-size: 18px;
  }

  .wrapper p {
    font-size: 14px;
    line-height: 24px;
  }

  .download-boxes {
    grid-template-columns: 1fr;
  }
}
