.project_section {
    border-bottom: none;
}

/* 프로젝트 안내 문구 */
.project_notice {
    margin-top: 10px;
    margin-bottom: 28px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* 프로젝트 카드 그리드 */
.project_grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 1200px;
}

/* 프로젝트 카드 박스 */
.project_card {
    background: #fff;
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    border: 1px solid #e7eef7;
    width: 450px;
    height: 350px;
    position: relative;
}

/* 프로젝트 헤더 */
.project_header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.project_title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.project_period {
    font-size: 14px;
    color: #5f697b;
    margin-bottom: 10px;
}

/* 프로젝트 요약 */
.project_summary {
    font-size: 15px;
    line-height: 1.55;
    color: #444;
    margin-top: 30px;
}

/* 맡은 역할 */
.project_role {
    font-size: 14px;
    color: #5f697b;
    margin-top: 40px;
    text-align: left;
}


/* 링크 영역 */
.project_links {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 25px;
    transform: none;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
}

.project_link,
.project_img_btn {
    background: #e9f2ff;
    color: #3b6ab7;

    width: 100%;
    height: 36px;
    padding: 0px 12px;

    font-size: 16px;
    border-radius: 8px;
    font-weight: 550;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;

    transition: background 0.2s ease;
    white-space: nowrap;
}

.project_link:hover,
.project_img_btn:hover {
    background: #d8e7ff;
}

/* 이미지 버튼 */
.project_img_btn {
    border: none;
    cursor: pointer;
}

/* 폰트어썸 아이콘 */
.fa-project-icon {
    text-align: center;
    font-size: 18px;
    width: 20px;
    flex: 0 0 18px;
}

/* 모달 */
.project_modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* 반투명 블러 배경 */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 모달 보여질 때 */
.project_modal.show {
    display: flex;
    opacity: 1;
}

/* 모달 콘텐츠 박스 */
.project_modal_content {
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    padding: 28px 30px 40px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* 모달 콘텐츠 활성화 */
.project_modal.show .project_modal_content {
    transform: scale(1);
    opacity: 1;
}

/* 닫기 버튼 */
.project_modal_close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    transition: color 0.2s ease;
}

.project_modal_close:hover {
    color: #777;
}

/* 슬라이더 전체 영역 */
.slider_container {
    margin-top: 15px;
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

/* 이미지 리스트 */
.slider_images {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    display: none;
    transition: opacity 0.35s ease;
}

.slide.active {
    opacity: 1;
    display: block;
}

/* 화면 설명 */
.slide_description {
    margin-top: 12px;
    text-align: center;
    font-size: 16px;
    color: #444;
    font-weight: 400;
}

/* 페이지 버튼 */
.slide_pagination {
    position: static;
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    color: #333;
}

/* 숫자 */
.slide_pagination span {
    font-weight: 600;
}

/* 페이지 이동 버튼 */
.page_prev,
.page_next {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #444;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.page_prev:hover,
.page_next:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* 모달 반응형 */
@media (max-width: 600px) {

    /* 모달 여백 줄이기 */
    .project_modal {
        padding: 10px;
    }

    /* 모달 박스 */
    .project_modal_content {
        padding: 16px 18px 28px;
        max-width: 100%;
        border-radius: 12px;
    }

    /* 이미지 영역 */
    .slider_container {
        height: 260px;
        border-radius: 10px;
    }

    /* 설명 글씨 */
    .slide_description {
        font-size: 14px;
        margin-top: 10px;
        line-height: 1.4;
    }

    /* 페이지네이션 */
    .slide_pagination {
        font-size: 14px;
        gap: 10px;
        margin-top: 14px;
    }

    /* 화살표 버튼 크기 축소 */
    .page_prev,
    .page_next {
        font-size: 18px;
        padding: 2px 8px;
    }

    /* 닫기 버튼도 살짝 축소 및 여백 조정 */
    .project_modal_close {
        font-size: 22px;
        right: 15px;
        top: 8px;
    }
}

/* fade 애니메이션 */
/* Projects 기본 상태 */
.fade-project {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 1s ease-out,
        transform 1s ease-out;
}

/* 등장 */
.fade-project.show {
    opacity: 1;
    transform: translateY(0);
}


/* 반응형 */
/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    .project_grid {
        flex-wrap: wrap;
        gap: 24px;
        max-width: 90%;
    }

    .project_card {
        width: 360px;
        height: 300px;
        padding: 22px 24px;
    }

    .project_title {
        font-size: 20px;
    }

    .project_summary {
        font-size: 14px;
        margin-top: 32px;
    }

    .project_role {
        font-size: 13px;
        margin-top: 20px;
    }

    .project_link,
    .project_img_btn {
        font-size: 15px;
        height: 34px;
        padding: 0px 10px;
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .project_notice {
        font-size: 13px;
        margin-bottom: 20px;
        padding: 0 12px;
        /* mobile에서 양옆 여백 추가해 글자 안 붙게 */
    }

    .project_grid {
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
        width: 100%;
    }

    .project_card {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 20px 22px;
    }

    .project_header {
        margin-bottom: 16px;
    }

    .project_title {
        font-size: 18px;
    }

    .project_period {
        font-size: 13px;
    }

    .project_summary {
        margin-top: 20px;
        font-size: 14px;
        margin-bottom: 40px;
    }

    .project_role {
        font-size: 12px;
        margin-bottom: 30px;
        line-height: 1.5;
        padding-right: 6px;
    }

    .project_links {
        position: static;
        margin: 16px auto 0;

        width: 100%;
        max-width: 340px;

        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .project_link,
    .project_img_btn {
        width: 100%;
        min-width: 0;
        height: 32px;
        font-size: 13px;
        padding: 0 10px;
        gap: 4px;
        overflow: hidden;
    }

    .fa-project-icon {
        font-size: 14px;
        width: 14px;
        flex: 0 0 14px;
    }
}