@import url("../global/global.css?ver=1.14");
@import url("../layout/header.css");
@import url("../layout/footer.css");

/*forum-hero-start*/
.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;
}

.forum-hero-content {
    max-width: 75%;
    z-index: 1;
    position: relative;
    padding: 25px 0 50px;
}

@media (max-width: 576px) {
    .forum-hero-content {
        max-width: 100%;
    }
}

.forum-hero-title {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.forum-hero-subtitle {
    margin-bottom: 30px;
    font-size: 1rem;
}

.forum-hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/*forum-hero-end*/

/*forum-main-start*/
.forum-search-box {
    position: relative;
    flex: 1 1 0%;
    min-width: 260px;
    max-width: 515px;
}

.forum-search-box svg {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
}

.forum-search-box .input-search {
    width: 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;
}

.forum-search-box .input-search:focus {
    outline: none;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .forum-hero-content {
        padding: 20px 0 40px;
    }

    .forum-hero-title {
        font-size: 1.6rem;
    }

    .forum-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-search-box,
    .forum-new-topic-btn {
        width: 100%;
    }
}

.forum-main {
    margin-block: 20px;
}

.forum-categories {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.forum-category {
    padding: 0px;
    overflow: hidden;
}

.forum-category-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 22px 25px;
    cursor: pointer;
    border-bottom: 1px solid #EEEEEE;
}

.forum-category-header .forum-category-head-items {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-category-header .forum-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.forum-category-header .forum-category-title {
    margin-bottom: 0px;
    font-size: 1.15rem;
}

.forum-category-header .forum-category-arrow {
    transition: 0.3s;
    flex-shrink: 0;
}

.forum-category-header[aria-expanded="true"] .forum-category-arrow {
    transform: rotate(180deg);
}

.forum-category-body {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    padding: 25px;
}

@media (max-width: 576px) {
    .forum-category-header {
        padding: 15px;
    }

    .forum-category-header .forum-category-icon {
        width: 34px;
        height: 34px;
    }

    .forum-category-header .forum-category-icon svg {
        width: 24px;
        height: 24px;
    }

    .forum-category-header .forum-category-title {
        font-size: 0.85rem;
    }

    .forum-category-body {
        padding: 0px 15px 15px;
        row-gap: 10px;
    }
}

.forum-topic-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgb(239, 239, 239);
    border-radius: 16px;
    padding: 18px 20px;
    transition: 0.25s;
}

.forum-topic-row:hover {
    border-color: var(--primary-color);
    box-shadow: rgba(105, 43, 140, 0.08) 0px 10px 25px;
}

.forum-topic-row .forum-topic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: rgba(105, 43, 140, 0.08);
    flex-shrink: 0;
}

.forum-topic-row .forum-topic-info {
    flex: 1 1 0%;
    min-width: 0px;
}

.forum-topic-row .forum-topic-title {
    font-size: 1rem;
    margin-bottom: 4px;
}

.forum-topic-row .forum-topic-subtitle {
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-text-2);
}

.forum-topic-row .forum-topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.forum-topic-row .forum-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;
}

.forum-topic-row .forum-topic-stats {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.forum-topic-row .forum-topic-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    min-width: 55px;
    position: relative;
}

@media (min-width:576px) {
    .forum-topic-row .forum-topic-stat {
        padding-inline: 25px;
    }

    .forum-topic-row .forum-topic-stat:last-child {
        padding-left: 0;
    }

    .forum-topic-row .forum-topic-stat:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 1px;
        height: 100%;
        background-color: #EEEEEE;
    }
}

.forum-topic-row .forum-topic-stat-label {
    font-size: 11px;
    color: var(--color-text-2);
    white-space: nowrap;
}

.forum-topic-row .forum-topic-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-1);
    white-space: nowrap;
}

@media (max-width: 992px) {
    .forum-topic-row .forum-topic-stats {
        gap: 15px;
        padding-left: 0px;
    }
}

@media (max-width: 768px) {
    .forum-topic-row {
        flex-wrap: wrap;
        padding: 15px;
        gap: 10px;
    }

    .forum-topic-row .forum-topic-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .forum-topic-row .forum-topic-icon svg {
        width: 15px;
        height: 15px;
    }

    .forum-topic-row .forum-topic-title {
        font-size: 12px;
    }

    .forum-topic-row .forum-topic-subtitle {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .forum-topic-row .forum-topic-tags span {
        font-size: 9px;
        padding: 3px 8px;
    }

    .forum-topic-row .forum-topic-stat-label {
        font-size: 9px;
    }

    .forum-topic-row .forum-topic-stat-value {
        font-size: 11px;
    }
}

@media (max-width:576px) {
    .forum-topic-row .forum-topic-stats {
        width: 100%;
        justify-content: space-between;
        border-top: 1px dashed rgb(236, 236, 236);
        padding-top: 10px;
    }
}

/*forum-main-end*/