/*HEADER*/
.header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 80px;
    padding: 0 2.34%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: var(--bd20);
    background-color: var(--bg);
    z-index: 1000;
}

.header__nav {
    width: fit-content;
}

.header__nav__ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__options {
    display: flex;
    align-items: center;
    gap: 16px;
    display: none;
}

/*FOOTER*/
.footer {
    width: calc(100% + 2.34% * 2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 38px 2.34%;
    border-top: var(--bd20);
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-left: -2.34%;
    margin-right: -2.34%;
}

.footer__infors {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.footer__infor {
    font-size: var(--fonts12);
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social__image {
    object-fit: contain;
}

.footer__copyrights {
    font-size: var(--fonts12);
}

/*SIDEBAR*/
.sidebar {
    position: sticky;
    width: calc(100% - 62.74%);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 16px;
}

.sidebar__searchForm {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    background-color: var(--bg--ver2);
    border-radius: var(--bdr2);
    padding: 16px;
}

.search__bar {
    width: calc(100% - 24px - 8px);
    height: 100%;
    background-color: var(--bg--ver2);
}

.sidebar__postsContent, 
.sidebar__posts,
.sidebar__tags {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar__posts__title {
    font-size: var(--fonts24);
    font-weight: var(--fontw--semibold);
}

.sidebar__post {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sidebar__post__cover {
    width: 19.37%;
    min-width: 19.37%;
    aspect-ratio: 1 / 1;
    background-color: var(--bg--ver2);
    border-radius: var(--bdr2);
}

.sidebar__post__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar__post__date {
    font-size: var(--fonts12);
}

.sidebar__post__title {
    font-weight: var(--fontw--semibold);
    max-height: 40px;
    overflow: hidden;
}

.sidebar__tags__title {
    font-size: var(--fonts24);
    font-weight: var(--fontw--semibold);
}

.sidebar__tag {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sidebar__tag .tag {
    height: 40px;
    padding: 0 16px;
    border: var(--bd20);
    border-radius: var(--bdr2);
    align-content: center;
    text-align: center;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .header {
        height: 56px;
        padding: 0 16px;
    }

    .header__options {
        display: flex;
    }

    .about__list,
    .contact__list {
        display: none;
    }

    .sidebar {
        display: none;
        position: fixed;
        top: 56px;
        right: 0;
        bottom: 0;
        padding: 16px;
        background-color: var(--bg);
        overflow-y: scroll;
        overflow-x: hidden;
        min-height: fit-content;
        width: 280px;
        z-index: 900;
        box-shadow: var(--bsd--ver1);
    }

    .sidebar__posts__title,
    .sidebar__tags__title {
        font-size: var(--fonts16);
    }

    .footer {
        margin-left: -16px;
        margin-right: -16px;
        padding: 24px 16px;
        width: calc(100% + 16px * 2);
    }
}

@media (max-width: 480px) {
    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer__infors {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer__license {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}