/**
 * Başkanın Mesajı — scoped under .bbd-president-page
 * Matches Hakkımızda design language; does not alter homepage styles.
 */

.bbd-president-page {
  background: #fff;
  color: #111;
}

.bbd-president-hero {
  position: relative;
  min-height: clamp(18rem, 48vh, 28rem);
  color: #fff;
  overflow: hidden;
  background: #000;
}

.bbd-president-hero__media {
  position: absolute;
  inset: 0;
}

.bbd-president-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.06) brightness(0.72);
}

.bbd-president-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.72) 34%,
      rgba(0, 0, 0, 0.28) 52%,
      rgba(0, 0, 0, 0.06) 64%,
      transparent 74%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.22) 0%,
      transparent 40%,
      rgba(0, 0, 0, 0.18) 100%
    );
}

.bbd-president-hero__content {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 4vw, 3rem);
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  max-width: calc(100% - clamp(1.25rem, 4vw, 3rem) - 1rem);
  margin: 0;
  padding: 0;
  text-align: left;
}

.bbd-president-hero__meta {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.bbd-president-hero__title {
  margin: 0 0 0.7rem;
  font-family: var(--bbd-font-body, "Manrope", system-ui, sans-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}

.bbd-president-hero__subtitle {
  margin: 0;
  font-family: var(--bbd-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.bbd-president-main {
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
  background: #fff;
}

.bbd-president-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.bbd-president-aside {
  position: sticky;
  top: calc(var(--bbd-header-h, 5rem) + 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bbd-president-portrait {
  margin: 0 auto;
  position: relative;
  width: min(100%, 17.5rem);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  border: 1px solid #cfcfcf;
  box-shadow:
    0 0 0 6px #fff,
    0 0 0 7px #000;
}

.bbd-president-portrait__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}

.bbd-president-aside__meta {
  margin-top: 1.35rem;
  max-width: 18rem;
}

.bbd-president-aside__name {
  margin: 0 0 0.3rem;
  font-family: var(--bbd-font-body, "Manrope", system-ui, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
}

.bbd-president-aside__role {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #555;
}

.bbd-president-message {
  max-width: 38rem;
}

.bbd-president-message__greeting {
  margin: 0 0 1.75rem;
  font-family: var(--bbd-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.3;
  color: #000;
}

.bbd-president-block {
  margin: 0 0 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid #e6e6e6;
}

.bbd-president-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.bbd-president-block__title {
  margin: 0 0 0.65rem;
  font-family: var(--bbd-font-body, "Manrope", system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666;
}

.bbd-president-block__text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #2a2a2a;
}

.bbd-president-quote {
  margin: 2.25rem 0;
  padding: 1.75rem 0;
  border-block: 1px solid #000;
}

.bbd-president-quote p {
  margin: 0;
  font-family: var(--bbd-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
  color: #000;
  max-width: 28ch;
}

.bbd-president-sign {
  margin-top: 2rem;
}

.bbd-president-sign__closing {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #333;
}

.bbd-president-sign__name {
  margin: 0 0 0.25rem;
  font-family: var(--bbd-font-body, "Manrope", system-ui, sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
}

.bbd-president-sign__role {
  margin: 0;
  font-size: 0.92rem;
  color: #555;
}

.bbd-president-cta {
  background: #f5f5f5;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid #e6e6e6;
}

.bbd-president-cta__title {
  margin: 0 0 0.75rem;
  font-family: var(--bbd-font-body, "Manrope", system-ui, sans-serif);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #000;
}

.bbd-president-cta__text {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #444;
}

.bbd-president-cta__links {
  display: grid;
  gap: 0.75rem;
}

.bbd-president-cta__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #000;
  text-decoration: none;
  transition:
    border-color 0.25s var(--bbd-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    background 0.25s var(--bbd-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    color 0.25s var(--bbd-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.bbd-president-cta__card:hover,
.bbd-president-cta__card:focus-visible {
  background: #000;
  border-color: #000;
  color: #fff;
}

.bbd-president-cta__card-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bbd-president-cta__card-arrow {
  font-size: 1rem;
  transition: transform 0.25s var(--bbd-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.bbd-president-cta__card:hover .bbd-president-cta__card-arrow,
.bbd-president-cta__card:focus-visible .bbd-president-cta__card-arrow {
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .bbd-president-hero {
    min-height: clamp(20rem, 50vh, 30rem);
  }

  .bbd-president-layout {
    grid-template-columns: minmax(14rem, 0.85fr) minmax(0, 1.35fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .bbd-president-cta__links {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .bbd-president-portrait {
    width: 19rem;
  }

  .bbd-president-aside__meta {
    max-width: 20rem;
  }
}

@media (max-width: 767px) {
  .bbd-president-hero {
    min-height: 22rem;
  }

  .bbd-president-hero__content {
    left: var(--bbd-gutter, 1.25rem);
    width: calc(100% - (var(--bbd-gutter, 1.25rem) * 2));
    max-width: none;
    top: auto;
    bottom: 1.35rem;
    transform: none;
  }

  .bbd-president-hero__meta,
  .bbd-president-hero__title,
  .bbd-president-hero__subtitle {
    white-space: normal;
  }

  .bbd-president-hero__veil {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        rgba(0, 0, 0, 0.88) 100%
      );
  }

  .bbd-president-aside {
    position: static;
    align-items: center;
  }

  .bbd-president-portrait {
    width: min(100%, 15.5rem);
  }

  .bbd-president-aside__meta {
    max-width: none;
  }

  .bbd-president-cta__card {
    min-height: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bbd-president-hero__content {
    transform: none;
  }

  .bbd-president-cta__card,
  .bbd-president-cta__card-arrow {
    transition: none;
  }
}
