@tailwind base;
@tailwind components;
@tailwind utilities;

@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

a:hover {
  color: inherit !important;
  transition: all 0.3s;
}

body {
  font-family: "Be Vietnam Pro", sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

@layer utilities {
  /* XS */

  .text-xs-light {
    @apply text-[12px] leading-[20px] font-light;
  }

  .text-xs-regular {
    @apply text-[12px] leading-[20px] font-normal;
  }

  .text-xs-semibold {
    @apply text-[12px] leading-[20px] font-semibold;
  }

  /* SM */

  .text-sm-light {
    @apply text-[14px] leading-[22px] font-light;
  }

  .text-sm-regular {
    @apply text-[14px] leading-[22px] font-normal;
  }

  .text-sm-semibold {
    @apply text-[14px] leading-[22px] font-semibold;
  }

  /* MD */

  .text-md-light {
    @apply text-[16px] leading-[24px] font-light;
  }

  .text-md-regular {
    @apply text-[16px] leading-[24px] font-normal;
  }

  .text-md-medium {
    @apply text-[16px] leading-[24px] font-medium;
  }

  .text-md-semibold {
    @apply text-[16px] leading-[24px] font-semibold;
  }

  /* LG */

  .text-lg-light {
    @apply text-[18px] leading-[28px] font-light;
  }

  .text-lg-regular {
    @apply text-[18px] leading-[28px] font-normal;
  }

  .text-lg-semibold {
    @apply text-[18px] leading-[28px] font-semibold;
  }

  .text-lg-bold {
    @apply text-[18px] leading-[28px] font-bold;
  }

  /* XL */

  .text-xl-light {
    @apply text-[24px] leading-[36px] font-light;
  }

  .text-xl-regular {
    @apply text-[24px] leading-[36px] font-normal;
  }

  .text-xl-semibold {
    @apply text-[24px] leading-[36px] font-semibold;
  }

  .text-xl-bold {
    @apply text-[24px] leading-[36px] font-bold;
  }

  .text-2xl-semibold {
    @apply text-[32px] leading-[40px] font-semibold;
  }

  .text-2xl-light {
    @apply text-[40px] leading-[45px] font-light;
  }

  .text-3xl-semibold {
    @apply text-[40px] leading-[48px] font-semibold;
  }

  /* Headings */

  .text-heading-1 {
    @apply text-[72px] leading-[88px] font-normal;
  }

  .text-heading-2 {
    @apply text-[48px] leading-[56px] font-semibold;
  }

  .text-heading-3 {
    @apply text-[44px] leading-[52px] font-bold;
  }

  .text-heading-5 {
    @apply text-[30px] leading-[38px] font-semibold;
  }

  .text-heading-6 {
    @apply text-[28px] leading-[36px] font-normal;
  }

  .text-heading-7 {
    @apply text-[28px] leading-[36px] font-bold;
  }
}

.iti {
  display: flex !important;
  gap: 0px;
}

.iti__country-container {
  position: relative !important;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  padding: 8px !important;
  border-right: none;
}

.iti__selected-country {
  gap: 8px;
}

.iti__selected-country-primary {
  padding: 0px !important;
}

.iti__selected-dial-code {
  color: #7d898c;
  font-size: 14px;
  font-weight: 400;
}

.iti.iti--allow-dropdown.iti--separate-dial-code {
  width: 100%;
}

.iti--separate-dial-code .iti__selected-flag {
  background: none !important;
}

.focus\:border-green-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(37 211 102 / var(--tw-border-opacity)) !important;
}

.iti__tel-input {
  padding-left: 1rem !important;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: white;
  padding: 12px 40px 12px 16px;
  border-radius: 24px;
  border: 1px solid #d1d5db;
  color: #4b5563;
  cursor: pointer;
  background-image: url("path/to/arrow-down-icon.svg");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px;
}

input[type="date"] {
  padding: 12px 16px;
  border-radius: 24px;
  border: 1px solid #d1d5db;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background-color: white;
  color: #4b5563;
  background-image: url("path/to/calendar-icon.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}

/* Menu Start */
.menu-item {
  position: relative;
  display: inline-block;
  padding: 0px 12px 0px 12px;
}

.menu-link {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #ffffffe5 !important;
  line-height: 20px;
  cursor: pointer;
  text-transform: capitalize;
  transition: all 0.3s ease-in-out;
}

.menu-link:hover {
  outline: none;
  color: #ffffffe5 !important;
}

.submenu {
  position: absolute;
  padding: 12px;
  border-radius: 12px;
  top: 2.5rem;
  left: -2rem;
  height: auto;
  width: fit-content;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  background: white;
}

.submenu-item {
  display: block;
  padding: 12px 8px 12px 8px;
}

.submenu-link {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  color: #525252;
  transition: all 0.35s ease;
  white-space: nowrap;
  padding: 0px 8px 0px 8px;
}

.submenu-link:hover {
  outline: none;
}

.menu-dropdown:hover > .submenu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 8;
}

.menu-mobile {
  display: none;
}

.menu-mobile.active {
  display: flex;
  flex-direction: column;
  background-color: #171717;
  position: absolute;
  justify-content: space-between;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding-top: 16px;
  padding-left: 16px;
  padding-right: 16px;
  overflow-y: scroll;
  height: 100vh;
}

.form-button:hover {
  color: white !important;
}

.home-page-card {
  box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
}

.scroll-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  display: flex;
  align-items: center;
}

.scroll-content {
  display: flex;
  width: max-content;
  animation: scroll-loop 50s linear infinite;
}

.loop {
  display: flex;
  gap: 1rem;
  color: white;
}

.loop span::after {
  content: " •";
  margin-left: 0.5rem;
}

@keyframes scroll-loop {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 992px) {
  .submenu-link {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    color: white;
    transition: all 0.35s ease;
    white-space: nowrap;
    padding: 0px 8px 0px 8px;
  }

  .menu-item {
    margin-left: 0;
  }

  .menu-link {
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-size: 16px;
  }

  .dropdown-icon {
    transition: transform 0.3s ease;
  }

  .dropdown-icon.rotate {
    transform: rotate(180deg);
  }

  .no-scroll {
    overflow: hidden;
  }

  .menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .submenu-link {
    font-size: 16px;
    padding-left: 1rem;
    font-weight: 300 !important;
  }
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Menu End */

.animation-slider.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.animation-slider .slides {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
}

.animation-slider .slide {
  position: relative;
  min-width: 100%;
  transition: transform 10s ease;
}

.animation-slider .slide img {
  transition: transform 10s ease;
  filter: brightness(0.5);
}

.animation-slider .slide img {
  transform: scale(1);
}

.animation-slider .slide-active img {
  transform: scale(1.2);
}

.animation-slider button {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.swiper-button-lock {
  display: block;
}

.animation-slider button.prev {
  left: 4rem;
}

.animation-slider button.next {
  right: 4rem;
}

@media (max-width: 992px) {
  .animation-slider button.prev {
    display: none;
  }

  .animation-slider button.next {
    display: none;
  }
}

.dropzone {
  min-height: 150px;
  border: 1px dashed #c6c8ca !important;
  background: #f8fafc !important;
  padding: 20px 20px;
  border-radius: 12px;
}

button.dz-button b {
  color: #0088f0 !important;
}

button.dz-button p {
  color: #475569;
  font-size: 14px;
}

.ck.ck-toolbar {
  border-top: 1px solid #e2e8f0 !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
}

.ck.ck-toolbar {
  border-radius: 10px 10px 0 0 !important;
  background: #f8fafc !important;
  border-bottom: none !important;
}

.ck.ck-editor__main {
  min-height: 320px !important;
}

.ck-restricted-editing_mode_standard.ck.ck-content.ck-editor__editable.ck-rounded-corners.ck-editor__editable_inline.ck-blurred {
  border-radius: 0 0 10px 10px !important;
  min-height: 320px;
}

.ck-restricted-editing_mode_standard.ck.ck-content.ck-editor__editable.ck-rounded-corners.ck-editor__editable_inline.ck-focused {
  border-radius: 0 0 10px 10px !important;
  min-height: 320px;
}
