.line {
  height: 4px;
  background: #009fb4;
  margin: 20px 20px 20px 20px;

}

.name {
    text-align: center;
    letter-spacing: 1.20px;
    margin-top: 50px;
    margin-bottom: 35px;
    font-weight: 600;
}

.contact-row {
  display: flex;
  justify-content: center; /* or space-around / space-evenly */
  align-items: center;
  gap:25%; /* adjust to control spacing between items */
  text-align: center;
  margin-top: 30px;
}

.contact-item2 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-item2 img {
    /* make images bigger */
  height: 50px;
  margin-bottom: 10px; /* space between image and text */
}

.contact-item2 p {
  margin: 0;
}

.map{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.map iframe {
  display: block;
  margin: 0 auto;
  border: 4px solid #e7f7f9;     /* white border */
  border-radius: 16px;         /* rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* optional: soft shadow for nicer look */
  width: 95% !important;      /* Override HTML width attribute */           /* Limit maximum width on desktop */
  height: 450px !important;    /* Override HTML height if needed */
}

/* Make contact items align with line distance from screen edge */


/* Or apply to the container holding contact items */


/* If you have a contact container */
.contact-container {
    margin-left: 20px;
    margin-right: 20px;
}

.contact{
  margin-left: 00px;
  margin-right: 00px !important;
}

@media (max-width: 767px) {
  /* Make contact row vertical on mobile */
  .contact-row {
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
    padding: 0;
    justify-content: center;
    position: relative;
  }
  
  /* Add line between contact items */
  .contact-item2 {
    position: relative;
    padding-bottom: 30px;
  }
  
  .contact-item2:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 4px;
    background: #009fb4;
  }
  
  /* Make icons smaller on mobile */
  .contact-item2 img {
    width: 60px; /* Smaller icons for mobile */
    height: auto;
    margin-bottom: 8px;
  }
  
  /* Adjust text size for mobile */

  
  /* Make map responsive */
  .map iframe {
    width: 100%;
    height: 250px;
  }
  
  /* Adjust heading spacing */
  .name {
    letter-spacing: 3px;
    margin-top: 30px;
    margin-bottom: 25px;

  }
  .line{
    padding: 0px;
    margin-left: 0px;
    margin-right: 0px;
  }
  .divider{
    display: none;
  }

  /* Prevent horizontal scrolling on Kapcsolat page */
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    margin: 0; /* avoid default body margin causing overflow */
  }

  /* Clamp any potentially wide sections */
  .line,
  .line-1,
  .line-2,
  .contact-row,
  .map,
  .form-section,
  nav,
  .uptop {
    max-width: 100% !important;
    overflow-x: clip; /* hide any accidental x-overflow without affecting y */
  }

  /* Ensure media never exceed the viewport width */
  img,
  iframe,
  svg {
    max-width: 100% !important;
    height: auto;
  }

  /* Map and form specific fixes */
  .map { padding-left: 0; padding-right: 0; }
  .map iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 250px; /* keep a reasonable mobile height */
  }

  .form-title{
    text-align: center;
  }
  .forn-group input{
    margin-right: 0px;
    width: 100%;
  }
  .contact {
    width: 100% ; /* override any 100vw from global styles */
    margin-left: 0px;
    margin-right: 0px;
    padding-right: 0px;
  }
  .form-button{
    width: 93%;
  }
}

