/**
 * Study in Italy CPT mirror (Elementor post 1106) — /v3/study-abroads/study-in-italy/
 * - Hero hosted background video: fill container, stack content above video
 * - Dark scrim + vertically centred copy (match live marketing hero)
 * - Shape divider at hero bottom (multi-wave)
 * - Main “STUDY IN ITALY” (widget 0fb7bc1): Squada One + bold on h1 and inner spans (see france-montserrat Italy exclusion)
 * - elementor-invisible: use ke-wp-mirror-elementor-entrance.js (standalone); ElementsKit motion text overrides below
 */

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

/*
 * Horizontal scroll: clip at the viewport. Avoid overflow-x on #ke-wp-mirror-root — paired overflow
 * can clip paints we need (hero bottom wave overlapping the next band).
 */
html:has(body.ke-italy-mirror),
body.ke-italy-mirror {
  max-width: 100%;
  overflow-x: hidden;
}

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

.elementor.elementor-1106 .elementor-element-84337e4.e-con {
  position: relative;
  min-height: min(100vh, 960px);
  /*
   * Do not clip the whole hero: the bottom wave SVG extends slightly below the box and must show
   * over the next section. The background video wrapper already uses overflow: hidden.
   */
  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-1106 .elementor-element-84337e4 > .elementor-background-video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Graded overlay like the live hero (readable type over Duomo stills / video) - reduced opacity for better clarity */
.elementor.elementor-1106 .elementor-element-84337e4 > .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-1106 .elementor-element-84337e4 > .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;
}

.elementor.elementor-1106 .elementor-element-84337e4 > *:not(.elementor-background-video-container):not(.elementor-shape) {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
}

.elementor.elementor-1106 .elementor-element-84337e4 > .elementor-shape.elementor-shape-bottom {
  position: absolute !important;
  top: auto !important;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  /* Above in-flow widgets (z-index: 3) so the multi-wave divider is not covered at the seam. */
  z-index: 4;
  pointer-events: none;
}

/**
 * post-1106.css positions this SVG with `transform: translateX(-50%) rotateY(180deg)` and
 * `width: calc(100% + 1.3px)` — do not override transform here (it hid the wave). Cap width to
 * avoid horizontal scroll; keep path fills for standalone.
 */
body.ke-italy-mirror #ke-wp-mirror-root .elementor.elementor-1106 .elementor-element.elementor-element-84337e4 > .elementor-shape-bottom svg,
body.ke-italy-mirror #ke-wp-mirror-root .elementor.elementor-1106 .elementor-element.elementor-element-84337e4 > .e-con-inner > .elementor-shape-bottom svg {
  width: 100% !important;
  max-width: 100% !important;
}

/**
 * Standalone mirror: SVG paths default to black; HappyAddons `.ha-shape-divider` can win over
 * a plain `.elementor-shape-fill` rule. Force white fills on the hero bottom multi-wave so
 * semi-transparent layers read as soft highlights, not charcoal bands on the section below.
 */
.elementor.elementor-1106 .elementor-shape svg .elementor-shape-fill,
#ke-wp-mirror-root .elementor.elementor-1106 .elementor-element-84337e4 > .elementor-shape.elementor-shape-bottom svg path {
  fill: #ffffff !important;
  stroke: none !important;
}

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

/* Hero copy: full width, centred text */
.elementor.elementor-1106 .elementor-element-84337e4 > .elementor-widget .elementor-widget-container {
  margin-inline: auto;
  text-align: center;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

/* “STUDY IN ITALY” — Squada One on title + spans (must beat body.ke-italy-mirror * after france-montserrat fix) */
#ke-wp-mirror-root .elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-0fb7bc1 .elementor-heading-title,
#ke-wp-mirror-root .elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-0fb7bc1 .elementor-heading-title * {
  font-family: 'Squada One', 'Montserrat', system-ui, sans-serif !important;
  font-weight: 700 !important;
}

#ke-wp-mirror-root .elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-0fb7bc1 .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: not Squada — keep readable caps sans */
.elementor.elementor-1106 .elementor-element-84337e4 .elementor-widget-heading:not(.elementor-element-0fb7bc1) .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);
}

/* Star divider: line edge-to-edge of hero */
.elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-c1851a0 {
  max-width: none !important;
  width: 100% !important;
}

.elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-c1851a0 .elementor-widget-container {
  max-width: none;
  width: 100%;
  padding-inline: 0;
}

.elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-c1851a0 .elementor-divider {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-c1851a0 .elementor-divider-separator {
  width: 100%;
  max-width: none;
}

.elementor.elementor-1106 .elementor-element-84337e4 .elementor-widget-divider .elementor-divider {
  color: rgba(255, 255, 255, 0.95);
}

/* ElementsKit motion text — paragraph stays hidden until JS; show for mirror */
.elementor.elementor-1106 .elementskit_motion_text_wraper .ekit_motion_text_title,
.elementor.elementor-1106 .elementskit_motion_text_wraper .ekit_motion_text {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

.elementor.elementor-1106 .elementskit_motion_text_wraper .elementkit_background_reveal_bg {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

/*
 * Elementor `frontend.min.css` sets `.animated{animation:none!important}` when `prefers-reduced-motion: reduce`.
 * Study-abroad mirrors: same overrides live in `ke-wp-mirror-explore-heart-banner.css` (loaded for IT/FR/DE).
 * Font Awesome / UE empty-icon fixes: `ke-wp-mirror-elementor-fa-scope.css` (loaded for all Elementor mirrors).
 */

/* ── EXPLORE COURSES BUTTON FIX (WIDGET 3d789a3) ── */
.elementor.elementor-1106 .elementor-element.elementor-element-3d789a3 {
  text-align: center !important;
  margin: 45px auto 15px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

.elementor.elementor-1106 .elementor-element.elementor-element-3d789a3 .eael-creative-button-wrapper {
  display: inline-block !important;
  margin: 0 auto !important;
}

.elementor.elementor-1106 .elementor-element.elementor-element-3d789a3 .eael-creative-button--shikoba {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 42px !important;
  background-color: #25ad5f !important; /* KALINGAEURO signature green */
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  font-family: 'Montserrat', system-ui, sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  border-radius: 50px !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(37, 173, 95, 0.35) !important;
  text-decoration: none !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  z-index: 10 !important;
}

/* Force hide all broken EA pseudo-elements that cause vertical rectangles */
.elementor.elementor-1106 .elementor-element.elementor-element-3d789a3 .eael-creative-button--shikoba::before,
.elementor.elementor-1106 .elementor-element.elementor-element-3d789a3 .eael-creative-button--shikoba::after {
  display: none !important;
  content: none !important;
}

.elementor.elementor-1106 .elementor-element.elementor-element-3d789a3 .eael-creative-button--shikoba:hover {
  background-color: #1e8a4c !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(37, 173, 95, 0.45) !important;
  color: #ffffff !important;
}

/* Reset translations inside the inner wrapper */
.elementor.elementor-1106 .elementor-element.elementor-element-3d789a3 .eael-creative-button--shikoba span {
  transform: none !important;
  transition: none !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #ffffff !important;
}

.elementor.elementor-1106 .elementor-element.elementor-element-3d789a3 .eael-creative-button--shikoba .creative-button-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

.elementor.elementor-1106 .elementor-element.elementor-element-3d789a3 .eael-creative-button--shikoba i {
  font-size: 20px !important;
  transition: transform 0.3s ease !important;
  color: #ffffff !important;
  display: inline-block !important;
}

.elementor.elementor-1106 .elementor-element.elementor-element-3d789a3 .eael-creative-button--shikoba:hover i {
  transform: translateX(6px) !important;
}

/* --- PREMIUM CAROUSEL & CARDS OVERRIDES --- */
#top-10-university {
  position: relative !important;
  padding: 15px 15px 45px 15px !important;
  overflow: hidden !important;
}

#top-10-university .swiper-wrapper {
  display: flex !important;
}

.uni-card-wrapper {
  height: auto !important;
  display: flex !important;
  box-sizing: border-box;
}

.uni-card {
  background: #ffffff !important;
  border-radius: 16px;
  border: 1px solid #eaeaea !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  background-clip: padding-box;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
}

.uni-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 173, 95, 0.35);
}

.uni-card-img-wrap {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.uni-card:hover .uni-card-img-wrap {
  transform: scale(1.03);
}

.uni-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.uni-card-rank-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #25ad5f 0%, #1a8a4d 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.05em;
  z-index: 2;
}

.uni-card-qs-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.02em;
  z-index: 2;
}

.uni-card-title {
  font-family: 'Montserrat', system-ui, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.4 !important;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.uni-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #666666;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.uni-card-location i {
  color: #ff3366;
  font-size: 14px;
}

.uni-card-details {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #f0f0f0;
  padding-top: 18px !important;
}

.uni-card-details li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #444444;
  line-height: 1.4;
}

.uni-card-details li i {
  color: #25ad5f;
  font-size: 14px;
  margin-top: 2px;
  width: 16px;
  text-align: center;
}

.uni-card-details li strong {
  color: #222222;
  font-weight: 600;
}

/* Custom Swiper Controls styling for modern sleek look */
#top-10-university .elementor-swiper-button {
  position: absolute !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  border-radius: 50% !important;
  width: 46px !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  color: #333333 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
}

#top-10-university .elementor-swiper-button:hover {
  background: #25ad5f !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(37, 173, 95, 0.35) !important;
}

#top-10-university .elementor-swiper-button svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
}

#top-10-university .elementor-swiper-button-prev {
  left: 5px !important;
}

#top-10-university .elementor-swiper-button-next {
  right: 5px !important;
}

#top-10-university .swiper-pagination-bullet {
  background: #cccccc !important;
  opacity: 0.7 !important;
  width: 8px !important;
  height: 8px !important;
  transition: all 0.3s ease !important;
  margin: 0 5px !important;
}

#top-10-university .swiper-pagination-bullet-active {
  background: #25ad5f !important;
  width: 20px !important;
  border-radius: 5px !important;
  opacity: 1 !important;
}

/* --- PREMIUM COURSE CARD DESIGN --- */
#courses-carousel {
  padding: 15px 15px 45px 15px !important;
  position: relative !important;
  overflow: hidden !important;
}

#courses-carousel .swiper-wrapper {
  display: flex !important;
}

.course-card-wrapper {
  height: auto !important;
  display: flex !important;
  box-sizing: border-box;
}

.course-card {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #222222;
  cursor: pointer;
}

.course-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 1;
}

.course-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 2;
  transition: all 0.4s ease;
}

.course-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  z-index: 3;
  box-sizing: border-box;
}

.course-card-name {
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}

/* Hover effects */
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-card:hover .course-card-img {
  transform: scale(1.1);
}

.course-card:hover .course-card-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.9) 100%);
}

/* Custom Swiper navigation for courses */
#courses-carousel .elementor-swiper-button {
  position: absolute !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  border-radius: 50% !important;
  width: 46px !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  color: #333333 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
}

#courses-carousel .elementor-swiper-button:hover {
  background: #25ad5f !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(37, 173, 95, 0.35) !important;
}

#courses-carousel .elementor-swiper-button svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
}

#courses-carousel .elementor-swiper-button-prev {
  left: 5px !important;
}

#courses-carousel .elementor-swiper-button-next {
  right: 5px !important;
}

#courses-carousel .swiper-pagination-bullet {
  background: #cccccc !important;
  opacity: 0.7 !important;
  width: 8px !important;
  height: 8px !important;
  transition: all 0.3s ease !important;
  margin: 0 5px !important;
}

#courses-carousel .swiper-pagination-bullet-active {
  background: #25ad5f !important;
  width: 20px !important;
  border-radius: 5px !important;
  opacity: 1 !important;
}

/* Swiper Structural Rules to override Elementor grid/flex/opacity overrides */
#top-10-university .swiper,
#courses-carousel .swiper {
  display: block !important;
}

#top-10-university .swiper-wrapper,
#courses-carousel .swiper-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
}

#top-10-university .swiper-slide,
#courses-carousel .swiper-slide {
  flex-shrink: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
}

/* Centering pagination dots for Universities and Courses Carousels */
#top-10-university .swiper-pagination,
#top-10-university .swiper-pagination-bullets,
#top-10-university .swiper-pagination-horizontal,
#courses-carousel .swiper-pagination,
#courses-carousel .swiper-pagination-bullets,
#courses-carousel .swiper-pagination-horizontal {
  position: absolute !important;
  bottom: 15px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  z-index: 10 !important;
}

#top-10-university .swiper-pagination-bullet,
#courses-carousel .swiper-pagination-bullet {
  background: #cccccc !important;
  opacity: 0.7 !important;
  width: 8px !important;
  height: 8px !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
  display: inline-block !important;
}

#top-10-university .swiper-pagination-bullet-active,
#courses-carousel .swiper-pagination-bullet-active {
  background: #25ad5f !important;
  width: 20px !important;
  border-radius: 5px !important;
  opacity: 1 !important;
}





