/* mesterek.css - A mesterek bemutató kártyáinak stílusai */

.section-masters {
  padding: 4.8rem 0;
}

.masters-header {
  text-align: center;
  margin-bottom: 6.4rem;
}

.masters-header h1 {
  font-size: 4.4rem;
  color: #333;
  margin-bottom: 1.6rem;
}

.masters-header p {
  font-size: 1.8rem;
  color: #555;
}

.master-card {
  display: flex;
  gap: 4.8rem;
  align-items: center;
  margin-bottom: 4.8rem;
  background-color: #fdfdfd;
  padding: 3.2rem;
  border-radius: 12px;
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.05);
  /* A scroll-margin-top biztosítja, hogy a horgony linkekre (ID) 
     ugráskor a ragadós menü ne takarja ki a mester fejét */
  scroll-margin-top: 10rem;
}

.master-img-box {
  flex: 0 0 200px;
}

.master-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.1);
}

.master-text-box {
  flex: 1;
}

.master-name {
  font-size: 2.8rem;
  color: #252e39;
  margin-bottom: 1.6rem;
}

.master-description {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #444;
}

/* Mobil optimalizáció: egymás alá rendeződés */
@media (max-width: 768px) {
  .master-card {
    flex-direction: column;
    gap: 2.4rem;
    padding: 2.4rem;
  }
  .master-img-box {
    flex: 0 0 auto;
  }
}
