/* Base styles */
body {
  font-family: "Oswald", sans-serif;
  background-color: #ebe4c1;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  padding-top: 70px; /* Added padding to account for fixed navbar */
}

@media (max-width: 768px) {
  main {
    padding-top: 120px; /* Increased padding for mobile view to prevent navbar overlap */
  }
}

/* Title styling */
.cim {
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 3.2em;
  margin-bottom: 50px;
  color: #2a6817;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.cim::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background: linear-gradient(to right, transparent, #8bc540, transparent);
}

.cim:hover {
  color: #8bc540;
}

/* Card layout for contact information */
list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

list > div {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border-left: 5px solid #8bc540;
}

list > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Icon styling */
.fa-brands.fa-facebook.fa-5x,
.fa-solid.fa-phone.fa-4x,
.fa-solid.fa-location-dot.fa-5x {
  float: left;
  margin-right: 25px;
  color: #8bc540;
  transition: transform 0.3s ease;
}

list > div:hover .fa-brands.fa-facebook.fa-5x,
list > div:hover .fa-solid.fa-phone.fa-4x,
list > div:hover .fa-solid.fa-location-dot.fa-5x {
  transform: scale(1.1);
}

/* Typography styling */
.face,
.tel,
.hely {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #2a6817;
}

.face2 {
  font-size: 1.5em;
  text-decoration: none;
  color: #8bc540;
  transition: color 0.3s ease;
  display: inline-block;
  margin-left: 114px;
}

.face2:hover {
  color: #6a9830;
  text-decoration: underline;
}

.tell,
.telj,
.telt {
  font-size: 1.5em;
  margin-left: 114px;
  margin-bottom: 10px;
  color: #555;
  word-wrap: break-word;
}

.telt {
  margin-bottom: 0;
}

.szoveg {
  font-size: 1.5em;
  margin-left: 114px;
  color: #555;
  word-wrap: break-word;
}

/* Map container styling */
.map-container {
  height: 400px;
  width: 100%;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #8bc540;
}

.map-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive design */
@media (max-width: 768px) {
  main {
    padding: 15px;
  }

  .cim {
    font-size: 2.5em;
    margin-bottom: 30px;
  }

  list > div {
    padding: 20px;
  }

  .face,
  .tel,
  .hely {
    font-size: 2em;
    margin-top: 5px;
  }

  .face2 {
    font-size: 1.2em;
    margin-left: 90px;
  }

  .tell,
  .telj,
  .telt,
  .szoveg {
    font-size: 1.2em;
    margin-left: 90px;
  }

  .fa-brands.fa-facebook.fa-5x,
  .fa-solid.fa-phone.fa-4x,
  .fa-solid.fa-location-dot.fa-5x {
    transform: scale(0.8);
    margin-right: 15px;
  }

  .map-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 10px;
  }

  .cim {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .cim::after {
    left: 15%;
    width: 70%;
  }

  list > div {
    padding: 15px;
    margin-bottom: 15px;
  }

  .face,
  .tel,
  .hely {
    font-size: 1.6em;
    margin-top: 0;
    clear: both;
    padding-top: 10px;
    text-align: center;
  }

  .face2 {
    font-size: 1em;
    margin-left: 0;
    display: block;
    clear: both;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    padding: 0 5px;
  }

  .tell,
  .telj,
  .telt,
  .szoveg {
    font-size: 1em;
    margin-left: 0;
    display: block;
    clear: both;
    text-align: center;
  }

  .fa-brands.fa-facebook.fa-5x,
  .fa-solid.fa-phone.fa-4x,
  .fa-solid.fa-location-dot.fa-5x {
    transform: scale(0.7);
    margin-right: 10px;
    float: none;
    display: block;
    margin: 0 auto 10px auto;
    text-align: center;
  }

  .icon {
    text-align: center;
    margin-bottom: 10px;
  }

  .map-container {
    height: 250px;
    margin-top: 15px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .cim {
    font-size: 1.6em;
  }

  list > div {
    padding: 12px;
  }

  .face,
  .tel,
  .hely {
    font-size: 1.4em;
    text-align: center;
  }

  .map-container {
    height: 200px;
  }
}
