/* intro.css - 소개 페이지 전용 스타일 */

/* 메인 콘텐츠 래퍼 - 세로 정렬로 변경 */
.main-content-wrapper {
    display: flex;
    flex-direction: column; /* 세로 배치로 변경 */
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 60px;
    gap: 30px;
}

/* 컬럼 공통 스타일 */
.content-column, .activities-column {
    width: 100%; /* 부모 요소 내에서 전체 너비 사용 */
}

/* 첫 번째 컬럼 (위쪽) */
.content-column {
    margin-bottom: 30px;
}

/* 두 번째 컬럼 (아래쪽) */
.activities-column {
    min-width: auto; /* 최소 너비 제한 제거 */
}

/* 섹션 제목 통일 스타일 */
.section-title {
    color: var(--text-main);
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInDown 0.8s ease 0.4s forwards;
}

/* 컨테이너 공통 스타일 - 흰 배경 박스 */
.content-container, .activities-container {
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 80%; /* 다른 페이지와 동일한 너비 */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* 콘텐츠 컨테이너 입장 애니메이션 */
.content-container {
    animation: fadeInScale 0.8s ease-out forwards;
    transform-origin: center;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 콘텐츠 컨테이너 배경 장식 요소 */
.content-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 127, 42, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.content-container::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(35, 142, 150, 0.08);
    border-radius: 50%;
    z-index: 0;
}

/* 콘텐츠 텍스트 */
.content-text {
    padding: 0px 30px;
    text-align: center; /* 텍스트 중앙 정렬 */
    line-height: 1.5;
    position: relative;
    z-index: 1;
    /*background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 18.26l-7.053 3.948 1.575-7.928L.587 8.792l8.027-.952L12 .5l3.386 7.34 8.027.952-5.935 5.488 1.575 7.928z" fill="%23f9f9f9"/></svg>');*/
    background-size: 180px;
    background-repeat: no-repeat;
    background-position: center;
}

/* 텍스트 배경 효과 */
.text-box {
    /*padding: 15px;*/
    /*margin-bottom: 20px;*/
    position: relative;
    z-index: 2;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.content-text p {
    font-family: 'NanumSquare', 'Pretendard', 'Noto Sans KR', sans-serif;
    margin-bottom: 0;
    line-height: 1.8;
    font-size: 18px;
    color: var(--text-main);
    animation: fadeIn 0.5s ease forwards;
    animation-delay: calc(0.2s * var(--index, 1));
    opacity: 0;
}

/* 중요 텍스트 강조 스타일 */
.highlight {
    color: #238E96;
    font-weight: 600;
    display: inline-block;
    position: relative;
}

/* 중요 텍스트 밑줄 스타일 */
.highlight::after {
    /*content: '';*/
    /*position: absolute;*/
    /*bottom: 0;*/
    /*left: 0;*/
    /*width: 100%;*/
    /*height: 4px;*/
    /*background-color: rgba(35, 142, 150, 0.15);*/
    /*border-radius: 2px;*/
}

/* 활동 그리드 */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 25px;
}

/* 활동 박스 */
.activity-box {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.activity-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 127, 42, 0.3);
}

.activity-box:nth-child(1) {
    animation-delay: 0.3s;
}

.activity-box:nth-child(2) {
    animation-delay: 0.5s;
}

.activity-box:nth-child(3) {
    animation-delay: 0.7s;
}

.activity-box:nth-child(4) {
    animation-delay: 0.9s;
}

/* 활동 아이콘 */
.activity-icon {
    width: 100%;
    height: 110px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.activity-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 127, 42, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-box:hover .activity-icon::before {
    opacity: 1;
}

.activity-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.activity-box:hover .activity-icon img {
    transform: scale(1.1);
}

/* 활동 헤더 스타일 */
.activity-header {
    background-color: white;
    color: var(--text-main);
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #FF7F2A;
    border-top: 1px solid #FF7F2A;
    position: relative;
}

.activity-header::before,
.activity-header::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background-color: #FF7F2A;
    transition: all 0.3s ease;
}

.activity-header::before {
    top: -1px;
    left: 50%;
}

.activity-header::after {
    bottom: -1px;
    right: 50%;
}

.activity-box:hover .activity-header::before,
.activity-box:hover .activity-header::after {
    width: 100%;
    left: 0;
    right: 0;
}

.activity-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* 활동 리스트 */
.activity-list {
    list-style: none;
    padding: 15px 20px;
    margin: 0;
}

.activity-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-sub1);
    line-height: 1.4;
    transition: transform 0.2s ease, color 0.2s ease;
}

.activity-box:hover .activity-list li {
    color: var(--text-main);
}

.activity-list li:hover {
    transform: translateX(3px);
}

.activity-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 127, 42, 0.4);
    transition: background-color 0.2s ease;
}

.activity-box:hover .activity-list li::before {
    background-color: rgba(255, 127, 42, 0.8);
}

/* 반응형 조정 */
@media (max-width: 1024px) {
    .content-container, .activities-container {
        width: 90%;
    }

    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .content-container, .activities-container {
        width: 100%;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .content-text {
        padding: 30px 20px;
    }

    .content-text p {
        font-size: 16px;
    }

    .activity-icon {
        height: 100px;
    }

    .activity-icon img {
        width: 50px;
        height: 50px;
    }

    .activity-header h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .content-text {
        padding: 25px 15px;
    }

    .content-text p {
        font-size: 15px;
    }

    .activity-list li {
        font-size: 13px;
    }
}