@charset "utf-8";

/* --- 공통 UI 레이아웃 및 타이포그래피 (intro와 동일한 베이스 사용) --- */

#ctt {
    margin: 0;
    padding: 0;
    background: transparent;
}

#ctt_con {
    padding: 0 0 90px;
    color: var(--color-text);
    line-height: 1.7;
    word-break: keep-all;
}

#ctt_con .ui-wrap {
    width: min(100%, var(--layout-width, 1200px));
    margin: 0 auto;
    padding: 0 var(--layout-padding, 20px);
}

#ctt_con .ui-section {
    padding: clamp(40px, 5vw, 60px) 0;
}

#ctt_con .ui-sectionHead {
    margin-bottom: 40px;
}

#ctt_con .ui-sectionHead--center {
    text-align: center;
}

#ctt_con .ui-sectionHead--center .ui-desc {
    text-align: center;
    margin: 0 auto;
    text-wrap: balance;
}

#ctt_con .ui-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--color-sub-2);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#ctt_con .ui-title {
    margin: 0 0 16px;
    font-size: clamp(26px, 3vw + 10px, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
    line-height: 1.35;
}

#ctt_con .ui-desc {
    margin: 0;
    font-size: 16px;
    color: var(--color-muted);
    line-height: 1.65;
}

#ctt_con .ui-grid {
    display: grid;
    gap: 24px;
}

#ctt_con .ui-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#ctt_con .ui-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* --- 1. Hero Section --- */

#ctt_con .c-researchHero {
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
    background-image: linear-gradient(rgba(255, 255, 255, .5), rgba(247, 251, 251, 0.8)), url("./img/research-hero.png");
    /* 원하시는 배경 이미지를 폴더에 추가해 주세요 */
    background-image: url("./img/research-hero.png");
    /* 원하시는 배경 이미지를 폴더에 추가해 주세요 */
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 100px 60px #ffffff;
}

#ctt_con .ui-hero__inner {
    width: 100%;
    max-width: var(--layout-width, 1200px);
    padding: 0 clamp(32px, 5vw, 72px);
    text-align: left;
}

#ctt_con .ui-hero__title {
    font-size: clamp(32px, 4vw + 10px, 48px);
    font-weight: 800;
    line-height: 1.3;
    margin: 16px 0;
    letter-spacing: -0.03em;
}

#ctt_con .ui-hero__desc {
    font-size: clamp(16px, 2vw, 18px);
    color: rgba(31, 42, 42, 0.85);
    margin: 0;
}


/* --- 2. Area Card (연구 분야 카드) --- */

#ctt_con .c-areaCard {
    background: #fff;
    border: 1px solid var(--color-footer);
    border-radius: 20px;
    padding: 34px 28px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
}

#ctt_con .c-areaCard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-sub-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

#ctt_con .c-areaCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 102, 98, 0.08);
    border-color: transparent;
}

#ctt_con .c-areaCard:hover::before {
    transform: scaleX(1);
}

#ctt_con .c-areaCard__icon {
    width: 56px;
    height: 56px;
    background: var(--color-bg3);
    color: var(--color-sub-2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    transition: background .3s ease, color .3s ease;
}

#ctt_con .c-areaCard:hover .c-areaCard__icon {
    background: var(--color-sub-2);
    color: #fff;
}

#ctt_con .c-areaCard__title {
    font-size: 20px;
    font-weight: 800;
    color: #132322;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

#ctt_con .c-areaCard__desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-muted);
    margin: 0;
}


/* --- 3. Process Section (절차) --- */

#ctt_con .c-processSection {
    background: #fff;
    border: 1px solid var(--color-table-border, #DDD9D0);
    border-radius: 24px;
    padding: clamp(52px, 6vw, 88px) clamp(28px, 4vw, 56px);
    overflow: hidden;
}

#ctt_con .c-processItem {
    position: relative;
    text-align: center;
    padding: 20px 10px;
}


/* 화살표 꼬리 아이콘 (FontAwesome) */

#ctt_con .c-processItem:not(:last-child)::after {
    content: "\f105";
    font-family: "FontAwesome", "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 45px;
    right: -12px;
    color: var(--color-sub-3);
    font-size: 24px;
}

#ctt_con .c-processItem__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--color-sub-3);
    color: var(--color-sub-2);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 130, 125, 0.15);
}

#ctt_con .c-processItem__title {
    font-size: 20px;
    font-weight: 800;
    color: #132322;
    margin: 0 0 10px;
}

#ctt_con .c-processItem__desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-muted);
    margin: 0;
}


/* --- 4. CTA Box (하단 배너) --- */

#ctt_con .c-ctaBox {
    background: linear-gradient(135deg, var(--color-sub-1), var(--color-sub-2));
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 14px 34px rgba(0, 102, 98, .2);
}

#ctt_con .ui-banner__title {
    color: #ffffff;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin: 0 0 16px;
}

#ctt_con .ui-banner__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin: 0 auto 32px;
    line-height: 1.6;
    text-align: center;
    word-break: keep-all;
    text-wrap: balance;
}

#ctt_con .ui-banner__btns {
    display: flex;
    justify-content: center;
    gap: 12px;
}

#ctt_con .ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
    border: 1px solid transparent;
}

#ctt_con .ui-btn:hover {
    transform: translateY(-2px);
}

#ctt_con .c-btn {
    background: #fff;
    color: var(--color-sub-1) !important;
}

#ctt_con .c-btn:hover {
    background: #f4f4f4;
    color: var(--color-sub-1);
}

#ctt_con .c-btnOutline {
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}

#ctt_con .c-btnOutline:hover {
    background: #fff;
    color: var(--color-sub-1) !important;
}


/* --- Responsive --- */

@media (max-width: 991px) {
    #ctt_con .ui-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    #ctt_con .c-processItem:nth-child(2)::after {
        display: none;
    }
    /* 2열 배치 시 두 번째 화살표 숨김 */
}

@media (max-width: 768px) {
    #ctt_con .ui-grid--2,
    #ctt_con .ui-grid--4 {
        grid-template-columns: 1fr;
    }
    #ctt_con .c-processItem::after {
        display: none;
    }
    /* 모바일에서는 화살표 모두 숨김 */
    #ctt_con .c-researchHero {
        min-height: auto;
        padding: 80px 0;
    }
    #ctt_con .ui-section {
        padding: 40px 0;
    }
    #ctt_con .c-processSection {
        border-radius: 20px;
        padding: 42px 20px;
    }
    #ctt_con .c-areaCard {
        padding: 24px 20px;
    }
    #ctt_con .c-ctaBox {
        padding: 40px 20px;
    }
    #ctt_con .ui-banner__btns {
        flex-direction: column;
    }
}


/* 연구 진행 5단계 */

#ctt_con .ui-grid--5 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

#ctt_con .c-processItem__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--color-table-main, #d6f3f1);
    color: var(--color-sub-1, #006662);
    font-size: 22px;
}

#ctt_con .ui-grid--5 .c-processItem__step {
    width: auto;
    min-width: 86px;
    height: 34px;
    padding: 0 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    font-size: 12px;
}

@media (max-width: 1200px) {
    #ctt_con .ui-grid--5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #ctt_con .ui-grid--5 .c-processItem:nth-child(3)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    #ctt_con .ui-grid--5 {
        grid-template-columns: 1fr;
    }
}


/* 연구 진행 5단계 카드형 */

#ctt_con .c-processGrid.ui-grid--5 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

#ctt_con .c-processGrid .c-processCard {
    text-align: center;
}

#ctt_con .c-processGrid .c-processCard::after {
    display: none;
}

#ctt_con .c-processCard__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin: 0 0 14px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--color-table-main, #d6f3f1);
    color: var(--color-sub-1, #006662);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

@media (max-width: 1200px) {
    #ctt_con .c-processGrid.ui-grid--5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #ctt_con .c-processGrid.ui-grid--5 {
        grid-template-columns: 1fr;
    }
}
