﻿.main-content-wrapper {
    margin-top: 40px;
}

.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: #b10000;
}

.qanda-input-wrapper input:focus {
    border-color: #b10000;
    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: #b10000;
    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 #B60002;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 162.023%;
    color: #B60002;
    background-color: transparent;
    transition: all linear 0.2s;
}

.qanda-send:hover {
    color: #fff;
    background-color: #B60002;
}

.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: #b10000;
}

.qanda-input-wrapper input:focus {
    border-color: #b10000;
    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: #b10000;
    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;
}

.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: #b10000;
}

.qanda-filter-input-wrapper input:focus {
    border-color: #b10000;
    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: #b10000;
    color: white;
}

.qanda-wrraper {
    flex: 3;
}

.qanda-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
}

.qanda-content {
    border: 2px solid #E4E4E4;
    border-top-color: #B60002;
    border-radius: 4px;
}

.qanda-card {
    display: flex;
    column-gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E4E4E4;
}

.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;
}

.qanda-card-join .qanda-image {
    width: 80px;
}

.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: #B60002;
    background: rgba(182, 0, 2, 0.05);
}

.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;
}

.qanda-expert-avatar img:first-child {
    width: 100%;
}

.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;
}

.qanda-image img {
    width: 100%;
    object-fit: contain;
    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;
}

.interact img {
    width: 18px;
    height: 18px;
}

.interact span {
    font-size: 14px;
    line-height: 20px;
}

.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: 16px;
    height: 16px;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
}

#surveyDetailModal #btn-start-exam {
    background-color: #B60002;
    border-radius: 4px;
}

#surveyDetailModal #btn-start-exam:hover {
    background-color: #960700 !important;
}