/* /resource/www/css/notice/notice.css */

/* Notice specific styles */
.notice-container {
    width: 100%;
    max-width: 1440px;
    margin: 120px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-sizing: border-box;
}

@media (max-width: 1280px) {
    .notice-container {
        margin-top: 40px;
    }
}

.tabs-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.notice-tabs {
    display: flex;
    gap: 16px;
}

.notice-tabs .tab-button {
    padding: 10px 12px;
    min-width: 200px;
    border: none;
    border-radius: 999px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    justify-content: center;
}

.notice-tabs .tab-button.active {
    background-color: #00754A;
    color: #FFFFFF;
}

.notice-tabs .tab-button:not(.active) {
    background-color: #EDEDED;
    color: #222222;
}

.search-area {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 12px 36px 12px 12px;
    border: 1px solid #D4D4D4;
    border-radius: 6px;
    background-color: #FCFCFC;
    color: #222222;
    background-image: url('/resource/www/images/common/icon-arrow-down.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 22px;
    font-size: 16px;
    height: 48px;
    cursor: pointer;
    min-width: 82px;
}

.search-select option {
    color: #222222;
    background-color: #ffffff;
}

.search-input-box {
    position: relative;
    width: 300px;
    height: 48px;
}

.search-input-box input {
    width: 100%;
    height: 100%;
    border: 1px solid #D4D4D4;
    border-radius: 6px;
    background-color: #FCFCFC;
    padding: 12px 40px 12px 12px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}

.search-input-box .search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.search-input-box .search-btn img {
    width: 22px;
    height: 22px;
}

.board-section {
    width: 100%;
}

.board-header {
    background-color: rgba(237, 237, 237, 0.6);
    border-top: 1px solid #222;
    border-bottom: 1px solid #D9D9D9;
    display: flex;
    align-items: center;
    height: 60px;
}

.header-item {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    text-align: center;
    line-height: 30px;
}

.board-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #D4D4D4;
}

.cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-no { flex: 0 0 142px; width: 142px; }
.col-info { flex: 0 0 180px; width: 180px; }
.col-title { flex: 1 1 0; min-width: 0; padding: 0; justify-content: flex-start; }
.col-attach { flex: 0 0 142px; width: 142px; }

.cell-no-text {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    line-height: 26px;
}

.cell-title {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 32px;
}

.cell-title a {
    flex: 1 1 0;
    min-width: 0;
    font-size: 20px;
    font-weight: 500;
    color: #222;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 30px;
    text-decoration: none;
}

.cell-title a:hover {
    text-decoration: underline;
}

.post-date {
    font-size: 16px;
    font-weight: 400;
    color: #A1A1A1;
    text-align: right;
    line-height: 24px;
    flex-shrink: 0;
}

.ico-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: #00754A;
    border-radius: 50%;
}

.ico-pin img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.ico-attach {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: #EDEDED;
    border-radius: 50%;
}

.ico-attach img {
    width: 20px;
    height: 20px;
}

@media (max-width: 1280px) {
    .board-header {
        display: none;
    }
    
    .col-no { flex: 0 0 50px; width: 50px; }
    .col-info { display: none; }
    .col-attach { flex: 0 0 24px; width: 24px; margin-left: auto; }
    
    .board-row {
        padding: 16px 0;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cell-no-text {
        font-size: 14px;
        line-height: 22px;
        width: 100%;
    }

    .cell.col-title {
        align-items: flex-start;
    }
    
    .cell-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .cell-title a {
        font-size: 16px;
        line-height: 24px;
        white-space: pre-wrap;
    }

    .post-date {
        font-size: 12px;
        line-height: 20px;
        text-align: left;
    }

    .ico-pin, .ico-attach {
        width: 24px;
        height: 24px;
    }

    .ico-pin img, .ico-attach img {
        width: 12px;
        height: 12px;
    }
}

.pagination-section {
    display: flex;
    justify-content: center;
    padding: 60px 0 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination .page-item {
    display: flex;
}

/* Grouping arrows: first two and last two touch (gap 0) */
.pagination .page-item:nth-child(1) {
    margin-right: -8px;
}
.pagination .page-item:nth-last-child(1) {
    margin-left: -8px;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #222 !important;
    text-decoration: none;
    border: none;
    background-color: transparent;
    border-radius: 999px;
    transition: all 0.2s;
    line-height: 1;
}

/* For arrow buttons, keep them square 40x40 */
.pagination .page-item:nth-child(1) .page-link,
.pagination .page-item:nth-child(2) .page-link,
.pagination .page-item:nth-last-child(1) .page-link,
.pagination .page-item:nth-last-child(2) .page-link {
    padding: 0;
    width: 40px;
}

.pagination .page-link:hover {
    background-color: #EDEDED;
}

.pagination .page-item.active .page-link {
    color: #00754A !important;
    font-weight: 700;
    background-color: transparent !important;
}

.pagination .page-item.active .page-link:hover {
    background-color: transparent;
}

/* Arrow Icons Styling */
.pagination .page-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-style: normal;
}

.pagination .page-link i::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Use double chevron icons for first/last */
.pagination .ri-arrow-left-double-line::before {
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 17L6 12L11 7' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M18 17L13 12L18 7' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Use single chevron icons for prev/next */
.pagination .ri-arrow-left-s-line::before {
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 18L9 12L15 6' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pagination .ri-arrow-right-s-line::before {
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 18L15 12L9 6' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pagination .ri-arrow-right-double-line::before {
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 17L18 12L13 7' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6 17L11 12L6 7' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Disabled & Active Hover Overrides */
.pagination .page-item.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Event Type Grid Styles */
.board-section.event-type {
    border-top: none;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.event-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #EDEDED;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.event-thumb {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #F7F7F7;
    overflow: hidden;
}

.event-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-thumb .pin-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background-color: #00754A;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-badge .pin-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.event-info {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    background-color: #EDEDED;
}

.event-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

/* margin-left removed for period to sit next to category */

.event-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.event-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.event-badge.status-ongoing {
    background-color: #00754A;
    color: #FFFFFF;
}

.event-badge.status-scheduled {
    background-color: #2793C2;
    color: #FFFFFF;
}

.event-badge.status-ended {
    background-color: rgba(34, 34, 34, 0.5);
    color: #FFFFFF;
}

.event-badge.category {
    background-color: #27C289;
    color: #FFFFFF;
}

.event-title {
    font-size: 20px;
    font-weight: 700;
    color: #222222;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 제목은 1줄로 제한 */
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
}

.event-desc {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 내용은 2줄로 제한 */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 52px; /* 1.6 * 16 * 2 approx */
}

.event-period {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333333;
    padding: 6px 12px;
    border: 1px solid #E5E5E5;
    background-color: #FFFFFF;
    border-radius: 4px;
}

.event-period i {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1200px) {
    .event-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 1280px) {
    .event-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .event-card {
        background-color: #f7f7f7;
        border-radius: 16px;
        overflow: hidden;
        border: none;
        box-shadow: none;
    }

    .event-card:hover {
        transform: none;
        box-shadow: none;
    }

    .event-thumb {
        border-radius: 16px 16px 0 0;
        padding-top: 75%; /* 4:3 Aspect Ratio */
    }

    .event-thumb .pin-badge {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        background-color: #00754a;
    }

    .pin-badge .pin-icon {
        width: 18px;
        height: 18px;
    }

    .event-info {
        padding: 20px 16px;
        background-color: transparent;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .event-meta {
        margin-bottom: 0;
        gap: 8px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .event-badge.category {
        display: inline-block;
        background-color: #27C289;
        color: #fff;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 500;
        line-height: normal;
    }

    .event-period {
        display: flex;
        align-items: center;
        padding: 5px 10px;
        background-color: #fff;
        border-radius: 4px;
        border: 1px solid #f0f0f0;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        font-size: 14px;
        color: #333;
        gap: 6px;
    }

    .event-period svg {
        width: 14px;
        height: 14px;
    }

    .event-period svg path {
        stroke: #999;
    }

    .event-period .period-text {
        color: #333;
        font-weight: 500;
    }

    .event-desc {
        font-size: 16px;
        font-weight: 500;
        color: #222;
        line-height: 1.5;
        max-height: 3em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-top: 0;
    }

    .event-hover-overlay,
    .event-card:hover .event-hover-overlay,
    .event-card:active .event-hover-overlay {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* Notice View Button Styles */
.btn-prev, .btn-next, .btn-list, .btn-disable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-prev {
    background-color: #27C289;
    color: #fff;
}
.btn-prev:hover {
    background-color: #1F9C6D;
}

.btn-next {
    background-color: #00754A;
    color: #fff;
}
.btn-next:hover {
    background-color: #005A38;
}

.btn-disable {
    background-color: #EDEDED;
    color: #999;
    cursor: default;
}
.btn-disable:hover {
    background-color: #EDEDED;
}

.btn-list {
    background-color: #2793C2;
    color: #fff;
}
.btn-list:hover {
    background-color: #1F759A;
}

.btn-left {
    display: flex;
    gap: 8px;
}

/* Event View Header Styles - Figma Design Tokens */
.event-view-header {
    display: flex;
    align-items: center;
    gap: 56px;
    padding: 32px;
    border-top: 1px solid #222;
}

.event-view-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-meta-top .event-badge.category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #27C289;
    color: #FCFCFC;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 14px;
    border-radius: 4px;
    line-height: 26px;
}

.event-meta-top .event-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FCFCFC;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.event-view-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    color: #222;
    margin: 0;
    word-break: keep-all;
}

.event-detail-box {
    background-color: rgba(237, 237, 237, 0.6);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-detail-box .detail-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.event-detail-box .detail-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #EDEDED;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    color: #222;
    gap: 4px;
    white-space: nowrap;
    line-height: 26px;
}

.event-detail-box .detail-label i {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.event-detail-box .detail-label i.ico-host,
.event-detail-box .detail-label i.ico-organizer {
    background-image: url('../../images/common/ico_theater.svg');
}

.event-detail-box .detail-label i.ico-location {
    background-image: url('../../images/common/ico_map_pin.svg');
}

.event-detail-box .detail-label i.ico-period {
    background-image: url('../../images/common/ico_calendar.svg');
}

.event-detail-box .detail-value {
    font-size: 18px;
    font-weight: 400;
    color: #222;
    line-height: 26px;
    flex: 1;
}

.event-view-thumb {
    width: 348px;
    height: 348px;
    flex-shrink: 0;
}

.event-view-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

.event-status {
    font-weight: 500;
}

.event-status.status-scheduled {
    color: #2793C2;
}

.event-status.status-ongoing {
    color: #00754A;
}

.event-status.status-ended {
    color: #FF2056;
}

@media (max-width: 1200px) {
    .event-view-header {
        gap: 32px;
    }
    .event-view-thumb {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 1280px) {
    .event-view-header {
        flex-direction: column-reverse;
        padding: 24px 16px;
        gap: 20px;
    }
    
    .event-view-thumb {
        width: 100%;
        height: auto;
    }

    .event-view-thumb img {
        height: auto;
        aspect-ratio: 1/1;
    }
    
    .event-view-title {
        font-size: 20px;
        line-height: 30px;
    }
    
    .event-detail-box {
        padding: 16px;
        gap: 12px;
    }
    
    .event-detail-box .detail-row {
        gap: 12px;
    }

    .event-detail-box .detail-label {
        padding: 8px 10px;
        font-size: 14px;
        line-height: 22px;
    }

    .event-detail-box .detail-label i {
        width: 18px;
        height: 18px;
    }

    .event-detail-box .detail-value {
        font-size: 14px;
        line-height: 22px;
    }

    .event-meta-top .event-badge.category {
        font-size: 14px;
        padding: 8px 10px;
        line-height: 22px;
    }

    .event-meta-top .event-status {
        font-size: 14px;
        padding: 6px 8px;
    }
}

/* Notice View Content Styles */
.view-header {
    padding: 32px 0;
    border-top: 1px solid #222;
}
.view-header .view-title {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 700;
}
.view-header .date {
    color: #A1A1A1;
    font-size: 16px;
}
.view-content {
    padding: 40px 32px;
    border-top: 1px solid #d4d4d4;
}

.custom-fields {
    margin-top: 40px;
    border-top: 1px solid #EDEDED;
    padding-top: 20px;
}
.custom-fields table {
    width: 100%;
    border-collapse: collapse;
}
.custom-fields tr {
    border-bottom: 1px solid #F7F7F7;
}
.custom-fields th {
    width: 150px;
    text-align: left;
    padding: 12px;
    background-color: #F9F9F9;
    font-weight: 600;
}
.custom-fields td {
    padding: 12px;
}

/* Notice View Files Styles */
.view-files {
    padding: 16px 32px;
    background-color: #F7F7F7;
    border-top: 1px solid #d4d4d4;
    border-bottom: 1px solid #d4d4d4;
}
.view-files .file-header {
    font-weight: 700;
    margin-bottom: 12px;
}
.view-files .file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.file-download {
    display: flex;
    align-items: center;
    gap: 32px;
    color: #222;
    text-decoration: none;
}
.file-download:hover {
    text-decoration: underline;
}
.ico-download {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('/resource/www/images/common/ico_download.png') no-repeat center;
    text-indent: -9999px;
}

/* Notice View Button Section */
.button-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

/* Event Card Hover Overlay */
.event-thumb {
    position: relative;
    overflow: hidden;
}

.event-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.event-card:hover .event-hover-overlay {
    opacity: 1;
}

.event-hover-overlay .event-badge {
    padding: 14px 44px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 999px;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.event-hover-overlay .event-badge.status-ongoing {
    background-color: #00754A;
    border: none;
}

.event-hover-overlay .event-badge.status-scheduled {
    background-color: #2793C2;
    border: none;
}

.event-hover-overlay .event-badge.status-ended {
    background-color: transparent;
    border: 1px solid #FFFFFF;
}

/* FAQ 게시판 전용 스타일 - 아코디언 레이아웃 */

/* FAQ 컨테이너 오버라이드 */
.notice-container.faq-type {
    gap: 24px;
}

/* FAQ 탭 스타일 */
.notice-tabs.faq-tabs {
    flex-wrap: wrap;
}

/* FAQ 보드 섹션 */
.board-section.faq-type {
    border-top: none;
}

/* FAQ 아코디언 */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* FAQ 빈 상태 */
.faq-empty {
    text-align: center;
    padding: 100px 0;
    color: #999;
    font-size: 18px;
}



/* FAQ 헤더 (질문 버튼) */
.faq-header {
    width: 100%;
    padding: 28px 24px;
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    background: #fff;
    cursor: pointer;
    text-align: left;
    border: none;
    outline: none;
    transition: background 0.2s ease;
    gap: 16px;
    font-family: 'Pretendard', sans-serif;
}

.faq-header:hover {
    background: #FAFAFA;
}

.faq-question-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Q 번호 */
.faq-number {
    font-size: 32px;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 60px;
    font-family: 'Ria Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* 질문 텍스트 */
.faq-question {
    font-size: 24px;
    font-weight: 500;
    color: #222;
    flex: 1;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 화살표 아이콘 */
.faq-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    transition: transform 0.3s ease;
    background-color: #EDEDED;
    border-radius: 20px;
}

.faq-arrow svg {
    display: block;
}

/* 활성화 상태 */
.faq-item.active .faq-header {
    background: #EDEDED;
    border-radius: 20px 20px 0 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

/* 답변 콘텐츠 영역 */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-item.active .faq-content {
    max-height: 5000px;
    transition: max-height 0.6s ease-in;
}

/* 답변 내부 */
.faq-answer {
    padding: 32px 24px 32px 100px;
    font-size: 18px;
    color: #444;
    line-height: 1.8;
    background: #F8F8F8;
    border-top: 1px solid #EDEDED;
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.faq-answer p {
    margin: 0 0 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer img {
    max-width: 100%;
    height: auto;
}

/* ============================
   모바일 반응형 (768px 이하)
   ============================ */
@media (max-width: 1280px) {
    .notice-container {
        gap: 24px;
        margin-top: 32px;
    }

    .tabs-section {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .notice-tabs {
        display: flex;
        gap: 16px;
        width: 100%;
    }
    
    .notice-tabs .tab-button {
        flex: 1;
        min-width: 0;
        padding: 8px 10px;
        font-size: 14px;
        line-height: 22px;
        font-weight: 500;
    }
    
    .search-area {
        width: 100%;
        display: flex;
        gap: 6px;
        height: auto;
        align-items: center;
        box-sizing: border-box;
    }

    .search-select {
        width: 82px;
        height: 48px;
        background-color: #FCFCFC;
        border: 1px solid #D4D4D4;
        border-radius: 8px;
        padding: 0 24px 0 10px;
        font-size: 14px;
        background-image: url('/resource/www/images/common/icon-arrow-down.svg');
        background-repeat: no-repeat;
        background-position: right 8px center;
        background-size: 12px;
        appearance: none;
        -webkit-appearance: none;
        flex: 0 0 auto;
    }

    .search-input-box {
        flex: 1;
        height: 48px;
        background-color: #FCFCFC;
        border: 1px solid #D4D4D4;
        border-radius: 8px;
        position: relative;
    }

    .search-input-box input {
        border: none;
        padding: 0 40px 0 12px;
        font-size: 14px;
        width: 100% !important;
        height: 100%;
        box-sizing: border-box;
        background: transparent;
    }

    .search-input-box .search-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        padding: 0;
        display: flex;
        align-items: center;
    }
    
    .search-input-box .search-btn img {
        width: 18px;
        height: 18px;
    }

    /* Board List Mobile Layout */
    .board-header {
        display: none;
    }

    .board-row {
        padding: 16px 0;
        gap: 12px;
        align-items: flex-start; /* Title is topmost, so start from flex-start */
        flex-direction: row;
        border-bottom: 1px solid #D4D4D4;
    }

    .col-no {
        flex: 0 0 34px;
        width: 34px;
        display: flex;
        justify-content: center;
        padding-top: 4px; /* Adjusting for baseline with title */
    }

    .cell-no-text {
        font-size: 14px;
        color: #666;
        text-align: center;
        width: 100%;
    }

    .ico-pin {
        width: 34px;
        height: 34px;
    }

    .ico-pin img {
        width: 18px;
        height: 18px;
    }

    .col-info {
        display: none;
    }

    .cell.col-title {
        flex: 1;
        min-width: 0;
        align-items: flex-start;
        justify-content: flex-start;
        display: block; /* Ensure title wrap correctly */
    }

    .cell-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
    }

    .cell-title a {
        display: block;
        flex: none; /* Crucial: prevent vertical collapse in column flex */
        font-size: 16px;
        font-weight: 500;
        color: #222;
        line-height: 1.4;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        text-align: left;
        width: 100%;
        margin-bottom: 2px;
    }

    .post-date {
        display: block;
        font-size: 13px;
        color: #A1A1A1;
        text-align: left;
        line-height: 1;
    }

    .col-attach {
        flex: 0 0 34px;
        width: 34px;
        display: flex;
        justify-content: flex-end;
        margin-left: 0;
    }

    .ico-attach {
        width: 34px;
        height: 34px;
        background-color: transparent;
        border-radius: 50%;
    }

    .ico-attach img {
        width: 20px;
        height: 20px;
        opacity: 0.6;
    }
    .button-section {
        margin-top: 32px;
        padding: 0;
        border-top: 1px solid #EDEDED;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .btn-prev, .btn-next, .btn-list, .btn-disable {
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 999px;
        min-width: 43px;
        height: auto;
        line-height: normal;
    }

    .btn-left {
        display: flex;
        gap: 8px;
    }
    
    .btn-right {
        display: flex;
    }

    .notice-container.faq-type {
        gap: 16px;
    }

    .notice-tabs.faq-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .notice-tabs.faq-tabs::-webkit-scrollbar {
        display: none;
    }

    .notice-tabs.faq-tabs .tab-button {
        flex: 0 0 auto;
        min-width: unset;
        padding: 8px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    .faq-header {
        padding: 20px 16px;
        gap: 12px;
    }

    .faq-number {
        font-size: 18px;
        min-width: 40px;
    }

    .faq-question {
        font-size: 15px;
        line-height: 1.5;
    }

    .faq-arrow {
        width: 24px;
        height: 24px;
    }

    .faq-answer {
        padding: 24px 16px 24px 68px;
        font-size: 14px;
        line-height: 1.7;
    }

    .faq-empty {
        padding: 60px 0;
        font-size: 16px;
    }
}

/* 매우 작은 화면 (480px 이하) */
@media (max-width: 480px) {
    .faq-answer {
        padding: 20px 16px;
    }

    .faq-number {
        font-size: 16px;
        min-width: 36px;
    }

    .faq-question {
        font-size: 14px;
    }
}