.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: 16px;
    }

    @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;
}


#k_search_form {
    position: relative;
    display: flex;

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

#k_search_form * {
    @media screen and (max-width: 767px) {
        width: 100%;
    }
}

#k_search_form p {
    margin: 0;
}

#k_search_form input#s.search_field {
    border: 1px solid #D0D5DD;
    padding: 12px;
    border-radius: 8px;
    padding-left: 42px;
}

#k_search_form input.search_button {
    display: none;
}

#k_search_form:before {
    padding: 1px 2px;
    content: '';
    top: 4px;
    left: 12px;
    position: absolute;
    transform: translate(30%, 50%);
    width: 20px;
    height: 20px;
    background-image: url('/img/blog/search-icon.svg');
    background-size: cover;
}

.search-container {
    display: flex;
    flex: 0 0 auto;
    align-self: center;

    @media screen and (max-width: 767px) {
        margin-left: unset;
        width: 100%;
        padding-left: 0;
    }
}


.all-blogs:not(:has(.no-results)) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    /*margin-top: 64px;*/
    grid-auto-flow: dense;

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

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

.no-results {
    text-align: center;
    margin-top: 48px;
    margin-bottom: 48px;
}

.no-results a {
    color: #D4A773;
}

.blog {
    text-decoration: none;
    color: black !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog:hover {
    text-decoration: none;
}

.blog > img {
    width: 100%;
    height: auto;
    max-height: 275px;
    object-fit: cover;
}

.blog__body {
    padding: 32px;
    height: 100%;
    border: 1px solid #E4E7EC;
    border-top: 0;

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

.blog__topbar {
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
    color: #667085;
    font-size: 12px;
    margin-bottom: 8px;
}

.blog__body > h5 {
    margin-bottom: 12px;
}

.blog__body > h6 {
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 50px;
}

:has(> .blog__body) {
    border: 1px white solid;
    transition: border ease-in-out 0.2s;
}

:has(> .blog__body):hover {
    border: 1px #22334d solid;
}

.qna-container {
    @media screen and (max-width: 1199px) {
        padding-bottom: 32px;
        padding-top: 40px;
    }
}