@charset "utf-8";

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.view-fixed-btns {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 9999;
}

.view-fixed-btns .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: #111;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.25s;
}

.view-fixed-btns .btn:hover {
    background: #333;
}

.hero-title-wrap {
    margin: 80px 0 140px;
}

.hero-title-wrap .hero-title {
    margin-bottom: 0;
}

.hero-title-wrap .inner {
    max-width: 1660px;
    margin: 0 auto;
}

.hero-title-wrap .hero-title h1 {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.hero-title-wrap .hero-title h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.4;
    margin: 24px 0;
}

.hero-title-wrap .hero-title p {
    font-size: 17px;
    line-height: 1.6;
    color: #333;
    margin-top: 20px;
    word-break: keep-all;
}

.hero-title-wrap .hero-title {
    text-align: center;
    padding: 0 20px;
}

.hero-title-wrap .hero-title .textflow {
    text-align: center;
    display: block;
    line-height: 1.4;
}

.hero-title-wrap .hero-title .textflow .tx {
    display: inline-block;
    vertical-align: baseline;
    white-space: pre;
    color: #bbb;
    opacity: .6;
    transition: color 0.6s, opacity 0.6s;
}

.hero-title-wrap .hero-title .textflow .hl-tx {
    color: #bbb;
}

.hero-title-wrap .main-sec-title p {
    font-size: 18px;
    color: #555;
    margin-top: 20px;
    line-height: 1.6;
}

.portfolio-list-wrap .subnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.portfolio-list-wrap .subnav ul {
    display: flex;
    justify-content: center;
    gap: 48px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.portfolio-list-wrap .subnav a {
    display: inline-block;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #999;
    border-radius: 30px;
    transition: all 0.25s ease;
}

.portfolio-list-wrap .subnav a:hover {
    color: #111;
}

.portfolio-list-wrap .subnav a.active,
.portfolio-list-wrap .subnav a[aria-current="page"] {
    background: #111;
    color: #fff;
}

.portfolio-list-wrap .sub-top {
    width: 100%;
    text-align: center;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(../images/mkt-sub-top-bg.jpg);
}

.portfolio-list-wrap .sub-top .inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-list-wrap .sub-top-title {
    font-size: var(--h2-title);
    font-weight: 700;
    line-height: 1.4;
    color: #222;
    margin-bottom: 24px;
    word-break: keep-all;
}

.portfolio-list-wrap .sub-top-desc {
    font-size: var(--h2-desc);
    color: #555;
    line-height: 1.6;
    word-break: keep-all;
}

.register-wrap {
    max-width: 720px;
    margin: 60px auto;
    padding: 0 20px 80px;
    font-family: 'Pretendard', sans-serif;
    color: #111;
    background: #fff;
}

.register-wrap h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left;
}

.register-wrap form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.register-wrap label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.register-wrap input[type="text"],
.register-wrap textarea,
.register-wrap select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}

.register-wrap textarea {
    resize: vertical;
    min-height: 120px;
}

.register-wrap input[type="file"] {
    padding: 12px 0;
    font-size: 14px;
}

.register-wrap .btn-submit {
    display: block;
    width: 100%;
    padding: 16px 0;
    background: #111;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
    transition: 0.25s ease;
}

.register-wrap .btn-submit:hover {
    background: #333;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .register-wrap {
        padding: 0 16px 60px;
    }

    .register-wrap h1 {
        font-size: 24px;
        margin-bottom: 28px;
    }
}


/* ================================
   Portfolio List
   ================================ */
.portfolio-list-wrap {

    padding: 120px 20px 80px;
}

.portfolio-list-wrap .title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* ===== GRID ===== */
.portfolio-list-wrap .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    max-width: 1280px;
    margin: 60px auto 0;
}

/* ===== CARD ===== */
.portfolio-list-wrap .card {
    display: block;
    text-decoration: none;
}

/* 썸네일 이미지 */
.portfolio-list-wrap .card .thumb {
    width: 100%;
    padding-bottom: 75%;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.portfolio-list-wrap .card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s ease;
}

.portfolio-list-wrap .card:hover .thumb img {
    transform: scale(1.06);
}

/* NO IMAGE */
.portfolio-list-wrap .card .thumb .noimg {
    width: 100%;
    height: 100%;
    background: #ddd;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== INFO TEXT ===== */
.portfolio-list-wrap .thumb .info {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 1;
    flex-direction: column;
    display: flex;
    gap: 6px;
}

.portfolio-list-wrap .thumb:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.2) 0%, rgba(17, 17, 17, 0) 100%);
}

.portfolio-list-wrap .thumb .info .df {
    display: flex;
}

.portfolio-list-wrap .df .year::after {
    content: "·";
    margin: 0 4px;
    color: #fff;
    opacity: 0.9;
    font-weight: 400;
}

.portfolio-list-wrap .thumb .client {
    font-size: 20px;
    font-weight: 600;
    color: #fff;

}

.portfolio-list-wrap .thumb .industry {
    font-size: 15px;
    color: #fff;
}

.portfolio-list-wrap .thumb .year {
    font-size: 14px;
    color: #fff;
}

/* ===== PAGINATION ===== */
.portfolio-list-wrap .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.portfolio-list-wrap .pagination a {
    padding: 8px 14px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.portfolio-list-wrap .pagination .on {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .portfolio-list-wrap .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-list-wrap .grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .portfolio-list-wrap .title {
        font-size: 28px;
    }
}


/* ===== 전체 레이아웃 ===== */
.pf-view {
    display: flex;
    width: 100%;
    background: #f7f7f7;
}

/* ===== 좌측 히어로 ===== */
.pf-view .left {
    width: 65%;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    color: #fff;
}

.pf-view .left .hero {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    padding: 80px 70px;
    box-sizing: border-box;
}

/* 상단 메타 */
.pf-view .left .top-meta {
    display: flex;
    gap: 100px;
    position: relative;
    z-index: 2;
}

.pf-view .left .meta-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-view .left .meta-box .label {
    font-size: 14px;
    opacity: 0.7;
    font-weight: 600;
}

.pf-view .left .meta-box .value {
    font-size: 15px;
    font-weight: 600;
}

.pf-view .left .hero-title {
    position: absolute;
    top: 50%;
    left: 70px;
    /* 기존 padding 유지 */
    transform: translateY(-50%);
    z-index: 3;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 600px;
}

/* ===== 우측 영역 ===== */
.pf-view .right {
    width: 50%;
    padding: 80px 80px;
    background: #fff;
    box-sizing: border-box;
}

/* SEO H1 */
.pf-view .seo-h1 {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}

/* SEO H2 */
.pf-view .seo-h2 {
    font-size: 18px;
    font-weight: 500;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Tags */
.pf-view .tags {
    margin-bottom: 20px;
}

.pf-view .tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    background: #eef6ff;
    border: 1px solid #d6e7ff;
    border-radius: 4px;
    color: #0a4cb8;
    margin-right: 6px;
}


/* Overview */
.pf-view .right section.overview {
    margin-bottom: 70px;
}

.pf-view .right section.overview h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 22px;
}

.pf-view .right .desc {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 60px;
}

.pf-view .right .desc p {
    margin-bottom: 60px;
    line-height: 1.9;
    word-break: keep-all;
}

.pf-view .right .desc.first p {
    margin-bottom: 32px;
}

.pf-view .right .desc.first {
    margin-bottom: 32px;
}

.pf-view .right .desc .detail-img-wrap img {
    width: 100%;
        border-radius: 6px;
    border: 2px solid #eee;
}

/* Visit Button */
.pf-view .visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 15px;
    color: #111;
    text-decoration: none;
    transition: 0.2s;
    margin-bottom: 60px;
}

.pf-view .visit-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* 상세 이미지 영역 */
.pf-view section.detail-images {
    margin-top: 40px;
}

.pf-view section.detail-images h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
}

.pf-view .detail-images .img-row {
    margin-bottom: 45px;
}

.pf-view .detail-images .img-row img {
    width: 100%;
    border-radius: 6px;
    display: block;
border: 2px solid #eee;
}

/* 상세 이미지 없음 */
.pf-view .noimg {
    padding: 20px 0;
    color: #888;
    font-size: 14px;
}

.admin-wrap h1 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.admin-wrap .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.admin-wrap .top-bar .left {
    display: flex;
    gap: 10px;
}

.admin-wrap input[type=text],
.admin-wrap select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.admin-wrap button,
.admin-wrap .btns {
    background: #111;
    color: #fff;
    border-radius: 6px;
    padding: 8px 14px;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.admin-wrap .btn-add {
    background: #007bff;
}

.admin-wrap table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.admin-wrap table th,
.admin-wrap table td {
    border-bottom: 1px solid #eee;
    padding: 14px 12px;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
}

.admin-wrap table th {
    background: #fafafa;
    font-weight: 600;
}

.admin-wrap .actions a {
    margin-right: 8px;
    color: #007bff;
    text-decoration: none;
}

.admin-wrap .actions a.delete {
    color: #dd3333;
}

.admin-wrap .empty-row {
    padding: 30px 0;
    text-align: center;
    color: #777;
}

.edit-wrap {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    font-family: Pretendard, sans-serif;
}

.edit-wrap h1 {
    font-size: 28px;
    margin-bottom: 30px;
}

.edit-wrap form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.edit-wrap .row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-wrap .row.two {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.edit-wrap label {
    font-size: 14px;
    font-weight: 600;
}

.edit-wrap input[type="text"],
.edit-wrap textarea,
.edit-wrap input[type="file"] {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.edit-wrap textarea {
    resize: vertical;
}

.edit-wrap .preview {
    width: 240px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.edit-wrap .preview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edit-wrap .btn-submit {
    margin-top: 30px;
    padding: 14px;
    font-size: 16px;
    background: #111;
    color: #fff;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
}


.related-wrap {
    margin-top: 80px;
    padding: 0 0 60px;
}

.related-wrap .rw-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.related-wrap .rw-head h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.related-wrap .rw-head .more {
    font-size: 14px;
    color: #777;
    text-decoration: none;
    transition: 0.25s;
}

.related-wrap .rw-head .more:hover {
    color: #111;
}

.related-wrap .rw-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.related-wrap .rw-item {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    text-decoration: none;
}

.related-wrap .rw-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.related-wrap .rw-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f8f8f8;
    overflow: hidden;
}

.related-wrap .rw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* ⭐ 최상단 기준으로 썸네일 정렬 */
    transition: 0.4s;
}

.related-wrap .rw-item:hover .rw-thumb img {
    transform: scale(1.05);
}

.related-wrap .rw-info {
    padding: 14px 16px 18px;
}

.related-wrap .rw-cat {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: #5b76ff;
    margin-bottom: 6px;
}

.related-wrap .rw-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #111;
}

.pf-view .pf-navi {
    display: flex;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-top: 120px;
}

.pf-view .pf-navi .nav-item {
    flex: 1;
    display: flex;
    /* ← 추가 */
    align-items: center;
    /* ← 세로 중앙 정렬 */
    justify-content: center;
    /* ← 가로 중앙 정렬 */
    padding: 40px 0;
    font-size: 15px;
    letter-spacing: 1px;
    color: #ccc;
    border-right: 1px solid #eee;
    text-align: center;
}

.pf-view .pf-navi .nav-item:last-child {
    border-right: 0;
}

.pf-view .pf-navi .nav-item a {
    color: #bbb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pf-view .pf-navi .nav-item .arrow {
    font-size: 18px;
}

.pf-view .pf-navi .nav-item.list .menu-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.pf-view .pf-navi .nav-item.list .menu-icon span {
    width: 20px;
    height: 2px;
    background: #696969;
    display: block;
}

.pf-view .pf-navi .nav-item .disabled {
    opacity: .3;
    pointer-events: none;
}

@media (max-width:1400px) {
    .pf-view .left {
        width: 50%;
    }

    .pf-view .right {
        padding: 60px;
    }

    .pf-view .left .top-meta {
        gap: 60px;
    }
}

@media (max-width:1200px) {
    .pf-view {
        flex-direction: column;
        margin-top: 60px;
    }

    .pf-view .left,
    .pf-view .right {
        width: 100%;
    }

    .pf-view .left {
        position: relative;
        height: 400px;
    }
}

@media (max-width:1024px) {
    .hero-title-wrap .hero-title h2 {
        font-size: 40px;
    }

    .portfolio-list-wrap .subnav {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
        /* 스크롤바 공간 확보 */
    }

    .portfolio-list-wrap .subnav ul {
        display: inline-flex;
        gap: 24px;
        padding: 0 16px;
        min-width: max-content;
    }

    .portfolio-list-wrap .subnav a {
        white-space: nowrap;
    }
}



@media (max-width:768px) {
.hero-title-wrap {
    margin: 30px 0 50px;
}
    
    .pf-view .left .top-meta {
        justify-content: center;
        text-align: center;
    }
    
    .pf-view .left .hero-title {
        left: 50%;
        bottom: 10%;
        transform: translate(-50%,-50%);
        text-align: center;
    }
    
    .portfolio-list-wrap .subnav {
        padding: 14px 0;
    }
    
    .hero-title-wrap .hero-title h2 {
        font-size: 32px;
    }

    .hero-title-wrap .hero-title p br {
        display: none;
    }
    
    .hero-title-wrap .hero-title h1 {
        font-size: 18px;
    }

    .pf-view .left .hero {
        padding: 60px 40px;
    }

    .pf-view .right {
        padding: 40px;
    }

    .pf-view .seo-h1 {
        font-size: 22px;
    }

    .related-wrap {
        padding: 0 0 50px;
    }

    .related-wrap .rw-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .related-wrap .rw-head h3 {
        font-size: 20px;
    }

    /* txt를 없애고 새 텍스트 삽입 */
    .pf-navi .nav-item.prev .txt,
    .pf-navi .nav-item.next .txt {
        font-size: 0;
    }

    /* 동일한 폭 부여 (양쪽 텍스트 정렬 맞추기) */
    .pf-navi .nav-item.prev a .txt::after,
    .pf-navi .nav-item.next a .txt::after,
    .pf-navi .nav-item.prev .disabled .txt::after,
    .pf-navi .nav-item.next .disabled .txt::after {
        display: inline-block;
        min-width: 48px;
        /* ← 이게 핵심 */
        text-align: center;
        font-size: 14px;
        letter-spacing: 0.5px;
        font-weight: 600;
    }

    /* PREV */
    .pf-navi .nav-item.prev a .txt::after,
    .pf-navi .nav-item.prev .disabled .txt::after {
        content: "PREV";
    }

    /* NEXT */
    .pf-navi .nav-item.next a .txt::after,
    .pf-navi .nav-item.next .disabled .txt::after {
        content: "NEXT";
    }

    /* 화살표와 텍스트 간격 통일 */
    .pf-navi .nav-item.prev a,
    .pf-navi .nav-item.next a {
        gap: 6px;
    }
}

@media (max-width:600px) {
    .pf-view .left .hero-title {
        top: inherit;
        font-size: 36px;
    }

    .pf-view .left .top-meta {
        flex-direction: column;
        gap: 20px;
    }

    .pf-view .right {
        padding: 40px 20px;
    }

    .pf-view .seo-h1 {
        font-size: 20px;
    }
}

@media (max-width:500px) {
    .hero-title-wrap .hero-title h2 {
        font-size: 28px;
    }
}

@media (max-width:460px) {
    .pf-view .left .hero-title {
        font-size: 36px;
    }
    
        .hero-title-wrap .hero-title h2 {
        font-size: 22px;
    }
}


@media (min-width:769px){
    br.mbr {display:none !important;}
}
@media (max-width:768px){
    br.mbr {display:inline !important;}
}