/* 
 Theme Name:   Hello Elementor Child
 Theme URI:    
 Description:  
 Author:       netex-optimointi
 Author URI:   
 Template:     hello-elementor
 Version:      1.0

 /* == Add your own styles below this line ==
--------------------------------------------*/

#menu-dropdown .e-n-menu-heading {
    flex-direction: column;
}

#menu-dropdown .e-n-menu-item .e-n-menu-title:after {
    content: none;
}

@media screen and (max-width: 1024px) {
	#main-menu .e-n-menu-item .e-n-menu-title:after {
		content: none;
	}
}

@media screen and (max-width: 768px) {
	
}


.no-overflow {
	overflow: hidden !important;
}

/* =========================================================
   LIQUID GLASS – ELEMENTOR READY
   Works for:
   - Button widget (class on widget wrapper)
   - Containers
   No SVG required
========================================================= */

/* ===== BASE GLASS ===== */

.liquid-glass {
  --glass-blur: 18px;
  --glass-saturation: 100%;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: rgba(0, 0, 0, 0.25);

  position: relative;
  overflow: hidden !important;
  border-radius: 18px;

  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));

  border: 1px solid var(--glass-border);

  box-shadow:
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -6px 18px rgba(255,255,255,0.05);

  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease;
	
}

/* Keep inner content above glass layers */
.liquid-glass > * {
  position: relative;
  z-index: 2;
}

/* ===== LIGHT HIGHLIGHT ===== */

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.6) 30%,
    transparent 65%
  );

  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ===== SOFT REFLECTION ===== */

.liquid-glass::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -50%;
  width: 200%;
  height: 250%;
  border-radius: 50%;

  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.15),
    transparent 60%
  );

  transform: rotate(25deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

/* ===== HOVER EFFECT ===== */

.liquid-glass:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -8px 20px rgba(255,255,255,0.08);
}

.liquid-glass:hover::before {
  opacity: 0.75;
}

.liquid-glass:hover::after {
  opacity: 1;
  transform: rotate(25deg) translateY(30%);
}

/* =========================================================
   ELEMENTOR BUTTON FIX
   (Your structure: class on widget wrapper)
========================================================= */

/* Remove Elementor default button styling */
.liquid-glass .elementor-button {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 1rem 2rem;
  display: inline-block;
  text-decoration: none;
  color: #fff;
}

/* Make the entire widget clickable feel aligned */
.liquid-glass.elementor-widget-button {
  padding: 0;
}

/* Press effect */
.liquid-glass .elementor-button:active {
  transform: scale(0.97);
}

/* =========================================================
   CONTAINER SPACING
========================================================= */

.liquid-glass.e-con {
  padding: 2rem;
}

/* =========================================================
   OPTIONAL COLOR VARIANTS
========================================================= */

.glass-blue {
  --glass-bg: rgba(0, 140, 255, 0.15);
  --glass-border: rgba(0, 140, 255, 0.4);
}

.glass-purple {
  --glass-bg: rgba(140, 0, 255, 0.15);
  --glass-border: rgba(200, 120, 255, 0.5);
}

.glass-clear {
  --glass-bg: rgba(255,255,255,0.05);
  --glass-blur: 22px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  .liquid-glass {
    border-radius: 16px;
  }

  .liquid-glass.e-con {
    padding: 1.5rem;
  }
}

.reference-timeline-date {
    text-align: center;
    padding: 10px 20px;
    width: 150px;
    max-width: 150px;
    background-color: #0A0C2180;
    border-radius: 15px;
	color: white;
}

.palvelut-list {
	list-style: none;
	padding: 0px;
}

.palvelut-list .elementor-icon-list-icon {
	margin-right: 10px;
}

.reference-bg-image {
    transition: background-size 0.5s ease  !important;
	overflow: hidden !important;
}

.reference-bg-image:hover {
    background-size: 110% !important;
}

.swiper-slide-active .reference-bg-image:before, .reference-bg-image:hover:before {
	background-color: transparent !important;
}