/* 공지/FAQ 공통 카드형 스타일 */
body {
    background: #f8fafc;
}
.main-content {
    padding-top: 80px;
    min-height: 100vh;
}
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
}
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,600 1000,1000"/></svg>');
    background-size: cover;
}
.page-header > * {
    position: relative;
    z-index: 2;
}
.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.page-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
}
.notice-wrapper, .faq-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 425px;
}
.notice-list, .faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}
.notice-item, .faq-item {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.notice-item:hover, .faq-item:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.2);
}
.notice-item-header, .faq-item-header {
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
}
.notice-item-header:hover, .faq-item-header:hover {
    background: #f8fafc;
}
.notice-item-header.active, .faq-item-header.active {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom-color: #3b82f6;
}
.notice-item-header::after, .faq-item-header::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #64748b;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}
.notice-item-header.active::after, .faq-item-header.active::after {
    transform: translateY(-50%) rotate(180deg);
    color: #3b82f6;
}
.notice-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
    min-width: 0;
}
.notice-number, .faq-q {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}
.faq-q { margin-right: 1.2rem; }

.faq-answer-wrapper {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.faq-a {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    flex: 1;
    min-width: 0;
}
.notice-title, .faq-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
    display: flex;
    align-items: center;
}
.notice-date {
    color: #1E293B;
    font-size: 0.95rem;
    /*background: #f1f5f9;
    padding: 0.3rem 0.8rem;*/
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
    margin-right: 2.5rem;
    min-width: 100px;
    height: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notice-content, .faq-content {
    padding: 1.2rem 2rem;
    color: #374151;
    line-height: 1.8;
    display: none;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    font-size: 0.95rem;
}
.notice-content.active, .faq-content.active {
    display: block;
    animation: slideDown 0.4s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}
.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.pagination a {
    color: #64748b;
    background: white;
    border: 1px solid #e2e8f0;
}
.pagination a:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
.pagination .current {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
}
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 6rem auto;
    padding: 4rem 3rem;
    min-height: 300px;
}
.empty-state h3 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}
.empty-state p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.6;
}
/* 768px 이하 모바일 스타일 개선 */
@media (max-width: 768px) {
    .container {
        padding: 3rem 1rem 1rem;
    }
    .page-title {
        font-size: 1.8rem;
    }
    .page-subtitle {
        font-size: 0.9rem;
    }
    .notice-item-header, .faq-item-header {
        padding: 1.2rem 1.5rem;
        flex-wrap: wrap;
        gap: 0.8rem;
        min-height: 70px;
    }
    .notice-info {
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }
    .notice-number, .faq-q, .faq-a {
        min-width: 40px;
        height: 28px;
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    .notice-title, .faq-title {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        font-size: 0.9rem;
    }
    .notice-date {
        margin-right: 2rem;
        min-width: 80px;
        height: 28px;
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    .notice-content, .faq-content {
        padding: 1.5rem 1.5rem;
        font-size: 0.9rem;
    }
    .faq-answer-wrapper {
        gap: 1rem;
    }
    .faq-answer {
        font-size: 0.9rem;
    }
    .notice-item-header::after, .faq-item-header::after {
        right: 1rem;
    }
    .pagination {
        margin-top: 3rem;
        margin-bottom: 1rem;
    }
    .empty-state {
        max-width: 90%;
        margin: 4rem auto;
        padding: 3rem 2rem;
        min-height: 250px;
    }
    .empty-state h3 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    .empty-state p {
        font-size: 1rem;
    }
}

/* 480px 이하 작은 모바일 스타일 개선 */
@media (max-width: 480px) {
    .container {
        padding: 2rem 0.3rem 1rem;
    }
    .page-header {
        padding: 1rem 0.5rem;
        border-radius: 14px;
        margin-bottom: 1.2rem;
    }
    .page-title {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }
    .page-subtitle {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    .notice-wrapper, .faq-wrapper {
        gap: 0.5rem;
    }
    .notice-list, .faq-list {
        gap: 0.5rem;
    }
    .notice-item, .faq-item {
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.07);
        margin: 0 0.2rem;
    }
    .notice-item-header, .faq-item-header {
        padding: 1rem;
        min-height: 80px;
        gap: 0.5rem;
    }
    .notice-number, .faq-q, .faq-a {
        min-width: 32px;
        height: 24px;
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        border-radius: 8px;
    }
    .notice-title, .faq-title {
        font-size: 0.85rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: normal;
        margin-right: 0.3rem;
    }
    .notice-date {
        min-width: 60px;
        height: 24px;
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
        border-radius: 7px;
        margin-right: 1.2rem;
    }
    .notice-item-header::after, .faq-item-header::after {
        right: 0.7rem;
        font-size: 0.7rem;
    }
    .notice-content, .faq-content {
        padding: 1rem 1rem;
        font-size: 0.82rem;
    }
    .faq-answer-wrapper {
        gap: 0.8rem;
        flex-direction: row;
        align-items: flex-start;
    }
    .faq-answer {
        font-size: 0.82rem;
        line-height: 1.5;
    }
    .pagination {
        margin-top: 2rem;
        margin-bottom: 0.5rem;
        gap: 0.2rem;
    }
    .pagination a, .pagination span {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        border-radius: 7px;
    }
    .empty-state {
        max-width: 95%;
        margin: 3rem auto;
        padding: 2.5rem 1.5rem;
        min-height: 200px;
    }
    .empty-state h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    .empty-state p {
        font-size: 0.9rem;
    }
}
