/* 상단 비주얼 */
.portfolio-visual {
    width: 100%;
    background: #070F3B;
    position: relative;
}

.visual-inner {
    margin: 0 auto;
    position: relative;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.visual-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: url('../img/visual-bg.png') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

.visual-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    margin-top: 80px;
}

.visual-text h1 {
    font-size: 35px;
    font-weight: 800;
    margin-bottom: 15px;
}

.visual-text img {
    width: 55px;
}

.visual-text p {
    font-size: 16px;
    font-weight: 300;
    margin-top: 15px;
}

/* 카테고리 탭 */
.portfolio-tabs {
    width: 100%;
    text-align: center;
    margin: 60px 0;
}

.portfolio-tabs .tab {
    background: #F5F5F5;
    border: none;
    color: #666;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    transition: 0.15s;
}

.portfolio-tabs .tab:hover {
    background: #070F3B;
    color: #fff;
    transition: background 0.16s, color 0.16s;
}

.portfolio-tabs .tab.active {
    background: #070F3B;
    color: #fff;
}

/* 포트폴리오 그리드 */
.portfolio-list-wrap {
    padding: 0 20px 100px 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.portfolio-card {
    background: #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.portfolio-card:hover {
    box-shadow: 0 12px 36px 0 rgba(35, 50, 90, 0.16),
        0 2px 12px 0 rgba(90, 110, 140, 0.13);
    transform: translateY(-7px) scale(1.03);
    transition: box-shadow 0.25s, transform 0.2s;
}

.portfolio-card-img {
    height: 220px;
}

.portfolio-card-img2 {
    width: 220px;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
}

.portfolio-card2 img {
    width: 100%;
    height: 100%;
}

.portfolio-card.main {
    background: #232b42;
    color: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 18px 18px 23px;
    box-shadow: 0 2px 14px rgba(22, 28, 50, 0.18);
}

.portfolio-card .main-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 9px;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.portfolio-card .main-title span {
    display: inline-block;
    font-weight: 500;
    font-size: 15px;
    color: #6bd2ff;
    margin-top: 4px;
}

.portfolio-card .main-desc {
    font-size: 13px;
    font-weight: 400;
    color: #c3e3ff;
    margin-bottom: 3px;
}

/* 오버레이 기본 숨김 */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.85);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
    text-align: center;
    padding: 0 14px;
}

/* 마우스 오버시 보이기 */
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* 오버레이 텍스트 스타일 */
.overlay-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 12px;
}

.overlay-desc {
    font-size: 1em;
    font-weight: 300;
    white-space: pre-line;
}


/* 서비스 페이지 스타일 */
/* 서비스 카드 영역 */
.service-cards-section {
    background: #f7f9fb;
    padding: 65px 0 70px 0;
    text-align: center;
}

.service-main-title {
    font-size: 28px;
    color: #0B294E;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}

.service-sub-title {
    font-size: 18px;
    color: #0B294E;
    font-weight: 500;
    margin-bottom: 36px;
    line-height: 2;
}

.service-sub-title span {
    display: inline-block;
    font-size: 25px;
    font-weight: 700;
    color: #0B294E;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin: 0 auto;
    max-width: 900px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(22, 36, 75, 0.10);
    padding: 32px 28px 30px 28px;
    width: 265px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.16s;
}

.service-card:hover {
    box-shadow: 0 8px 32px rgba(22, 36, 75, 0.18);
}

.service-card-icon img {
    height: 70px;
    margin-bottom: 20px;
}

.service-card-title {
    font-size: 18px;
    color: #000;
    font-weight: 700;
    margin-bottom: 13px;
}

.service-card-desc {
    color: #4C4C4C;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

.workflow-process-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #EDEDED;
    border-radius: 0 0 100% 100%;
    padding: 70px 20px 100px 20px;
    text-align: center;
    margin-bottom: 100px;

}

.workflow-title {
    font-size: 28px;
    color: #0B294E;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.workflow-subtitle {
    color: #555;
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 48px;
}

.workflow-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.workflow-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    margin-bottom: 0;
}

.workflow-row.center {
    justify-content: center !important;
    width: 100%;
}

.workflow-arrow-col {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 78px;
    width: 100%;
}

.workflow-arrow-col>div {
    width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-arrow-col .arrow-bottom img {
    display: block;
    margin: 0 auto;
    margin-top: 0;
    height: 30px;
}


.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
}

.workflow-icon {
    background: #0B294E;
    border-radius: 50%;
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 10px;
    font-size: 15px;
    font-weight: 400;
}

.workflow-icon img {
    width: 50px;
    height: 45px;
    object-fit: contain;
}

/* 
.workflow-label {
    color: #1a233a;
    font-size: 1em;
    font-weight: 600;
    margin-top: 3px;
} */

.workflow-arrow img {
    width: 30px;
}

.pagination {
    margin: 50px auto 20px;
    text-align: center;
}

.pagination button {
    margin: 0 5px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
}

.pagination button.active {
    background: #0C1536;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
}

.pagination button:hover {
    background: #0C1536;
    color: #fff;
}

/************************************************************************
* 모바일 버전 출력 *
************************************************************************/
@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px 5px;
        width: 100%;
        padding: 0 20px;
    }

    .portfolio-list-wrap {
        padding: 15px 0 100px 0;
    }

    .portfolio-card .portfolio-card-img {
        width: 70%;
    }

    .portfolio-card .portfolio-card-img2 {
        width: 80%;
    }

    /* 서비스 페이지 스타일 */
    .service-cards {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .service-card {
        width: 90%;
        max-width: 340px;
    }

    .service-cards-section {
        padding: 40px 0 50px 0;
    }

    .workflow-grid {
        gap: 15px;
    }

    .workflow-step {
        width: 85px;
    }

    .workflow-arrow-col>div {
        width: 85px;
    }

    .workflow-icon img {
        width: 33px;
        height: 33px;
    }
}


@media (max-width: 768px) {
    .portfolio-tabs {
        margin: 40px 0;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px 5px;
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 680px) {
    .workflow-process-section {
        padding: 60px 20px 100px 20px;
    }

    .workflow-row {
        gap: 15px;
    }

    .workflow-icon {
        width: 80px;
        height: 80px;
    }

    .workflow-icon img {
        width: 28px;
        height: 28px;
    }

    .workflow-arrow-col>div {
        width: 70px;
    }

    .workflow-subtitle {
        margin-bottom: 35px;
    }
}

@media (max-width: 600px) {
    .portfolio-card .portfolio-card-img {
        width: 30%;
    }

    .workflow-title {
        font-size: 25px;
    }

    .workflow-subtitle {
        font-size: 14px;
    }

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

    .visual-inner {
        height: 80%;
    }

    .visual-text {
        margin: 50px 20px 30px 20px;
    }

    .visual-text h1 {
        margin-bottom: 10px;
    }

    .visual-text p {
        margin-top: 10px;
        font-size: 13px;
    }

    .portfolio-tabs {
        margin: 25px 0;
    }

    .service-main-title {
        font-size: 20px;
        letter-spacing: 0;
    }

    .service-sub-title {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .service-sub-title span {
        font-size: 20px;
    }

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

    .workflow-arrow img {
        width: 23px;
    }

    .workflow-arrow-col .arrow-bottom img {
        height: 23px;
    }

    .workflow-row {
        gap: 10px;
    }

    .workflow-grid {
        gap: 10px;
    }

    .workflow-arrow-col>div {
        width: 50px;
    }

    .workflow-icon {
        gap: 5px;
    }

}

@media (max-width: 500px) {
    .workflow-subtitle {
        margin-bottom: 25px;
    }

    .workflow-icon {
        width: 63px;
        height: 63px;
        font-size: 10px;
    }

    .workflow-icon img {
        width: 26px;
        height: 26px;
    }

    .workflow-arrow img {
        width: 15px;
    }

    .workflow-arrow-col .arrow-bottom img {
        height: 15px;
    }

    .workflow-arrow-col>div {
        width: 20px;
    }

    .workflow-row {
        gap: 0;
    }

    .workflow-process-section {
        padding: 50px 20px 80px 20px;
    }

@media (max-width: 430px) {
    .portfolio-card .portfolio-card-img {
        width: 45%;
    }
}

}