/**
 * ZaazBuilder — Frontend Styles
 */

/* ─── Reset ─── */
.zaazbuilder-content,
.zaazbuilder-content * {
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════
 * Layout: Section / Container / Row / Column
 * ═══════════════════════════════════════════ */

/* ─── Section ─── */
.zb-section {
  position: relative;
  overflow: hidden;
}

.zb-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

/* ─── Container ─── */
.zb-container {
  position: relative;
  z-index: 1;
  max-width: var(--zb-container-width, 1200px);
  margin: 0 auto;
  padding: 0 15px;
}

.zb-container.full-width {
  max-width: none;
  padding: 0;
}

/* ─── Row / Columns ─── */
.zb-row {
  display: flex;
  flex-wrap: wrap;
}

.zb-col {
  position: relative;
  min-height: 1px;
  padding: 15px;
}

/* ─── Widget wrapper ─── */
.zb-widget {
  position: relative;
}

/* ═══════════════════════════════════════════
 * Entrance Animations
 * ═══════════════════════════════════════════ */

.zb-animate {
  opacity: 0;
  transition: none;
}

.zb-animate--visible {
  opacity: 1;
}

/* Fade In */
.zb-animate[data-animation="fadeIn"] {
  opacity: 0;
}
.zb-animate--visible[data-animation="fadeIn"] {
  animation: zbFadeIn var(--zb-anim-duration, 0.5s) var(--zb-anim-delay, 0s) ease both;
}

/* Slide Up */
.zb-animate[data-animation="slideUp"] {
  opacity: 0;
  transform: translateY(40px);
}
.zb-animate--visible[data-animation="slideUp"] {
  animation: zbSlideUp var(--zb-anim-duration, 0.5s) var(--zb-anim-delay, 0s) ease both;
}

/* Slide Left */
.zb-animate[data-animation="slideLeft"] {
  opacity: 0;
  transform: translateX(40px);
}
.zb-animate--visible[data-animation="slideLeft"] {
  animation: zbSlideLeft var(--zb-anim-duration, 0.5s) var(--zb-anim-delay, 0s) ease both;
}

/* Slide Right */
.zb-animate[data-animation="slideRight"] {
  opacity: 0;
  transform: translateX(-40px);
}
.zb-animate--visible[data-animation="slideRight"] {
  animation: zbSlideRight var(--zb-anim-duration, 0.5s) var(--zb-anim-delay, 0s) ease both;
}

/* Zoom In */
.zb-animate[data-animation="zoomIn"] {
  opacity: 0;
  transform: scale(0.85);
}
.zb-animate--visible[data-animation="zoomIn"] {
  animation: zbZoomIn var(--zb-anim-duration, 0.5s) var(--zb-anim-delay, 0s) ease both;
}

@keyframes zbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes zbSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes zbSlideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes zbSlideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes zbZoomIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════
 * Widget: Image
 * ═══════════════════════════════════════════ */

.zb-widget-image {
  margin: 0;
  padding: 0;
}

.zb-widget-image__img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.zb-widget-image__img--hover-zoom:hover {
  transform: scale(1.08);
}
.zb-widget-image__img--hover-grayscale {
  filter: grayscale(100%);
}
.zb-widget-image__img--hover-grayscale:hover {
  filter: grayscale(0%);
}
.zb-widget-image__img--hover-brightness:hover {
  filter: brightness(1.15);
}

.zb-widget-image__caption {
  font-size: 0.875em;
  color: #666;
  text-align: center;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════
 * Widget: Button
 * ═══════════════════════════════════════════ */

.zb-widget-button__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.15s ease,
              box-shadow 0.2s ease;
  border: 2px solid transparent;
  line-height: 1.4;
}
.zb-widget-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.zb-widget-button__link:active {
  transform: translateY(0);
}

/* Sizes */
.zb-widget-button__link--sm { padding: 6px 14px; font-size: 13px; }
.zb-widget-button__link--md { padding: 10px 22px; font-size: 15px; }
.zb-widget-button__link--lg { padding: 14px 30px; font-size: 17px; }
.zb-widget-button__link--xl { padding: 18px 40px; font-size: 19px; }

/* Variants */
.zb-widget-button__link--outline {
  background: transparent;
}
.zb-widget-button__link--ghost {
  background: transparent;
  border-color: transparent;
}
.zb-widget-button__link--ghost:hover {
  box-shadow: none;
}
.zb-widget-button__link--full {
  display: flex;
  width: 100%;
  justify-content: center;
}

.zb-widget-button__icon {
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
 * Widget: Heading
 * ═══════════════════════════════════════════ */

.zb-widget-heading {
  margin: 0;
  padding: 0;
  word-wrap: break-word;
}

.zb-widget-heading a {
  color: inherit;
  text-decoration: none;
}
.zb-widget-heading a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
 * Widget: Text
 * ═══════════════════════════════════════════ */

.zb-widget-text {
  word-wrap: break-word;
}

.zb-widget-text p:first-child {
  margin-top: 0;
}
.zb-widget-text p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════
 * Widget: Spacer
 * ═══════════════════════════════════════════ */

.zb-widget-spacer {
  width: 100%;
}

/* ═══════════════════════════════════════════
 * Widget: Video
 * ═══════════════════════════════════════════ */

.zb-widget-video {
  max-width: 100%;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.zb-widget-video__iframe,
.zb-widget-video__player {
  border: 0;
}

/* ═══════════════════════════════════════════
 * Widget: Social Icons
 * ═══════════════════════════════════════════ */

.zb-social-icon {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zb-social-icon--hover-grow:hover {
  transform: scale(1.15);
}

.zb-social-icon--hover-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.zb-social-icon--hover-rotate:hover {
  transform: rotate(15deg) scale(1.1);
}

/* ═══════════════════════════════════════════
 * Widget: Icon List
 * ═══════════════════════════════════════════ */

.zb-widget-icon-list__item a:hover {
  text-decoration: underline !important;
}

/* ═══════════════════════════════════════════
 * Widget: Post Grid
 * ═══════════════════════════════════════════ */

.zb-widget-post-grid--empty {
  padding: 40px;
  text-align: center;
  color: #6b7280;
}

/* Card image hover effects */
.zb-post-card__img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.zb-post-card__img--hover-zoom:hover {
  transform: scale(1.06);
}
.zb-post-card__img--hover-darken:hover {
  filter: brightness(0.7);
}
.zb-post-card__img--hover-blur:hover {
  filter: blur(3px);
}

/* Title link hover */
.zb-post-card__title a:hover {
  text-decoration: underline !important;
}

/* Category badge hover */
.zb-post-card__category:hover {
  opacity: 0.85;
}

/* Read more hover */
.zb-post-card__read-more:hover {
  text-decoration: underline !important;
}

/* Overlay card — ensure content is above gradient */
.zb-post-card--overlay .zb-post-card__overlay-content {
  z-index: 1;
}

/* Load more button */
.zb-post-grid-load-more__btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.zb-post-grid-load-more__btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* ═══════════════════════════════════════════
 * Widget: Table
 * ═══════════════════════════════════════════ */

.zb-table-wrap {
  width: 100%;
}
.zb-table-wrap--scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.zb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--zb-table-font-size, 14px);
  text-align: var(--zb-table-align, left);
}

.zb-table th,
.zb-table td {
  padding: var(--zb-table-padding, 12px);
  vertical-align: top;
}

.zb-table thead th {
  background-color: var(--zb-table-header-bg, #1e293b);
  color: var(--zb-table-header-text, #fff);
  font-weight: 600;
  white-space: nowrap;
}

.zb-table tbody th {
  background-color: var(--zb-table-header-bg, #1e293b);
  color: var(--zb-table-header-text, #fff);
  font-weight: 600;
}

/* Bordered */
.zb-table--bordered th,
.zb-table--bordered td {
  border: 1px solid var(--zb-table-border, #e2e8f0);
}

/* Striped */
.zb-table--striped tbody tr:nth-child(even) {
  background-color: var(--zb-table-stripe-bg, #f8fafc);
}

/* Hoverable */
.zb-table--hoverable tbody tr {
  transition: background-color 0.15s ease;
}
.zb-table--hoverable tbody tr:hover {
  background-color: var(--zb-table-stripe-bg, #f8fafc);
}

/* Stack mode (mobile) */
@media (max-width: 768px) {
  .zb-table-wrap--stack .zb-table,
  .zb-table-wrap--stack .zb-table thead,
  .zb-table-wrap--stack .zb-table tbody,
  .zb-table-wrap--stack .zb-table tr,
  .zb-table-wrap--stack .zb-table th,
  .zb-table-wrap--stack .zb-table td {
    display: block;
    width: 100%;
  }
  .zb-table-wrap--stack .zb-table thead {
    display: none;
  }
  .zb-table-wrap--stack .zb-table tbody tr {
    margin-bottom: 12px;
    border: 1px solid var(--zb-table-border, #e2e8f0);
    border-radius: 4px;
    overflow: hidden;
  }
  .zb-table-wrap--stack .zb-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }
  .zb-table-wrap--stack .zb-table td::before {
    content: attr(data-label);
    position: absolute;
    left: var(--zb-table-padding, 12px);
    top: var(--zb-table-padding, 12px);
    font-weight: 600;
    text-align: left;
  }
  .zb-table-wrap--stack .zb-table td:not(:last-child) {
    border-bottom: 1px solid var(--zb-table-border, #e2e8f0);
  }
}

/* ═══════════════════════════════════════════
 * Widget: Tabs
 * ═══════════════════════════════════════════ */

.zb-tabs {
  width: 100%;
}

/* Horizontal layout */
.zb-tabs--horizontal .zb-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--zb-tabs-border, #e2e8f0);
}
.zb-tabs--horizontal .zb-tabs__tab {
  position: relative;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--zb-tabs-inactive-color, #64748b);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.zb-tabs--horizontal .zb-tabs__tab:hover {
  color: var(--zb-tabs-active-color, #0073aa);
}
.zb-tabs--horizontal .zb-tabs__tab--active {
  color: var(--zb-tabs-active-color, #0073aa);
  background-color: var(--zb-tabs-active-bg, #fff);
  border-bottom-color: var(--zb-tabs-active-color, #0073aa);
}
.zb-tabs--horizontal .zb-tabs__tab:focus-visible {
  outline: 2px solid var(--zb-tabs-active-color, #0073aa);
  outline-offset: -2px;
}

/* Vertical layout */
.zb-tabs--vertical {
  display: flex;
  gap: 0;
}
.zb-tabs--vertical .zb-tabs__list {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 2px solid var(--zb-tabs-border, #e2e8f0);
  min-width: 180px;
}
.zb-tabs--vertical .zb-tabs__tab {
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--zb-tabs-inactive-color, #64748b);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-right: 2px solid transparent;
  margin-right: -2px;
}
.zb-tabs--vertical .zb-tabs__tab:hover {
  color: var(--zb-tabs-active-color, #0073aa);
}
.zb-tabs--vertical .zb-tabs__tab--active {
  color: var(--zb-tabs-active-color, #0073aa);
  background-color: var(--zb-tabs-active-bg, #fff);
  border-right-color: var(--zb-tabs-active-color, #0073aa);
}
.zb-tabs--vertical .zb-tabs__tab:focus-visible {
  outline: 2px solid var(--zb-tabs-active-color, #0073aa);
  outline-offset: -2px;
}
.zb-tabs--vertical .zb-tabs__panels {
  flex: 1;
  min-width: 0;
}

/* Panels */
.zb-tabs__panel {
  padding: var(--zb-tabs-content-padding, 24px);
}
.zb-tabs__panel[hidden] {
  display: none;
}

/* Tab icon */
.zb-tabs__icon {
  margin-right: 6px;
}

/* Vertical stacks on mobile */
@media (max-width: 768px) {
  .zb-tabs--vertical {
    flex-direction: column;
  }
  .zb-tabs--vertical .zb-tabs__list {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 2px solid var(--zb-tabs-border, #e2e8f0);
    min-width: 0;
  }
  .zb-tabs--vertical .zb-tabs__tab {
    border-right: none;
    border-bottom: 2px solid transparent;
    margin-right: 0;
    margin-bottom: -2px;
  }
  .zb-tabs--vertical .zb-tabs__tab--active {
    border-bottom-color: var(--zb-tabs-active-color, #0073aa);
    border-right-color: transparent;
  }
}

/* ═══════════════════════════════════════════
 * Widget: Accordion
 * ═══════════════════════════════════════════ */

.zb-accordion {
  width: 100%;
}

/* Header */
.zb-accordion__header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 18px;
  border: none;
  background-color: var(--zb-acc-title-bg, #f8fafc);
  color: var(--zb-acc-title-text, #1e293b);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 10px;
  transition: background-color 0.15s ease;
}
.zb-accordion__header:hover {
  opacity: 0.85;
}
.zb-accordion__header:focus-visible {
  outline: 2px solid var(--zb-acc-title-text, #1e293b);
  outline-offset: -2px;
}

.zb-accordion__title {
  flex: 1;
}

/* Icon position */
.zb-accordion--icon-right .zb-accordion__toggle-icon {
  order: 1;
  margin-left: auto;
}
.zb-accordion--icon-left .zb-accordion__toggle-icon {
  order: -1;
}

/* Chevron rotation */
.zb-accordion__chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.zb-accordion__item--open .zb-accordion__chevron {
  transform: rotate(180deg);
}

/* Custom open/close icons */
.zb-accordion__icon-close {
  display: none;
}
.zb-accordion__item--open .zb-accordion__icon-open {
  display: none;
}
.zb-accordion__item--open .zb-accordion__icon-close {
  display: inline;
}

/* Region / content */
.zb-accordion__region {
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.zb-accordion__region[hidden] {
  display: block;
  max-height: 0;
  visibility: hidden;
}
.zb-accordion__region:not([hidden]) {
  max-height: 2000px;
  visibility: visible;
}

.zb-accordion__content {
  padding: 16px 18px;
  background-color: var(--zb-acc-content-bg, #fff);
}

/* Style: bordered */
.zb-accordion--bordered .zb-accordion__item {
  border: 1px solid var(--zb-acc-border, #e2e8f0);
}
.zb-accordion--bordered .zb-accordion__item + .zb-accordion__item {
  border-top: none;
}

/* Style: separated */
.zb-accordion--separated .zb-accordion__item {
  border: 1px solid var(--zb-acc-border, #e2e8f0);
  border-radius: 6px;
  overflow: hidden;
}
.zb-accordion--separated .zb-accordion__item + .zb-accordion__item {
  margin-top: 8px;
}

/* Style: simple */
.zb-accordion--simple .zb-accordion__header {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
.zb-accordion--simple .zb-accordion__item + .zb-accordion__item {
  border-top: 1px solid var(--zb-acc-border, #e2e8f0);
}
.zb-accordion--simple .zb-accordion__content {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

/* ═══════════════════════════════════════════
 * Widget: Ticker
 * ═══════════════════════════════════════════ */

.zb-ticker {
  display: flex;
  align-items: center;
  background-color: var(--zb-ticker-bg, #1e293b);
  color: var(--zb-ticker-color, #fff);
  font-size: var(--zb-ticker-font-size, 14px);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.zb-ticker__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  z-index: 1;
}
.zb-ticker__icon .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.zb-ticker__track {
  display: flex;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.zb-ticker__content {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 0;
  flex-shrink: 0;
  will-change: transform;
}

.zb-ticker__content--left {
  animation: zbTickerLeft var(--zb-ticker-duration, 25s) linear infinite;
}
.zb-ticker__content--right {
  animation: zbTickerRight var(--zb-ticker-duration, 25s) linear infinite;
}

.zb-ticker--pause-hover:hover .zb-ticker__content {
  animation-play-state: paused;
}

.zb-ticker__item {
  padding: 0 16px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

a.zb-ticker__item:hover {
  text-decoration: underline;
}

.zb-ticker__sep {
  padding: 0 4px;
  opacity: 0.5;
}

@keyframes zbTickerLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes zbTickerRight {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

/* ═══════════════════════════════════════════
 * Widget: Menu / Navigation
 * ═══════════════════════════════════════════ */

.zb-nav {
  position: relative;
  background-color: var(--zb-nav-bg, #fff);
  z-index: 100;
  width: 100%;
}
.zb-nav--can-stick {
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.zb-nav--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--zb-nav-sticky-bg, #fff);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.zb-nav__inner {
  display: flex;
  align-items: center;
  max-width: var(--zb-container-width, 1200px);
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

/* Logo */
.zb-nav__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 24px;
}
.zb-nav__logo img {
  height: auto;
  display: block;
}
.zb-nav--logo-center .zb-nav__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Menu container */
.zb-nav__menu {
  display: flex;
  flex: 1;
  min-width: 0;
}

/* List */
.zb-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--zb-nav-spacing, 4px);
}
.zb-nav--align-center .zb-nav__list { justify-content: center; }
.zb-nav--align-right .zb-nav__list  { justify-content: flex-end; margin-left: auto; }

/* Vertical layout */
.zb-nav--vertical .zb-nav__list {
  flex-direction: column;
}

/* Items & links */
.zb-nav__item {
  position: relative;
}

.zb-nav__link {
  display: flex;
  align-items: center;
  padding: var(--zb-nav-padding, 12px 20px);
  font-size: var(--zb-nav-font-size, 15px);
  font-weight: var(--zb-nav-font-weight, 500);
  color: var(--zb-nav-color, #1e293b);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.zb-nav__link:hover {
  color: var(--zb-nav-hover, #0073aa);
}
.zb-nav__item--active > .zb-nav__link {
  color: var(--zb-nav-active, #0073aa);
}

/* Dropdown toggle */
.zb-nav__dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  color: inherit;
  transition: transform 0.2s ease;
}
.zb-nav__item--has-children.zb-nav__item--open > .zb-nav__dropdown-toggle {
  transform: rotate(180deg);
}

/* Submenu / Dropdown */
.zb-nav__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: var(--zb-nav-dd-width, 220px);
  background-color: var(--zb-nav-dd-bg, #fff);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 50;
}
.zb-nav__item--has-children:hover > .zb-nav__submenu,
.zb-nav__item--has-children.zb-nav__item--open > .zb-nav__submenu {
  display: block;
}

.zb-nav__submenu .zb-nav__link {
  padding: 8px 18px;
  font-size: calc(var(--zb-nav-font-size, 15px) - 1px);
  color: var(--zb-nav-dd-color, #374151);
}
.zb-nav__submenu .zb-nav__link:hover {
  color: var(--zb-nav-hover, #0073aa);
  background-color: rgba(0, 0, 0, 0.03);
}

/* Nested submenus */
.zb-nav__submenu .zb-nav__submenu {
  top: 0;
  left: 100%;
}

/* Hamburger button — hidden on desktop by default */
.zb-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 101;
}
.zb-nav__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--zb-nav-hamburger-color, #1e293b);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Animated X when open */
.zb-nav__hamburger[aria-expanded="true"] .zb-nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.zb-nav__hamburger[aria-expanded="true"] .zb-nav__hamburger-line:nth-child(2) {
  opacity: 0;
}
.zb-nav__hamburger[aria-expanded="true"] .zb-nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile menu panel ─── */

/* Show hamburger at breakpoint */
.zb-nav--bp-always .zb-nav__hamburger { display: flex; }
.zb-nav--bp-always .zb-nav__menu { display: none; }

@media (max-width: 1024px) {
  .zb-nav--bp-tablet .zb-nav__hamburger { display: flex; }
  .zb-nav--bp-tablet .zb-nav__menu { display: none; }
}
@media (max-width: 768px) {
  .zb-nav--bp-mobile .zb-nav__hamburger { display: flex; }
  .zb-nav--bp-mobile .zb-nav__menu { display: none; }
}

/* Mobile menu panel (slide/fade/push) */
.zb-nav__menu--mobile-open {
  display: flex !important;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--zb-nav-mobile-bg, #fff);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow-y: auto;
  padding: 60px 0 20px;
}
.zb-nav__menu--mobile-open .zb-nav__list {
  flex-direction: column;
  width: 100%;
  gap: 0;
}
.zb-nav__menu--mobile-open .zb-nav__link {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.zb-nav__menu--mobile-open .zb-nav__submenu {
  position: static;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  min-width: 0;
}
.zb-nav__menu--mobile-open .zb-nav__submenu .zb-nav__link {
  padding-left: 40px;
}
.zb-nav__menu--mobile-open .zb-nav__submenu .zb-nav__submenu .zb-nav__link {
  padding-left: 56px;
}

/* Slide animation */
.zb-nav__menu--slide {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.zb-nav__menu--slide.zb-nav__menu--mobile-open {
  transform: translateX(0);
}

/* Fade animation */
.zb-nav__menu--fade {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.zb-nav__menu--fade.zb-nav__menu--mobile-open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile overlay */
.zb-nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
}
.zb-nav__overlay--visible {
  display: block;
}

/* ═══════════════════════════════════════════
 * Widget: Newsletter
 * ═══════════════════════════════════════════ */

.zb-newsletter {
  background-color: var(--zb-nl-bg, #f8fafc);
  color: var(--zb-nl-color, #1e293b);
  padding: 32px;
  border-radius: 8px;
}

.zb-newsletter__heading {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: inherit;
}

.zb-newsletter__desc {
  margin: 0 0 20px;
  font-size: 15px;
  opacity: 0.8;
}

/* Inline layout */
.zb-newsletter--inline .zb-newsletter__fields {
  display: flex;
  gap: 0;
  max-width: 480px;
}
.zb-newsletter--inline .zb-newsletter__input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  min-width: 0;
}
.zb-newsletter--inline .zb-newsletter__btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Stacked layout */
.zb-newsletter--stacked .zb-newsletter__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.zb-newsletter__input {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
  background: #fff;
  color: #1e293b;
}
.zb-newsletter__input:focus {
  border-color: var(--zb-nl-btn-bg, #0073aa);
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.zb-newsletter__btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--zb-nl-btn-color, #fff);
  background-color: var(--zb-nl-btn-bg, #0073aa);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.zb-newsletter__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.zb-newsletter__btn:active {
  transform: translateY(0);
}

.zb-newsletter__success {
  padding: 12px 16px;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 6px;
  font-weight: 500;
  margin-top: 12px;
}
.zb-newsletter__success[hidden] {
  display: none;
}

.zb-newsletter__privacy {
  margin: 12px 0 0;
  font-size: 12px;
  opacity: 0.6;
}
.zb-newsletter__privacy a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .zb-newsletter {
    padding: 24px 16px;
  }
  .zb-newsletter--inline .zb-newsletter__fields {
    flex-direction: column;
    gap: 10px;
  }
  .zb-newsletter--inline .zb-newsletter__input {
    border-radius: 6px;
  }
  .zb-newsletter--inline .zb-newsletter__btn {
    border-radius: 6px;
  }
}

/* ═══════════════════════════════════════════
 * Widget: HTML
 * ═══════════════════════════════════════════ */

.zb-widget-html {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ═══════════════════════════════════════════
 * Widget: Slider / Carousel
 * ═══════════════════════════════════════════ */

.zb-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #000;
}

.zb-slider:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: -2px;
}

.zb-slider-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.zb-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ─── Slide ─── */
.zb-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.zb-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  will-change: transform;
}

.zb-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.zb-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 60px 40px;
}

.zb-slide-heading {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.zb-slide-subheading {
  margin: 0 0 28px;
  line-height: 1.6;
  font-weight: 400;
}

.zb-slide-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Center/right alignment for buttons container */
.zb-slide-content[style*="text-align:center"] .zb-slide-buttons,
.zb-slide-content[style*="text-align: center"] .zb-slide-buttons {
  justify-content: center;
}
.zb-slide-content[style*="text-align:right"] .zb-slide-buttons,
.zb-slide-content[style*="text-align: right"] .zb-slide-buttons {
  justify-content: flex-end;
}

/* ─── Slide CTA Buttons ─── */
.zb-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.15s ease,
              box-shadow 0.2s ease, opacity 0.2s ease;
  line-height: 1.4;
}
.zb-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.zb-btn:active {
  transform: translateY(0);
}

.zb-btn--outline {
  background: transparent;
}

/* ─── Navigation Arrows ─── */
.zb-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.zb-slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}
.zb-slider-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.zb-slider-prev { left: 16px; }
.zb-slider-next { right: 16px; }

/* Arrow style: default */
.zb-slider-arrow--default {
  border-radius: 4px;
  width: 48px;
  height: 48px;
}

/* Arrow style: minimal */
.zb-slider-arrow--minimal {
  background: transparent;
  padding: 8px;
}
.zb-slider-arrow--minimal:hover {
  background: rgba(0, 0, 0, 0.2);
}
.zb-slider-arrow--minimal svg {
  width: 32px;
  height: 32px;
}

/* Arrow style: circle */
.zb-slider-arrow--circle {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

/* ─── Dot Navigation ─── */
.zb-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.zb-slider-dot {
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease, width 0.2s ease;
}
.zb-slider-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Dot style: default (circles) */
.zb-slider-dots--default .zb-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.zb-slider-dots--default .zb-slider-dot--active {
  background: #fff;
  transform: scale(1.2);
}

/* Dot style: line */
.zb-slider-dots--line .zb-slider-dot {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}
.zb-slider-dots--line .zb-slider-dot--active {
  width: 40px;
  background: #fff;
}

/* Dot style: dash */
.zb-slider-dots--dash .zb-slider-dot {
  width: 20px;
  height: 4px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.45);
}
.zb-slider-dots--dash .zb-slider-dot--active {
  background: #fff;
}

/* ═══════════════════════════════════════════
 * Responsive: Tablet (max-width: 1024px)
 * ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .zb-container {
    padding: 0 12px;
  }

  .zb-col {
    padding: 10px;
  }

  .zb-hide-tablet {
    display: none !important;
  }

  .zb-slide-content {
    padding: 40px 30px;
  }
  .zb-slider-prev { left: 10px; }
  .zb-slider-next { right: 10px; }

  .zb-widget-post-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .zb-post-card--horizontal {
    flex-direction: column;
  }
  .zb-post-card--horizontal .zb-post-card__image-wrap {
    width: 100% !important;
    max-height: 200px;
  }
}

/* ═══════════════════════════════════════════
 * Responsive: Mobile (max-width: 768px)
 * ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .zb-row {
    flex-direction: column;
  }

  .zb-col {
    width: 100% !important;
    padding: 8px;
  }

  .zb-container {
    padding: 0 10px;
  }

  .zb-hide-mobile {
    display: none !important;
  }

  .zb-slide-content {
    padding: 30px 20px;
  }
  .zb-slide-heading {
    font-size: 28px !important;
  }
  .zb-slide-subheading {
    font-size: 15px !important;
  }
  .zb-slide-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .zb-slider-arrow--default,
  .zb-slider-arrow--circle {
    width: 36px;
    height: 36px;
    padding: 6px;
  }
  .zb-slider-prev { left: 8px; }
  .zb-slider-next { right: 8px; }
  .zb-slider-dots {
    bottom: 14px;
  }

  .zb-widget-post-grid {
    grid-template-columns: 1fr !important;
  }

  /* Stack button full-width on mobile */
  .zb-widget-button__link--lg,
  .zb-widget-button__link--xl {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════
 * Desktop visibility hide
 * ═══════════════════════════════════════════ */

@media (min-width: 1025px) {
  .zb-hide-desktop {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════
 * Print Styles
 * ═══════════════════════════════════════════ */

@media print {
  .zb-section {
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  .zb-section-overlay,
  .zb-parallax-layer {
    display: none !important;
  }

  .zaazbuilder-content,
  .zaazbuilder-content * {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .zb-animate {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .zb-widget-button__link {
    border: 1px solid #000 !important;
  }

  .zb-row {
    flex-direction: column;
  }

  .zb-col {
    width: 100% !important;
  }

  .zb-widget-spacer {
    height: 20px !important;
  }
}
