/* ==========================================================================
   Aafiyah Healing - Custom Header & Footer Styles (Kajabi Encore Theme)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HEADER STYLES
   -------------------------------------------------------------------------- */
.header {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1000;
  transition: all 0.25s ease;
}

.header.header--fixed {
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header__content--desktop {
  padding: 16px 0 !important;
}

.header__container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Logo */
.header .header__block--logo {
  flex: 0 0 auto !important;
  margin-right: 28px !important;
  margin-left: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.header .logo__image {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.header .logo:hover .logo__image {
  transform: scale(1.02);
}

/* Header Menu Navigation - Block Container */
.header .header__block--menu {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 8px !important;
  width: 100% !important;
}

.header .header__block--menu .link-list {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  gap: clamp(14px, 1.8vw, 28px) !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  flex-wrap: nowrap !important;
}

/* Menu Alignment - Left (Rata Kiri) */
.header .header__block--menu.header__block--align-left .link-list,
.header .header__block--menu .link-list.justify-content-left,
.header .header__block--menu .link-list.justify-content-start,
.header .header__block--menu .link-list--left,
.header .header__block--menu[style*="text-align: left"] .link-list,
.header .header__block--menu[style*="text-align:left"] .link-list,
.header .header__block--menu[style*="text-align: start"] .link-list,
.header .header__block--menu[style*="text-align:start"] .link-list {
  justify-content: flex-start !important;
}

.header .header__block--menu.header__block--align-left,
.header .header__block--menu[style*="text-align: left"],
.header .header__block--menu[style*="text-align:left"],
.header .header__block--menu[style*="text-align: start"],
.header .header__block--menu[style*="text-align:start"] {
  justify-content: flex-start !important;
}

/* Menu Alignment - Center (Rata Tengah) */
.header .header__block--menu.header__block--align-center .link-list,
.header .header__block--menu .link-list.justify-content-center,
.header .header__block--menu .link-list--center,
.header .header__block--menu[style*="text-align: center"] .link-list,
.header .header__block--menu[style*="text-align:center"] .link-list {
  justify-content: center !important;
}

.header .header__block--menu.header__block--align-center,
.header .header__block--menu[style*="text-align: center"],
.header .header__block--menu[style*="text-align:center"] {
  justify-content: center !important;
}

/* Menu Alignment - Right (Rata Kanan) */
.header .header__block--menu.header__block--align-right .link-list,
.header .header__block--menu .link-list.justify-content-right,
.header .header__block--menu .link-list.justify-content-end,
.header .header__block--menu .link-list--right,
.header .header__block--menu[style*="text-align: right"] .link-list,
.header .header__block--menu[style*="text-align:right"] .link-list,
.header .header__block--menu[style*="text-align: end"] .link-list,
.header .header__block--menu[style*="text-align:end"] .link-list {
  justify-content: flex-end !important;
}

.header .header__block--menu.header__block--align-right,
.header .header__block--menu[style*="text-align: right"],
.header .header__block--menu[style*="text-align:right"],
.header .header__block--menu[style*="text-align: end"],
.header .header__block--menu[style*="text-align:end"] {
  justify-content: flex-end !important;
}

/* Menu Links Styling */
.header .header__block--menu a,
.header .header__block--menu .link-list a,
.header a.link-list__link,
.header .link-list__link {
  color: #3D4352 !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  position: relative !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: color 0.2s ease !important;
  white-space: nowrap !important;
}

.header .header__block--menu a:visited,
.header .header__block--menu .link-list a:visited {
  color: #3D4352 !important;
}

.header .header__block--menu a:hover,
.header .header__block--menu .link-list a:hover,
.header a.link-list__link:hover,
.header .link-list__link:hover,
.header .header__block--menu a:focus,
.header .header__block--menu a:active,
.header .header__block--menu a.active,
.header a.link-list__link.active {
  color: #0E0F3B !important;
  text-decoration: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Hilangkan garis kuning di bawah menu saat kursor mengarah ke menu atau saat menu dipilih */
.header .link-list__link::after,
.header .header__block--menu a::after,
.header .link-list a::after,
.footer .link-list__link::after,
.footer .link-list a::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  border: none !important;
}

/* Header Dropdowns & User Blocks */
.header .dropdown__trigger {
  color: #3D4352 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 0 !important;
  transition: color 0.2s ease;
}

.header .dropdown__trigger:hover {
  color: #0E0F3B !important;
}

.header .header__block--user,
.header .header__block--dropdown,
.header .header__block--social-icons {
  flex: 0 0 auto !important;
  margin: 0 8px !important;
}

.header .user__login a {
  color: #3D4352 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.header .user__login a:hover {
  color: #0E0F3B !important;
}

/* Header CTA Button - Yellow Pill */
.header .header__block--cta {
  flex: 0 0 auto !important;
  margin-left: 28px !important;
  margin-right: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.header .header__block--cta .btn,
.header .btn {
  background-color: #F1C40F !important;
  color: #0E0F3B !important;
  border: 1px solid #F1C40F !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  padding: 12px 24px !important;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(241, 196, 15, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
}

.header .header__block--cta .btn:hover,
.header .btn:hover {
  background-color: #E2B607 !important;
  border-color: #E2B607 !important;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.45) !important;
  color: #0E0F3B !important;
}

/* Hamburger for Mobile */
.header .hamburger {
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.header .hamburger__slice {
  background-color: #0E0F3B !important;
  height: 2px !important;
  margin-bottom: 5px !important;
  border-radius: 2px;
}

/* Mobile Header Drawer */
@media (max-width: 767px) {
  .header__content--desktop {
    padding: 12px 0 !important;
  }

  .header__container {
    padding: 0 16px;
  }

  .header .logo__image {
    max-height: 40px;
  }

  .header__content--mobile {
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 16px 20px 28px;
  }

  .header__content--mobile .link-list__link {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f5f5f5;
    color: #1a202c !important;
    display: block;
    text-align: left;
  }

  .header__content--mobile .user__login a {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 0 !important;
    display: block;
  }

  .header__content--mobile .header__block--cta {
    margin-top: 20px !important;
    padding: 0 !important;
  }

  .header__content--mobile .btn {
    width: 100% !important;
    text-align: center;
    border-radius: 9999px !important;
    padding: 14px 20px !important;
  }
}

/* --------------------------------------------------------------------------
   2. FOOTER STYLES
   -------------------------------------------------------------------------- */
.footer {
  background-color: #F0F0E8 !important;
  border-top: 1px solid #E2E2D8 !important;
  color: #7C8089 !important;
  font-size: 14px !important;
  position: relative;
  z-index: 10;
}

.footer__content {
  padding: 24px 0 !important;
}

.footer__container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer .logo {
  display: inline-flex;
  align-items: center;
}

.footer .logo__image {
  max-height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer .copyright {
  color: #7C8089 !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Footer Desktop Layout */
@media (min-width: 768px) {
  .footer__container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Logo */
  .footer .footer__block:has(.logo),
  .footer #block-1555988519593,
  .footer__container > div:first-child {
    order: 1 !important;
    flex: 0 0 auto !important;
    margin-right: 18px !important;
    margin-left: 0 !important;
  }

  /* Copyright */
  .footer .footer__block:has(.copyright),
  .footer #block-1555988525205,
  .footer__container > div:last-child {
    order: 2 !important;
    flex: 0 0 auto !important;
    margin-right: 28px !important;
    margin-left: 0 !important;
  }

  /* Menu Block in Footer (flex 1 takes remaining space) */
  .footer .footer__block--menu,
  .footer .footer__block:has(.link-list),
  .footer #block-1602193175296,
  .footer .block-type--link_list {
    order: 3 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
}

.footer .link-list {
  display: flex !important;
  width: 100% !important;
}

.footer .link-list__links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  gap: clamp(14px, 1.8vw, 24px) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Footer Menu Alignment: Left (Rata Kiri) */
.footer .footer__block--align-left .link-list__links,
.footer .footer__block--align-left .link-list,
.footer .link-list.justify-content-left .link-list__links,
.footer .link-list.link-list--desktop-left .link-list__links,
.footer .link-list.link-list--left .link-list__links,
.footer .link-list__links--left,
.footer .footer__block[style*="text-align: left"] .link-list__links,
.footer .footer__block[style*="text-align:left"] .link-list__links,
.footer[data-menu-align="left"] .link-list__links,
.footer.footer--menu-align-left .link-list__links {
  justify-content: flex-start !important;
}

/* Footer Menu Alignment: Center (Rata Tengah) */
.footer .footer__block--align-center .link-list__links,
.footer .footer__block--align-center .link-list,
.footer .link-list.justify-content-center .link-list__links,
.footer .link-list.link-list--desktop-center .link-list__links,
.footer .link-list.link-list--center .link-list__links,
.footer .link-list__links--center,
.footer .footer__block[style*="text-align: center"] .link-list__links,
.footer .footer__block[style*="text-align:center"] .link-list__links,
.footer[data-menu-align="center"] .link-list__links,
.footer.footer--menu-align-center .link-list__links {
  justify-content: center !important;
}

/* Footer Menu Alignment: Right (Rata Kanan) */
.footer .footer__block--align-right .link-list__links,
.footer .footer__block--align-right .link-list,
.footer .link-list.justify-content-right .link-list__links,
.footer .link-list.link-list--desktop-right .link-list__links,
.footer .link-list.link-list--right .link-list__links,
.footer .link-list__links--right,
.footer .footer__block[style*="text-align: right"] .link-list__links,
.footer .footer__block[style*="text-align:right"] .link-list__links,
.footer[data-menu-align="right"] .link-list__links,
.footer.footer--menu-align-right .link-list__links {
  justify-content: flex-end !important;
}

/* Footer Link Styles */
.footer .link-list a,
.footer a.link-list__link,
.footer .link-list__link {
  color: #7C8089 !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  display: inline-block !important;
  white-space: nowrap !important;
  transition: color 0.2s ease !important;
}

.footer .link-list a:visited,
.footer .link-list__link:visited {
  color: #7C8089 !important;
}

.footer .link-list a:hover,
.footer a.link-list__link:hover,
.footer .link-list__link:hover,
.footer .link-list a:focus,
.footer .link-list a:active,
.footer .link-list a.active {
  color: #0E0F3B !important;
  text-decoration: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Powered by Kajabi (Discreet) */
.footer .powered-by {
  font-size: 12px;
  color: #A0A4AB !important;
  padding: 10px 0 0 0 !important;
  text-align: center;
}

.footer .powered-by a {
  color: #8A8E96 !important;
}

/* Mobile Footer */
@media (max-width: 767px) {
  .footer__content {
    padding: 30px 16px !important;
  }

  .footer__container {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
  }

  .footer .footer__block {
    margin: 4px 0 !important;
  }

  .footer .link-list__links {
    justify-content: center !important;
    gap: 12px 18px !important;
  }
}
