#main-menu-section {
    padding: 60px 20px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-card-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    margin: 4px auto;
}

.main-card {
    width: 100%;
    background: #fff;
    padding: 40px 28px;
    border-radius: 24px;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 380px;
    position: relative;
    transition: all 0.3s ease;
}

.main-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: #e8e8e8;
}

/* 아이콘 */
.main-card .icon-box {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-card .icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.main-card .icon-box svg {
    width: 100%;
    height: 100%;
    display: block;
}

.main-card h3 {
    font-family: "SUIT Variable";
    font-size: 24px;
    margin-bottom: 20px;
    color: #545454;
    word-break: keep-all;
}

.main-card .desc-wrap {
    margin-bottom: 24px;
    flex-grow: 1; /* 남는 공간은 설명이 차지 */
}

.main-card .desc-wrap p,
.main-card .desc-wrap li {
    font-family: "SUIT Variable";
    font-size: 16px;
    color: #6e6e6e;
    margin-bottom: 6px;
}

.go-btn {
    padding: 16px 28px;
    border-radius: 300px;
    font-family: "SUIT Variable";
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.go-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* 색상 버튼 - 2가지 색상으로 단순화 */
.go-btn.primary {
    background: #f1b645;
}

.go-btn.primary:hover {
    background: #f5ac24;
}

.go-btn.secondary {
    background: #DC6468;
    color: #fff;
}

.go-btn.secondary:hover {
    background: #e0454b;
}

/* 버튼은 항상 맨 아래 */
.main-card .go-btn {
    margin-top: auto;     /* 핵심 */
}

/* 도움 준 사람 모달 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity .25s ease;  /* ✨ 페이드 인/아웃 핵심 */
    pointer-events: none;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay.modal-hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-box {
    width: 90%;
    max-width: 720px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    position: relative;
}

.modal-content {
    font-family: "SUIT Variable", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}


.helper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.helper-card {
    width: 180px;     /* ✨ 카드 너비 고정 */
    height: 110px;    /* ✨ 카드 높이 고정 */
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-align: center;

    border: 1px solid rgba(0,0,0,0.06);
    box-shadow:
            0 6px 20px rgba(0,0,0,0.08),
            0 1px 3px rgba(0,0,0,0.05);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 이름 */
.helper-name {
    font-family: "SUIT Variable", sans-serif;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    color: #222;
}

/* 소속/역할 */
.helper-role {
    font-family: "SUIT Variable", sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #777;
    line-height: 1.3;
}

.helper-header {
    text-align: center;
    margin-bottom: 20px;
}

.helper-header h4 {
    font-family: "SUIT Variable";
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.helper-header p {
    font-family: "SUIT Variable";
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.helper-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.tab-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-family: "SUIT Variable";
    font-size: 14px;
    cursor: pointer;
    border: none;

    /* 기본 상태 (비활성 탭) */
    background: #fff5db;
    color: #b57c02;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all .25s ease;
}


.tab-btn.active {
    background: #f1b645;    /* ✨ 브랜드 컬러 */
    color: #fff;
    border: 1px solid #f1b645;
}


/* 반응형 */
@media (max-width: 1024px) {
    .main-card-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}


@media (max-width: 600px) {

    .main-card-wrap {
        margin: 0 auto;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 카드 레이아웃: 이미지 / 제목 / 버튼 */
    .main-card {
        padding: 16px 14px;
        min-height: auto;
        text-align: left;

        display: grid;
        grid-template-columns: auto 1fr auto;   /* ← 3칸 */
        grid-template-areas: "icon title button";
        column-gap: 12px;
        align-items: center;
    }

    /* 아이콘 왼쪽 */
    .main-card .icon-box {
        grid-area: icon;
        width: 64px;
        height: 64px;
        margin: 0;
    }

    /* 제목 가운데 */
    .main-card h3 {
        grid-area: title;
        font-size: 16px;
        margin: 0;
        font-weight: 600;
        line-height: 1.3;
    }

    /* 버튼 오른쪽 */
    .main-card .go-btn {
        grid-area: button;

        /* 위치만 조정 */
        justify-self: flex-end;
        width: 110px;

        /* 버튼 내부 스타일은 전혀 건드리지 않음 */
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
        border-radius: 8px;
        /* 높이는 기존 go-btn 스타일 유지되니까 안 건드려도 됨 */
        text-align: center;    /* 버튼 텍스트 가운데 정렬 */
        white-space: nowrap;
    }
}
/*
@media (max-width: 600px) {
    .main-card-wrap {
        margin: 0 auto;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    !* 카드 자체를 그리드로 바꿔서 영역 나누기 *!
    .main-card {
        padding: 20px 16px;
        min-height: auto;              !* 세로로 얇게 *!
        text-align: left;              !* 텍스트 왼쪽 정렬 *!

        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "icon title"
            "icon button";
        column-gap: 12px;
        row-gap: 6px;
        align-items: center;
    }

    !* 아이콘: 왼쪽 고정 *!
    .main-card .icon-box {
        grid-area: icon;
        width: 72px;
        height: 72px;
        margin: 0;              !* 가운데 정렬용 margin 제거 *!
    }

    !* 제목: 아이콘 오른쪽 첫 줄 *!
    .main-card h3 {
        grid-area: title;
        font-size: 18px;
        margin: 0 0 4px 0;
    }

    !* 버튼: 맨 아래 줄, 아이콘 오른쪽 *!
    .main-card .go-btn {
        grid-area: button;
        margin-top: 0;          !* 데스크탑용 auto 제거 *!
        justify-self: flex-start;
        padding: 10px 18px;
        font-size: 14px;
    }
}*/

@media (max-width: 480px) {
    .modal-box {
        width: 94%;
        padding: 24px 16px;
    }

    .helper-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .helper-card {
        width: 160px;
        height: 100px;
        padding: 10px;
    }

    .helper-name {
        font-size: 14px;
    }

    .helper-role {
        font-size: 12px;
    }
}

/* =========================
   NEW: Landing CTA hierarchy
   ========================= */

.main-card-wrap--stack{
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
}

/* 아래 mini 2개 그리드 */
/*.main-card-row{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}*/

.main-card-row{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

/* Primary 카드(큰 CTA) */
.main-card--primary{
    min-height: 260px;
    padding: 46px 36px;
    text-align: left;
    flex-direction: row;
    align-items: center;
    gap: 22px;
}

.main-card--primary .icon-box{
    width: 140px;
    height: 140px;
    margin: 0;
}

.main-card--primary h3{
    font-size: 28px;
    margin: 0 0 8px 0;
    color: #222;
    line-height: 1.25;
}

.main-card--primary .sub-text{
    font-size: 15px;
    color: #666;
    margin: 0;
}

.main-card--primary .go-btn{
    margin-top: 0;      /* 기존 auto 제거 */
    margin-left: auto; /* 오른쪽 정렬 */
    white-space: nowrap;
}

/* Mini 카드(작은 CTA) */
.main-card--mini{
    min-height: 160px;
    padding: 20px 18px;
    text-align: left;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.main-card--mini .icon-box{
    width: 56px;
    height: 56px;
    margin: 0;
}

.main-card--mini h3{
    font-size: 18px;
    margin: 0;
    color: #333;
}

.main-card--mini .go-btn{
    margin-top: 0;
    margin-left: auto;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 999px;
}

.main-card--mini .icon-box {
    width: 56px;
    height: 56px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* svg가 박스에 꽉 차게 */
.main-card--mini .inspect-icon {
    width: 100%;
    height: 100%;
    color: #222; /* 필요하면 브랜드 컬러로 */
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 600px){
    .main-card--primary{
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 20px;
        min-height: auto;
    }

    .main-card--primary .icon-box{
        width: 88px;
        height: 88px;
    }

    .main-card--primary h3{
        font-size: 22px;
    }

    .main-card--primary .go-btn{
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        text-align: center;
    }

    .main-card-row{
        grid-template-columns: 1fr;
    }

    .main-card--mini{
        min-height: auto;
    }
}

