/* Webflow */
/* alerts */

/* success */
.success-message {
  border-radius: 5px;
  background-color: var(--primary);
  color: var(--white);
  margin-bottom: 20px;
}

/* error */
.error-message {
  padding: 20px;
  border-radius: 5px;
  background-color: var(--primary);
  color: var(--white);
  margin-bottom: 20px;
}

/* debug */
.debug-message {
  border-radius: 5px;
  background-color: var(--paragraph-gray);
  color: var(--white);
  margin-bottom: 20px;
}

/* info */
.info-message {
  padding: 20px;
  border-radius: 5px;
  background-color: var(--primary);
  color: var(--white);
  margin-bottom: 20px;
}

.helptext {
  padding: 20px;
  border-radius: 5px;
  color: var(--primary);
  background-color: var(--white);
  margin-bottom: 20px;
  border: 1px solid var(--primary);
}

/* warning */
.warning-message {
  border-radius: 5px;
  background-color: var(--yellow);
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.w-debug {
  display: none;
  padding: 20px;
  color: var(--gray);
}

.w-info,
.w-success {
  display: none;
  padding: 20px;
  color: var(--gray);
}

.w-warning {
  display: none;
  padding: 20px;
  color: var(--yellow);
}

.w-error {
  display: none;
  padding: 20px;
  color: var(--primary-light);
}

.w-success {
  display: none;
  padding: 20px;
  color: var(--primary-light);
}

/* Remove opacity from auth sections */
.auth,
.auth-email-confirm,
.section-appointment {
  opacity: 1 !important;
}

/* Footer layout - uniform width with gaps */
.footer-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 40px !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
}

.footer-brand-wrapper {
  flex: 0 0 calc(50% - 20px) !important;
  max-width: calc(50% - 20px) !important;
  width: calc(50% - 20px) !important;
}

.footer-brand-description {
  max-width: 100% !important;
  width: 100% !important;
}

.link-wrapper-footer {
  flex: 0 0 calc(50% - 20px) !important;
  max-width: calc(50% - 20px) !important;
  width: calc(50% - 20px) !important;
  display: flex !important;
  gap: 40px !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
}

.footer-links-wrapper {
  flex: 0 0 calc(50% - 20px) !important;
  max-width: calc(50% - 20px) !important;
  width: calc(50% - 20px) !important;
  margin: 0 !important;
}

/* Mobile footer centering */
@media screen and (max-width: 991px) {
  .footer-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .footer-brand-wrapper {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }

  .footer-brand-description {
    text-align: center !important;
  }

  .footer-social-icons-wrapper {
    justify-content: center !important;
  }

  .link-wrapper-footer {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
  }

  .footer-links-wrapper {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }

  .footer-bottom-wrapper {
    text-align: center !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .footer-copyright {
    text-align: center !important;
  }

  .div-block-7 {
    text-align: center !important;
  }
}

.map-footer-section {
  background-image: url("/assets/images/footer/map.png");
  background-position: 40%;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

.map-footer-section {
  background-image: url("/assets/images/footer/map.png");
  background-position: 50% 0;
  background-size: auto;
  padding-top: 120px;
  padding-bottom: 120px;
}

.background-hover-gallery {
  background-color: transparent;
  border-radius: 10px;
  position: absolute;
  inset: 0%;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-link:hover .background-hover-gallery {
  background-color: #f3eee966;
}

.gallery-name {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-link:hover .gallery-name {
  opacity: 1;
}

/* Gallery image sizing */
.gallery {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
}

.gallery-link {
  display: block !important;
  width: 100% !important;
}

.collection-item {
  width: 100% !important;
}

/* Instagram gallery images - rounded top and bottom */
.insta-photo {
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
  border-bottom-left-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
}

/* Shop page styles */
.shop-page {
  padding-top: 100px;
  padding-bottom: 100px;
}

.title-h2 {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
}

.filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid #332d284d;
}

.filter-link {
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-link:hover {
  color: var(--primary);
  background-color: #f3eee966;
}

.filter-link.active {
  color: var(--primary);
  background-color: #f3eee966;
  font-weight: 700;
}

.collection-list-wrapper-products {
  width: 100%;
}

.collection-list-product.shop-page {
  grid-column-gap: 30px;
  grid-row-gap: 30px;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
}

.collection-item-product.shop {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-item-product.shop:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.about-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.price-shop {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 5px;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #332d284d;
}

.pagination-link {
  color: var(--primary);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.pagination-link:hover {
  background-color: #f3eee966;
  color: var(--primary-dark);
}

.pagination-info {
  color: var(--primary-dark);
  font-size: 16px;
}

/* Mobile responsive styles for shop page */
@media screen and (max-width: 991px) {
  .title-h2 {
    font-size: 42px;
    margin-bottom: 30px;
  }

  .filter-wrapper {
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
  }

  .filter-link {
    font-size: 14px;
    padding: 8px 16px;
  }

  .collection-list-product.shop-page {
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 20px;
  }

  .shop-page {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media screen and (max-width: 767px) {
  .collection-list-product.shop-page {
    grid-template-columns: 1fr;
  }

  .title-h2 {
    font-size: 36px;
  }
}

/* Blog page styles */
.blog-page {
  padding-top: 100px;
  padding-bottom: 100px;
}

.collection-list-wrapper-blog {
  width: 100%;
}

.collection-list-blog {
  grid-column-gap: 30px;
  grid-row-gap: 30px;
  grid-template-rows: auto;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-columns: 1fr;
  display: grid;
}

.collection-item-blog {
  width: 100%;
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.blog-card-link:hover {
  transform: translateY(-5px);
}

.blog-card-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.blog-card-content {
  padding: 0 10px;
}

.blog-card-date {
  font-size: 14px;
  color: #afafaf;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card-preview {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.rich-text-style {
  margin-bottom: 60px;
}

/* CKEditor media embeds rendered on the public site */
.rich-text-style figure.media,
.w-richtext figure.media,
.description-content figure.media {
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
}

.ck-media-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 5px;
  background-color: #000;
}

.ck-media-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ck-media-embed__fallback {
  margin: 0;
}

/* Course accordion items as clickable links */
.accordion-item-link {
  color: inherit;
  transition: opacity 0.3s ease;
}

.accordion-item-link:hover {
  opacity: 0.8;
}

.accordion-item-link .accordion-item {
  cursor: pointer;
}

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

.text-danger {
  color: rgb(190, 91, 91);
}

/* Course list background image with opacity */
.collection-item-product.shop.course-item {
  position: relative;
  overflow: hidden;
}

.collection-item-product.shop.course-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--course-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.collection-item-product.shop.course-item > * {
  position: relative;
  z-index: 1;
}

/* Fix dropdown toggle icon display issue */
.w-icon-dropdown-toggle:before {
  content: "" !important;
}

.w-icon-dropdown-toggle {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 8px;
  vertical-align: middle;
  position: relative;
}

.nav-dropdown-icon.w-icon-dropdown-toggle {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  margin: 0;
}

/* Add gap between dropdown icon and text */
.nav-dropdown-toggle .nav-item-title {
  margin-right: 12px;
}

/* Fix slider arrow icons display issue */
.w-icon-slider-left:before,
.w-icon-slider-right:before {
  content: "" !important;
}

.w-icon-slider-left {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid currentColor;
  margin: auto;
  position: relative;
}

.w-icon-slider-right {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid currentColor;
  margin: auto;
  position: relative;
}

/* On mobile, adjust icon position to create gap */
@media screen and (max-width: 991px) {
  .nav-dropdown-icon.w-icon-dropdown-toggle {
    right: 20px;
  }

  .nav-dropdown-toggle .nav-item-title {
    margin-right: 20px;
  }
}

/* Hide desktop account dropdown on desktop - only show mobile menu version */
@media screen and (min-width: 992px) {
  .desktop-account-dropdown {
    display: none !important;
  }

  .desktop-login-link {
    display: none !important;
  }

  /* Hide My Account in mobile menu on desktop - it's the last nav-dropdown */
  .menu-wrap > .nav-dropdown:last-of-type {
    display: none !important;
  }

  /* Hide Login link in mobile menu on desktop - only if it's the Login link */
  .menu-wrap > .nav-link[href*="login"] {
    display: none !important;
  }

  /* Ensure nav-menu and menu-wrap are visible on desktop */
  .nav-menu {
    display: flex !important;
  }

  .menu-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  /* Ensure all nav-links in menu-wrap are visible on desktop */
  .menu-wrap > .nav-link {
    display: inline-block !important;
  }

  /* Ensure nav-dropdowns are visible on desktop */
  .menu-wrap > .nav-dropdown {
    display: inline-block !important;
  }
}

/* Show mobile menu My Account on mobile, hide desktop version */
@media screen and (max-width: 991px) {
  .desktop-account-dropdown {
    display: none !important;
  }

  .desktop-login-link {
    display: none !important;
  }

  /* Ensure My Account dropdown is closed by default and toggleable on mobile */
  /* Match the behavior of Shop dropdown */
  /* The w--open class is added to .nav-dropdown-list by Webflow JavaScript */
  /* Target the last nav-dropdown in menu-wrap (My Account) */
  .menu-wrap > .nav-dropdown:last-of-type .nav-dropdown-list {
    display: none !important;
  }

  /* Show dropdown when Webflow adds w--open class */
  .menu-wrap > .nav-dropdown:last-of-type .nav-dropdown-list.w--open {
    display: flex !important;
  }

  /* Ensure dropdown toggle is clickable on mobile */
  .menu-wrap > .nav-dropdown:last-of-type .nav-dropdown-toggle {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    user-select: none;
    pointer-events: auto;
  }

  /* Rotate icon when dropdown list is open */
  .menu-wrap > .nav-dropdown:last-of-type:has(.nav-dropdown-list.w--open) .nav-dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
  }
}
