/* Reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Variables */
:root {
  --main-color: #07706d;
  --alt-color: #84bc47;
  --main-transition: 0.3s;
}

@font-face {
  font-family: "NotoKufiArabic";
  src:
    url("fonts/NotoKufiArabic-Regular.woff2") format("woff2"),
    url("fonts/NotoKufiArabic-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Global */
body {
  font-family: "NotoKufiArabic";
  background-color: #f2f2f2;
}

input,
button,
span,
p,
h1 {
  font-family: "NotoKufiArabic" !important;
}

ul {
  list-style: none;
}

a {
  color: #000;
  text-decoration: none;
}

::-webkit-scrollbar {
  width: 0.6rem;
  height: 0.6rem;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

::-webkit-scrollbar-thumb {
  background-color: #1e4948;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  border-radius: 0.4rem;
}

::selection {
  background-color: #6bb21f;
  color: #fff;
}

button {
  border: none;
  cursor: pointer;
  background-color: transparent;
}

/* Header backgrounds */
.alt-header {
  background: #046f6d;
}

.header-cont {
  position: relative;
  background: linear-gradient(
    220deg,
    #000 30.33%,
    #389492 83.58%,
    #046f6d 101.33%
  );
}

.header-cont.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.header-cont.scrolled .header {
  height: unset;
}
.header-cont.scrolled .header,
.header-cont.scrolled .alt-header,
.header-cont.scrolled .header-container {
  background: unset !important;
}

.header-cont.scrolled .nav-list li a span,
.header-cont.scrolled .nav-list li a i,
.header-cont.scrolled .settings .item span,
.header-cont.scrolled .settings .top-btn span,
.header-cont.scrolled .settings .item i,
.header-cont.scrolled svg:not(:host).svg-inline--fa,
.header-cont.scrolled svg:not(:root).svg-inline--fa {
  color: var(--main-color) !important;
}

.header-cont.scrolled .blady-logo-container .blady-logo img {
  filter: brightness(0) saturate(100%) invert(14%) sepia(29%) saturate(1346%)
    hue-rotate(130deg) brightness(103%) contrast(97%) !important;
}
.header-cont.scrolled .menu-toggle .menu-item {
  background-color: var(--main-color);
}

/* Header */
.header {
  background:
    url("https://apps.balady.gov.sa/BALADYCDN/Content/unified_identity_assets/images/Path.svg"),
    url("https://apps.balady.gov.sa/BALADYCDN/Content/unified_identity_assets/images/Vector.svg");
  background-repeat: no-repeat, no-repeat;
  background-position:
    left bottom,
    right 100px;
  background-size: 350px, 125px;
  position: relative;
  height: 470px;
}

.header::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(6px);
  z-index: 0;
}

/* Header container */
.header-container {
  background-image: linear-gradient(220deg, #000 30.33%, #3894925c 83.58%);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-height: 105px;
  height: 100%;
}

/* Right side (logo + nav) */
.header-container .right-side {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
}
.right-side .blady-logo-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}

.blady-logo-container .blady-logo.alt-logo {
  display: none;
}
.blady-logo-container .blady-logo.alt-logo.show {
  display: flex;
}
.blady-logo-container .blady-logo {
  display: flex;
  align-items: center;
}

.blady-logo-container .blady-logo.alt-logo img {
  width: 90px;
}

.blady-logo-container .blady-logo img {
  width: 110px;
}

.blady-logo-container .blady-logo.alt-logo

/* Navbar */
.header .navbar {
  position: static;
  padding: 0;
  align-items: center;
  justify-content: space-between;
}

.navbar .nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.header-cont .nav-list li a span,
.header-cont .nav-list li a i,
.header-cont .settings .item span,
.header-cont .settings .item i {
  transition: 0.3s ease;
}

.icon-sm-screen {
  display: none;
}

.navbar .nav-list li a {
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.navbar .nav-list li a span {
  font-size: 20px;
}

.navbar .nav-list li a:hover span {
  color: var(--alt-color);
}

/* Nested list (mega menu layout - desktop) */
.navbar .nav-list li .nested-list {
  grid-template-columns: repeat(4, 1fr);
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background-color: #fff;
  position: absolute;
  width: 100vw;
  min-height: 162px !important;
  left: 0;
  margin-top: 1rem;
  padding: 11px 42px;
  text-align: right !important;
  max-height: 722px !important;
  overflow-x: hidden !important;
  box-shadow: 0 0.75rem 1rem rgba(0, 0, 0, 0.1490196078) !important;
  background: #fff !important;
}

.nav-list li .nested-list {
  display: none !important;
}

.nav-list li.open > .nested-list {
  display: grid !important;
  animation: dropdownFade 0.25s ease-out;
  z-index: 1000;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar .nav-list li.open > a span,
.navbar .nav-list li.open > a i,
.navbar .nav-list li.open > a:hover span,
.navbar .nav-list li.open > a:hover i {
  color: var(--alt-color);
}

.navbar .nav-list li .nested-list.without-head {
  grid-template-columns: repeat(1, 1fr);
}

.navbar .nav-list li .nested-list .nested-list-item ul.without-head {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
}

.navbar .nav-list li .nested-list .nested-list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.navbar .nav-list li .nested-list .nested-list-item h3 {
  color: var(--main-color);
  font-size: 20px;
}

.navbar .nav-list li .nested-list .nested-list-item ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.navbar .nav-list li .nested-list .nested-list-item a {
  color: var(--main-color);
  font-size: 20px;
  font-weight: 500;
  padding-inline: 0.5rem;
  transition: all var(--main-transition) ease-in-out;
  display: block;
}

.navbar .nav-list li .nested-list .nested-list-item a:hover {
  background-color: var(--main-color);
  color: #fff;
  transform: scale(1.02);
}

/* Badges */
.badge-new {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.5rem;
  font-weight: normal !important;
  margin-right: 0.4rem;
  color: #fff;
}

.badge-new-green {
  background-color: #84bc47;
}

.badge-new-blue {
  background-color: #0052cc;
}

/* Settings icons */
.header-container .settings {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-container .settings .item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  position: relative;
}

.header-container .settings .item svg {
  font-size: 20px;
}

.settings.min-screen {
  display: none;
}

/* Hamburger base */
.menu-toggle {
  display: none;
  width: 25px;
  background-color: transparent;
}

.menu-toggle .menu-item {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
}

/* Mobile & Tablet */
@media (max-width: 991px) {
  .header-cont {
    z-index: 1000;
  }
  .header {
    height: auto;
    background: none;
  }

  .header-container {
    background: transparent;
    flex-direction: column;
    justify-content: center;
    height: 105px;
  }

  .header-container .right-side {
    width: 100%;
    justify-content: space-between;
    padding-inline-start: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .right-side .blad-logo {
    padding-inline-start: 0;
    width: 150px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: none;
  }

  .menu-toggle:focus {
    border: none;
  }

  .navbar {
    max-height: 0;
    overflow-x: hidden;
    width: 100%;
  }

  .header-cont.mobile-open .navbar {
    max-height: 670px;
    transition: 1s;
  }
  .header-cont.mobile-open .header-container {
    max-height: unset !important;
    height: unset;
  }
  .navbar .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    gap: 0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    overflow-y: auto;
    max-height: 500px;
  }

  .navbar .nav-list li:last-child {
    border-bottom: none;
  }

  #settingsDropdownMob {
    position: fixed !important;
    top: 62%;
    left: 21%;
    width: 68%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    padding: 1rem;
  }
  #settingsDropdownMob .color-toggle-box:last-child {
    border-bottom: none;
  }

  .navbar .nav-list li a {
    flex-direction: row;
    justify-content: start;
    align-items: center;
    color: #fff;
    padding: 0.4rem 0;
  }

  .navbar .nav-list li a span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
  }

  .navbar .nav-list li a i {
    font-size: 0.8rem;
  }
  .icon-sm-screen {
    display: block;
  }

  .icon-lg-screen {
    display: none;
  }

  .navbar .nav-list li.open > a span,
  .navbar .nav-list li.open > a i {
    color: var(--alt-color);
  }

  .navbar .nav-list li .nested-list {
    position: static;
    width: 100%;
    margin-top: 0.3rem;
    padding: 1rem;
    background: white;
    box-shadow: none !important;
    grid-template-columns: 1fr;
    min-height: auto !important;
  }

  .nav-list li .nested-list {
    display: none !important;
  }

  .nav-list li.open > .nested-list {
    display: block !important;
    animation: none;
    max-height: unset !important;
  }

  .navbar .nav-list li .nested-list .nested-list-item {
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
  }

  .navbar .nav-list li .nested-list .nested-list-item h3 {
    font-size: 1rem;
  }

  .navbar .nav-list li .nested-list .nested-list-item ul {
    gap: 0.25rem;
  }

  .navbar .nav-list li .nested-list .nested-list-item a {
    font-size: 0.95rem;
    padding: 0;
    display: inline-block;
  }

  .navbar .nav-list li .nested-list .nested-list-item a:hover {
    background: none;
    color: var(--main-color);
    transform: none;
  }

  .navbar .nav-list li .nested-list.without-head {
    padding-top: 0.3rem;
  }

  .navbar .nav-list li .nested-list .nested-list-item ul.without-head {
    grid-template-columns: 1fr;
  }

  .header-container .settings {
    display: none;
  }
  .settings.min-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
  }
  .settings.min-screen .item span {
    font-size: 0.9rem;
  }
  .settings.min-screen .item svg {
    font-size: 1rem;
  }

  .main-content {
    position: unset !important;
  }
}

/* main-content */
.main-content {
  position: absolute;
  /* z-index: 999; */
  top: 120px;
  width: 100%;
  min-height: 100vh;
  width: 100%;
  left: 0;
}

@font-face {
  font-family: 'extralight';
  src: url('fonts/cairo-extralight.ttf') format('truetype');
  font-weight: normal;

}


.person-details {
  width: 80%;
  margin: 0 auto;
  padding: 3rem;
  background-color: #fff;
  border-radius: 10px;
}

.person-details h2 {
  text-align: center;
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 1rem;
    font-family: 'extralight' !important;
  color: rgb(75, 73, 73);

}




 

.person-details .person-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.person-details img {
  width: 200px;
  height: 200px;
  margin: 1rem;
}
.person-details .form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  margin-top: 0.5rem;
}

.person-details .item {
  display: flex;
  flex-direction: column;
  align-items: start;
  height: 79px;
  margin-bottom: 8px;
  padding-inline: 15px;
}

.person-details .item label {
  font-size: 13.6px;
  margin-bottom: 5.6px;
}

.person-details .item input {
  background: #f2f2f2 !important;
  color: #949c94 !important;
  cursor: not-allowed !important;
  border-radius: 8px;
  font-size: 16px;
  line-height: 49px;
  padding-left: 20px;
  position: relative;
  box-shadow: none;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  width: 100%;
  outline: initial !important;
  border: 1px solid #d7d7d7;
  padding: 8px 12px 8px 20px;
  border-color: #d7d7d7;
  height: 36px;
}

.person-details .item input:hover {
  cursor: no-drop;
}

.person-details .item input:focus {
  box-shadow: 0 0 0 0.2rem rgba(7, 112, 109, 0.25) !important;
  border-color: #07706d !important;
  outline: 0 !important;
}

/* Footer */

.footer {
  width: 100%;
  background-color: #043433;
}

.footer .container {
  width: 70%;
  margin: 0 auto;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer .container .copyright {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer .container .copyright svg {
  height: 40px;
}

.footer .container .copyright p {
  color: #fff;
  font-size: 10px;
}
.footer .container .quick-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer .container .quick-links a {
  display: block;
  font-size: 12px;
  transition: var(--main-transition);
  color: #d8d8d8;
}

.footer .container .quick-links a:hover {
  text-decoration: underline;
  color: var(--alt-color);
}

/* Mobile & Tablet */
@media (max-width: 991px) {
  .person-details {
    width: 100%;
    padding: 16px;
  }
  .person-details .form {
    grid-template-columns: 1fr;
  }

  .person-details .item {
    width: 100%;
  }

  .person-details .item input {
    width: 100%;
  }

  .footer .container {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .footer .container .copyright {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
  }
  .footer .container .copyright a {
    margin-bottom: 0.5rem;
    height: 40px;
    display: block;
  }
  .footer .container .copyright p {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
  }
}

/* Sidebar */

.sidebar-btn {
  position: fixed;
  right: 0;
  bottom: 0;
  margin: 10px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #006cf2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
  z-index: 3500;
}

.sidebar-btn svg {
  fill: #fff !important;
}

.sidebar-btn svg {
  fill: #fff !important;
  height: 25px;
  transition: 0.5s;
}

.sidebar-btn:hover {
  background-color: #fff;
}

.sidebar-btn:hover svg {
  fill: rgba(0, 108, 242, 1) !important;
}

/* ------- Accessibility Sidebar ------- */

.accessibility-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1400;
}

.accessibility-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.accessibility-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  max-width: 100%;
  height: 100vh;
  background: #16191b;
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 3500;
  font-family: "Cairo", sans-serif !important;
  box-shadow:
    rgba(0, 0, 0, 0.035) 0px 0px 2.2px,
    rgba(0, 0, 0, 0.047) 0px 0px 5.3px,
    rgba(0, 0, 0, 0.06) 0px 0px 10px,
    rgba(0, 0, 0, 0.07) 0px 0px 17.9px,
    rgba(0, 0, 0, 0.086) 0px 0px 33.4px;
}

.accessibility-panel.open {
  transform: translateX(0);
}

/* Header داخل الـ sidebar */
.ap-header {
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ap-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ap-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.ap-icon-btn:hover {
  background: #0b1120;
  border-color: #006cf2;
  color: #fff;
}

.ap-icon-active {
  background: #006cf2;
  border-color: #006cf2;
  color: #fff;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
  font-family: "Cairo", sans-serif;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #e5e5e5;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.lang-btn img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

/* ===== Dropdown Box ===== */
.lang-menu {
  position: absolute;
  top: 35px;
  right: 0;
  background: #161b22;
  width: 150px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 9999;
}

.muneer-language-switcher--lang-flag {
  width: 28px;
  height: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid transparent;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-clip: content-box;
}

.lang-dropdown.open .lang-menu {
  display: block;
}
/* ===== Items ===== */
.lang-item {
  padding: 10px 15px;
  color: #d1d1d1;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.2s;
}

.lang-item img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.lang-item:hover {
  background: #0d1117;
  color: var(--main-color);
}

.close-mode {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.close-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.moode-options {
  display: flex;
  align-items: center;

  padding: 6px 12px;
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.moode-options button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease-in-out;
}

.moode-options button svg {
  width: 15px;
  height: 15px;
  fill: #cbd5e1;
  pointer-events: none;
}

/* الزر النشط */
.moode-options button.active {
  background: #0075ff;
}
.moode-options button:hover {
  background: #1f2937;
}

.moode-options button.active svg {
  fill: #fff;
}

.ap-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  border: 2px solid #566a7e1a;
}
.ap-close svg {
  color: #deeffd;
  transition: var(--main-transition);
}

.ap-close:hover svg {
  color: #006cf2;
}

.ap-main-title {
  padding: 1rem 1.5rem 0.5rem;
}

.ap-main-title p {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  font-weight: 700;
  font-size: 1.2rem;
}

.accessibility-panel .ap-body::-webkit-scrollbar {
  width: 3px;
}

.accessibility-panel .ap-body::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.accessibility-panel .ap-body::-webkit-scrollbar-thumb {
  background: #006cf2;
  border-radius: 10px;
}

.accessibility-panel .ap-body::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

.ap-body .ap-toggle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding-bottom: 1rem;
}

.ap-toggle.helper-toggle {
  justify-content: end;
}

.ap-toggle.helper-toggle .ap-body .ap-toggle-container span {
  font-size: 1rem;
  color: #fff;
}

/* toggle */
/* ====== TOGGLE SWITCH ====== */

.ap-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

/* نخفي الـ checkbox الأصلي */
.ap-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* الخلفية الأساسية */
.ap-toggle-track {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 999px;
  background: #202528;
  display: flex;
  align-items: center;
  padding: 2px;
  cursor: pointer;
  transition: background 0.25s ease;
}

/* حدود خفيفة حول السويتش */
.ap-toggle-track::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

/* الدائرة الزرقاء */
.ap-toggle-thumb {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin: 0 5px;
  background: #1a73e8;
  transition: transform 0.25s ease;
}

.ap-toggle-track::after {
  content: "✕";
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  font-size: 13px;
  color: #1a73e8;
  transition: all 0.25s ease;
}

/* حالة ON */
.ap-toggle input:checked + .ap-toggle-track {
  background: #1a73e8;
}

/* الأيقونة في حالة ON (✔ داخل السويتش) */
.ap-toggle input:checked + .ap-toggle-track::after {
  content: "✓";
  left: auto;
  right: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
}

.ap-body {
  flex: 1;
  padding: 1.1rem 1.5rem 1.2rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.ap-section {
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding-bottom: 1rem;
}

.ap-section + .ap-section {
  margin-top: 1rem;
}

.ap-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: #e5e7eb;
}

/* الشبكة */
.ap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ap-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ap-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ap-card {
  background: #566a7e1a;

  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  height: 130px;
  max-height: 130px;
  border-radius: 12px;
  overflow: hidden;
}

.ap-card:focus {
  box-shadow:
    0 0 0 4px #16191b,
    0 0 0 6px rgba(0, 108, 242, 1);
  outline: none;
}

.ap-card.active {
  background-color: rgba(0, 108, 242, 1);
}

.ap-card-icon svg {
  height: 30px !important;
  color: #fff;
}

.ap-card-title {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

/* chips */
.ap-chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.ap-chip:hover {
  background: #006cf2;
  border-color: #006cf2;
}

.ap-section {
  margin-top: 2rem;
}

.ap-section-title {
  font-size: 18px;
  margin-bottom: 1rem;
}

.ap-color-container {
  margin-bottom: 1rem;
}

/* البطاقات */
.ap-color-setting {
  width: 100%;
  background: #1d2125;
  padding: 1.5rem;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.ap-color-setting .side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clear-color-parent.visible {
  display: block;
}
.clear-color-parent.invisible {
  display: none;
}

.ap-color-options .color-grid span {
  border: 4px solid #16191b;
  width: 28px;
  height: 28px;
  display: block;
  position: relative;
  transition: 0.2s;
}

.ap-color-options .color-grid span:hover {
  transform: scale(1.1);
}

.ap-color-options .color-grid span.active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  box-sizing: inherit !important;
  border-radius: 50%;
  border-width: 2px !important;
  border-style: solid !important;
  border-color: rgb(255, 255, 255) !important;
  border-image: initial !important;
  background: inherit !important;
}

.ap-color-setting:hover {
  background: #242a30;
}

.ap-color-setting {
  position: relative;
}

/* الدائرة الصغيرة في الركن (مؤشر اللون المختار) */
.ap-color-setting .selected-pos {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #000;
  background: transparent;
  display: none; /* تظهر فقط عند الاختيار */
}

/* لما يكون فيه اختيار */
.ap-color-setting.has-selection .selected-pos {
  display: block;
}

/* تمييز اللون المختار من البالِتة */
.color.is-selected {
  box-shadow: 0 0 0 3px #000;
}

/* الدائرة */
.toggle-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #5a6b7f;
  display: block;
  transition: 0.25s;
}

/* الدائرة بجانب العنوان تُلوَّن عند اختيار اللون */
.ap-color-setting .toggle-dot.selected {
  background-color: var(--selected-color);
  border-color: #fff;
}

/* الدائرة الصغيرة في الركن */
.ap-color-setting .selected-pos {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #000;
  background: var(--selected-color, transparent);
  display: none;
}

.ap-color-setting.has-selection .selected-pos {
  display: block;
}

/* اللون المختار */
.color.active {
  position: relative;
}

.color.active::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* عند التفعيل */
.ap-color-setting.active .toggle-dot {
  background: #0a84ff;
  border-color: #0a84ff;
}

/* القائمة المنسدلة */
.ap-color-options {
  display: none;
  padding: 1rem;
  background: #1d2125;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
}

.ap-color-options.open {
  display: block;
}

/* ألوان */
.color-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
}

.c1 {
  background: #00ff00;
}
.c2 {
  background: #ff00ff;
}
.c3 {
  background: #9900ff;
}
.c4 {
  background: #ffea00;
}
.c5 {
  background: #ffa500;
}
.c6 {
  background: #ff0000;
}
.c7 {
  background: #0080ff;
}
.c8 {
  background: #00e6e6;
}

/* ========== مستكشف الروابط ========== */

.ap-links-section {
  margin-top: 2rem;
  position: relative;
}

/* عنوان + شارة خضراء فوق */
.ap-links-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* الزر الرئيسي (يشبه select) */
.ap-links-trigger {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #2f3a46;
  background-color: #181d23;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  cursor: pointer;
  outline: none;
  transition: var(--main-transition);
}

.ap-links-trigger .ap-links-selected {
  transition: var(--main-transition);
  padding-right: 1rem;
}

.ap-links-trigger:hover .ap-links-selected {
  color: #0052cc;
  transform: scale(1.2) translateX(-3px);
}

/* النص المختار */
.ap-links-selected {
  color: #fff; /* أزرق مثل الصورة */
  font-size: 0.95rem;
}

/* السهم الصغير */
.ap-links-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #9aa7b5;
  transition: transform 0.2s ease;
}

/* دوران السهم عند الفتح */
.ap-links-section.is-open .ap-links-arrow {
  transform: rotate(180deg);
}

/* القائمة المنسدلة */
.ap-links-dropdown {
  position: absolute;
  right: 0;
  left: 0;
  /* تظهر تحت التريجر */
  margin-top: 0.4rem;
  background-color: #ffffff;
  color: #0052b0;
  max-height: 260px;
  overflow-y: auto;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  display: none;
}

/* لما تكون مفتوحة */
.ap-links-section.is-open .ap-links-dropdown {
  display: block;
}

/* زرار كل عنصر داخل الليست */
.ap-links-option {
  width: 100%;
  text-align: right;
  padding: 0.45rem 0.75rem;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

/* hover / العنصر الفعّال */
.ap-links-option:hover {
  background-color: #e5f2ff;
}

.ap-links-option.is-active {
  background-color: #1e8bff;
  color: #ffffff;
}

/* شريط تمرير رفيع للقائمة */
.ap-links-dropdown::-webkit-scrollbar {
  width: 6px;
}

.ap-links-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.ap-links-dropdown::-webkit-scrollbar-thumb {
  background-color: #1e8bff;
  border-radius: 10px;
}

/* === Accordion Header === */
.ap-accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.8rem 0;
  cursor: pointer;
  font-size: 1.2rem;
}

.ap-accordion-title {
  font-size: 1.3rem;
  color: #e5e5e5;
}

/* Arrow */
.ap-accordion-arrow i {
  font-size: 17px;
  padding: 6px;
  background: #3a3a3a;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* Rotate on open */
.ap-section.open .ap-accordion-arrow i {
  transform: rotate(180deg);
}

/* === Accordion Body === */
.ap-accordion-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.ap-section.open .ap-accordion-body {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
}

/* === Helper Items === */
.helper-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #333;
}

.helper-item:last-child {
  border-bottom: none;
}

.helper-info h4 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}

.helper-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #9aa0a6;
}

.helper-icon {
  font-size: 22px;
  color: #0b57d0;
}

/* Footer */
.ap-footer {
  padding: 0.75rem 1.4rem 1.1rem;
  display: flex;
  gap: 0.75rem;
}

.ap-footer-btn {
  font-size: 14px;
  border-radius: 10px;
  min-height: 32px;
  padding: 16px;
  flex-grow: 1;
  transition: 0.2s;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  background: #006cf2;
  border-color: #006cf2;
  color: #f9fafb;
}

.ap-footer-primary:hover {
  background: #1faf6f6b !important;
  color: #000;
}

.ap-footer-secondary:hover {
  background: #1faf6f6b !important;
  color: #000;
}

/* موبايل */
@media (max-width: 767px) {
  .accessibility-panel {
    width: 100%;
  }

  .ap-grid,
  .ap-grid-2,
  .ap-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* .ap-footer {
    flex-direction: column;
  } */
}

.light-mode {
  background-color: #f3f4f6;
  color: #111;
}

.light-sidebar {
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
}

.light-sidebar .ap-toggle input + .ap-toggle-track {
  background-color: #eaf6ef;
  border: 1px solid #eaf6ef;
}
.light-sidebar .ap-toggle input + .ap-toggle-track .ap-toggle-thumb {
  background-color: var(--main-color);
}
.light-sidebar .ap-toggle input:checked + .ap-toggle-track .ap-toggle-thumb {
  background-color: #fff;
}
.light-sidebar .ap-toggle input:checked + .ap-toggle-track {
  background-color: var(--main-color);
}
.light-sidebar .moode-options button:hover {
  color: #10615f !important;
  background: #eaf6ef !important;
}
.light-sidebar .moode-options button.active {
  color: #eaf6ef !important;
  background: #10615f !important;
}
.light-sidebar .moode-options button.active svg {
  fill: #fff !important;
}
.light-sidebar .moode-options button svg {
  fill: #414042 !important;
}
.light-sidebar .ap-close svg {
  color: #414042 !important;
}
.light-sidebar .ap-close:hover svg {
  color: var(--main-color);
}
.light-sidebar h3,
.light-sidebar p,
.light-sidebar span,
.light-sidebar button {
  color: #414042 !important;
}
.light-sidebar button:active {
  color: var(--main-color) !important;
}

.light-sidebar .ap-card {
  background-color: #eaf6ef !important;
}
.light-sidebar .ap-card:focus .ap-card-title {
  color: #414042;
}
.light-sidebar .ap-card:focus {
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 0 6px #1faf6f6b;
  outline: none;
  background-color: #1faf6f6b !important;
}

.light-sidebar .ap-card:focus svg {
  color: #414042;
}
.light-sidebar .ap-card svg {
  color: var(--main-color);
}
.light-sidebar .ap-card.active {
  background-color: var(--main-color) !important;
}
.light-sidebar .ap-card.active svg,
.light-sidebar .ap-card.active span {
  color: white !important;
}
.light-sidebar .ap-card svg,
.light-sidebar .ap-card .ap-card-title {
  color: var(--main-color);
}
.light-sidebar .ap-color-setting {
  background-color: #eaf6ef;
}
.light-sidebar .ap-color-options {
  background-color: #eaf6ef !important;
}
.light-sidebar .ap-footer-btn {
  background-color: var(--main-color);
  color: #fff !important;
}
.light-sidebar .ap-footer-btn:hover {
  color: #16191b !important;
}
.light-sidebar .lang-menu {
  background-color: #fff;
}

.light-sidebar .lang-menu .lang-item {
  color: #414042 !important;
}
.light-sidebar .lang-menu .lang-item:hover {
  background-color: #eaf6ef !important;
  color: var(--main-color) !important;
}
.light-sidebar .ap-links-trigger {
  background-color: #eaf6ef !important;
  border: none;
}
.light-sidebar .helper-info svg {
  color: var(--main-color);
  margin-inline: 5px;
}
.light-sidebar .helper-info h4 {
  color: #414042 !important;
}

.light-sidebar .ap-body::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.light-sidebar .ap-body::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 10px;
}

.light-sidebar .ap-body::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

.light-sidebar .ap-links-dropdown::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.light-sidebar .ap-links-dropdown::-webkit-scrollbar-thumb {
  background: var(--main-color);
  width: 2px;
  border-radius: 10px;
}

.light-sidebar .ap-links-dropdown::-webkit-scrollbar-thumb:hover {
  background: #38a596;
}

/* Dark Mode */
.dark-mode {
  background: #16191b;
  color: #f1f5f9;
}

.dark-sidebar {
  background: #16191b;
}

.light-sidebar {
  box-shadow:
    rgba(0, 0, 0, 0.035) 0px 0px 2.2px,
    rgba(0, 0, 0, 0.047) 0px 0px 5.3px,
    rgba(0, 0, 0, 0.06) 0px 0px 10px,
    rgba(0, 0, 0, 0.07) 0px 0px 17.9px,
    rgba(0, 0, 0, 0.086) 0px 0px 33.4px;
}

/* High Contrast */
.contrast-mode {
  background: #000;
  color: #ff0;
}
.contrast-sidebar {
  background: #000;
  border-right: 2px solid #ff0;
}

/* ================= TOP BUTTONS ================ */
.top-actions {
  display: flex;
  gap: 20px;
  padding: 20px;
  position: relative;
}

.top-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1000;
}
.top-btn span {
  font-size: 14px;
}

.top-btn i {
  font-size: 28px;
}

/* ================ DROPDOWN BOX ================= */
.settings-dropdown {
  position: absolute;
  top: 80px;
  left: 30px;
  width: 200px;

  background: white;
  /* border-radius: 10px; */
  box-shadow: 0 4px 15px rgb(0 0 0 / 10%);

  overflow: hidden;

  transform: scale(0.8);
  opacity: 0;
  pointer-events: none;

  transition: 0.25s ease;
  display: none;
}
.settings-dropdown li {
  list-style: none;
  display: block;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.settings-dropdown li .switcher .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}
.settings-dropdown li .switcher label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-inline: 1rem;
}

.settings-dropdown li .switcher span.small {
  min-width: 90px;
  display: inline-block;
  text-align: start;
  font-size: 12px;
}

div.switcher label input {
  display: none;
}

div.switcher label input + span {
  position: relative;
  display: inline-block;
  margin-right: 10px;
  width: 26px;
  height: 16px;
  background: #6c757d;
  border: 2px solid #6c757d;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

div.switcher label input + span small,
div.switcher label input + span .small {
  position: absolute;
  display: block;
  width: 50%;
  height: 100%;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  left: 0;
}

.settings-dropdown li:hover {
  background-color: #84bc43 !important;
}

.print-btn button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-inline: 16px;
  background-color: transparent;
}

.print-btn button svg {
  font-size: 20px;
  color: rgb(108, 117, 125);
}
.settings-dropdown.open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
  display: block;
}

.settings-dropdown .title {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
}

.settings-dropdown li:hover .title {
  color: #fff;
}

/* =============== FONT SIZE BUTTONS =============== */

.font-size-box {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.font-size-box h4 {
  font-size: 12px;
}

.fs-btn {
  background: #f3f3f3;
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-top: 1rem;
  cursor: pointer;
  font-family: "Noto Kufi Arabic", sans-serif;
}
.fs-btn:hover {
  background-color: #68a12d !important;
  color: #fff !important;
}

/* =============== PRINT BUTTON =============== */
.print-btn {
  width: 100%;

  border: none;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  gap: 7px;
  border-bottom: 1px solid #e5e7eb;
}

.print-btn i {
  font-size: 20px;
}

/* =============== COLOR SWITCH =============== */
.color-toggle-box {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: transparent;
}

.color-toggle-box label {
  font-size: 14px;
}

/*  ==== Mini Switch ==== */
.mini-switch {
  position: relative;
  width: 42px;
  height: 22px;
  cursor: pointer;
}

.mini-switch input {
  display: none;
}

.mini-switch-track {
  background: #ddd;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: block;
  position: relative;
  transition: 0.3s;
}

.mini-switch-thumb {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
  transition: 0.3s;
}

.mini-switch input:checked + .mini-switch-track {
  background: #005bd1;
}

.mini-switch input:checked + .mini-switch-track .mini-switch-thumb {
  right: 22px;
  background: white;
}

.ap-search::before {
  content: "";
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: -2;
  background: url(../images/Path.svg), url(../images/Vector.svg);
  background-repeat: no-repeat, no-repeat;
  background-position:
    left top,
    right top;
}

.ap-search {
  display: none;
  opacity: 0;
  transform: translateY(-20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  z-index: 3000;
  background-color: #e9eaec;
  overflow-y: auto;
}

.ap-search.open {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 1;
  transform: translateY(0);
}

.ap-search .top {
  background-color: #0f1721;
  background-image: linear-gradient(
    220deg,
    #000 30.33%,
    #389492 83.58%,
    #046f6d 101.33%
  );
  height: 60vh;
  padding-top: 3rem;
}

.ap-search::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(6px);
  z-index: -1;
}

.ap-search .top .container {
  width: 60%;
  margin: 0 auto;
}

.ap-search .close {
  display: flex;
  width: fit-content;
  margin-left: 1rem;
  margin-right: auto;
  padding: 1rem;
}

.ap-search .close button {
  color: #fff;
  font-size: 20px;
}

.search-form h1 {
  padding-top: 80px;
}
.search-form h1 {
  font-size: 40px;
  margin-bottom: 24px;
  color: #fff;
  text-align: center;
}

.search-form .search-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-form .search-contaienr {
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-form .search-contaienr .search-form-controle {
  width: 90%;
  position: relative;
}

.search-form .search-contaienr .search-form-controle input {
  width: 100%;
  background: #ffffff;
  color: #3c3c3b;
  font-size: 13px;
  font-weight: 400;
  height: 51px;
  padding-left: 20px;
  position: relative;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  outline: initial !important;
  padding: 0.5rem 0.75rem;
  line-height: 1;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #3a3a3a;
  border-color: #d7d7d7;
  height: calc(3em + 0.8rem);
  border-radius: 10px;
  height: 44px;
}
.search-form .search-contaienr .search-form-controle button {
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  background-color: #046f6d;
  color: #fff;
  border: 1px solid #046f6d;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  font-weight: 700;
  color: #fff;
  z-index: 2;
  font-size: 14px;
  font-size: 0.875rem;
  text-align: center;
  border-radius: 0.85rem;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 5.6px 48px;
  transition: var(--main-transition);
}

.search-form .search-contaienr .search-form-controle button:hover {
  background-color: var(--alt-color);
  color: #fff;
}

.search-form .search-contaienr > button {
  color: #046f6d;
  text-decoration: underline !important;
  border: 1.5px solid #07706d;
  background-color: #fff;
  font-size: 15px;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0.3125rem 0.625rem;
  border-radius: 0.85rem;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 12px 40px;
  white-space: nowrap;
  margin-inline: 1rem;
  transition: var(--main-color);
  transition: var(--main-transition);
}

.search-form .search-contaienr > button:hover {
  background-color: var(--main-color);
  border: 1px solid #fff;
  color: #fff;
}

.bottom.container {
  width: 60%;
  margin: 0 auto;
  padding: 48px 15px;
}

.bottom h2 {
  font-size: 28px;
  color: #343a40 !important;
  margin-bottom: 24px;
}

.bottom .sugg {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.bottom .sugg .item {
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--main-transition);
  padding: 1rem 0.5rem !important;
  border-radius: 10px !important;
  box-shadow: 0px 4px 4px 0px #0000000d !important;
  background-color: #fff;
  height: 100% !important;
}
.bottom .sugg .item:hover {
  background-color: var(--alt-color);
}

.bottom .sugg .item > div {
  padding: 8px;
  background-color: #fff;
  border-radius: 1rem;
  width: 64px;
  height: 64px;
}

.bottom .sugg .item img {
  width: 100%;
}

.bottom .sugg .item p {
  font-size: 15px;
  margin-bottom: 0.5rem;
  font-weight: 700px;
}
.background-layer {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20vh;
  background-color: var(--main-color);
}

@media (max-width: 991px) {
  .ap-search .top {
    height: 70vh;
  }
  .ap-search .top .container {
    width: 100%;
  }
  .bottom.container {
    width: 70%;
  }

  .search-form .search-contaienr {
    flex-wrap: wrap;
  }

  .search-form .search-contaienr .search-form-controle {
    margin-bottom: 1rem;
  }

  .bottom .sugg {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .bottom .sugg {
    grid-template-columns: repeat(1, 1fr);
  }
  .ap-search .close {
    margin-left: 0;
  }
  .background-layer {
    display: block;
  }
}


