/* 공지/FAQ 공통 카드형 스타일 */
body {
    background: #f8fafc;
}

/*.container {*/
/*    max-width: 1440px;*/
/*    margin: 0 auto;*/
/*    padding: 1rem 2rem 2rem;*/
/*    min-height: calc(100vh - 160px);*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0;
    background: linear-gradient(135deg, #666, #000);
    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: 0 !important;
    flex: 1;
    /*border-top: 2px solid #e2e6ee;*/
    /*border-bottom: 2px solid #000;*/
}
.notice-item, .faq-item {
    background: white;
    transition: 0.5s;
    cursor: pointer;
    border-bottom: 1px solid #eceded;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}


.notice-item-header, .faq-item-header {
    transition: all 0.3s ease;
    position: relative;
    background: var(--white);
    padding: 2rem 2rem;
    display: flex;
    gap: 2.5rem;
    align-items: start;
}
.faq-item-header {
    align-items: center;
}
.notice-date , .notice-date{
    transition: all 0.3s ease;

}
.notice-title,
.faq-title{
    color: var(--black);
}
/*공지 타이틀 호버*/
.notice-item-header:hover .notice-title , .faq-item-header:hover .faq-title{
    color:#4f8aff;
}

/*공지 타이틀 액티브*/
.notice-item-header.active .notice-title,
.faq-item-header.active .faq-title {
    color: #4f8aff;
}
.notice-title, .faq-title {
    font-size: clamp(0.85rem, 3vw, 1.15rem);
    font-weight: 500;
    transition: 0.5s;
    margin-right: 2rem;
}

/* 화살표 hover*/
.notice-item-header:hover::after,
.faq-item-header:hover::after {
    background-color: #f6f8fa;
    color: #334155;
    transform: translateY(-55%) scale(1);
}

/* 화살표 active */
.notice-item-header.active::after,
.faq-item-header.active::after {
    background-color: #ffffff;
    color: #4f8aff;
    transform: translateY(-55%) rotate(180deg) scale(1.05);
}
.notice-item-header::after, .faq-item-header::after {
    content: "\f078"; /* chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    border-radius: 999px;
    background: transparent;
    transition:
            transform .25s cubic-bezier(.4,0,.2,1),
            background-color .25s ease,
            color .25s ease;
}

.notice-info {
    align-items: center;
    gap: 1.2rem;
    flex: 1;
    min-width: 0;
    transition: 0.5s;
}

.notice-number, .faq-q {
    /*display: inline-flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    /*width: clamp(28px, 5vw, 45px);*/
    /*aspect-ratio: 1 / 1;*/
    /*font-size: clamp(0.85rem, 2.5vw, 1.2rem);*/
    /*font-weight: 700;*/
    /*color: #2563eb;*/
    /*background-color: #eff6ff;*/
    /*border-radius: 8px;*/
    /*flex-shrink: 0;*/
}
.faq-q,
.faq-a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(28px, 5vw, 40px);
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    flex-shrink: 0;
}
.faq-q{
    background-color: #e7efff;
}
.faq-a{
    background-color: #3b78ff;
}
.faq-q svg {
    width: 65%;
    height: 65%;
    fill: #2563eb;
}
.faq-a svg {
    width: 60%;
    height: 60%;
    fill: #fff;
}

.faq-answer-wrapper {
    display: flex;
    align-items: start;
    gap: 2.5rem;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    flex: 1;
    min-width: 0;
}

.notice-date1 {
    color: #1E293B;
    font-size: 0.95rem;
    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-date {
    font-size: clamp(0.86rem, 2.4vw, 0.95rem);
    color: #9ca3af;
    /*color: #1E293B;*/
    /*font-size: 0.95rem;*/
    /*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: var(--black);
    line-height: 1.8;
    display: none;
    background: #f2f6ff;
    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) {
.page-header {
        padding: 0rem 0rem;
        border-radius: 14px;
        margin-bottom: 1.2rem;
    }
    .container {
        /*padding: 1rem 1rem 1rem;*/
    }
    .page-title {
        font-size: 1rem;
    }
    .page-subtitle {
        font-size: 0.7rem;
    }
    .notice-item-header, .faq-item-header {
        /*padding: 1rem 1rem;*/
        /*flex-wrap: wrap;*/
        gap: 1.5rem;
        /*min-height: 30px;*/
    }
    .notice-info {
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }
    .notice-number, .faq-q, .faq-a {
        /*min-width: 40px;*/
        /*height: 18px;*/
        /*font-size: 0.9rem;*/
        /*padding: 0.3rem 0.3rem;*/
    }
    /*.notice-title, .faq-title {*/
    /*    white-space: normal;*/
    /*    overflow: visible;*/
    /*    text-overflow: unset;*/
    /*    font-size: 0.9rem;*/
    /*}*/
    .notice-date1 {
        margin-right: 2rem;
        min-width: 80px;
        height: 28px;
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
	/*.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: 1.5rem;
    }
    .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 1rem;

    }
    .page-header {
        padding: 0rem 0rem;
        border-radius: 14px;
        margin-bottom: 1.2rem;
    }
    .page-title {
        font-size: 1rem;
        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;
        gap: 1rem;
    }
    .notice-number, .faq-q, .faq-a {
        /*min-width: 32px;*/
        /*height: 24px;*/
        /*font-size: 0.9rem;*/
        /*padding: 0.2rem 0.2rem;*/
        /*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-date1 {
        min-width: 60px;
        height: 24px;
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
        border-radius: 7px;
        margin-right: 1.2rem;
    }
    /*.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: 1rem;
        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;
    }
}
