/* /resource/www/css/notice/notice.css */

/* Notice specific styles */
.view-container {
    width: 100%;
}

.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-bar {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-bar .search-wrap-mobile {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-bar .search-select-wrapper {
    position: relative;
}

.search-bar select.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;
    font-size: 16px;
    height: 48px;
    cursor: pointer;
    min-width: 82px;
}

.search-bar .search-select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: url('../../images/common/icon-arrow-down.svg') no-repeat center center;
    pointer-events: none;
}

.search-bar .search-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #D4D4D4;
    border-radius: 6px;
    overflow: hidden;
    background-color: #FCFCFC;
    height: 48px;
    width: 300px;
}

.search-input-wrapper input.search-input {
    border: none;
    padding: 12px;
    font-size: 16px;
    flex-grow: 1;
    height: 100%;
    background: transparent;
    outline: none;
}

.search-input-wrapper .search-button {
    border: none;
    background: transparent;
    padding: 12px;
    cursor: pointer;
    height: 100%;
}

.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: #707070;
    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: 20px 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination a, .pagination strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
    color: #222222;
    border-radius: 999px;
    transition: background-color 0.2s;
    font-size: 18px;
    font-weight: 500;
}

.pagination a:hover {
    background-color: #EDEDED;
}

.pagination strong {
    font-weight: 700;
    color: #00754A;
}

.pagination a.page-arrow {
    border: 1px solid #D4D4D4;
}

.pagination .page-link {
	border-radius: 50% !important;
}
.pagination .active .page-link {
	background-color: #e6f1ee !important;
	border-color: #e6f1ee !important;
	color: #00754a !important;
	font-weight: 700;
}
.pagination .page-link {
	color: #222 !important;
	border: none;
}
.pagination .page-link:hover {
	background-color: #ededed !important;
}

.pagination .page-item:first-child,
    .pagination .page-item:last-child {
	display: none !important;
}

/* 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,
.event-card:focus-within {
    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: cover;
}

.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: invert(1) brightness(1.5);
    transform: translate(9px, 9px); /* Correct internal SVG offset */
}

.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: #1A76A8 /* 접근성: 대비 5.00:1 (기존 #2793C2 3.48:1) */;
    color: #FFFFFF;
}

.event-badge.status-ended {
    background-color: rgba(34, 34, 34, 0.5);
    color: #FFFFFF;
}

.event-badge.category {
    background-color: #178055 /* 접근성: 대비 4.94:1 (기존 #27C289 2.29:1) */;
    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: 576px) {
    .event-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .event-title {
        font-size: 18px;
        height: auto;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
}

/* Notice View Button Styles */
/* Button Section - redundant style moved to consolidated section below */

.btn-prev, .btn-next, .btn-list, .btn-disable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    min-width: 120px;
    transition: all 0.2s;
}

/* 접근성: 흰 글자 대비 4.5:1 이상 (기존 #27C289 2.29:1, #2793C2 3.48:1 → 미달) */
/* 이전글: 외곽선형(흰 배경 + 초록 테두리/글자)으로 다음글(초록 배경)과 구분
   - 테두리는 inset box-shadow로 그려 버튼 크기 변화 없음 */
.btn-prev { background-color: #fff; color: #00754A; box-shadow: inset 0 0 0 2px #00754A; }   /* 글자 5.76:1 */
.btn-prev:hover { background-color: #E8F5EF; color: #005A38; box-shadow: inset 0 0 0 2px #005A38; } /* 글자 7.44:1 */

.btn-next { background-color: #00754A; }                   /* 5.76:1 (기존 유지) */
.btn-next:hover { background-color: #005A38; }             /* 8.33:1 */

.btn-list { background-color: #1A76A8; }                   /* 5.00:1 */
.btn-list:hover { background-color: #145E8A; }             /* 7.01:1 */

.btn-disable {
    background-color: #EDEDED;
    color: #666666; /* 접근성: 배경 #EDEDED 대비 4.90:1 */
    cursor: not-allowed;
}

.btn-left {
    display: flex;
    gap: 8px;
}

.event-view-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    gap: 56px;
    padding: 32px;
    border-top: 1px solid #222;
    border-bottom: 1px solid #D9D9D9;
}

.btn-close-view {
    display: none; /* Hidden on desktop */
}

.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: #178055 /* 접근성: 대비 4.94:1 (기존 #27C289 2.29:1) */;
    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-value {
    font-size: 18px;
    font-weight: 400;
    color: #222;
    line-height: 26px;
    flex: 1;
}

.event-view-thumb {
    min-height: 0;
    min-width: 0;
    height: 100%;
    aspect-ratio: 1 / 1;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
}

.event-view-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    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 {
        /* Maintain equal height and square ratio on smaller viewports */
    }
}

@media (max-width: 1280px) {
    .notice-container {
        margin-top: 0;
        padding: 0;
    }

    .event-view-header {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin-top: 40px;
        gap: 32px;
        border: none;
        border-bottom: 1px solid #d9d9d9;
    }
    
    .event-view-thumb {
        position: relative;
        width: 100%;
        height: auto;
        order: 1;
    }

    .event-view-thumb img {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 0;
    }

    .btn-close-view {
        display: flex;
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 10;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 50%;
    }

    .event-view-info {
        order: 2;
        padding: 0 16px 16px 16px;
        gap: 16px;
    }
    
    .event-view-title {
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        color: #222;
        margin-bottom: 0px;
    }
    
    .event-detail-box {
        background-color: rgba(237, 237, 237, 0.6);
        border-radius: 16px;
        padding: 16px;
        gap: 8px;
    }

    .event-detail-box .detail-row {
        gap: 16px;
        align-items: center;
    }

    .event-detail-box .detail-label {
        background-color: #ededed;
        padding: 8px 10px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 4px;
        color: #222;
        min-width: unset;
        justify-content: center;
        line-height: 22px;
    }

    .event-detail-box .detail-label i {
        display: none; /* Hide icons on mobile for cleaner look as shown in image labels */
    }

    .event-detail-box .detail-value {
        font-size: 14px;
        color: #222;
        line-height: 22px;
        padding-top: 0;
    }

    .event-meta-top .event-badge.category {
        font-size: 14px;
        padding: 8px 10px;
        border-radius: 4px;
        font-weight: 500;
        line-height: 22px;
    }

    .event-meta-top .event-status {
        font-size: 14px;
        padding: 8px 10px;
        font-weight: 500;
        line-height: 22px;
        background-color: #FCFCFC;
        border-radius: 4px;
    }

    .view-content {
        padding: 24px 16px;
    }
}

/* Notice View Content Styles */
.view-header {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid #222;
    border-bottom: 1px solid #d9d9d9;
}
.view-header .view-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    color: #222;
}

.view-header .date {
    color: #707070;
    font-size: 18px;
    text-align: left;
}

.view-content {
    padding: 40px 32px;
    font-size: 20px;
    line-height: 30px;
    color: #222;
}

/* 에디터(p 태그 등)로 입력된 내용의 기본 여백 제거 */
.view-content p {
    margin: 0;
}

.view-content iframe {
    display: block;
}

.view-content img, .view-content iframe {
    max-width: 100%;
    border-radius: 16px;
}

.custom-fields {
    margin-top: 40px;
    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;
    background-color: rgba(237, 237, 237, 0.7);
}
.view-files .file-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #222;
}
.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;
    padding: 4px 0;
    color: #222;
    text-decoration: none;
}

.file-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background-color: #fcfcfc;
    border: 1px solid #d4d4d4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.file-icon img {
    width: 12px;
    height: 12px;
}

.file-download:last-child {
    border-bottom: none;
}

.file-download .file-name {
    font-size: 18px;
    font-weight: 400;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ico-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #e0e0e0 url('../../images/common/ico_download.png') no-repeat center;
    background-size: 16px;
    border-radius: 50%;
    text-indent: -9999px;
}

@media (max-width: 1280px) {
    .view-files {
        padding: 16px;
    }
    
    .view-files .file-header {
        font-size: 12px;
        color: #222;
        margin-bottom: 8px;
    }

    .file-download {
        justify-content: space-between;
    }

    .file-download .file-name {
        font-size: 12px;
    }
}

/* Consolidated Button Section */
.button-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding: 32px 0;
}

/* 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,
.event-card:focus-within .event-hover-overlay {
    opacity: 1;
}

.event-hover-overlay .event-badge {
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 999px;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.event-hover-overlay .event-badge.status-ongoing {
    background-color: #00754A;
}

.event-hover-overlay .event-badge.status-scheduled {
    background-color: #1A76A8 /* 접근성: 대비 5.00:1 (기존 #2793C2 3.48:1) */;
}

.event-hover-overlay .event-badge.status-ended {
    background-color: rgba(34, 34, 34, 0.8);
}

@media (max-width: 1280px) {
    .view-header {
        border-top: 0;
    }

    .tabs-section {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .notice-tabs {
        display: flex;
        gap: 8px;
        width: 100%;
    }
    
    .notice-tabs .tab-button {
        flex: 1;
        min-width: 0;
        padding: 14px 0;
        font-size: 15px;
    }
    
    .search-bar {
        width: 100%;
    }

    .search-wrap-mobile {
        display: flex;
        align-items: center;
        border: 1px solid #D4D4D4;
        border-radius: 6px;
        background-color: #FCFCFC;
        height: 44px;
        width: 100%;
        overflow: hidden;
    }

    .search-bar .search-select-wrapper {
        flex: 0 0 auto;
    }

    .search-bar select.search-select {
        border: none;
        border-right: 1px solid #D4D4D4;
        border-radius: 0;
        height: 100%;
        padding: 0 28px 0 12px;
        font-size: 14px;
        min-width: 70px;
        background-color: transparent;
    }

    .search-bar .search-select-wrapper::after {
        right: 8px;
        width: 16px;
        height: 16px;
        background-size: contain;
    }
    
    .search-input-wrapper {
        border: none;
        height: 100%;
        flex: 1;
    }

    .search-input-wrapper input.search-input {
        padding: 0 12px;
        font-size: 14px;
    }

    .search-input-wrapper .search-button {
        padding: 0 12px;
    }

    .search-input-wrapper .search-button img {
        width: 18px;
        height: 18px;
    }

    /* Board List Mobile Layout */
    .board-header {
        display: none;
    }

    .view-header .view-title {
        font-size: 16px;
        line-height: 1.5;
    }

    .view-header .date {
        font-size: 14px;
    }

    .view-content {
        padding: 24px 16px;
        font-size: 14px;
        line-height: 1.6;
    }

    .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: #707070;
        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: 32px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .btn-prev, .btn-next, .btn-list, .btn-disable {
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 999px;
        min-width: 75px;
        height: auto;
        line-height: normal;
    }

    .btn-left {
        display: flex;
        gap: 8px;
    }
    
    .btn-right {
        display: flex;
    }
}




