@font-face {
  font-family: "loyal";
  src: url("../new-fonts/eighties/Eighties-Comeback/OTF/EightiesComeback - Semi Bold Semi Condensed.otf")
    format("opentype");
}

@font-face {
  font-family: "loyal-black";
  src: url("../new-fonts/eighties/Eighties-Comeback/OTF/EightiesComeback - Black.otf")
    format("opentype");
}

.editorial-header {
  max-width: 1400px;
  margin: 160px auto 40px;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 32px;
}

/* LEFT TEXT */
.editorial-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: #ff7aa2;
  font-family: "loyal-black", sans-serif;
}

.editorial-text h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin: 16px 0 22px;
  font-family: "loyal", sans-serif;
  color: #222;
}

.editorial-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  max-width: 480px;
  font-family: "loyal-black", sans-serif;
}

/* RIGHT IMAGE */
.editorial-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  filter: brightness(0.98);
}

.parallax img {
  will-change: transform;
  transition: transform 0.1s linear;
}

.editorial-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(to right, #ffd1e1, transparent);
  margin-top: 20px;
}

.dentist-left-content {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Text card styling */
.intro-box {
  padding-left: 18px;
  border-left: 4px solid #ffb6c9;
}

.intro-box p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  font-family: "loyal-black", sans-serif;
}

/* Highlighted middle box */
.intro-box.highlight {
  background: #fff6f9;
  padding: 18px 18px 18px 22px;
  border-radius: 12px;
  border-left: 4px solid #ff6fa5;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.dentist-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 80px auto;
  gap: 60px;
}

/* LEFT COLUMN */
.dentist-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* CENTER IMAGE */
.center-photo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.center-photo img {
  width: 420px;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

/* RIGHT COLUMN */
.dentist-details {
  flex: 1;
  text-align: left;
}

.dentist-details h2 {
  font-size: 2.5rem;
  font-family: "loyal", sans-serif;
  color: #333;
  margin-bottom: 10px;
}

.dentist-details p {
  font-size: 1.2rem;
  font-family: "loyal-black", sans-serif;
  color: #666;
}

.dentist-details {
  max-width: 420px;
  padding-left: 10px;
}

/* Soft label above name */
.doctor-label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff7aa2;
  font-family: "loyal-black", sans-serif;
}

/* Name styling */
.doctor-name {
  font-size: 2.6rem;
  margin: 10px 0 6px;
  font-family: "loyal", sans-serif;
  color: #222;
}

/* Degree */
.doctor-degree {
  font-size: 1.1rem;
  color: #777;
  font-family: "loyal-black", sans-serif;
  margin-bottom: 18px;
}

.doctor-divider {
  width: 0;
  height: 3px;
  background: linear-gradient(to right, #ff6fa5, #ffd1e1);
  border-radius: 3px;
  margin-bottom: 22px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When scrolled into view */
.dentist-details.active .doctor-divider {
  width: 150px;
  transition-delay: 0.3s;
}

/* Bio paragraph */
.doctor-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  font-family: "loyal-black", sans-serif;
}

.team-section {
  max-width: 1400px;
  margin: 120px auto;
  padding: 0 40px;
}

/* Header */
.team-header {
  text-align: center;
  margin-bottom: 70px;
}

.team-header h2 {
  font-size: 2.8rem;
  font-family: "loyal", sans-serif;
  color: #222;
  margin-bottom: 12px;
}

.team-header p {
  font-size: 1.1rem;
  color: #666;
  font-family: "loyal-black", sans-serif;
}

.team-divider {
  width: 0;
  height: 3px;
  background: linear-gradient(to right, #ff6fa5, #ffd1e1);
  margin: 22px auto 0;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.team-header.active .team-divider {
  width: 90px;
}

/* Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}

/* Cards */
.team-card {
  text-align: center;
}

.team-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
  transition: transform 0.4s ease;
}

.team-card h3 {
  font-size: 1.3rem;
  font-family: "loyal", sans-serif;
  color: #222;
  margin-bottom: 6px;
}

.team-card span {
  font-size: 0.95rem;
  color: #777;
  font-family: "loyal-black", sans-serif;
}

/* Hover effect */
.team-card:hover img {
  transform: translateY(-6px);
}

.team-photo {
  max-width: 1100px;
  margin: 0 auto 80px;
}

.team-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.team-banner {
  height: 450px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../images/team_photo.jpeg");

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 15%; /* 👈 BETWEEN TOP & CENTER */

  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 90px;
  position: relative;
}

/* TEXT OVER IMAGE */
.team-overlay-text {
  position: absolute;
  right: 60px; /* push to right */
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  flex-direction: column;
  gap: 6px;

  text-align: right;
  z-index: 3;
}

.team-overlay-text span {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  color: white;
  line-height: 1.1;
  font-family: "loyal", serif;
}

@media (max-width: 600px) {
  /* ===== Editorial Header ===== */
  .editorial-header {
    grid-template-columns: 1fr;
    padding: 0 22px;
    margin: 120px auto 30px;
    gap: 28px;
  }

  .editorial-image {
    order: -1;
  }

  .editorial-image img {
    height: 240px;
    border-radius: 18px;
    margin-top: 250px;
  }

  .editorial-text h1 {
    font-size: 2rem;
    line-height: 1.25;
  }

  .editorial-text p {
    font-size: 1rem;
  }

  /* ===== Dentist Section ===== */
  .dentist-section {
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
  }

  .dentist-intro,
  .dentist-details {
    max-width: 100%;
  }

  .center-photo img {
    width: 260px;
  }

  .doctor-name {
    font-size: 2rem;
  }

  .doctor-divider {
    width: 100px;
  }

  /* ===== Team Section ===== */
  .team-section {
    padding: 0 20px;
    margin: 100px auto;
  }

  .team-header h2 {
    font-size: 2.2rem;
  }

  .team-photo img {
    height: 260px;
    border-radius: 18px;
  }

  .team-card img {
    height: 260px;
  }
}

/* @media (min-width: 601px) and (max-width: 820px) {
  .editorial-header {
    grid-template-columns: 1fr;
    padding: 0 40px;
    gap: 32px;
  }

  .editorial-image img {
    height: 300px;
  }

  .editorial-text h1 {
    font-size: 2.4rem;
  }

  .dentist-section {
    flex-direction: column;
    gap: 50px;
    padding: 0 40px;
  }

  .center-photo img {
    width: 300px;
  }

  .team-photo img {
    height: 320px;
  }
} */

/* Tablet Portrait */
/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .dentist-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px;
    padding: 40px 40px;
    width: 100%;
    box-sizing: border-box;
  }

  .dentist-left-content {
    order: 3;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch; /* ← equal height boxes */
    gap: 20px;
    box-sizing: border-box;
  }

  .intro-box {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding: 20px;
    background: #fff;
    overflow: hidden;
  }

  .intro-box p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .center-photo {
    order: 1;
    flex: 0 0 45%;
  }

  .center-photo img {
    width: 100%;
    height: auto;
  }

  .dentist-details {
    margin-top: 100px;
    order: 2;
    flex: 1;
  }
}

/* Mobile Landscape */
@media (max-width: 950px) and (orientation: landscape) {
  .dentist-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    padding: 30px 32px;
    width: 100%;
    box-sizing: border-box;
  }

  .dentist-left-content {
    order: 3;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch; /* ← equal height boxes */
    gap: 16px;
    box-sizing: border-box;
  }

  .intro-box {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding: 16px;
    background: #fff;
    overflow: hidden;
    font-size: 0.82rem;
  }

  .intro-box p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .center-photo {
    order: 1;
    flex: 0 0 40%;
  }

  .center-photo img {
    width: 100%;
    height: auto;
  }

  .dentist-details {
    margin-top: 50px;
    order: 2;
    flex: 1;
  }
}

@media (min-width: 1600px) {
  .editorial-header,
  .dentist-section,
  .team-section {
    max-width: 1500px;
  }
}

@media (hover: none) {
  .parallax img {
    transform: none !important;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  /* ===== Editorial Header ===== */
  .editorial-header {
    grid-template-columns: 1fr 1.1fr; /* image slightly wider */
    gap: 32px;
    padding: 0 50px;
    margin-top: 140px;
  }

  .editorial-image img {
    height: 340px; /* reduce vertical dominance */
  }

  .editorial-text h1 {
    font-size: 2.9rem;
  }

  /* ===== Dentist Section ===== */
  .dentist-section {
    gap: 40px;
    padding: 0 50px;
  }

  .center-photo img {
    width: 340px;
  }

  .doctor-name {
    font-size: 2.4rem;
  }

  /* ===== Team Section ===== */
  .team-section {
    padding: 0 50px;
  }

  .team-photo img {
    height: 360px;
  }

  .team-card img {
    height: 300px;
  }
}

@media (orientation: landscape) and (max-height: 800px) {
  .editorial-header {
    margin-top: 120px;
  }
}
