/* ============================================================
   ABOUT US PAGE STYLES — Blue Rose Financial
   ============================================================ */

/* Hero is fully shared — all .sect-hero styles live in main.css */


/* ── Section: Media & Text ──────────────────────────────── */
.sect-media {
  background-color: var(--color-white);
}

.sect-media--gradient {
  background: linear-gradient(135deg, rgba(239,246,255,1) 0%, rgba(203,227,255,1) 34%, rgba(131,188,255,1) 100%);
}

.sect-media__inner {
  display: flex;
  align-items: center;
  gap: 139px;
  min-height: 428px; /* 620px section − 96px×2 padding */
}

/* Image-left variant: image is first in DOM so row direction is enough */

/* Button inside media text col must not stretch to full width */
.sect-media__text .btn {
  align-self: flex-start;
}

.sect-media__text {
  width: 500px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.sect-media__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Red accent line before the heading block */
.sect-media__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sect-media__heading::before {
  content: '';
  display: block;
  width: 50px;
  height: 6px;
  background-color: var(--color-accent-red);
  border-radius: 2px;
}

.sect-media__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 48px;
 
  color: var(--color-bg-dark);
}

.sect-media__desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: #51617A;
}

.sect-media__desc p + p {
  margin-top: 16px;
}

.sect-media__desc ul, .sect-media__desc ol {
  list-style-position: inside;
}

.sect-media__desc p + ul, .sect-media__desc p + ol  {
  margin-top: 12px;
}

.sect-media__image {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  border-radius: 12px;
  overflow: hidden;
  background-color: #F3F4F6;
}

.sect-media__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Section: Meet the Team ─────────────────────────────── */
.sect-team {
  background-color: var(--color-bg-dark);
  position: relative;
  overflow: hidden;
}

.sect-team .container {
	position: relative;
	z-index: 5;
}

.sect-team__graphic {
	position: absolute;
	top: 0;
	left: 21%;
	transform: translateY(-22%);
	width: 818px;
	height: 2008px;
	opacity: 0.3;
	z-index: 0;
}

/* Heading title is white on dark bg */
.sect-team .sect-heading__title {
  color: var(--color-white);
}

.sect-team__inner {
  display: flex;
  flex-direction: column;
  gap: 67px;
}

/* ── Team card ───────────────────────────────────────────── */
.sect-team__card {
  display: flex;
  align-items: center;
  column-gap: 139px;
  row-gap: 40px;
}

/* Card with image on the right: image is first in DOM, row-reverse flips it */
.sect-team__card--img-right {
  flex-direction: row-reverse;
}

.team-card__image {
  flex: 1;
  min-width: 0;
  height: 516px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(239,246,255,1) 0%, rgba(203,227,255,1) 34%, rgba(131,188,255,1) 100%);
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-card__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 36px;
  color: var(--color-white);
}

.team-card__role {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-accent-red);
}

.team-card__desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: #838F9F;
}

.team-card__desc p + p {
  margin-top: 16px;
}

/* ── Responsive ─────────────────────────────────────────── */

/* Tighten gap before columns stack */
@media (max-width: 1199px) {
  .sect-media__inner {
    gap: 25px;
  }
}

@media (max-width: 991px) {
  /* Default (image right): reverse so image rises to the top */
  .sect-media__inner {
    flex-direction: column-reverse;
    gap: 40px;
    min-height: auto;
  }

  /* Image-left variant: image is already first in DOM, keep normal order */
  .sect-media--image-left .sect-media__inner {
    flex-direction: column;
    gap: 40px;
    min-height: auto;
  }

  .sect-media__text {
    width: 100%;
  }

  .sect-media__image {
    width: 100%;
    align-self: auto;
    min-height: 320px;
  }

  .sect-media__title { font-size: 32px; line-height: 36px; }

  .team-card__name { font-size: 28px; line-height: 36px; }

  /* Team cards stack: both use column so image (first in DOM) rises to top */
  .sect-team__card,
  .sect-team__card--img-right {
    flex-direction: column;
    row-gap: 40px;
  }

  .team-card__image {
    width: 100%;
    height: 360px;
  }
}

@media(max-width: 767px) {
  
  .sect-media__image {
    min-height: 396px;
    overflow: hidden;
    position: relative;
  }

  .sect-media__image img {
    position: absolute;
    top: 0;
    left: 0;
  }
}

@media (max-width: 575px) {

  .sect-media__title {
    font-size: 28px;
    line-height: 36px;
  }

  .team-card__image {
    height: 260px;
  }

  .team-card__name {
    font-size: 24px;
    line-height: 28px;
  }

  .team-card__role {
    font-size: 18px;
  }

  .sect-media__image {
    position: relative;
  }

}
