.about-us-top-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
  width: 100%;
  background-color: white;

  position: relative;

  background-size: cover;
  background-position: center;
}

.dark-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  background-color: rgba(25, 25, 25, 0.6);
}

.about-us-welcome-title {
  display: flex;
  flex-direction: column;
}

.about-us-welcome-title h1 {
  font-family: var(--regular-text);
  color: white;
  font-size: 3.2rem;
  font-weight: 2000;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}
/* Typewriter effect */

.typewriter h1 {
  color: #fff;
  font-family: monospace;
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: 0.15em solid rgb(255, 255, 255); /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: 0.15em; /* Adjust as needed */
  animation: typing 3.5s steps(30, end), blink-caret 0.9s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: rgb(255, 255, 255);
  }
}

/* The typing effect */

.about-us-welcome-title p {
  font-family: var(--regular-text);
  color: white;
  font-size: 2.2rem;
  font-weight: 3000;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.about-us-welcome-title h2 {
  font-family: var(--regular-text);
  color: white;
  font-size: 2.1rem;
  font-weight: 400;
  text-align: center;
}

.welcome-text-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 54vh;
  width: 100%;
  background-color: whitesmoke;
}

.welcome-title {
  display: flex;
  justify-content: left;
  align-items: center;
  height: 10vh;
  width: 70%;
}
.welcome-title h1 {
  font-family: var(--regular-text);
  color: var(--hero-overlay-color);
  font-size: 2.5rem;
  font-weight: 2000;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.welcome-subtext {
  display: flex;
  justify-content: left;
  align-items: center;

  height: 10vh;
  width: 70%;
}
.welcome-subtext strong {
  font-family: var(--regular-text);
  color: var(--hero-overlay-color);
  font-size: 1.5rem;
  font-weight: 500;
}

.about-us-contents-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120vh;
  width: 100%;
  background-color: white;
}

.milestones-title-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  width: 100%;
  padding: 30px 20px;
  border-top: 2px solid var(--primary-light);
  background-color: #1d1d1d;
  margin-top: 0;
}

.milestones-title-section h1 {
  font-family: var(--regular-text);
  color: var(--primary-light);
  font-size: 1.75rem;
  letter-spacing: 0.2rem;
  text-align: center;
  text-transform: uppercase;
  max-width: 90%;
  margin: 0;
}

/* about our services */
.get-to-know-us-section {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
  background-color: whitesmoke;
  padding-bottom: 80px;
  margin-bottom: 0;
}

.get-to-know-us-title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 100px;

  height: 15vh;
  width: 100%;

  background-color: whitesmoke;
}

.get-to-know-us-title h1 {
  font-family: var(--regular-text);
  color: var(--hero-overlay-color);
  font-size: 2.75rem;

  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.get-to-know-us-card-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
  padding-bottom: 50px;
  background-color: whitesmoke;
}

.position-title {
  display: flex;
  justify-content: left;
  align-items: center;

  height: 10vh;
  width: 100%;
}

.position-title strong {
  font-family: var(--regular-text);
  color: var(--hero-overlay-color);
  font-size: 1.8rem;
  font-weight: 500;
  margin-left: calc((100% - 1000px) / 2);
}

.member-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 90%;
  margin-bottom: 40px;
}

.member-card {
  display: flex;
  flex-direction: column;
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.member-img-wrapper {
  width: 100%;
  height: 270px;
  overflow: hidden;
  position: relative;
}

.member-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.member-card:hover .member-img-wrapper img {
  transform: scale(1.05);
}

.member-details-top {
  background-color: #1d1d1d;
  padding: 15px;
  text-align: center;
}

.member-details-top h1 {
  font-family: var(--regular-text);
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.member-details-bottom {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.position-badge {
  background-color: whitesmoke;
  border-radius: 25px;
  padding: 8px 15px;
  display: inline-block;
  margin-bottom: 15px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.position-badge h3 {
  font-family: var(--regular-text);
  color: #1d1d1d;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.contact-item span {
  font-family: var(--regular-text);
  font-weight: 400;
  font-size: 0.9rem;
  color: #555;
}

/* Eltávolítjuk a régi top/bottom struktúrát */
.member-card-top,
.member-card-top-left,
.member-card-top-right,
.member-card-bottom,
.member-position-container,
.member-contact-details {
  all: unset;
}

/* Reszponzív megjelenítés */
@media (max-width: 1200px) {
  .get-to-know-us-section {
    padding-bottom: 70px;
    margin-bottom: 0;
  }

  .get-to-know-us-card-container {
    height: auto;
  }

  .member-cards-container {
    width: 90%;
  }

  .position-title strong {
    margin-left: 5%;
  }
}

@media (max-width: 992px) {
  .get-to-know-us-title h1 {
    font-size: 2.8rem;
  }

  .position-title strong {
    margin-left: 5%;
  }

  .member-card {
    width: 280px;
  }

  .member-img-wrapper {
    height: 250px;
  }

  .get-to-know-us-section {
    padding-bottom: 60px;
    margin-bottom: 0;
  }

  .milestones-title-section {
    min-height: 100px;
    padding: 25px 15px;
  }

  .milestones-title-section h1 {
    font-size: 1.6rem;
  }

  .about-us-welcome-title h1 {
    font-size: 2.8rem;
  }

  .about-us-welcome-title h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .member-card {
    width: 260px;
  }

  .member-img-wrapper {
    height: 230px;
  }

  .position-title {
    margin-bottom: 20px;
  }

  .get-to-know-us-section {
    padding-bottom: 50px;
    margin-bottom: 0;
  }

  .milestones-title-section {
    min-height: 90px;
    padding: 20px 15px;
  }

  .milestones-title-section h1 {
    font-size: 1.5rem;
  }

  .position-title strong {
    margin-left: 5%;
  }

  .about-us-welcome-title h1 {
    font-size: 2.4rem;
  }

  .about-us-welcome-title h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .get-to-know-us-title h1 {
    font-size: 2rem;
  }

  .position-title strong {
    margin-left: 5%;
  }

  .member-cards-container {
    width: 100%;
    gap: 20px;
  }

  .member-card {
    width: 80%;
    max-width: 320px;
  }

  .get-to-know-us-section {
    padding-bottom: 40px;
    margin-bottom: 0;
  }

  .milestones-title-section {
    min-height: 80px;
    padding: 20px 10px;
  }

  .milestones-title-section h1 {
    font-size: 1.3rem;
    letter-spacing: 0.15rem;
  }

  .about-us-welcome-title h1 {
    font-size: 2rem;
    padding: 0 15px;
  }

  .about-us-welcome-title h2 {
    font-size: 1.4rem;
    padding: 0 15px;
  }

  .member-img-wrapper {
    height: 300px;
  }

  .member-img-wrapper img {
    object-position: center top;
  }
}

@media (max-width: 480px) {
  .get-to-know-us-title h1 {
    font-size: 1.8rem;
  }

  .position-title strong {
    margin-left: 4%;
  }

  .member-card {
    width: 90%;
  }

  .get-to-know-us-section {
    padding-bottom: 30px;
    margin-bottom: 0;
  }

  .milestones-title-section {
    min-height: 70px;
    padding: 15px 10px;
  }

  .milestones-title-section h1 {
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
  }

  .about-us-welcome-title h1 {
    font-size: 1.8rem;
    padding: 0 10px;
  }

  .about-us-welcome-title h2 {
    font-size: 1.2rem;
    padding: 0 10px;
  }

  .member-img-wrapper {
    height: 280px;
  }
}
