/* =============================================
   FACULTY.CSS — faculty.html Specific Styles
   Inherits root scale & globals from base.css
   ============================================= */

/* =============================================
   FACULTY HERO
   ============================================= */
.faculty-hero {
  background-color: #0f2240;
  background-image:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(201, 166, 70, 0.05) 0%,
      transparent 50%
    ),
    linear-gradient(to right, rgba(15, 34, 64, 0.9), rgba(15, 34, 64, 0.6));
  color: #ffffff;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease;
}

[data-theme="dark"] .faculty-hero {
  background-color: #0f2240;
}

.faculty-hero .section-overline-master {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: var(--body-font);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: none;
}

.faculty-hero .section-overline-master::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background-color: var(--accent-gold);
}

.faculty-hero h1 {
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.faculty-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  max-width: 40rem;
  line-height: 1.8;
}

.faculty-hero .container {
  position: relative;
  z-index: 2;
}

.faculty-hero .faculty-hero-watermark {
  position: absolute;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  width: 50rem; /* 800px at 16px */
  pointer-events: none;
  z-index: 1;
}

.faculty-hero .faculty-hero-watermark img {
  width: 100%;
  height: auto;
  opacity: 0.05;
  filter: brightness(0) invert(1);
  transition: opacity 0.4s ease;
}

/* =============================================
   FACULTY PROFILES
   ============================================= */
.faculty-section {
  background-color: var(--bg-color); /* Light parchment inherited #fdfbf7 */
  transition: background-color 0.4s ease;
  overflow: hidden;
  position: relative;
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 6rem;
  max-width: 73.684rem; /* 1400px */
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.profile-container.reverse {
  flex-direction: row-reverse;
}

/* Decoupled styles for Andre de Beer */
.faculty-member-andre {
  overflow: visible; /* Kutudan taşmaya izin ver */
  margin-top: -30px;
}

.faculty-member-andre .profile-photo-container {
  /* Independent portrait adjustment if needed */
  margin-top: 0;
}

.faculty-member-andre .faculty-portrait {
  object-position: top;
}

.profile-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-photo-container {
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(201, 166, 70, 0.3);
  background-color: rgba(201, 166, 70, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Gold Frame Offset Detail */
  box-shadow: 20px 20px 0px rgba(201, 166, 70, 0.15);
  transition: box-shadow 0.4s ease;
}

[data-theme="dark"] .profile-photo-container {
  background-color: rgba(255, 255, 255, 0.02);
  box-shadow: 20px 20px 0px rgba(201, 166, 70, 0.2);
}

.faculty-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1);
  display: block;
}

.profile-content {
  flex: 1;
}

.section-overline-master {
  display: inline-block;
  color: var(--accent-gold);
  font-family: var(--body-font);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.profile-content h2 {
  font-family: var(--heading-font);
  font-size: 3.5rem;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.profile-content p {
  font-family: var(--body-font);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

/* Faculty Divider (Gold Diamond) */
.faculty-divider-wrapper {
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  position: relative;
  z-index: 10;
}

.signature-divider-icon {
  width: 0.526rem;
  height: 0.526rem;
  background-color: var(--accent-gold);
  transform: rotate(45deg);
  margin: 0;
}

/* =============================================
   CTA SECTION
   ============================================= */
.faculty-cta-section {
  background-color: #0f2240;
  background-image: radial-gradient(
    circle at center,
    rgba(201, 166, 70, 0.05) 0%,
    transparent 70%
  );
  text-align: center;
  color: #fdfbf7;
  padding-bottom: 5.263rem;
  margin-bottom: 0;
  transition: background-color 0.4s ease;
}

.faculty-cta-section h2 {
  font-family: var(--heading-font);
  font-size: 3.5rem;
  font-weight: 400;
  color: #fdfbf7;
  max-width: none;
  margin: 0 auto 3rem;
  line-height: 1.4;
}

.faculty-cta-section .cta-voice {
  color: var(--accent-gold);
  font-style: italic;
}

/* =============================================
   MOBILE OVERRIDES (≤992px)
   ============================================= */
@media (max-width: 992px) {
  .profile-container,
  .profile-container.reverse {
    flex-direction: column;
    gap: 4rem;
    text-align: center;
  }

  .faculty-member-andre {
    margin-top: 50px; /* Reduced shift for mobile */
  }

  .profile-content h2 {
    font-size: 2.8rem;
  }

  .profile-photo-container {
    box-shadow: 10px 10px 0px rgba(201, 166, 70, 0.15);
  }
}

/* =============================================
   MOBILE OVERRIDES (≤768px)
   ============================================= */
@media (max-width: 768px) {
  .faculty-hero {
    min-height: 65vh;
    padding: 4.211rem 5%;
  }

  .faculty-hero h1 {
    font-size: 2.5rem;
  }

  .faculty-hero-watermark {
    right: -25%;
    width: 80%;
  }

  .faculty-cta-section h2 {
    font-size: 2rem;
  }
}
