/* -------------------------------------------- Navbar and menu --------------------------------------------- */
header {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    z-index: 998;
    transition: .4s width;
    margin: 20px auto 0;
    border-radius: 100px;
    background-color: #ffffff;
    box-shadow: 0px 0px 30px 5px rgb(223 247 217 / 50%);
}

.header-initial {
    width: 1320px;
}

@media (max-width: 1399px) {
    .header-initial {
        width: 1140px;
    }
}

@media (max-width: 1199px) {
    .header-initial {
        width: 960px;
    }
}

@media (max-width: 991px) {
    header {
        top: 0;
        border-radius: 40px;
    }

    .header-initial {
        width: 720px;
        box-shadow: 0px 0px 30px 5px rgb(223 247 217 / 50%);
    }

    .navbar {
        padding: 15px 30px;
    }
}

@media (max-width: 767px) {
    .header-initial {
        width: 540px;
    }
}

@media (max-width: 575px) {
    .header-initial {
        width: calc(100% - 30px);
    }
}


/* --------------------------------------------------------------------------------------------------------------------- */
.mini-banner {
    width: 100%;
    border: 1px #E4E4E4 solid;
    border-radius: 20px;
    background-image: url('../img/banner-bg.png');
    background-repeat: repeat;
    position: relative;
    padding: 0 60px;
    margin-top: 150px;
    margin-bottom: 50px;
}

.mini-banner .character {
    width: 350px;
    padding-top: 30px;
    transform: scaleX(-1);
}

.mini-banner .breadcrumb .breadcrumb-item {
    font-size: 16px;
    font-weight: 500;
}

.mini-banner .breadcrumb .breadcrumb-item.active {
    color: #4FC950;
}

@media (max-width: 991px) {
    .mini-banner {
        padding: 0 40px;
    }

    .mini-banner .character {
        width: 250px;
    }

    .mini-banner .title-text {
        font-size: 38px;
        line-height: 46px;
    }
}

@media (max-width: 767px) {
    .mini-banner {
        padding: 40px 40px 0;
    }

    .mini-banner .character {
        width: 250px;
        padding-top: 20px;
    }

    .mini-banner .title-text {
        font-size: 34px;
        line-height: 42px;
    }

    .mini-banner .hashtag {
        font-size: 20px;
        line-height: 68px;
    }
}



/* --------------------------------------------------------------------------------------------------------------------- */
.all-review {
    margin-top: 50px;
    margin-bottom: 100px;
}

.all-review .nav-link {
    font-size: 16px;
    font-weight: 600;
    padding: 10px 25px;
    background-color: transparent;
    color: #000;
    border-radius: 50px;
    border: none;
    position: relative;
}

.all-review .nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background-color: #4FC950 !important;
    z-index: -1;
    opacity: 0;
    transition: 0.4s ease-out;
}

.link-active {
    color: #FFF !important;
}

.all-review .nav-link.link-active::after {
    left: 0;
    opacity: 1;
}

.all-review .nav-link:focus {
    outline: none;
    border: none;
}

.show-card {
    display: flex !important;
}


.all-review .all-review-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.all-review-flex .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 250px;
    background-color: #FFF;
    border-radius: 20px;
    border: 1px solid #E4E4E4;
    padding: 30px;
    display: none;
    position: relative;
}

.all-review-flex .card .review-text {
    color: #000;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    text-indent: 40px;
    position: relative;
}

.all-review-flex .review-text::before {
    /* content: '“'; */
    content: '\f10d';
    font-family: "FontAwesome";
    position: absolute;
    top: -10px;
    left: -40px;
    font-size: 24px;
    font-style: normal;
    color: #DFDFDF;
}

.all-review-flex .review-text::after {
    /* content: '”'; */
    content: '\f10e';
    font-family: "FontAwesome";
    position: absolute;
    bottom: -25px;
    right: 0;
    font-size: 24px;
    font-style: normal;
    color: #DFDFDF;
}

.all-review-flex .card .profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.all-review-flex .card .profile .profile-img {
    min-width: 50px;
    width: 50px;
    height: 50px;
}

.all-review-flex .card .profile .profile-img img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.all-review-flex .card .profile .profile-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.all-review-flex .card .profile .name {
    color: #000;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
}

.all-review-flex .card .profile .university {
    color: rgba(0, 0, 0, 0.60);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.arrow-left,
.arrow-right {
    display: none;
}

@media (max-width: 1399px) {
    .all-review-flex .card .profile .profile-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .all-review-flex .card .profile {
        align-items: flex-start;
    }
}

@media (max-width: 991px) {
    .all-review .all-review-flex {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .all-review .nav-link {
        padding: 10px 20px;
    }

    .all-review-flex .card {
        min-height: 270px;
    }
}

@media (max-width: 767px) {
    .all-review .all-review-flex {
        display: grid;
        grid-template-columns: 1fr;
    }

    .all-review-flex .card .profile .profile-info {
        flex-direction: row;
        align-items: center;
    }

    #reviewDepartment {
        overflow-x: auto;
        gap: 16px;
        margin: 0 30px;
        scroll-behavior: smooth;
    }

    #reviewDepartment::-webkit-scrollbar {
        display: none;
        /* ซ่อน scrollbar */
    }

    .arrow-md {
        position: relative;
        width: 100%;
    }

    .arrow-left,
    .arrow-right {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        color: #000;
        cursor: pointer;
        z-index: 1;
    }

    .arrow-left {
        left: 5px;
    }

    .arrow-right {
        right: 5px;
    }

    .all-review .nav-link {
        min-width: fit-content;
    }
}

@media (max-width: 575px) {
    .all-review-flex .card .profile .profile-info {
        flex-direction: column;
        align-items: flex-start;
    }

    #reviewDepartment {
        gap: 8px !important;
    }

    .all-review .nav-link {
        padding: 6px 12px;
    }

    .all-review-flex .card .review-text {
        font-size: 16px;
        line-height: normal;
    }
}