/* =========================================
   2. 고객지원(Support) 페이지 전용 디자인
   ========================================= */
.support-section {
    padding: 120px 0;
}

.support-section .sec-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.35;
    letter-spacing: -0.4px;
}

/* [섹션 1] 메인 비주얼 (Hero) */
.support-hero {
    background: url('../img/support/support-main.png') no-repeat center center / cover;
    background-color: #f1f1f1;
    margin-top: 80px;
    /* service-hero와 동일 */
    height: 560px;
    /* service-hero와 동일 */
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* 0.4는 어둡기 정도입니다. 조절 가능! */
    z-index: 1;
}

.support-hero .inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.support-hero h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.8px;
    margin-bottom: 40px;
    /* 원들과의 간격 */
    color: #fff !important;
}

.hero-circles {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    /* overlay(::before z-index:1) 위에 표시되도록 */
    z-index: 2;
}

.hero-circles .circle {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    word-break: keep-all;
}

/* [섹션 2] Contact Us (문의) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 110%; /* 중요 */
}

.contact-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-box p {
    font-size: 16px;
    color: #555;
    flex-grow: 1; /* 설명 영역이 위쪽 차지 */
}

.contact-btn {
    display: flex;             /* block에서 flex로 변경 */
    align-items: center;       /* 수직 가운데 정렬 추가 */
    justify-content: center;   /* 수평 가운데 정렬 추가 */
    gap: 8px;                  /* 아이콘과 텍스트 사이 간격 추가 */
    word-break: keep-all;
    width: 100%;
    padding: 15px;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

/* 버튼 묶어서 하단 고정 */
.contact-box .contact-btn {
    margin-top: 0;
}

.contact-box .contact-btn + .contact-btn {
    margin-top: 16px;
}

.contact-box a.contact-btn:first-of-type {
    margin-top: auto; /* 첫 버튼을 아래로 밀어버림 */
}

.contact-btn svg {
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    width: 14px;
    height: 14px;
}
.contact-btn.btn-red {
    background-color: #ef1f26;
    color: #fff;
    border: none;
    font-size: 16px;
}

/* 일반 hover: 먼저 선언 */
.contact-btn:hover {
    background-color: var(--red);
    color: #fff;
}

/* btn-red hover: 나중에 선언하여 일반 hover보다 우선 적용됨 */
.contact-btn.btn-red:hover {
    background-color: #ce1920;
}

/* [섹션 3] 대응 원칙 & 고객 정보 보호 */
.policy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 80px;
}

.policy-box {
    text-align: center;
}

.policy-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.policy-box p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    word-break: keep-all;
}

/* 이미지 컨테이너 (중복 제거됨) */
.policy-img-wrap {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* 등록증 아이템 스타일 */
.cert-item {
    display: block;
    flex: 1;
    max-width: 200px;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
}

.cert-item:hover {
    border-color: #ef1f26;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cert-item img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.00);
    transition: transform 0.3s;
}

/* 대응 원칙 벤다이어그램 (임시 CSS 원) */
.venn-diagram {
    position: relative;
    height: 325px;
    max-width: 350px;
    margin: 0 auto;
}

.venn-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 15px;
    word-break: keep-all;
    color: #555;
}

.venn-circle:nth-child(1) {
    top: 0;
    left: 100px;
}

.venn-circle:nth-child(2) {
    bottom: 45px;
    left: 25px;
}

.venn-circle:nth-child(3) {
    bottom: 45px;
    right: 25px;
}

/* [섹션 4] FAQ */
.faq-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.faq-tabs a {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 15px;
    color: #555;
    transition: all 0.3s;
}

.faq-tabs a.active,
.faq-tabs a:hover {
    background-color: #222;
    color: #fff;
    border-color: #222;
}

.faq-list {
    border-top: 2px solid #222;
}

.faq-item {
    border-bottom: 1px solid #999;
}

.faq-q {
    padding: 25px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    position: relative;

/*    display: flex;
    align-items: center;
    justify-content: space-between;*/

    display: grid;
    grid-template-columns: 140px 1fr 140px; /* 양쪽 날개를 140px로 똑같이 맞춰서 텍스트를 강제 중앙 배치 */
    align-items: center;
    text-align: center;
}

.faq-q .category {
    font-size: 13px;
    color: #b3b3b3;
    font-weight: 600;
    margin-right: 0;
    text-align: left;
    min-width: 120px;
}

.faq-q .icon {
    position: relative;
    width: 20px;
    height: 20px;
    color: #333;
    transition: all 0.3s;
    flex-shrink: 0;
    justify-self: end;
}

/* 가로 선 (-) */
.faq-q .icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: translateY(-50%);
    transition: all 0.3s;
}

/* 세로 선 (|) -> 합쳐서 + */
.faq-q .icon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: currentColor;
    transform: translateX(-50%);
    transition: all 0.3s;
}

/* 활성화 시 - (세로 선을 눕혀서 가로선과 겹치게 함) */
.faq-item.active .faq-q .icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-q .icon {
    color: #333;
    transform: rotate(180deg);
}

.faq-a {
    display: none;
    padding: 25px 140px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    border-top: 1px dashed #eee;
    text-align: center;
}

/* ======================================================
   모바일 대응 (768px 이하)
   - 벤다이어그램 & 히어로: 폭에 따라 삼각형 -> 세로 자동 전환
   ====================================================== */
@media all and (max-width: 768px) {

    /* 1. 기본 그리드 해제 */
    .contact-grid,
    .policy-grid {
        grid-template-columns: 1fr;
    }

    .support-hero {
        margin-top: 50px;
        /* service-hero 모바일과 동일 */
        height: 320px;
        padding: 0;
    }

    /* 2. 타이틀 및 텍스트 크기 최적화 */
    .support-hero h2 {
        font-size: 28px;
        margin-bottom: 0px;
        /* 줄임 */
    }

    .support-section .sec-title {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .contact-box p,
    .policy-box p {
        font-size: 14px;
        line-height: 1.75;
    }

    .contact-box h4,
    .policy-box h4 {
        font-size: 20px;
    }

    /*[핵심] 상단 히어로 & 하단 벤다이어그램 공통 적용
       (공간 좁으면 자동으로 세로 정렬되는 유동형)*/
    .hero-circles,
    .venn-diagram {
        display: flex !important;
        flex-wrap: wrap;
        /* 자리가 없으면 다음 줄로 넘김 */
        justify-content: center;
        gap: 1px 15px;
        /* 줄임 */
        /* 원 사이 간격 */
        width: 100% !important;
        max-width: 320px;
        /* 2개씩 묶일 때의 최대 폭 */
        height: auto !important;
        /* 고정 높이 해제 */
        position: static !important;
        margin: 10px auto;
        /* 줄임 */
    }

    .hero-circles .circle,
    .venn-circle {
        position: static !important;
        /* absolute 좌표 완전 해제 */
        width: 115px !important;
        /* 줄임 */
        /* 찌부 방지를 위한 적정 크기 */
        height: 115px !important;
        /* 줄임 */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 12px !important;
        /* 줄임 */
        line-height: 1.4;
        padding: 10px;
        /* 줄임 */
        background: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        word-break: keep-all;
        transform: none !important;
        /* 기존 translateX 제거 */
        flex-shrink: 0;
        /* 원 모양 찌그러짐 방지 */

    }

    /* 히어로 배경만 약간 투명하게 유지 */
    .hero-circles .circle {
        background: rgba(255, 255, 255, 0.95);
    }

    .venn-circle:nth-child(1),
    .venn-circle:nth-child(2),
    .venn-circle:nth-child(3),
    .hero-circles .circle:nth-child(1),
    .hero-circles .circle:nth-child(2),
    .hero-circles .circle:nth-child(3) {
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0;
    }
    /* 모바일 버튼 한 줄 고정 강제화 */
    .contact-btn {
        flex-wrap: nowrap !important;
        padding: 12px 5px !important;
        gap: 4px !important;
    }

    .contact-btn.btn-red {
        font-size: 12px !important;
        letter-spacing: -0.5px;
    }

    .contact-btn span {
        white-space: nowrap;
    }
    .contact-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
    /* --------------------------------------------------
       FAQ 및 기타 요소
       -------------------------------------------------- */
    .faq-q {
        display: flex !important; /* PC의 Grid 설정을 강제로 끄기 */
        flex-direction: column;   /* 카테고리와 질문을 위아래로 자연스럽게 쌓기 */
        align-items: flex-start;
        text-align: left;         /* 텍스트 왼쪽 정렬 (중요!) */
        padding-right: 50px;      /* 오른쪽에 있는 +/- 아이콘과 글씨가 겹치지 않게 여백 주기 */
        gap: 8px;
    }

    .faq-q .category {
        margin-bottom: 5px;
    }

    .faq-q .icon {
        position: absolute;
        right: 20px;
        top: 25px; /* 모바일에서 아이콘이 적당한 높이에 오도록 조절 */
        justify-self: auto;
    }
    .policy-img-wrap {
        gap: 10px;
        margin-top: 15px;
    }

    .cert-item {
        max-width: 140px;
        padding: 5px;
    }
    .faq-a {
        padding: 20px 20px;
        text-align: left;
    }
}