@import url("../global/global.css?ver=1.14");
@import url("../layout/header.css");
@import url("../layout/footer.css");

.forum-hero {
    position: relative;
    overflow: hidden;
    background-color: rgb(243, 242, 251);
}

@media (min-width: 576px) {
    .forum-hero::before {
        content: "";
        position: absolute;
        inset: 0px;
        background-image: url("../../images/blogs/blog-image.png");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        opacity: 0.5;
    }

    .forum-hero::after {
        content: "";
        position: absolute;
        inset: 0px;
        background: linear-gradient(90deg, rgba(243, 242, 251, 0) 0%, rgba(243, 242, 251, 0.55) 10%, rgb(243, 242, 251) 30%);
    }
}

.forum-hero .container {
    position: relative;
    z-index: 2;
}

.forum2-hero-content {
    max-width: 75%;
    z-index: 1;
    position: relative;
    padding: 25px 0px 40px;
}

@media (max-width: 576px) {
    .forum2-hero-content {
        max-width: 100%;
        padding: 20px 0px 30px;
    }
}

.forum2-hero-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.forum2-hero-title-row .forum2-hero-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    background-color: rgba(105, 43, 140, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.forum2-hero-title-row .forum2-hero-title {
    margin-bottom: 0px;
    font-size: 2.4rem;
}

.forum2-hero-subtitle {
    margin-bottom: 25px;
    font-size: 1rem;
}

.forum2-hero-stats {
    display: flex;
    align-items: center;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(229, 229, 229);
    box-shadow: rgb(227, 227, 227) 0px 5px 20px;
    border-radius: 16px;
    padding: 16px 30px;
    width: fit-content;
}

.forum2-hero-stats .forum2-hero-stat {
    text-align: center;
    min-width: 90px;
}

.forum2-hero-stats .forum2-hero-stat-value {
    display: block;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.forum2-hero-stats .forum2-hero-stat-label {
    display: block;
    color: var(--color-text-2);
    font-size: 13px;
    font-weight: 600;
}

.forum2-hero-stats .forum2-hero-stats-divider {
    width: 1px;
    height: 34px;
    background-color: rgb(236, 236, 236);
    margin: 0px 25px;
}

@media (max-width: 576px) {
    .forum2-hero-title-row .forum2-hero-title {
        font-size: 1.4rem;
    }

    .forum2-hero-title-row .forum2-hero-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .forum2-hero-title-row .forum2-hero-icon svg {
        width: 22px;
        height: 22px;
    }

    .forum2-hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }

    .forum2-hero-stats {
        width: 100%;
        justify-content: center;
        padding: 14px 15px;
    }

    .forum2-hero-stats .forum2-hero-stat {
        min-width: unset;
        flex: 1 1 0%;
    }

    .forum2-hero-stats .forum2-hero-stats-divider {
        margin: 0px 15px;
    }
}

.forum2-main {
    margin-block: 20px;
}

.forum2-filter-bar {
    margin-bottom: 15px;
}

.forum2-filter-top {
    display: flex;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 15px;
}

.forum2-filter-top .forum-new-topic-btn {
    flex-shrink: 0;
    padding: 11px 16px;
}

.forum2-filter-search {
    position: relative;
    flex: 1 1 0%;
}

.forum2-filter-search svg {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
}

.forum2-filter-search .input-search {
    width: 100%;
    height: 100%;
    border: 1px solid rgb(229, 229, 229);
    background-color: rgb(255, 255, 255);
    box-shadow: rgb(227, 227, 227) 0px 5px 20px;
    border-radius: 10px !important;
    padding: 15px 20px 15px 55px !important;
}

.forum2-filter-search .input-search:focus {
    outline: none;
    border-color: var(--primary-color);
}

.forum2-filter-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.forum2-clear-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgb(255, 255, 255);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    margin-right: auto;
    min-width: 150px;
}

.forum2-clear-filters:hover {
    color: var(--color-danger);
}

@media (max-width: 768px) {
    .forum2-filter-top {
        flex-direction: column;
    }

    .forum2-filter-top .forum-new-topic-btn {
        width: 100%;
    }

    .forum2-filter-bottom {
        flex-wrap: wrap;
    }

    .forum2-clear-filters {
        margin-right: 0px;
        width: 100%;
        justify-content: center;
        padding-top: 10px;
    }
}

.forum2-topics-table {
    display: flex;
    flex-direction: column;
}

.forum2-table-head {
    display: grid;
    grid-template-columns: minmax(0px, 1fr) 160px 50px 50px 190px;
    gap: 15px;
    padding: 18px 25px;
    margin-bottom: 15px;
}

.forum2-table-head span {
    color: var(--color-text-2);
    font-size: 13px;
    font-weight: 700;
}

.forum2-table-head span:not(:first-child) {
    text-align: center;
}

.forum2-topics-table .forum2-table-row {
    display: grid;
    grid-template-columns: minmax(0px, 1fr) 160px 50px 50px 190px;
    gap: 15px;
    align-items: center;
    padding: 18px 25px;
    margin-bottom: 15px;
    transition: 0.25s;
}

/* .forum2-topics-table .forum2-table-row:last-child {
    margin-bottom: 0px;
} */

.forum2-topics-table .forum2-table-row:hover {
    border-color: var(--primary-color);
    box-shadow: rgba(105, 43, 140, 0.08) 0px 10px 25px;
}

.forum2-cell-topic .forum2-topic-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.forum2-bookmark-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background-color: rgb(245, 245, 245);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.forum2-cell-topic .forum2-topic-title {
    font-size: 1rem;
    margin-bottom: 10px;
}

.forum2-cell-topic .forum2-topic-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-2);
    margin-bottom: 10px;
}

.forum2-cell-topic .forum2-topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.forum2-cell-topic .forum2-topic-tags span {
    background-color: rgb(245, 245, 245);
    color: var(--color-text-2);
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    padding: 4px 12px;
}

.forum2-topic-category {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-2);
    margin: 0px 0px 10px;
    padding-right: 0px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.forum2-topic-category li {
    list-style-type: none;
    margin-bottom: 0px;
}

.forum2-topic-category .category-item:not(.active)::after {
    content: "<";
    margin-right: 5px;
}

.forum2-cell-creator .forum2-creator-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    overflow: hidden;
}

.forum2-cell-creator .forum2-creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.forum2-cell-creator .forum2-creator-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-1);
    margin-bottom: 2px;
    white-space: nowrap;
}

.forum2-cell-creator .forum2-creator-time {
    font-size: 11px;
    color: var(--color-text-2);
    margin-bottom: 0px;
}

.forum2-cell-number {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-1);
}

.forum2-activity-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.forum2-activity-icon.status-new {
    background-color: rgba(196, 43, 141, 0.1);
}

.forum2-activity-icon.status-resolved {
    background-color: rgb(233, 249, 241);
}

.forum2-activity-icon.status-closed {
    background-color: rgb(240, 240, 240);
}

.forum2-activity-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-1);
    margin-bottom: 4px;
    white-space: nowrap;
}

.forum2-activity-by {
    display: flex;
    align-items: center;
    gap: 6px;
}

.forum2-activity-by img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.forum2-activity-by span {
    font-size: 11px;
    color: var(--color-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1200px) {
    .forum2-table-head {
        display: none;
    }

    .forum2-topics-table .forum2-table-row {
        padding: 18px;
        gap: 18px;
        row-rule: 1px solid rgb(238, 238, 238);
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "topic topic" "number1 number2" "creator activity";
    }

    .forum2-cell-topic {
        grid-area: topic;
    }

    .forum2-cell-creator {
        grid-area: creator;
    }

    .forum2-cell-number:first-of-type {
        grid-area: number1;
    }

    .forum2-cell-number:last-of-type {
        grid-area: number2;
    }

    .forum2-cell-activity {
        grid-area: activity;
    }

    .forum2-cell-creator::before,
    .forum2-cell-number::before,
    .forum2-cell-activity::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 600;
        color: var(--color-text-2);
    }

    .forum2-cell-topic,
    .forum2-cell-creator,
    .forum2-cell-number,
    .forum2-cell-activity {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .forum2-topics-table .forum2-table-row {
        grid-template-areas: "topic topic" "creator creator" "number1 number2" "activity activity";
    }
}

/*articles-start*/
.articles .article-card {
    box-shadow: rgba(17, 17, 17, 0.05) 0px 5px 20px;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(238, 238, 238);
    border-radius: 24px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: justify;
    transition: 0.3s ease-in-out;
    height: 100%;
}

.articles .article-card:hover {
    border-color: var(--primary-color);
    box-shadow: rgba(105, 43, 140, 0.08) 0px 10px 25px;
}

.articles .swiper-wrapper {
    align-items: stretch;
}

.articles .swiper-slide {
    display: flex;
    flex-direction: column;
    height: auto;
}

.articles .article-card img {
    height: auto;
    aspect-ratio: 346 / 280;
}

.articles .article-card .caption-box {
    overflow: hidden;
    text-overflow: ellipsis;
    height: 100px;
}

.articles .action-box svg {
    transition: 0.2s ease-in-out;
}

.articles .action-box svg:hover {
    scale: 1.1;
}

.article-card img {
    border-radius: 20px;
}

.articles .article-card h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: bold;
}

.articles .article-card span {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: bold;
    text-align: justify;
}

@media (max-width: 768px) {
    .articles .article-card span {
        text-align: right;
    }
}

@media (max-width: 1400px) {
    .articles .article-card h4 {
        font-size: 14px;
    }
}

.articles .article-card p {
    color: var(--color-text-2);
    font-size: 10px;
    line-height: 25px;
    margin-block: 0px;
}

.articles .article-card li {
    color: var(--primary-color);
    font-size: 10px;
    line-height: 25px;
    margin-top: 0px;
    list-style-type: disc;
}

.articles .article-card li a {
    font-weight: 400;
}

.articles .more-content {
    background-color: var(--primary-color);
    color: white;
    padding: 35px 30px;
    margin: 20px 0px 0px;
    border-radius: 30px;
    text-align: justify;
    transition: 0.3s ease-in-out;
}

.articles .more-content h3 {
    font-size: 35px;
    font-weight: 900;
}

.articles .article-btn {
    padding: 10px;
    transition: 0.3s ease-in-out;
    bottom: -20px;
    font-weight: 600;
}

.articles .article-btn:hover {
    box-shadow: none;
}

.articles .swiper {
    padding-bottom: 5rem;
}

@media (max-width: 576px) {
    .articles .swiper {
        padding-bottom: 2.5rem;
    }
}

.articles span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/*articles-end*/