body {
    background-color: #F9F9F9;
}

.hero {
    text-transform: uppercase;
}

.about.tabs .tab_content {
    padding: unset !important;
}

.about.tabs .tab_links {
    border-bottom: 1px solid;
    text-transform: uppercase;
}

.about.tabs {
    padding-bottom: 100px;
}

@media (min-width: 992px) {
    .tabs .tab_content {
        display: flex;
        align-items: flex-start;
    }
}

@media only screen and (max-width: 991px) {
    .about.tabs .tab_content {
        flex-direction: column;
        gap: 30px;
    }
}

.tabs .tab_content .board-list {
    position: relative;
    z-index: 1;
    padding: 77px 0 0 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

/* İlk satırda tek kart, diğerleriyle aynı genişlikte ve ortada */
@media only screen and (min-width: 992px) {
    .tabs .tab_content .board-list > .item:first-child {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: calc((100% - 32px) / 2);
        width: 100%;
    }
}

.tabs .tab_content .board-list > .item {
    min-width: 0;
    max-width: 100%;
}

@media only screen and (max-width: 991px) {
    .tabs .tab_content {
        display: block;
    }

    .tabs .tab_content .board-list {
        padding-top: 40px;
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

.board-card {
    display: flex;
    gap: 28px;
    background-color: #ffffff;
    padding: 32px 28px;
    min-height: 260px;
    color: inherit;
    transition: box-shadow 0.2s ease;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.board-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.board-card picture {
    flex-shrink: 0;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    overflow: hidden;
}

.board-card img.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.board-card:hover img.cover {
    transform: scale(1.1);
}

.board-card .text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.board-card .name h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.board-card .name span {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.board-card p {
    margin: 0;
    font-size: 14px;
    color: #374151;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
}

.board-card .moreBtn {
    margin-top: 16px;
    padding-top: 12px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: #111827;
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    align-self: flex-start;
}

.board-card .moreBtn:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 4px;
}

.board-card .moreBtn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 1px;
    background-color: #111827;
    transform-origin: right center;
    transform: scaleX(1);
}

.board-card:hover .moreBtn::before {
    animation: underline-wipe 0.7s ease forwards;
}

@keyframes underline-wipe {
    0% {
        transform-origin: right center;
        transform: scaleX(1);
    }
    50% {
        transform-origin: right center;
        transform: scaleX(0);
    }
    51% {
        transform-origin: left center;
        transform: scaleX(0);
    }
    100% {
        transform-origin: left center;
        transform: scaleX(1);
    }
}

.board-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.board-modal.is-visible {
    display: flex;
}

.board-modal__content {
    position: relative;
    max-width: min(900px, 100%);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 8px;
    padding: 40px 40px 32px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    /* Uzun biyografi: kart viewport’tan taşmasın, içerde kaydırılabilsın */
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    animation: modal-in 0.45s ease forwards;
}

@keyframes modal-in {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    60% {
        opacity: 1;
        transform: translateY(0) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Tek sütun + dar ekran: yatay kart taşmasını önlemek için üst üste düzen */
@media only screen and (max-width: 991px) {
    .board-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: unset;
    }

    .board-card picture {
        margin: 0 auto;
        width: min(190px, 72vw);
        height: min(190px, 72vw);
        max-width: 100%;
    }

    /*
     * align-items: center flex sütununda <p> genişliğini max-content yapar;
     * paragrafa üst sınır gelmez → metin kırılmaz, yatay taşma olur.
     */
    .board-card .text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-items: stretch;
    }

    .board-card .moreBtn {
        align-self: center;
    }
}

@media only screen and (max-width: 768px) {
    .board-modal__content {
        align-items: center;
        text-align: center;
        padding: 28px var(--page-gutter-mobile) 24px;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .board-modal__image {
        margin: 0 auto;
        align-self: center;
    }

    .board-modal__body {
        text-align: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

@media only screen and (max-width: 480px) {
    .board-card {
        padding: 20px 14px;
        gap: 18px;
    }

    .tabs .tab_content .board-list {
        gap: 18px;
    }
}

@media only screen and (max-width: 767px) {
    .board-modal__content {
        flex-direction: column;
        padding: 28px var(--page-gutter-mobile) 24px;
    }
}

.board-modal__image {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
}

.board-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.board-modal__body .name h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.board-modal__body {
    min-width: 0;
    flex: 1;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.board-modal__body .name span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #6b7280;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.board-modal__body p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
}

.board-modal__body img {
    max-width: 100%;
    height: auto;
}

.board-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.board-modal__close span {
    font-size: 20px;
    line-height: 1;
}

.board-modal__close:hover {
    background-color: #f3f4f6;
}

.no-scroll {
    overflow: hidden;
}