/**
 * Study in Germany (Elementor page 4360) — /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 GERMANY" (widget aea5d30): Squada One + bold text shadow
 * - elementor-invisible + entrance animation reveal without JS
 */

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

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

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

.elementor.elementor-4360 .elementor-element-3435463.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-4360 .elementor-element-3435463 > .elementor-background-video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Graded dark overlay like the Italy hero - reduced opacity for better clarity */
.elementor.elementor-4360 .elementor-element-3435463 > .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.12) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.elementor.elementor-4360 .elementor-element-3435463 > .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-4360 .elementor-element-3435463 > *:not(.elementor-background-video-container):not(.elementor-shape) {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
}

.elementor.elementor-4360 .elementor-element-3435463 > .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-germany-mirror #ke-wp-mirror-root .elementor.elementor-4360 .elementor-element.elementor-element-3435463 > .elementor-shape-bottom svg,
body.ke-germany-mirror #ke-wp-mirror-root .elementor.elementor-4360 .elementor-element.elementor-element-3435463 > .e-con-inner > .elementor-shape-bottom svg {
  width: 100% !important;
  max-width: 100% !important;
}

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

#ke-wp-mirror-root .elementor.elementor-4360 .elementor-element-3435463 > .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-4360 .elementor-element-3435463 > .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-4360 .elementor-element-3435463 .elementor-element-aea5d30 .elementor-heading-title,
#ke-wp-mirror-root .elementor.elementor-4360 .elementor-element-3435463 .elementor-element-aea5d30 .elementor-heading-title * {
  font-family: 'Squada One', 'Montserrat', system-ui, sans-serif !important;
  font-weight: 700 !important;
}

#ke-wp-mirror-root .elementor.elementor-4360 .elementor-element-3435463 .elementor-element-aea5d30 .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 4px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

/* Other hero headings */
.elementor.elementor-4360 .elementor-element-3435463 .elementor-widget-heading:not(.elementor-element-aea5d30) .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-4360 .elementor-element-3435463 .elementor-element-9ba8bd7 {
  margin-inline: auto !important;
  max-width: 66% !important;
}

@media(max-width:767px){
  .elementor.elementor-4360 .elementor-element-3435463 .elementor-element-9ba8bd7 {
    max-width: 100% !important;
  }
}

/* Star divider wrapper settings */
.elementor.elementor-4360 .elementor-element-3435463 .elementor-element-7d096a3 {
  max-width: none !important;
  width: 100% !important;
}

.elementor.elementor-4360 .elementor-element-3435463 .elementor-element-7d096a3 .elementor-widget-container {
  max-width: none;
  width: 100%;
  padding-inline: 0;
}

.elementor.elementor-4360 .elementor-element-3435463 .elementor-element-7d096a3 .elementor-divider {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.elementor.elementor-4360 .elementor-element-3435463 .elementor-element-7d096a3 .elementor-divider-separator {
  width: 100%;
  max-width: none;
}

.elementor.elementor-4360 .elementor-element-3435463 .elementor-widget-divider .elementor-divider {
  color: rgba(255, 255, 255, 0.95);
}

/* Visibility flags */
.elementor.elementor-4360 .elementor-invisible {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

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