.blog-container {
    max-width: 1560px;
    margin: 0 auto;

    @media screen and (max-width: 1600px) {
        padding: 0 16px;
    }
}

main {
    color: #101828;
    margin-top: 34px;
    @media screen and (min-width: 1201px) and (max-width:1600px) {
        margin-left: 16px !important;
    }
}

.hero {
    overflow: hidden;
    margin-top: 80px;
    color: white;
    background-color: #2F202D;

    @media screen and (max-width: 1100px){
        margin-top: 69px;
    }
    @media screen and (max-width: 996px){
        margin-top: 60px;
    }
    @media screen and (max-width: 374px){
        margin-top: 32px;
    }
}

.hero-inner-p-x {
    padding-left: 180px;
    z-index: 1;
    padding-right: 180px;

    @media screen and (max-width: 1600px){
        padding-left: 64px;
        padding-right: 64px;
    }
    @media screen and (max-width: 1000px){
        padding-left: 16px;
        padding-right: 16px;
    }
}

.hero-inner-p-y {
    padding-top: 64px;
    padding-bottom: 64px;

    @media screen and (max-width: 1000px){
        padding-bottom: 32px;
    }
}

.hero-title-padding-top {
    padding-top: 194px;

    @media screen and (max-width: 1600px){
        padding-top: 144px;
    }

    @media screen and (max-width: 1100px){
        padding-top: 120px;
    }

    @media screen and (max-width: 991px){
        padding-top: 96px;
    }

    @media screen and (max-width: 374px){
        padding-top: 60px;
    }
}

.hero > .hero-inner {
    padding-top: 0 !important;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-title h1 {
    margin: 0;
    font-weight: 700;
    color: white;

    @media screen and (max-width: 1700px){
        text-wrap: unset;
    }
    @media screen and (max-width: 1175px){
        text-wrap: balance;
    }
    @media screen and (max-width: 480px){
        text-wrap: unset;
    }

    font-size: 60px;
    @media screen and (max-width: 1300px) {
        font-size: 30px;
    }
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 40px;

    @media screen and (max-width: 1000px){
        gap: 24px;
    }
}

.hero-icon {
    position: absolute;
    top: 30px;
    right: 0;
    height: 390px;
}

.hero-overlay-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 24px;
    top: 0;
    right: 0;
    margin: 24px;
}

.hero-image-overlay {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 42px 32px;
    gap: 24px;
    background-color: white;
    backdrop-filter: blur(10px);
    max-height: max-content;
    max-width: 246px;
    opacity: 90%;
    min-width: 246px;


    @media screen and (max-width: 1300px) {
        padding: 1rem;
    }

    @media screen and (max-width: 999px) {
        display: none;
    }
}


.blog-list-top-bar {
    display: flex;
    flex-direction: row;
    margin-bottom: 64px;

    @media screen and (max-width: 1366px) {
        margin-top: 8px;
    }

    @media screen and (max-width: 1300px) {
        margin-bottom: 24px;
    }

    @media screen and (max-width: 767px) {
        flex-direction: column;
        gap: 24px;
    }
}

.categories {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 8px;
    padding-top: 8px;
    scrollbar-gutter: stable;
}

.categories > span {

}

.category {
    padding: 12px 16px;
    user-select: none;
    cursor: pointer !important;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #475467;
    background-color: #E4E7EC;
    height: fit-content;
    display: block;
    white-space: nowrap;
    width: fit-content;

    @media screen and (max-width: 1366px) {
        /*padding: 8px 12px;*/
        /*font-size: 13px;*/
    }
}

.category:hover {
    background-color: #D0D5DD;
    color: black;
    cursor: pointer;
    text-decoration: none;
}

.category.active {
    background-color: #2F202D;
    color: white;
    cursor: unset;
}

.cat-header {
    margin-bottom: 60px;
    margin-top: 100px;

    @media screen and (max-width: 1300px) {
        margin-bottom: 24px;
        margin-top: 48px;
    }
}

.crew-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 24px;
    row-gap: 60px;
    margin-bottom: 60px;

    @media screen and (max-width: 1300px) {
        grid-template-columns: repeat(3, 1fr);
        margin-bottom: 32px;
        gap: 24px;
    }

    @media screen and (max-width: 1000px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media screen and (max-width: 750px) {
        grid-template-columns: repeat(1, 1fr);
    }
}

.crew-item {
    border: 1px solid #E4E7EC;
}


.crew-inner {
    padding: 24px;

    @media screen and (max-width: 1300px) {
        padding: 16px;
    }
}

.crew-thumb-container {
    width: 100%;
    aspect-ratio: 372 / 372;
    overflow: hidden;
}

.crew-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.crew-bottom {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.crew-specialisation-pill {
    border: 1px solid #BFBABE;
    padding: 8px 12px;
    border-radius: 8px;
}

.crew-cert-button {
    display: block;
    background-color: #F7F6F7;
    padding: 8px 12px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
}

.cert-window {
    position: absolute;
    top: var(--cert-top, 0px);
    left: var(--cert-left, 0px);
    min-width: var(--cert-width, 220px);
    max-width: min(320px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid #D0D5DD;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(16, 24, 40, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.92);
    transform-origin: var(--cert-origin-x, 50%) var(--cert-origin-y, 50%);
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 220ms;
    z-index: 20;
}

.cert-window.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}

.cert-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.cert-list li {
    padding-bottom: 4px;
    border-bottom: 1px solid #BFBABE;
}

.cert-list a {
    color: #2F202D;
}

.crew-container-big {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 60px;

    @media screen and (max-width: 1300px) {
        margin-bottom: 32px;
    }

    @media screen and (max-width: 1000px) {

    }
}

.crew-item-big {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 80px;

    @media screen and (max-width: 1200px) {
        gap: 32px;
    }

    @media screen and (max-width: 850px) {
        flex-direction: column;
        border: 1px solid #E4E7EC;
        gap: 0;
    }
}

.crew-big-image {
    width: 500px;
    aspect-ratio: 500 / 650;
    flex-shrink: 0;
    overflow: hidden;

    @media screen and (max-width: 850px) {
        width: 100%;
    }
}

.crew-big-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crew-item-right {
    width: 100%;
    padding-top: 48px;
    padding-bottom: 48px;

    @media screen and (max-width: 850px) {
        padding: 24px 16px;
    }
}

.crew-description {
    margin-top: 48px;

    @media screen and (max-width: 1200px) {
        margin-top: 24px;
    }
}

.qna-container {
    color: #101828;

    @media screen and (max-width: 1199px) {
        margin-top: 50px;
        padding-bottom: 32px;
    }
}