/* Ekip sayfasi (our-team) ve uye detayi.
   Sayfa govdesi events / partners ile ayni kalip: gri sahne uzerinde
   40px radius beyaz kart. */

/* --- Ust banner --------------------------------------------------------- */
.home-mid-stage {
    background: #F5F6F8;
    margin: 0;
    padding: 0 0 30px;
}

.home-mid-stage .middle-banner {
    background: #fff;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin: 0;
    padding: clamp(32px, 5vw, 56px) clamp(20px, 10.5vw, 150px);
}

/* Taban light: vurgulanmayan kelimeler ("The", "Behind", "'in") ince
   kalir. Vurgular <b> ile 600 - tarayici varsayilani 700 oldugu icin
   acikca yaziliyor. */
.home-mid-stage .middle-banner h1 {
    margin: 0;
    font-size: clamp(20px, 3.2vw, 28px);
    line-height: 1.35;
    font-weight: 300;
    color: #0B0B0F;
}

.home-mid-stage .middle-banner h1 b {
    font-weight: 600;
}

/* base-1.css'te global "span { font-size:1.25rem; display:block;
   font-weight:500 }" var; span'e sarilmis parcalar bu yuzden kendi
   olcusune sabitleniyor. */
.home-mid-stage .middle-banner h1 .h1-light {
    display: inline;
    font-size: inherit;
    font-weight: 300;
    line-height: inherit;
    margin: 0;
    color: inherit;
}

.home-mid-stage .middle-banner ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-mid-stage .middle-banner li {
    font-size: clamp(14px, 1.6vw, 15px);
    line-height: 1.7;
    color: #666D7C;
}

/* --- Sayfa govdesi ------------------------------------------------------ */
.team-content {
    background: #F5F6F8;
    padding-bottom: 30px;
}

/* Sayfanin altinda partner seridi (.home-trust-stage) varsa o zaten
   kendi 30px ust boslugunu getiriyor; ikisi toplanip 60px oluyordu.
   :has() ile yalnizca serit bulunan sayfalarda sifirlaniyor.
   "~" kullaniliyor: aralarinda bir <style> elemani var, "+" eslesmiyor. */
.team-content:has(~ .home-trust-stage) {
    padding-bottom: 0;
}

.team-content > .container {
    width: auto !important;
    max-width: none !important;
    background: #fff;
    /* Alt bosluk .team-content'in padding-bottom'undan geliyor; burada da
       margin verilirse ikisi toplanip 60px oluyordu. */
    margin: 0 20px;
    border-radius: 40px;
    /* !important: bootstrap .container kendi yatay padding'ini
       (--bs-gutter-x) veriyor ve bu kurali eziyordu. */
    padding: clamp(24px, 8vw, 80px) clamp(20px, 10.5vw, 150px) !important;
}

/* --- Bolum basligi ------------------------------------------------------ */
.team-head {
    margin-bottom: clamp(24px, 4vw, 40px);
}

.team-head__title {
    margin: 0 0 12px;
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 700;
    line-height: 1.3;
}

.team-head__desc {
    margin: 0;
    max-width: 48ch;
    color: #858C9C;
    font-size: 14px;
    line-height: 1.7;
}

/* --- Kart izgarasi ------------------------------------------------------ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.team-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #E3E7EF;
    border-radius: 16px;
    background: #fff;
    transition: box-shadow .25s ease, transform .25s ease;
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .1);
}

/* Gradyan cerceveli yuvarlak fotograf: cerceve ::before ile ciziliyor,
   resim uzerine binerek ortada duruyor. */
.team-card__photo {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 4px auto 20px;
    border-radius: 50%;
    padding: 3px;
    background: var(--cc-brand);
}

.team-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.team-card__name {
    margin: 0 0 4px;
    color: #1B1F29;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.team-card__role {
    margin: 0 0 12px;
    color: #4A5161;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

/* Kartlar esit yukseklikte kalsin diye biyografi 3 satirda kirpiliyor;
   tamami detay sayfasinda. */
.team-card__bio {
    margin: 0 0 16px;
    color: #858C9C;
    font-size: 12.5px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Buton her kartta en altta hizali. Gradyan cerceve + gradyan yazi:
   sitenin geri kalaniyla ayni dil (bkz. partners, events kartlari).
   Cerceve mask-composite ile ::before uzerinde ciziliyor, boylece
   radius'ta kalinlik her kenarda esit kaliyor; fallback duz mor. */
.team-card__link {
    position: relative;
    align-self: flex-start;
    margin-top: auto;
    padding: 6px 12px;
    border: 1px solid #7640E8;
    border-radius: 9px;
    background: var(--cc-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: box-shadow .25s ease;
}

.team-card__link:hover {
    box-shadow: 0 6px 18px rgba(118, 64, 232, .18);
}

@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
    .team-card__link {
        border-color: transparent;
    }

    .team-card__link::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: var(--cc-brand);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
    }
}

/* --- Uye detayi --------------------------------------------------------- */
.team-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(24px, 4vw, 40px);
    color: #858C9C;
    font-size: 13px;
    text-decoration: none;
    transition: color .2s ease;
}

.team-back:hover {
    color: #7640E8;
}

/* CSS chevron: ayri bir ikon dosyasi gerekmiyor */
.team-back__icon {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.team-member {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(20px, 4vw, 48px);
    align-items: start;
}

.team-member__photo {
    position: relative;
    width: clamp(120px, 16vw, 180px);
    height: clamp(120px, 16vw, 180px);
    border-radius: 50%;
    padding: 4px;
    background: var(--cc-brand);
}

.team-member__photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.team-member__name {
    margin: 0 0 6px;
    color: #1B1F29;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    line-height: 1.3;
}

/* Unvan gradyanli: sayfadaki diger vurgularla ayni dil (duz mor idi) */
.team-member__role {
    margin: 0 0 16px;
    background: var(--cc-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    /* inline-block: gradyan yalnizca metnin genisligi kadar uzansin,
       satirin tamamina yayilmasin */
    display: inline-block;
}

.team-member__bio {
    margin: 0;
    color: #858C9C;
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1199px) {
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .team-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Detayda fotograf metnin ustune gecer ve ortalanir */
    .team-member {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .team-member__bio {
        text-align: left;
    }
}

/* --- Bilimsel Danisma Kurulu -------------------------------------------
   Ekip bolumunun altinda ayri bir kart. Ust boslugu ekip kartinin alt
   boslugu zaten veriyor, bu yuzden sahnenin ustten dolgusu yok. */
.advisors-content {
    padding-top: 0;
}

.advisor-card[hidden] {
    display: none;
}

/* --- Kaydirmali serit ---------------------------------------------------
   Ana sayfadaki "In the Press" carousel'i ile ayni yapi: viewport
   tasmayi kirpiyor, ray transform ile kayiyor. Sayfalama yerine
   kaydirma kullaniliyor - 9 kart 4'erli sayfalandiginda son sayfada
   bos yer kaliyordu. */
.advisor-carousel {
    position: relative;
}

.advisor-viewport {
    overflow: hidden;
    cursor: grab;
}

.advisor-viewport:active {
    cursor: grabbing;
}

.advisor-track {
    display: flex;
    gap: 24px;
    will-change: transform;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

/* Surukleme sirasinda gecis kapali: hareket parmagi birebir izlesin */
.advisor-track.dragging {
    transition: none;
}

/* Kartlar izgarada degil rayda. Genislik viewport'un DORTTE BIRI:
   sabit px iken viewport'a oymuyor ve besinci kart yarim gorunuyordu.
   3 gap (24px) dort kart arasinda paylastirilyor. */
.advisor-card {
    flex: 0 0 calc((100% - 3 * 24px) / 4);
    min-width: 0;
}

@media (max-width: 1199px) {
    /* 3 kart */
    .advisor-card {
        flex-basis: calc((100% - 2 * 24px) / 3);
    }
}

@media (max-width: 899px) {
    /* 2 kart */
    .advisor-card {
        flex-basis: calc((100% - 24px) / 2);
    }
}

@media (max-width: 575px) {
    /* tek kart */
    .advisor-card {
        flex-basis: 100%;
    }
}

/* Surukleme sirasinda metin secilmesin */
.advisor-track.dragging * {
    user-select: none;
}

/* --- Ok butonlari --- */
.advisor-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: clamp(24px, 4vw, 40px);
}

.advisor-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: opacity .2s ease;
}

.advisor-nav__btn img {
    display: block;
    width: 35px;
    height: 35px;
}

/* --- Kendi halkasini tasiyan fotograflar --------------------------------
   Danisma kurulu gorselleri (.svg) 141x141 tuval icinde 100x100 fotograf
   ve ETRAFINDA kendi gradyan halkasi + golgesiyle geliyor. Kapsayicinin
   da halka cizmesi "halka icinde halka" gorunumu yaratiyordu; bu
   dosyalarda dis halka kapatiliyor.

   Sinif sablonda veriliyor (--framed): ayni kart hem .webp (halkasiz)
   hem .svg (halkali) fotografla kullaniliyor. :has() tercih edilmedi,
   eski tarayicilarda desteklenmiyor. */
.team-card__photo--framed,
.team-member__photo--framed {
    padding: 0;
    background: none;
}

/* Bu SVG'lerde fotograf tuvalin yalnizca %71'ini kapliyor (141 tuval
   icinde 100 foto); kutuya sigdirilinca .webp fotograflardan belirgin
   kucuk kaliyordu. Gorsel kutudan tasirilarak FOTOGRAF caplari
   esitleniyor - kutu olcusu (dolayisiyla izgara hizasi) degismiyor.
   141/100 = 1.41 kat. */
.team-card__photo--framed img,
.team-member__photo--framed img {
    width: 141%;
    height: 141%;
    max-width: none;
    margin: -20.5%;
}
