/* ============================================================
   ELEMENTOR FIX CSS — Essential Idiomas
   Fixes for missing per-page Elementor CSS (post-XXXXX.css)
   ============================================================ */

/* ---- CRITICAL: Container display defaults ---- */
/* Without per-page CSS, --display is undefined → containers collapse */
.e-con {
  --display: flex;
}

.e-con.e-flex {
  --flex-direction: column;
  --flex-wrap: nowrap;
  --align-content: normal;
  --align-items: normal;
  --justify-content: normal;
}

/* Parent containers = full width sections */
.e-con.e-parent {
  width: 100%;
  --flex-direction: column;
}

/* Child containers side by side (row layout inside boxed) */
.e-con-boxed > .e-con-inner > .e-con.e-child {
  --flex-direction: column;
  flex: 1;
  min-width: 0;
}

.e-con-boxed > .e-con-inner {
  --content-width: 1140px;
  flex-direction: row;
  flex-wrap: wrap;
}

/* Full-width sections */
.e-con-full > .e-con-inner,
.e-con-full.e-flex {
  max-width: 100%;
}

/* Default gap */
.e-con > .e-con-inner {
  --row-gap: 20px;
  --column-gap: 20px;
}

/* ---- Widget defaults ---- */

/* Headings */
.elementor-widget-heading {
  width: 100%;
}

.elementor-heading-title {
  margin: 0;
  padding: 0;
}

/* Text Editor */
.elementor-widget-text-editor {
  width: 100%;
}

/* Images */
.elementor-widget-image,
.elementor-widget.elementor-widget-softlite_image {
  width: 100%;
}

.elementor-widget-image img,
.elementor-image img,
.elementor-widget-softlite_image img {
  max-width: 100%;
  height: auto;
}

/* Buttons */
.elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.elementor-button-wrapper {
  display: flex;
}

/* Icon List */
.elementor-widget-icon-list .elementor-icon-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.elementor-widget-icon-list .elementor-icon-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.elementor-icon-list--layout-traditional .elementor-icon-list-items {
  display: block;
}

/* Icon Box */
.elementor-widget-icon-box .elementor-icon-box-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.elementor-widget-icon-box .elementor-icon {
  margin-bottom: 15px;
}

/* Image Box */
.elementor-widget-image-box .elementor-image-box-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.elementor-widget-image-box .elementor-image-box-img {
  margin-bottom: 15px;
}

.elementor-widget-image-box .elementor-image-box-img img {
  max-width: 100%;
  height: auto;
}

/* Video */
.elementor-widget-video .elementor-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.elementor-widget-video .elementor-wrapper iframe,
.elementor-widget-video .elementor-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.elementor-fit-aspect-ratio {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.elementor-fit-aspect-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Spacer */
.elementor-widget-spacer {
  width: 100%;
}

.elementor-widget-spacer .elementor-spacer {
  height: var(--spacer-size, 50px);
}

/* Divider */
.elementor-widget-divider {
  width: 100%;
}

.elementor-widget-divider .elementor-divider-separator {
  border-top: 1px solid #ddd;
  width: 100%;
}

/* Social Icons */
.elementor-widget-social-icons .elementor-social-icons-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.elementor-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s;
}

/* N-Accordion */
.elementor-widget-n-accordion .e-n-accordion {
  width: 100%;
}

.e-n-accordion-item {
  border: 1px solid #ddd;
  margin-bottom: -1px;
}

.e-n-accordion-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
}

.e-n-accordion-item-title-icon svg,
.ekit-svg-icon svg,
.elementor-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.e-n-accordion-item .e-con {
  padding: 15px 20px;
}

/* Form */
.elementor-widget-form .elementor-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.elementor-field-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.elementor-field-group input,
.elementor-field-group textarea,
.elementor-field-group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.elementor-field-group label {
  margin-bottom: 5px;
  font-weight: 500;
}

.elementor-field-type-submit {
  display: flex;
}

.elementor-field-type-submit button {
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

/* SoftLite Card Box */
.elementor-widget-softlite_dynamic_card_box {
  width: 100%;
}

/* SoftLite List */
.elementor-widget-softlite_dynamic_list {
  width: 100%;
}

/* HTML widget */
.elementor-widget-html {
  width: 100%;
}

/* Nav Menu */
.elementor-widget-nav-menu .elementor-nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

/* Shortcode */
.elementor-widget-shortcode {
  width: 100%;
}

/* ---- Animation classes ---- */
.elementor-animation-grow:hover {
  transform: scale(1.1);
  transition: transform 0.3s;
}

/* ---- Template Canvas (no header/footer) ---- */
.elementor-template-canvas .e-con.e-parent:first-child {
  padding-top: 0;
}

/* ---- Responsive: collapse columns on mobile ---- */
@media (max-width: 767px) {
  .e-con-boxed > .e-con-inner {
    flex-direction: column;
  }
  
  .e-con-boxed > .e-con-inner > .e-con.e-child {
    flex: none;
    width: 100%;
  }
}

/* ============================================================
   FIX BATCH 2 — LP Layout fixes (22/02/2026d)
   ============================================================ */

/* Fix: e-con-inner must respect --flex-direction from per-page CSS */
.e-con.e-flex > .e-con-inner {
  flex-direction: var(--flex-direction, row);
  flex-wrap: var(--flex-wrap, wrap);
  align-content: var(--align-content, normal);
  align-items: var(--align-items, normal);
  justify-content: var(--justify-content, normal);
  gap: var(--gap, var(--row-gap, 20px) var(--column-gap, 20px));
}

/* Fix: Parent sections = column by default, but e-con-inner = row */
.e-con.e-flex.e-parent > .e-con-inner {
  flex-direction: var(--flex-direction, row);
}

/* Fix: Child containers take equal space in row layouts */
.e-con.e-flex.e-child {
  flex-grow: var(--flex-grow, 1);
  flex-shrink: var(--flex-shrink, 1);
  flex-basis: var(--flex-basis, auto);
}

/* Fix: Ensure --width is respected when set by per-page CSS */
.e-con.e-child {
  width: var(--width, auto);
  min-width: 0;
}

/* Fix: Swiper containers must be row for slides */
.swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
}

.swiper-slide {
  flex-shrink: 0;
  width: auto;
}

.swiper-container,
.swiper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Fix: Elementor swiper integration */
.elementor-main-swiper,
.elementor-testimonial__slides,
.elementor-slides-wrapper {
  overflow: hidden;
  position: relative;
}

.elementor-main-swiper .swiper-wrapper,
.elementor-testimonial__slides .swiper-wrapper,
.elementor-slides-wrapper .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
}

/* Fix: Buttons always centered in their wrapper */
.elementor-button-wrapper {
  display: flex;
  justify-content: var(--justify-content, center);
}

.elementor-widget-button {
  width: 100%;
  text-align: center;
}

/* Fix: Image carousel / gallery horizontal scroll */
.elementor-image-carousel .swiper-wrapper,
.e-gallery .e-gallery-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

/* Fix: Column gap for grid layouts */
.elementor-grid {
  display: grid;
  gap: var(--grid-row-gap, 20px) var(--grid-column-gap, 20px);
}

/* Fix: HappyAddons card horizontal layout */
.ha-card-body,
.ha-team-member,
.ha-pricing-table {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fix: Ensure full-width containers dont overflow export/ site/ ui-ux-skill/

/* ============================================================
   FIX BATCH 2 — LP Layout fixes (22/02/2026d)
   ============================================================ */

/* Fix: e-con-inner must respect --flex-direction from per-page CSS */
.e-con.e-flex > .e-con-inner {
  flex-direction: var(--flex-direction, row);
  flex-wrap: var(--flex-wrap, wrap);
  align-content: var(--align-content, normal);
  align-items: var(--align-items, normal);
  justify-content: var(--justify-content, normal);
  gap: var(--gap, var(--row-gap, 20px) var(--column-gap, 20px));
}

/* Fix: Parent sections = column by default, but e-con-inner = row */
.e-con.e-flex.e-parent > .e-con-inner {
  flex-direction: var(--flex-direction, row);
}

/* Fix: Child containers take equal space in row layouts */
.e-con.e-flex.e-child {
  flex-grow: var(--flex-grow, 1);
  flex-shrink: var(--flex-shrink, 1);
  flex-basis: var(--flex-basis, auto);
}

/* Fix: Ensure --width is respected when set by per-page CSS */
.e-con.e-child {
  width: var(--width, auto);
  min-width: 0;
}

/* Fix: Swiper containers must be row for slides */
.swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
}

.swiper-slide {
  flex-shrink: 0;
  width: auto;
}

.swiper-container,
.swiper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Fix: Elementor swiper integration */
.elementor-main-swiper,
.elementor-testimonial__slides,
.elementor-slides-wrapper {
  overflow: hidden;
  position: relative;
}

.elementor-main-swiper .swiper-wrapper,
.elementor-testimonial__slides .swiper-wrapper,
.elementor-slides-wrapper .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
}

/* Fix: Buttons always centered in their wrapper */
.elementor-button-wrapper {
  display: flex;
  justify-content: var(--justify-content, center);
}

.elementor-widget-button {
  width: 100%;
  text-align: center;
}

/* Fix: Image carousel / gallery horizontal scroll */
.elementor-image-carousel .swiper-wrapper,
.e-gallery .e-gallery-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

/* Fix: Column gap for grid layouts */
.elementor-grid {
  display: grid;
  gap: var(--grid-row-gap, 20px) var(--grid-column-gap, 20px);
}

/* Fix: HappyAddons card horizontal layout */
.ha-card-body,
.ha-team-member,
.ha-pricing-table {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fix: Ensure full-width containers don't overflow */
.e-con-full.e-flex > .e-con-inner {
  flex-direction: var(--flex-direction, row);
  flex-wrap: var(--flex-wrap, wrap);
  width: 100%;
}

/* Fix: Container padding from CSS vars */
.e-con {
  padding-block-start: var(--padding-block-start, 0);
  padding-block-end: var(--padding-block-end, 0);
  padding-inline-start: var(--padding-inline-start, 0);
  padding-inline-end: var(--padding-inline-end, 0);
  margin-block-start: var(--margin-block-start, 0);
  margin-block-end: var(--margin-block-end, 0);
}

/* Fix: Background overlay z-index */
.e-con::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--background-overlay, none);
  transition: background 0.3s;
}

.e-con > .e-con-inner {
  position: relative;
  z-index: 1;
}

/* Fix: Min-height for sections */
.e-con {
  min-height: var(--min-height, auto);
  position: relative;
}

/* Fix: Responsive override for mobile - force column */
@media (max-width: 767px) {
  .e-con.e-flex > .e-con-inner {
    flex-direction: column;
  }
  
  .e-con.e-flex.e-child {
    width: 100% !important;
    flex-basis: 100% !important;
  }
}
