/**
 * Study in France (Elementor page 5022) — /v3 mirror fixes:
 * - Hero hosted background video: ensure container fills and stacks above video
 * - Graded dark scrim overlay for white text readability
 * - Shape divider at hero bottom (multi-wave) in white
 * - Main "STUDY IN FRANCE" (widget 556acaf): Squada One + bold text shadow
 * - elementor-invisible + entrance animation reveal without JS
 */

#ke-wp-mirror-root > .elementor.elementor-5022 {
  width: 100%;
  max-width: none;
}

html:has(body.ke-france-mirror),
body.ke-france-mirror {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html:has(body.ke-france-mirror),
  body.ke-france-mirror {
    overflow-x: clip;
  }
}

.elementor.elementor-5022 .elementor-element-2c6edc4.e-con {
  position: relative;
  min-height: min(100vh, 960px);
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-block: clamp(2rem, 6vh, 4rem);
  padding-inline: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}

.elementor.elementor-5022 .elementor-element-2c6edc4 > .elementor-background-video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Graded dark overlay like the Italy hero */
.elementor.elementor-5022 .elementor-element-2c6edc4 > .elementor-background-video-container::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.52) 40%,
    rgba(0, 0, 0, 0.58) 100%
  );
}

.elementor.elementor-5022 .elementor-element-2c6edc4 > .elementor-background-video-container video {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Ensure contents display above background video */
.elementor.elementor-5022 .elementor-element-2c6edc4 > *:not(.elementor-background-video-container):not(.elementor-shape) {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
}

/* Multi-wave at hero bottom — above video, below headings so copy stays readable */
.elementor.elementor-5022 .elementor-element-2c6edc4 > .elementor-shape.elementor-shape-bottom {
  position: absolute !important;
  top: auto !important;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  z-index: 4;
  pointer-events: none;
}

body.ke-france-mirror #ke-wp-mirror-root .elementor.elementor-5022 .elementor-element.elementor-element-2c6edc4 > .elementor-shape-bottom svg,
body.ke-france-mirror #ke-wp-mirror-root .elementor.elementor-5022 .elementor-element.elementor-element-2c6edc4 > .e-con-inner > .elementor-shape-bottom svg {
  width: 100% !important;
  max-width: 100% !important;
}

.elementor.elementor-5022 .elementor-shape svg .elementor-shape-fill,
#ke-wp-mirror-root .elementor.elementor-5022 .elementor-element-2c6edc4 > .elementor-shape.elementor-shape-bottom svg path {
  fill: #ffffff !important;
  stroke: none !important;
}

#ke-wp-mirror-root .elementor.elementor-5022 .elementor-element-2c6edc4 > .elementor-shape.elementor-shape-bottom svg path.ha-shape-divider[opacity='0.2'] {
  fill: #ffffff !important;
  opacity: 0.22 !important;
}

/* Centered content widgets */
.elementor.elementor-5022 .elementor-element-2c6edc4 > .elementor-widget .elementor-widget-container {
  margin-inline: auto;
  text-align: center;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

/* Main Heading Style */
#ke-wp-mirror-root .elementor.elementor-5022 .elementor-element-2c6edc4 .elementor-element-556acaf .elementor-heading-title,
#ke-wp-mirror-root .elementor.elementor-5022 .elementor-element-2c6edc4 .elementor-element-556acaf .elementor-heading-title * {
  font-family: 'Squada One', 'Montserrat', system-ui, sans-serif !important;
  font-weight: 700 !important;
}

#ke-wp-mirror-root .elementor.elementor-5022 .elementor-element-2c6edc4 .elementor-element-556acaf .elementor-heading-title {
  font-size: clamp(2.75rem, 9vw, 5.75rem) !important;
  line-height: 1.05 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  color: #ffffff;
}

/* Other hero headings */
.elementor.elementor-5022 .elementor-element-2c6edc4 .elementor-widget-heading:not(.elementor-element-556acaf) .elementor-heading-title {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif !important;
  font-weight: 600 !important;
  color: #fff;
  text-align: center !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.elementor.elementor-5022 .elementor-element-2c6edc4 .elementor-element-5c26e7e {
  margin-inline: auto !important;
  max-width: 45% !important;
}

@media(max-width:767px){
  .elementor.elementor-5022 .elementor-element-2c6edc4 .elementor-element-5c26e7e {
    max-width: 100% !important;
  }
}

/* Star divider wrapper settings */
.elementor.elementor-5022 .elementor-element-2c6edc4 .elementor-element-5f30dab {
  max-width: none !important;
  width: 100% !important;
}

.elementor.elementor-5022 .elementor-element-2c6edc4 .elementor-element-5f30dab .elementor-widget-container {
  max-width: none;
  width: 100%;
  padding-inline: 0;
}

.elementor.elementor-5022 .elementor-element-2c6edc4 .elementor-element-5f30dab .elementor-divider {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.elementor.elementor-5022 .elementor-element-2c6edc4 .elementor-element-5f30dab .elementor-divider-separator {
  width: 100%;
  max-width: none;
}

.elementor.elementor-5022 .elementor-element-2c6edc4 .elementor-widget-divider .elementor-divider {
  color: rgba(255, 255, 255, 0.95);
}

/* Entrance animations: keep layout without hiding content if Elementor init misses */
.elementor.elementor-5022 .elementor-invisible {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.elementor.elementor-5022 .elementor-invisible:not(.elementor-motion-effects-element-type-background) {
  animation: none !important;
}
