﻿.main-content-wrapper {
    margin-top: 20px;
}

.qanda-top-wrraper {
    display: flex;
    column-gap: 24px;
    margin-top: 20px;
}

.filter-header h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.qanda-field {
    padding: 10px;
}

    .qanda-field label {
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
    }

        .qanda-field label .qanda-require-icon {
            margin-left: 5px;
            color: #FF4301;
        }

.qanda-section {
    width: 100%;
}

.qanda-section-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.qanda-input-wrapper {
    position: relative;
    width: 100%;
    margin-top: 6px;
}

    .qanda-input-wrapper input {
        width: 100%;
        padding: 14px 45px 14px 16px;
        font-size: 16px;
        border: 2px solid #ccc;
        border-radius: 8px;
        outline: none;
        cursor: pointer;
        transition: all 0.25s ease;
        background-color: #fff;
    }

        .qanda-input-wrapper input::placeholder {
            color: #A0AEC0;
        }

        .qanda-input-wrapper input:hover {
            border-color: var(--color-primary);
        }

        .qanda-input-wrapper input:focus {
            border-color: var(--color-primary);
            /*box-shadow: 0 0 0 3px rgba(177, 0, 0, 0.15);*/
        }

.qanda-dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #555;
    pointer-events: none;
    transition: transform .2s ease;
}

.qanda-input-wrapper.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.qanda-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: none;
    z-index: 99;
}

    .qanda-dropdown li {
        padding: 12px 16px;
        cursor: pointer;
        transition: background 0.15s;
    }

        .qanda-dropdown li:hover {
            background: #f2f2f2;
        }

        .qanda-dropdown li.selected {
            background: var(--color-primary);
            color: white;
        }

.qanda-textarea {
    min-height: 140px;
    font-size: 16px;
    font-weight: 400;
    line-height: 162.023%;
}

.qanda-send {
    padding: 10px 28px;
    margin-left: 10px;
    margin-bottom: 10px;
    border: 1px solid #003B8E;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 162.023%;
    color: #003B8E;
    background-color: transparent;
    transition: all linear 0.2s;
}

    .qanda-send:hover {
        color: #fff;
        background-color: #003B8E;
    }

.search-bar {
    margin: 10px;
}

.search-group .search-bar {
    margin: 0;
}

.route {
    display: flex;
    padding: 20px 0 10px;
    column-gap: 4px;
    font-size: 16px;
    line-height: 24px;
}

.route-home {
    color: #718096;
}

.sidebar {
    flex: 1;
}

.filter-list {
    padding-bottom: 10px;
    /*border-bottom: 1px solid #E4E4E4;*/
}

.filter-group {
    overflow: initial;
}

.qanda-field {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.qanda-field-wrapper {
    display: flex;
    column-gap: 10px;
    padding: 0 10px 10px;
}

    .qanda-field-wrapper .qanda-section {
        margin: 0;
    }

.qanda-field-text {
    font-size: 14px;
    margin-left: 10px;
}

.qanda-field label,
.qanda-section {
    font-size: 14px;
    line-height: 20px;
}

.qanda-section-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.qanda-input-wrapper {
    position: relative;
    width: 100%;
    margin-top: 6px;
}

    .qanda-input-wrapper input {
        width: 100%;
        padding: 14px 45px 14px 16px;
        font-size: 16px;
        border: 2px solid #ccc;
        border-radius: 8px;
        outline: none;
        cursor: pointer;
        transition: all 0.25s ease;
        background-color: #fff;
    }

        .qanda-input-wrapper input:hover {
            border-color: var(--color-primary);
        }

        .qanda-input-wrapper input:focus {
            border-color: var(--color-primary);
            /*box-shadow: 0 0 0 3px rgba(177, 0, 0, 0.15);*/
        }

.qanda-dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.qanda-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: none;
    z-index: 99;
}

    .qanda-dropdown li {
        padding: 12px 16px;
        cursor: pointer;
        transition: background 0.15s;
    }

        .qanda-dropdown li:hover {
            background: #f2f2f2;
        }

        .qanda-dropdown li.selected {
            background: var(--color-primary);
            color: white;
        }

.see-more img {
    transform: rotate(360deg);
}

.qanda-header {
    display: flex;
    justify-content: space-between;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #fff;
}

.header-filter {
    display: flex;
    column-gap: 16px;
    align-items: center;
    margin: 10px 20px;
    font-size: 14px;
    font-weight: 400;
}

.header-filter-text {
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.header-select select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
}

.qanda-filter-section {
    width: 100%;
}

.qanda-section-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.qanda-filter-input-wrapper {
    position: relative;
    width: 100%;
    margin-top: 6px;
}

    .qanda-filter-input-wrapper input {
        width: 100%;
        padding: 10px 45px 10px 15px;
        font-size: 16px;
        border: 2px solid #ccc;
        border-radius: 8px;
        outline: none;
        cursor: pointer;
        transition: all 0.25s ease;
        background-color: #fff;
    }

        .qanda-filter-input-wrapper input:hover {
            border-color: var(--color-primary);
        }

        .qanda-filter-input-wrapper input:focus {
            border-color: var(--color-primary);
            /*box-shadow: 0 0 0 3px rgba(177, 0, 0, 0.15);*/
        }

.qanda-dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #555;
    pointer-events: none;
    transition: transform .2s ease;
}

.qanda-filter-input-wrapper.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.qanda-filter-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: none;
    z-index: 99;
}

    .qanda-filter-dropdown li {
        padding: 12px 16px;
        cursor: pointer;
        transition: background 0.15s;
    }

        .qanda-filter-dropdown li:hover {
            background: #f2f2f2;
        }

        .qanda-filter-dropdown li.selected {
            background: var(--color-primary);
            color: white;
        }

.qanda-wrraper {
    flex: 3;
}

.qanda-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
}

.qanda-content {
    border: 1px solid #E4E4E4;
    border-top-color: #003B8E;
    border-radius: 4px;
}

.qanda-card {
    display: flex;
    column-gap: 10px;
}

    .qanda-card:not(:last-child) {
        border-bottom: 1px solid #E4E4E4;
        padding-bottom: 20px;
    }

.qanda-card-join {
    padding-bottom: 0;
    border-bottom: none
}

.qanda-info {
    flex: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 10px;
    max-width: 100%;
}

.qanda-image-discussion {
    width: 150px;
    height: 100px;
}

    .qanda-image-discussion img {
        width: 100%;
        object-fit: cover;
        border-radius: 4px;
        height: 100%;
    }

.qanda-join {
    cursor: pointer;
    padding: 6px 20px;
    justify-content: start;
    align-items: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    color: #003B8E;
    background: rgba(2, 28, 93, 0.05);
}

    .qanda-join:hover {
        background: #003B8E;
        color: #fff;
    }

    .qanda-join img {
        width: 16px;
        height: 16px;
    }

.qanda-expert-list {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
    padding: 10px;
    /*border-bottom: 1px solid #E4E4E4;*/
}

.qanda-expert-item {
    display: flex;
    align-items: center;
    column-gap: 11px;
}

.qanda-expert-avatar {
    position: relative;
    width: 45px;
    height: 45px;
}

    .qanda-expert-avatar img:first-child {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .qanda-expert-avatar img:nth-child(2) {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 12px;
        height: 12px;
    }

.qanda-expert-info {
    display: flex;
    flex-direction: column;
    row-gap: 2px;
}

.qanda-expert-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: #2D3748;
}

.qanda-expert-level {
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
}

.qanda-expert-chat {
    cursor: pointer;
    display: flex;
    padding: 6px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 6px;
    background: #F0F3F8;
}

    .qanda-expert-chat img {
        width: 16px;
        height: 16px;
    }

.qanda-image {
    flex: 1;
    width: 156px;
    height: 100px;
}

    .qanda-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
    }

.qanda-rating {
    display: flex;
    align-items: center;
    column-gap: 4px;
}

.qanda-rating-text {
    color: #2D3748;
    font-size: 12px;
    line-height: 24px;
}

.qanda-title,
.qanda-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qanda-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.qanda-time {
    font-size: 14px;
    line-height: 20px;
}

.qanda-description {
    min-height: 40px;
    font-size: 14px;
    line-height: 20px;
}

.interact,
.interact-right,
.interact-left,
.interact-wrapper {
    display: flex;
    align-items: center;
}

.interact {
    justify-content: space-between;
    gap: 14px;
}

    .interact img {
        width: 18px;
        height: 18px;
    }

    .interact span {
        font-size: 14px;
        line-height: 20px;
        white-space: nowrap;
    }

.interact-left {
    column-gap: 16px;
}

.interact-wrapper,
.interact-right {
    column-gap: 4px;
}

input[type=checkbox] {
    opacity: 1;
    position: relative;
}

.custom-checkbox:checked::after {
    left: 5px;
    top: 2px;
}

#surveyDetailModal .modal-title {
    color: #000;
    text-align: justify;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.09px;
}

#surveyDetailModal .btn-close {
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    ;
    aspect-ratio: 1/1;
}

#surveyDetailModal #btn-start-exam {
    background-color: #003B8E !important;
    border-radius: 4px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-sm {
    max-width: 500px !important;
}

#surveyDetailModal #btn-start-exam:hover {
    background-color: #002a65 !important;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    min-height: 500px;
    background: #fff;
    border-radius: 8px;
    margin: 20px;
}

.empty-state-icon {
    margin-bottom: 32px;
    opacity: 0.6;
    animation: fadeIn 0.5s ease-in;
}

    .empty-state-icon svg {
        width: 120px;
        height: 120px;
    }

.empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.4;
}

.empty-state-message {
    font-size: 16px;
    color: #666;
    max-width: 480px;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
}

.qanda-captcha {
    display: flex;
    justify-content: center;
}

.dropdown.bootstrap-select {
    width: 100px !important;
}

    .dropdown.bootstrap-select .btn.show {
        background: white !important;
    }

.bootstrap-select .dropdown-toggle:focus {
    outline: none !important;
    box-shadow: none;
}

.bootstrap-select .dropdown-menu li {
    font-size: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 0.6;
        transform: translateY(0);
    }
}
/* ========== Responsive ========== */
@media only screen and (max-width: 1200.98px) {
    .qanda-captcha {
        justify-content: flex-start;
        padding-left: 10px;
    }
}

@media screen and (max-width: 990.98px) {
    .qanda-top-wrraper {
        column-gap: 8px;
    }

    .qanda-wrraper {
        flex: 2.5;
    }

    .sidebar {
        flex: 1.5;
    }

    .qanda-header {
        flex-direction: column;
    }

    .qanda-image {
        height: 75px;
    }
}

@media screen and (max-width: 767.98px) {
    .qanda-top-wrraper {
        flex-direction: column;
    }

    #partialListDiscussion .qanda-card {
        flex-direction: column;
    }

    .qanda-image-discussion {
        max-width: 100% !important;
        width: 100%;
        height: 295.58px;
    }

    .qanda-info {
        margin-top: 20px;
    }
}

@media only screen and (max-width: 750.98px) {
    .competition-header {
        flex-direction: column;
    }

    .empty-state {
        padding: 60px 20px;
        min-height: 400px;
    }

    .empty-state-icon svg {
        width: 100px;
        height: 100px;
    }

    .empty-state-title {
        font-size: 20px;
    }

    .empty-state-message {
        font-size: 14px;
    }
}

@media screen and (max-width: 572.98px) {
    .route {
        padding-left: 20px;
        padding-right: 20px;
    }

    .qanda-wrraper {
        margin-bottom: 20px;
    }

    .qanda-top-wrraper {
        flex-direction: column;
        padding: 20px;
        margin-top: 0;
    }

    .main-content-wrapper {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
    }

    .qanda-card {
        width: 100%;
    }

    .qanda-image-discussion {
        height: 200px;
    }

    .interact {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr 1fr;
    }
}
