/* Alapstílusok */
.szolgaltatasok {
  font-family: "Arial", sans-serif;
  color: white;
  position: relative;
  overflow: hidden;
  padding-top: 50px;
  padding-bottom: 50px;
}

.szolgaltatas_cim {
  text-align: center;
  color: var(--color-primary);
  font-size: 2.5em;
  font-family: "Oswald";
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  z-index: 4;
  background: transparent;
}

.szolgaltatas-csempek {
  position: relative;
  padding: 20px 0;
}

.szolgaltatas-csempek::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    url(../images/fekageci.jpg);
  background-size: cover;
  background-position: center;
  z-index: 1;
  margin-top: -1px;
}

/* Common styles for service boxes */
.weboldal-keszietes,
.weboldal-szerkesztes,
.modern-design {
  position: relative;
  transition: transform 0.3s ease;
  width: 80%;
  box-sizing: border-box;
  z-index: 4;
  padding: 30px 40px;
  font-family: "Michroma";
  font-weight: bolder;
  font-size: 20px;
  margin-bottom: 30px;
}

/* Right-aligned boxes with icon on the right */
.weboldal-keszietes,
.modern-design {
  margin-left: auto;
  margin-right: 150px;
  text-align: right;
  border-left: none;
  border-radius: 8px 0 0 8px;
}

/* Left-aligned box with icon on the left */
.weboldal-szerkesztes {
  margin-right: auto;
  margin-left: 150px;
  text-align: left;
  border-right: none;
  border-radius: 0 8px 8px 0;
}
.elementor-shape-top {
  transform: scaleY(-1);
  height: 100px;
  line-height: 0; /* Eltünteti a whitespace-t */
  margin-bottom: 0px; /* Kis átfedés a háttérrel */
}
/* Icon styling */

.weboldal-keszietes svg,
.modern-design svg {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  fill: #f9a742; /* Yellow color for the icon */
}

.weboldal-szerkesztes svg {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  fill: #f9a742; /* Yellow color for the icon */
}
/* Existing styles remain the same until media queries */

@media (max-width: 992px) {
  .weboldal-keszietes,
  .modern-design {
    margin-right: 100px;
  }

  .weboldal-szerkesztes {
    margin-left: 100px;
  }
}

@media (max-width: 768px) {
  .szolgaltatas_cim {
    font-size: 2rem;
  }

  .weboldal-keszietes,
  .weboldal-szerkesztes,
  .modern-design {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 25px 20px 25px 70px;
    text-align: left;
  }

  /* Adjust icon positioning */
  .weboldal-keszietes svg,
  .modern-design svg {
    left: 10px;
    right: auto;
  }
}

@media (max-width: 480px) {
  .szolgaltatas_cim {
    font-size: 1.5rem;
  }

  .weboldal-keszietes,
  .weboldal-szerkesztes,
  .modern-design {
    width: 100%;
    padding: 20px 15px 20px 60px;
    font-size: 16px;
  }

  .weboldal-keszietes svg,
  .weboldal-szerkesztes svg,
  .modern-design svg {
    width: 30px;
    height: 30px;
    left: 10px;
  }
}
