/* =========================================================
   1. FONT LOAD
   ========================================================= */

@font-face {
  font-family: "NeueHaasDisplay";
  src: url("/wp-content/uploads/et-fonts/NeueHaasDisplayRoman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NeueHaasDisplay";
  src: url("/wp-content/uploads/et-fonts/NeueHaasDisplayMediu.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   HT ACCOUNTING NON-HEADER UTILITIES
   ---------------------------------------------------------
   Header/menu CSS has moved to the HT Accounting Header plugin.
   Keep only page/layout utilities here.
   ========================================================= */

/* =========================================================
   3. CANVAS POPUP SUPPORT
   ========================================================= */

.canvas-popup-scroll {
  margin-top: 50px !important;
  max-height: calc(100dvh - 50px) !important;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}

.canvas-popup-scroll .et_pb_code,
.canvas-popup-scroll .et_pb_code_inner {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.canvas-popup-scroll::-webkit-scrollbar {
  width: 7px;
}

.canvas-popup-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
}

.canvas-popup-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.canvas-popup-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 77, 136, 0.7);
}

.et_pb_section.canvas-popup-fixed,
.canvas-popup-fixed {
  position: fixed !important;
  inset: 0;
  z-index: 9999;
}

.et_pb_section.canvas-popup-fixed {
  height: 100dvh;
  overflow: hidden;
}

.canvas-popup-fixed {
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.canvas-popup-close-row {
  position: absolute !important;
  top: 18px;
  right: 18px;
  width: auto !important;
  z-index: 10020;
  margin: 0 !important;
}



/*support 2 columns in mobile max-width: 767px*/
@media (max-width: 981px) {

  .ht-mobile-2col {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 18px !important;
  }

  .ht-mobile-2col > .et_pb_column {
    flex: 0 0 calc(50% - 9px) !important;
    width: calc(50% - 9px) !important;
    max-width: calc(50% - 9px) !important;
    margin: 0 !important;
  }
}


/* Advanced Glass Blur Background for Divi 5 Text Module */
/* Divi 5 Text Module Glass Blur Hover Effect */
.plab-glass-text {
  background: rgba(255, 255, 255, 0.10) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;

  transition:
    background 0.35s ease,
    -webkit-backdrop-filter 0.35s ease,
    backdrop-filter 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* Hover effect */
.plab-glass-text:hover {
  background: rgba(0, 0, 0, 0.9) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
}

.plab-glass-module {
  background: rgba(255, 255, 255, 0.15) !important;
  -webkit-backdrop-filter: blur(8px) saturate(160%) !important;
  backdrop-filter: blur(8px) saturate(160%) !important;}


/*Absolute Sticky-Row*/
/* 1. Add this class to the parent Section */
.ht-section-sticky-parent {
  position: relative !important;
  overflow: visible !important;
  min-height: 120vh;
}


/* 2. Add this class to the Row */
.ht-row-absolute-top-center {
  position: absolute !important;
  top: 0;
  left: 50%;
  transform: translateX(-50%) !important;
  z-index: 50;

  width: min(90%, 1080px);
  max-width: 1080px;

  height: 100%;
  overflow: visible !important;

  pointer-events: none;
}


/* 3. Add this class to the Column inside that Row */
.ht-column-sticky-section-top {
  position: sticky !important;
  top: 90px;
  z-index: 60;

  align-self: flex-start;
  pointer-events: auto;
}

/*Row Padding under 1600px*/
/* 1. Adds left/right padding on screens UNDER 1600px */
.custom-padding-row {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* 2. Removes left/right padding at 1600px OR WIDER */
@media (min-width: 1600px) {
  .custom-padding-row {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}