@import url(../global/global.css?ver=1.01);
@import url(../layout/header.css);
@import url(../layout/footer.css);

.main-section__filter-title {
    font-size: var(--font-size-1);
    font-weight: 500;
    color: #000000;
    margin-left: 8px;
}

.radio-label {
    margin: 0 3px;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    cursor: pointer;
}

.radio-label.active {
    border-radius: 13px;
    color: #fff;
    padding: 3px 4px;
    text-align: center;
}

input[type="radio"] {
    opacity: 0;
    visibility: hidden;
    display: none;
}

/* ------------------------- sidebar -------------------------- */
.side-category__title {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--primary-color);
    display: table;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    min-width: 190px;
}

.side-category__list {
    padding-right: 0;
}

.side-category__list-item {
    list-style-type: none;
}

.side-category__list-item a {
    font-size: 14px;
    color: #9FA2A3;
    line-height: 35px;
}

.side-category__list-item a::before {
    content: " ";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.side-category__list-item:hover a {
    color: var(--primary-color);
}

.side-category {
    padding: 16px 16px 50px;
    position: sticky;
    top: 53px;
    border-radius: 20px;
    background: #ffffff;
    -webkit-box-shadow: 0 5px 20px 0 #d8d8d8;
    box-shadow: 0 5px 20px 0 #d8d8d8;
}

.tags-list {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 16px;
    padding-right: 0;
}

.tags-list__item {
    list-style-type: none;
}

.tags-list__item a {
    font-weight: 400;
    font-size: 13px;
    color: #9FA2A3;
    text-decoration: underline;
}

.tags-list__item a:hover {
    color: var(--primary-color);
}

.side-category__img-wrapper {
    text-align: center;
}

.side-category__img-wrapper img {
    border-radius: 17px;
}

/* ----------------------- blogs ------------------- */
.blog__category {
    color: #D61C4E;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: -0.4px;
}

.single-blog__img img {
    max-width: 100%;
}

.single-blog__sidebar {
    position: sticky;
    top: 51px
}

.single-blog__sidebar-top {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 2px dashed #9FA2A3;
}

.single-blog__top-image img {
    border-radius: 27px;
    margin-bottom: 20px;
    max-width: 100%;
}


/* ---------------------------------------- comment-section ----------------------- */
.comments__section {
    position: relative;
    height: 100%;
    padding: 20px;
    border-radius: 30px;
    background: #ffffff;
    -webkit-box-shadow: 0 5px 20px 0 #d8d8d8;
    box-shadow: 0 5px 20px 0 #d8d8d8;
}

.comments__section-title {
    color: var(--color-text);
    text-align: center;
}

.comment-item {
    padding: 30px 40px;
    border-radius: 10px;
}

.comment-item__img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.comment-item__author {
    font-weight: 500;
    color: var(--color-text);
    font-size: 20px;
    text-align: center;
}

.comment-item__text {
    color: #616364;
    font-size: var(--font-size-1);
    line-height: 20px;
    text-align: justify;
}

/* ------------------------------------------- comment-send ------------------------- */
.comment-send__wrapper .comments__section-title {
    margin-bottom: 25px;
}

.comment-send__wrapper {
    position: relative;
    padding: 16px 16px 16px;
    border-radius: 20px;
    background: #ffffff;
    -webkit-box-shadow: 0 5px 20px 0 #d8d8d8;
    box-shadow: 0 5px 20px 0 #d8d8d8;
}

.comment-send__wrapper .file__name {
    margin-bottom: 0;
}

/* ----------------------------------------- writer section */

.writer__logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    padding: 20px;
    box-shadow: 0 0 20px rgba(15, 115, 132, 0.8);
    margin-left: 30px;
    flex-shrink: 0;
}

@media only screen and (max-width: 1200px) {
    .blog__image-wrapper {
        height: auto;
    }
}

@media only screen and (max-width: 992px) {
    .side-category {
        top: 5px
    }

    .writer__logo {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .single-blog__top-image img {
        display: block;
    }

    .single-blog__sidebar-top {
        display: none;
    }

    .writer__logo {
        display: none;
    }
}

@media only screen and (max-width: 576px) {
    .main-section__header {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 5px;
    }

    .main-section__filter-title {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    .comment-send__wrapper {
        padding: 10px;
    }

    .download-box__wrapper svg {
        width: 36px;
        height: 36px;
    }

    .download-box__wrapper .main-btn {
        min-width: auto;
        font-size: 14px;
    }

    .link__wrapper {
        justify-content: center;
    }

    .comment-item {
        padding: 20px 16px;
        border: none;
    }

    .comments__section {
        padding: 16px;
    }
}


.blogs-blog .blog-content {
    width: auto;
}

.blogs-blog .blog-image {
    flex-shrink: 0;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23EC1F27' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e")
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23EC1F27' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e")
}

.carousel-control-next {
    margin-left: -30px;
}

.carousel-control-prev {
    margin-right: -30px;
}

/*--------------------swiper--------------------*/
.swiper {
    width: 100%;
    height: 85%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blogs-section .articles .row {
    row-gap: 30px;
    margin-bottom: 40px;
}

/* ------------------------- blog-card -------------------------- */
.blog__item {
    transition: all 0.3s;
}

.blog__item:hover {
    transform: translateY(-10px)
}

.blog__item:hover .blog__title {
    color: var(--primary-color);
}

.blog__img img {
    border-radius: 20px;
    aspect-ratio: 5 / 4;
}

.blog__details {
    gap: 15px;
    margin: 10px 0;
}

.blog__details p {
    gap: 5px;
    font-size: var(--font-size-0);
    color: #C8C8C8;
    margin-bottom: 0;
}

.blog__title {
    color: var(--secondary-color);
    font-size: var(--font-size-2);
}

.blog__content {
    margin-top: 12px;
    color: #515152;
    line-height: 25px;
    font-size: var(--font-size-1);
}

@media (max-width:992px) {
    .blog__item {
        margin-bottom: 15px;
    }
}