/* uncrpd.css - UN장애인권리협약 페이지 전용 스타일 */

/* 메인 래퍼 */
.uncrpd-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* 컨테이너 */
.uncrpd-container {
    width: 85%;
    margin: 0 auto;
}

/* ===================== 27조 섹션 ===================== */
.article-section {
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 40px;
    overflow: hidden;
    animation: fadeIn 0.6s ease forwards;
}

.article-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px 30px;
    background-color: var(--main-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.article-header:hover {
    background-color: var(--sub-color);
}

.article-header h2 {
    flex: 1;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.toggle-btn.active {
    transform: rotate(180deg);
}

.toggle-icon {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* 27조 내용 */
.article-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 30px;
}

.article-content.show {
    max-height: 5000px;
    padding: 30px;
}

.article-paragraph {
    margin-bottom: 30px;
}

.article-paragraph h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 12px;
}

.article-paragraph p {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
}

/* 조항 항목 */
.article-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.article-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.article-item:hover {
    background-color: #f0f0f5;
}

.item-label {
    flex-shrink: 0;
    width: 28px;
    font-weight: 700;
    color: var(--main-color);
    font-size: 15px;
}

.article-item p {
    font-size: 14.5px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* ===================== CRPD 설명 섹션 ===================== */
.info-section {
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 40px;
    padding: 35px;
    animation: fadeIn 0.6s ease 0.3s forwards;
    opacity: 0;
}

.info-header {
    margin-bottom: 25px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--main-color);
}

.info-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-box {
    display: flex;
    gap: 18px;
    padding: 22px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.info-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-color);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
}

.info-text {
    flex: 1;
}

.info-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
}

.info-text p:last-child {
    margin-bottom: 0;
}

/* 툴팁 */
.tooltip {
    position: relative;
    color: var(--main-color);
    font-weight: 600;
    cursor: help;
    border-bottom: 2px dotted var(--main-color);
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ===================== 주요 권리 섹션 ===================== */
.rights-section {
    animation: fadeIn 0.6s ease 0.4s forwards;
    opacity: 0;
}

.rights-header {
    margin-bottom: 30px;
    text-align: center;
}

.rights-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* 평등권 (풀 너비 카드) */
.right-card-wide {
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-bottom: 25px;
}

.right-card-wide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background-color: #f5f3fa;
    border-bottom: 1px solid #e0e0e0;
}

.right-card-wide-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px;
}

.right-card-wide-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.right-detail-item {
    padding: 22px 25px;
    border-right: 1px solid #f0f0f0;
}

.right-detail-item:last-child {
    border-right: none;
}

.right-detail-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 10px;
}

.right-detail-item p {
    font-size: 14px;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

/* 권리 그리드 (2x2) */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

/* 권리 카드 */
.right-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
}

.right-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.right-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px;
}

.right-articles {
    display: inline-block;
    padding: 3px 10px;
    background-color: #f5f3fa;
    color: var(--main-color);
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 14px;
}

.right-card p {
    font-size: 14.5px;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

/* 전문 링크 박스 */
.rights-link-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.rights-link-box span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.link-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background-color: var(--main-color);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.link-btn-small:hover {
    background-color: var(--sub-color);
}

.arrow {
    font-size: 16px;
}

/* ===================== 애니메이션 ===================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== 반응형 ===================== */
@media (max-width: 1024px) {
    .uncrpd-container {
        width: 90%;
    }

    .right-card-wide-body {
        grid-template-columns: 1fr;
    }

    .right-detail-item {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .right-detail-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .uncrpd-wrapper {
        padding: 30px 15px 50px;
    }

    .uncrpd-container {
        width: 95%;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }

    .article-header {
        padding: 18px 20px;
    }

    .article-header h2 {
        font-size: 18px;
    }

    .article-content.show {
        padding: 20px;
    }

    .article-item {
        flex-direction: column;
        gap: 8px;
    }

    .item-label {
        width: auto;
    }

    .info-section {
        padding: 25px 20px;
    }

    .info-header h2 {
        font-size: 20px;
    }

    .info-box {
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    .info-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .info-text p {
        font-size: 14px;
    }

    .rights-header h2 {
        font-size: 20px;
    }

    .right-card-wide-header {
        padding: 18px 20px;
    }

    .right-card-wide-header h3 {
        font-size: 18px;
    }

    .right-detail-item {
        padding: 18px 20px;
    }

    .right-card {
        padding: 20px;
    }

    .right-card h3 {
        font-size: 18px;
    }

    .rights-link-box {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    .rights-link-box span {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .article-header h2 {
        font-size: 16px;
    }

    .article-paragraph h3 {
        font-size: 16px;
    }

    .article-paragraph p,
    .article-item p {
        font-size: 14px;
    }

    .info-header h2 {
        font-size: 18px;
    }

    .info-text p {
        font-size: 13px;
    }

    .rights-header h2 {
        font-size: 18px;
    }

    .right-card h3 {
        font-size: 17px;
    }

    .right-card p,
    .right-detail-item p {
        font-size: 13px;
    }

    .tooltip-text {
        white-space: normal;
        width: 250px;
        font-size: 12px;
    }

    .link-btn-small {
        font-size: 13px;
        padding: 8px 18px;
    }
}
