/* Extracted from Views/About/Index.cshtml @section styles */

body {
    background-color: #fff !important;
    margin: 0;
}

.teambody {
    background: url('/images/aboutbg2.png');
    /* Center and scale the image nicely */
    background-position: top center;
    background-repeat: repeat-y;
    background-size: 100% 100%;
}

.aboutprofile {
    max-height: 100%;
    overflow-y: hidden;
    position: absolute;
    bottom: 10px;
    left: 51%;
    margin-right: 5%;
    display: block;
    height: 100%;
}



.rowx {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo {
    cursor: pointer;
    transform: translate3d(0,0,0);
    -webkit-transform-style: preserve-3d;
}
/*.logo:hover {
  filter: drop-shadow(0px 4px 6px #191919);
  transform: translate(0, -2px);
  transition: all, .3s ease-out;
}*/
.startLogo {
    position: fixed;
}

/* لوگوی سفید: به‌جای جابه‌جا کردن با جاوااسکریپت در هر فریم اسکرول،
   به صورت background با attachment:fixed کشیده می‌شود. مرورگر خودش آن را
   دقیقاً روی لوگوی مشکی fixed نگه می‌دارد (بدون لرزش) و کادر همین ردیف
   هم آن را برش می‌زند؛ یعنی همان افکت قبلی، ولی بدون جاوااسکریپت. */
.altLogo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: url('/images/hooba-logo-white.svg');
    background-attachment: fixed;
    background-position: left top;
    background-size: 100% auto;
    background-repeat: no-repeat;
}


.whiteLogo {
    fill: white;
    stroke: transparent;
}

.blackLogo {
    color: #1d1d1d;
    stroke: transparent;
}



.grey {
    background: #fff;
}

.blue {
    background: skyBlue;
}

.green {
    background: green;
}

#scroll {
    position: fixed;
    bottom: 40px;
    right: 100px;
    text-align: center;
}





.team-image-container {
    position: relative;
    z-index: 0;
}

/* پوشش شفاف */
.team-overlay {

    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0px;
}


.expertise-text {
    color: black;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}


.team-image-container:hover .team-overlay {
    height: 33%;
    padding:10px;
}


/* ===== Team: scroll-pinned categories with four-member slide pages ===== */
.teambody .teamtitle,
.team-category.team-scroll-ready .teamtitle {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
}

.team-category {
    position: relative;
}

.team-page-viewport {
    position: relative;
}

.team-page {
    width: 100%;
}

/* JavaScript enables this layout only on desktop when ScrollTrigger is ready. */
.team-category.team-scroll-ready {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--team-banner-height, 0px));
    height: calc(100svh - var(--team-banner-height, 0px));
    min-height: 0;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden;
}

.team-category.team-scroll-ready .team-page-viewport {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.team-category.team-scroll-ready .team-page {
    position: absolute;
    inset: 0;
    visibility: visible;
    backface-visibility: hidden;
    will-change: transform;
}

/* ===== Mobile: keep the left gutter (.col-2 + 11% inner margin) exactly as
   on desktop — it's the space reserved for the fixed logo, to the right of
   the "TEAM" heading's extended stem, and must stay empty there. Only fix
   is on the content side: each member card had a 100px right padding sized
   for a much bigger desktop card, wasting most of the already-narrower
   mobile column with one member per row. Cut that padding down and let
   members flow 2-per-row instead. */
@media (max-width: 767.98px) {
    .teambody .teamtitle {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .teambody .col-sm-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

        .teambody .col-sm-3 > div[style*="padding-right"] {
            padding-right: 10px !important;
        }
}

/* ===== Mobile only: profile text + logo offset =====
   دسکتاپ دست‌نخورده می‌ماند؛ همه چیز داخل همین مدیا کوئری است. */
@media (max-width: 767.98px) {
    /* متن «درباره» روی تصویر، ارتفاعش برابر ارتفاع همان تصویر است. در موبایل
       تصویر کوتاه می‌شود و متن از کادر بیرون می‌زد و بریده می‌شد (overflow
       hidden). حالا همان کادر اسکرول عمودی می‌گیرد تا کاربر بقیه متن را
       بخواند. overscroll-behavior تا انتهای اسکرولِ کادر، صفحه پشت آن تکان
       نخورد. */
    .aboutprofile {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-top: 0.5rem !important;
    }

        /* فضای بالای متن داخلی برای دسکتاپ تنظیم شده بود؛ در کادر کوتاه موبایل
       جای خواندن را می‌گرفت. */
        .aboutprofile > .d-flex > div {
            padding-top: 8px !important;
        }

        /* نوار اسکرول باریک و کم‌رنگ تا هم دیده شود هم روی تصویر سنگین نباشد */
        .aboutprofile {
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,.55) transparent;
        }

            .aboutprofile::-webkit-scrollbar {
                width: 4px;
            }

            .aboutprofile::-webkit-scrollbar-track {
                background: transparent;
            }

            .aboutprofile::-webkit-scrollbar-thumb {
                background: rgba(255,255,255,.55);
                border-radius: 2px;
            }

    /* لوگو در موبایل کمی پایین‌تر و کمی به راست. لوگوی سفید (.altLogo) باید
       دقیقاً به همان اندازه جابه‌جا شود وگرنه هنگام اسکرول روی لوگوی مشکی
       منطبق نمی‌ماند. */
    .startLogo {
        transform: translate3d(8px, 10px, 0);
    }

    .altLogo {
        background-position: 8px 10px;
    }
}
