/* -------------------- HEADER STYLES -------------------- */

/* Top bar */
.site-top-bar {
  background-color: var(--color-gray-background-1);
}
.site-top-main {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping */
  justify-content: space-between; /* Center content when wrapped */
  align-items: center;
  margin: 0 auto;
  padding: 0.25rem 1rem;
}

@media (max-width: 768px) {
  .site-top-main {
    justify-content: center;
    gap: 1rem;
  }
}

.social-media-icons ul {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-follow-us .social-icon,
.top-buttons-wrapper .social-icon {
  background: var(--color-white);
  line-height: 32px;
  margin-top: 3px;
  height: 30px;
  text-align: center;
  vertical-align: middle;
  width: 33px;
  box-shadow: 0px 1px 4px 1px rgba(220, 220, 220, 0.9);
}
.footer-follow-us .social-icon:hover i,
.top-buttons-wrapper .social-icon:hover i {
  color: var(--color-white);
}
.footer-follow-us .social-icon:hover,
.top-buttons-wrapper .social-icon:hover {
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
.footer-follow-us .si-ig i,
.top-buttons-wrapper .si-ig i {
  color: var(--color-pink-3);
}
.footer-follow-us .si-ig:hover,
.top-buttons-wrapper .si-ig:hover {
  background-color: var(--color-pink-3);
}
.footer-follow-us .si-x i,
.top-buttons-wrapper .si-x i {
  color: var(--color-light-blue);
}
.footer-follow-us .si-x:hover,
.top-buttons-wrapper .si-x:hover {
  background-color: var(--color-light-blue);
}
.footer-follow-us .si-yt i,
.top-buttons-wrapper .si-yt i {
  color: var(--color-red);
}
.footer-follow-us .si-yt:hover,
.top-buttons-wrapper .si-yt:hover {
  background-color: var(--color-red);
}

.footer-follow-us .social-icon a,
.top-buttons-wrapper .social-icon a {
  padding: 5px 10px;
}
.search-icon-btn {
  padding: 5px 10px;
}

.header-search-icon-wrapper {
  background: var(--color-white);
  line-height: 32px;
  margin-top: 3px;
  height: 30px;
  text-align: center;
  vertical-align: middle;
  width: 33px;
  box-shadow: 0px 1px 4px 1px rgba(220, 220, 220, 0.9);
}
.header-search-icon-wrapper:hover{
  cursor: pointer;
}
.top-buttons-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.top-bar-menu ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-list a {
  color: var(--color-magenta);
  text-decoration: none;
  font-weight: 600;
}
.rak-lang-switcher {
  border-radius: 0;
  line-height: 1.5em;
  vertical-align: middle;
  text-align: center;
  margin-right: 10px;
  font-size: 12px;
  padding: 0;
  list-style: none;
}
.rak-lang-switcher li a {
  display: flex;
  color: var(--color-white);
  font-size: 12px;
  padding: 5px 30px;
}
.rak-lang-switcher:hover {
  background-color: var(--color-black);
}
.site-logo {
  height: 70px;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
}
.home-link {
  width: auto;
  height: 100%;
  display: flex;
}

.social-icons-side,
.contact-us-side {
  background: var(--color-pink-1);
  margin: unset;
  box-shadow: unset;
  padding: 15px 5px;
  border-radius: 20px 0px 0px 20px;
  height: auto;
  margin: auto;
}
html[dir="rtl"] .social-icons-side,
html[dir="rtl"] .contact-us-side {
  border-radius: 0px 20px 20px 0px;
}
.social-icons-side a,
.contact-us-side a {
  font-size: 1.5rem;
  color: var(--color-white);
  padding: 5px 10px;
  box-shadow: unset;
  margin: auto;
  background: unset;
  width: unset;
}
.social-icons-side .social-media-icons ul {
  flex-direction: column;
  gap: 10px;
}
.fixed-buttons {
  position: fixed;
  z-index: 9999;
  top: 50%;
  bottom: 50%;
  transform: translateY(-50%);
  right: 0;
  left: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
html[dir="rtl"] .fixed-buttons {
  right: auto;
  left: 0;
}
@media (max-width: 768px) {
  .fixed-buttons {
    display: none;
  }
}
.site-main-nav {
  background: -moz-linear-gradient(
    top,
    #eaeaea 0%,
    #eaeaea 12%,
    #eaeaea 94%,
    #eaeaea 100%
  );
  background: -webkit-linear-gradient(
    top,
    #eaeaea 0%,
    #eaeaea 12%,
    #eaeaea 94%,
    #eaeaea 100%
  );
  background: linear-gradient(
    to bottom,
    #eaeaea 0%,
    #eaeaea 12%,
    #eaeaea 94%,
    #eaeaea 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#EAEAEA', endColorstr='#EAEAEA', GradientType=0);
}
.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  list-style: none;
}
.main-menu li {
  position: relative;
  align-self: stretch;
  padding: 10px 16px;
  border-bottom: 4px solid #eaeaea;
}
.main-menu a,
.main-menu button {
  color: var(--color-dark-1);
  background: none;
  border: 0;
  padding: 0.5rem 0.5rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-size: 13px;
  margin: 0;
}

/* Hover and active states: nav items become white (text) */
.main-menu li:hover,
.main-menu li:focus,
.main-menu li.open {
  background: var(--color-white);
}

/* Parent indicator arrow on the right */
.menu-item-has-children > button,
.accordion-item-has-children > button {
  position: relative;
}
.menu-item-has-children > button::after,
.accordion-item-has-children > button::after {
  width: 0;
  height: 0;
  content: "";
  border-top: 0.3em solid var(--color-dark-1);
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  float: right;
  vertical-align: middle;
  margin-left: 10px;
}
html[dir="rtl"] .menu-item-has-children > button::after,
html[dir="rtl"] .accordion-item-has-children > button::after {
  border-left: 0.3em solid transparent;
  border-right: 0.3em solid transparent;
  float: left;
  margin-right: 10px;
}

.main-menu .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  min-width: 250px;
  border-radius: 0;
  top: 59px;
  background: #fff;
  border-bottom: solid 5px #fff;
  z-index: 999;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin: 0;
  padding: 0;
  list-style: none;
}
html[dir="rtl"] .main-menu .sub-menu {
  right: 0;
}
.main-menu li.open > .sub-menu {
  display: block;
}
.main-menu .sub-menu li {
  padding: 10px 25px;
  white-space: break-spaces;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
  border: 0;
  z-index: 50;
}
.main-menu .sub-menu li:hover {
  background-color: #00adb3;
  color: #fff;
  transform: translateY(-8px);
}
.main-menu .sub-menu li:hover a {
  color: #fff;
}

/* -------------------- FOOTER STYLES -------------------- */

/* Footer layout: grid of 4 columns */
.site-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0px 0px 9px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

/* Responsive: split into 2 rows with 2 columns each */
@media (max-width: 1024px) {
  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .site-footer {
    grid-template-columns: 1fr;
  }
}

.footer-menus-wrapper {
  display: contents; /* Allow direct children to participate in the grid */
}

.footer-menu {
  padding: 1rem;
}

.footer-follow-us {
  padding: 1rem;
}

.back-to-top {
  background-color: var(--color-pink-1);
  width: 50px;
  height: 40px;
  position: fixed;
  bottom: 50px;
  left: 30px;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  min-width: 3em;
  border-radius: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
html[dir="rtl"] .back-to-top {
  left: unset;
  right: 30px;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.footer-rights {
  background: #000;
  text-align: right;
  padding: 1rem 0;
}
.footer-rights p {
  font-size: 11px;
  color: #fff;
  margin: 0;
  text-align: start;
}
.footer-logo {
  border-left: unset;
  border-right: 1px solid #ff4787;
  padding-right: 20px;
  padding-left: 0px;
}
html[dir="rtl"] .footer-logo {
  border-right: unset;
  border-left: 1px solid #ff4787;
  padding-left: 20px;
  padding-right: 0px;
}

.footer-logo img {
  width: 65%;
  margin-top: 40px;
  padding-left: 20px;
}
@media (max-width: 1024px) {
  .footer-logo {
    align-content: center;
  }
  .footer-logo img {
    width: 100%;
  }
}
.footer-logo p {
  color: #979797;
  text-align: justify;
  padding-left: 20px;
  padding-top: 20px;
  font-size: 12px;
}

.footer-menus {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.footer-menu {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.footer-follow-us h4,
.footer-menu h4 {
  margin-top: 60px;
  margin-bottom: 40px;
  position: relative;
  color: #ff4787;
}
.footer-follow-us h4:after,
.footer-menu h4:after {
  left: 0;
  right: auto;
  position: absolute;
  content: "";
  background: #000;
  width: 12%;
  height: 1px;
  right: 0;
  bottom: -20px;
}
.footer-menu .menu-list {
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
  margin-block-start: 1em;
  margin-block-end: 1em;
  padding-inline-start: 40px;
}
.footer-menu .menu-list li {
  list-style: none;
  display: block;
  padding: 5px 0;
}
.footer-menu .menu-list li a {
  color: #000;
  text-decoration: none;
  font-size: 12px;
}
.form-footer {
  margin: 1rem 0;
  display: flex;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}
.form-footer input[type="text"] {
  border: none;
  border-radius: 0;
  outline: none;
  padding: 6px 12px;
  background: #000;
  color: #fff;
  flex: 1 1 auto;
  min-width: 0; /* allow shrinking inside flex */
  box-sizing: border-box;
}
.form-footer .footer-search-control,
.btn-footer {
  border: none;
  background: #ff4787;
  margin-left: 0;
  color: #fff;
  outline: none;
  font-size: 12px;
  border-radius: 0;
  padding: 5px 12px;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.btn-footer {
  line-height: 1.6;
  padding: 8px 20px;
  border: 0;
  outline: 0;
}

/* -------------------- BURGER MENU STYLES -------------------- */
.mobile-menu-wrapper {
  display: none;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  background: white;
}
/* Burger menu icon */
.burger-menu-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  text-align: start;
  margin: 0;
  min-width: unset;
}

/* Accordion menu */
.accordion-menu {
  display: none;
  background: var(--color-white);
  right: 0;
  width: 100%;
}

.accordion-menu.open {
  display: block;
}

.accordion-menu ul {
  list-style: none;
}

.accordion-menu a,
.accordion-menu button {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--color-dark-1);
  font-size: 14px;
  font-weight: 600;
}

.accordion-item-has-children > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  margin: 0;
}

.accordion-content {
  display: none;
  padding-left: 1rem;
}

/* Hide main menu and show burger menu button on tablet screens */
@media (max-width: 1024px) {
  .site-nav.site-main {
    display: none;
  }

  .mobile-menu-wrapper {
    display: block;
  }
}

@media (max-width: 480px) {
  .form-footer {
    gap: 0.25rem;
  }
  .form-footer .footer-search-control,
  .form-footer .btn-footer {
    padding: 6px 10px;
  }
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .main-menu {
    flex-direction: column;
  }
  .footer-menus {
    grid-template-columns: 1fr;
  }
  .footer-menu .menu-list {
    columns: 1;
  }
}
