/* activity-common.css - 모든 활동 페이지 공통 스타일 통합본 */

/* 기본 래퍼 및 컨테이너 */
.pcs-wrapper,
.humanities-wrapper,
.ils-wrapper,
.community-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.pcs-container,
.humanities-container,
.ils-container,
.community-container {
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    width: 80%;
    margin: 0 auto;
}

/* 섹션 타이틀 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    color: var(--main-color);
    margin-bottom: 10px;
}

.section-description {
    font-size: 16px;
    color: var(--text-sub1);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 프로그램/카테고리 아이템 스타일 */
.pcs-programs,
.humanities-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.program-item,
.category-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.program-item:hover,
.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--main-color);
}

.program-icon,
.category-icon {
    margin-bottom: 20px;
    color: var(--main-color);
}

.program-content h3,
.category-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

.program-content p,
.category-item p {
    font-size: 14px;
    color: var(--text-sub1);
    line-height: 1.6;
}

/* 과목 카드 스타일 (자립지원용) */
.ils-subjects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.subject-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.subject-icon {
    text-align: center;
    margin-bottom: 20px;
    color: var(--main-color);
}

.subject-card h3 {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0;
}

.subject-info h4 {
    font-size: 16px;
    color: var(--main-color);
    margin-bottom: 10px;
}

.subject-info ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.subject-info ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-sub1);
    line-height: 1.5;
}

.subject-info ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-weight: bold;
}

/* 타임라인 스타일 (공동체활동용) */
.activity-timeline {
    position: relative;
    margin: 30px 0 60px;
    padding-left: 50px;
}

.activity-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background-color: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.timeline-item.animated {
    opacity: 1;
    transform: translateX(0);
}

.timeline-icon {
    position: absolute;
    left: -50px;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--main-color);
    z-index: 1;
    color: var(--main-color);
}

.timeline-content {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: var(--main-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-sub1);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.timeline-image {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.05);
}

/* 갤러리 스타일 */
.pcs-gallery,
.humanities-gallery,
.ils-gallery,
.cm-gallery-section {
    margin-bottom: 50px;
}

.gallery-title,
.section-subtitle h3,
.benefit-title {
    text-align: center;
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 8px;
}

.gallery-title:after,
.section-subtitle h3:after,
.benefit-title:after,
.cm-gallery-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 10px;
    background-color: #fff;
    font-size: 13px;
    color: var(--text-sub1);
    text-align: center;
}

/* 커뮤니티 페이지 갤러리 슬라이더 스타일 */
.gallery-slider {
    margin: 0 -10px;
    display: flex;
    flex-wrap: wrap;
}

.slider-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 슬릭 슬라이더 커스텀 스타일 */
.slick-initialized .slider-item {
    flex: none;
    max-width: none;
    margin-bottom: 0;
}

.slick-prev, .slick-next {
    z-index: 1;
    width: 40px;
    height: 40px;
}

.slick-prev {
    left: -15px;
}

.slick-next {
    right: -15px;
}

.slick-prev:before, .slick-next:before {
    color: var(--main-color);
    font-size: 24px;
}

.slick-dots li button:before {
    color: var(--main-color);
}

.slick-dots li.slick-active button:before {
    color: var(--main-color);
}

/* 혜택 아이템 스타일 (동료상담용) */
.pcs-benefit {
    margin-top: 50px;
}

.benefit-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.benefit-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-item:hover {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.benefit-icon {
    color: var(--main-color);
}

.ils-benefits .benefit-icon {
    margin-right: 15px;
}

.pcs-benefit .benefit-icon {
    margin-bottom: 15px;
}

.benefit-item h4 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 14px;
    color: var(--text-sub1);
    line-height: 1.6;
}

/* 자립지원 혜택 스타일 */
.ils-benefits h3 {
    text-align: center;
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 10px;
}

.ils-benefits h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.benefits-grid .benefit-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.benefit-text h4 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.benefit-text p {
    font-size: 14px;
    color: var(--text-sub1);
    line-height: 1.6;
    margin: 0;
}

/* 공동체 가치 섹션 스타일 */
.community-values {
    margin-top: 60px;
}

.values-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.value-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.value-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.value-item:hover {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.value-icon {
    margin-bottom: 15px;
    color: var(--main-color);
}

.value-item h4 {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 10px;
}

.value-item p {
    color: var(--text-sub1);
    font-size: 14px;
    line-height: 1.6;
}

/* 후기 섹션 스타일 (권익옹호용) */
.testimonial-section {
    margin-top: 50px;
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    position: relative;
}

.testimonial:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 60px;
    color: rgba(255, 127, 42, 0.1);
    font-family: Georgia, serif;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-size: 15px;
    color: var(--text-sub1);
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    margin-top: 15px;
    text-align: right;
    font-weight: 600;
    color: var(--main-color);
}

/* 애니메이션 클래스 */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 필터링 트랜지션 */
.hide {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
    position: absolute;
    z-index: -1;
}

.show {
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

/* 이미지 모달 스타일 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    max-width: 80%;
    max-height: 80%;
}

.modal-image {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 10px 0;
    font-size: 1rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--main-color);
    text-decoration: none;
    cursor: pointer;
}

/* 슬라이더 내 제목과 부제목 스타일 */
.slider-content {
    position: absolute;
    bottom: 15px;
    /*left: 0;*/
    width: 93%;
    padding: 15px;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    transform: none;
}

.slider-content.left {
    text-align: left;
}

.slider-content.right {
    text-align: right;
}

.slider-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
}

.slider-content p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* 슬라이더 이미지 스타일 개선 */
.slider-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding: 0 10px;
}

.slider-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slider-item:hover img {
    transform: scale(1.05);
}

.program-icon,
.category-icon,
.service-icon {
    font-size: 3rem; /* 48px */
    margin-bottom: 20px;
    text-align: center;
}


/* 반응형 조정 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }

    .close-modal {
        top: 10px;
        right: 25px;
        font-size: 30px;
    }

    .slider-content {
        padding: 10px;
    }

    .slider-content h3 {
        font-size: 1rem;
    }

    .slider-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .close-modal {
        top: 5px;
        right: 15px;
        font-size: 24px;
    }
}

/* 반응형 스타일 */
@media (max-width: 1024px) {
    .pcs-container,
    .humanities-container,
    .ils-container,
    .community-container {
        width: 90%;
        padding: 30px;
    }

    .pcs-programs,
    .humanities-categories,
    .ils-subjects {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-container,
    .benefit-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 768px) {
    .pcs-container,
    .humanities-container,
    .ils-container,
    .community-container {
        width: 100%;
        padding: 25px;
    }

    .pcs-programs,
    .humanities-categories,
    .ils-subjects,
    .values-container,
    .benefits-grid,
    .benefit-container,
    .testimonial-container {
        grid-template-columns: 1fr;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .activity-timeline {
        padding-left: 40px;
    }

    .timeline-icon {
        left: -40px;
        width: 40px;
        height: 40px;
    }

    .activity-timeline:before {
        left: 20px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 18px;
    }

    .timeline-content p {
        font-size: 14px;
    }

    .slider-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 24px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .activity-timeline {
        padding-left: 30px;
    }

    .timeline-icon {
        left: -30px;
        width: 30px;
        height: 30px;
    }

    .activity-timeline:before {
        left: 15px;
    }

    .slider-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .program-item,
    .category-item,
    .subject-card {
        padding: 20px;
    }

    .benefit-item {
        flex-direction: column;
    }

    .benefit-icon {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
        width: 100%;
    }
}