/* ===== style.css ===== */

/* 기본 설정 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Pretendard', sans-serif;
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* 패딩과 테두리를 너비에 포함 */
    width: 100%;
    min-height: 100vh; /* 화면 전체 높이 확보 */

}
form.optionForm {
    background: f8f4ff;
    border-radius: 12px;
    /* box-shadow: 0 0 6px rgba(0, 0, 0, 0.05); */
    /* max-width: 90%; */
    margin: 90px 5% 0 5%;
    display: flex;
    flex-direction: row;
    gap: 24px;
    display: flex; 
    justify-content: flex-end;
}

.profile_save {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    background-color: #f09a67;
    color: white;
    cursor: pointer;
}
.profile_save:hover {
    background-color: #e28342;
}
select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
/*     
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
    font-size: 14px;
    box-sizing: border-box; */
}
a {
    color: #333;
    text-decoration: none;
    cursor : pointer;
}
/* 상단 유틸 메뉴 */
.top-bar {
    display: flex;
    justify-content: flex-end;
    background: #f9f9f9;
    padding: 6px 20px;
    font-size: 13px;
    border-bottom: 1px solid #e0e0e0;
}
.top-bar .right {
    display: flex;
    gap: 16px;
}

.profile-preview {
    align-items: center;
    text-align: center;
    width: 90%;
    margin: 0 auto;
}

.profile-preview img {
    width: 100px;
    height: 100px;
    border-radius: 0%;
    background: #eee;
    object-fit: cover;
  }
  .profile-preview p {
    margin-top: 10px;
    font-weight: 600;
    font-size: 1.25rem;
  }
  .profile-preview .media-links a {
    margin: 0 5px;
    text-decoration: none;
    color: #555;
    font-size: 1.1rem;
  }

  .modal {
    display: none; /* 기본 숨김 */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.mlr-auto {
    margin: 0 auto;
}

/* 헤더 */
.desktop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    padding: 0 40px;
    /* height: 100px; */
    background-color: white;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo a{
    margin-top: 20px;
}

.logo_image{
    margin-top: 10px;
    width: 210px;
}
.search {
    width: 210px;
    padding: 10px;
    font-size: 1em;
    border: none;
    border-bottom: 2px solid #ccc;
    padding-right: 90px;
    outline: none;
    position: relative;
    top: 20px;
    left: 3%;
}

.optionSubmit {
    display: inline-block;
    width: 25px;  /* 아이콘이 잘 안 보이면 크기를 조금 키워보세요 */
    height: 25px;
    margin-top: 2px;
    border: 0 none;
    cursor: pointer; /* 마우스 올렸을 때 손가락 모양 추가 */
    text-indent: -9999em;
    
    /* 배경 설정 수정 */
    background: url('https://cdn-icons-png.flaticon.com/512/149/149852.png') no-repeat center;
    background-size: contain; /* 아이콘이 버튼 크기에 딱 맞게 조절됩니다 */
    background-color: transparent; /* 배경색 투명하게 */

    position: relative;
    top: 18px;
    left: -7%;
}
/* 광고 */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.ad-icon {
    width: 32px;
    height: 32px;
}
.ad-text {
    font-size: 18px;
    line-height: 1.4;
}
.ad-main {
    font-weight: 400;
}
.ad-link {
    color: #b17eff;
    font-weight: 500;
}
/* 내비게이션 */
.nav-bar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}
.nav-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 56px;
}
.bestAgent-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 10px;
}

.sr-only {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}
.nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list li {
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
}
.nav-list li:hover {
    color: #ff6600;
}
.notice-icon {
    width: 14px;
    vertical-align: middle;
    margin-right: 4px;
}
.auth-links {
    display: flex;
    gap: 10px;
}
.auth-link {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: none;
    color: #333;
}

/* 배너 */
.banner_section {
    max-width: 90%;
    height: 230px;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    margin: 0px auto;
    gap: 20px;
    text-align: center;
}
.banner_section img {
    object-fit: cover;
    height:-webkit-fill-available;
}

.banner_section_mobile {
    display: none;
}
.banner-card {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.banner-card img {
    width: 100%;
    height: auto;
    display: block;
}

.campaignContainer {
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
    justify-content: flex-start;
}
.parent {
    padding: 30px 0;
    font-size: large;
    text-align: center;
}
/* 캠페인 카드 (덮어쓰기) */
.campaign-card {
    flex: 0 0 auto;
    width: 300px;
    /* border: 1px solid #ccc; */
    border-radius: 8px;
    background: white;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    scroll-snap-align: start;
}
  
    /* 캠페인 리스트 (추가) */
    .campaign-list {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 30px;
        /* padding: 0 0 10px 10px; */
        /* height: ; 스크롤이 생기려면 높이 제한이 있어야겠지? */
        overflow-x: auto; /* 수직 스크롤바가 나타나도록 설정 */
    }
    
    /* 스크롤바 스타일 (선택사항) */
    .campaign-list::-webkit-scrollbar {
        height: 15px;
        background-color: transparent; /* 스크롤바 트랙 배경 투명하게 */
    }
    .campaign-list::-webkit-scrollbar-thumb {
        background-color: #aaa; /* 엄지 색상 */
        border-radius: 4px; /* 엄지 둥글게 */
    }
    /* 3. 스크롤바 트랙(엄지가 움직이는 길) 스타일 */
    .campaign-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .campaign-list::-webkit-scrollbar-thumb:hover {
        background-color: #888; /* 마우스 올렸을 때 색상도 살짝 바꿔주는 센스! */
        cursor: pointer; /* 요게 손가락 모양 커서! */
        height: 10px;
    }
    /* 6. .campaign-list 컨테이너에 마우스 올렸을 때 스크롤바 두께 변경 (엄지 크기 커짐) */
    .campaign-list:hover::-webkit-scrollbar {
        height: 18px; /* .campaign-list에 마우스 올렸을 때 스크롤바 두께를 15px로 늘림 */
    }

    .card-badge.today { /* "오늘마감" 뱃지 색상 */
        background-color: #ffe0b2;
        color: #ef6c00;
    }
    .all_view_container{
        width: 90%;
        margin: 20px auto;
        display: flex;
        /* flex-wrap: wracampaign-imagep; */
        gap: 10px; /* 카드 간의 가로세로 간격 */
        justify-content: flex-start;
    }
    .card-badge {
        background-color: #e0f2f7; /* 기본 뱃지 색상 */
        color: #01579b;
        font-size: 1.5em;
        padding: 8px 15px;
        margin: 0px 10px ;
        border-radius: 4px;
        align-self: flex-start; /* 뱃지를 왼쪽 정렬 */
        font-weight: bold;
    }

    .terms-container {
        max-width: 90%;
        margin: 0 auto;
        padding: 40px 20px;
        line-height: 1.8;
        font-size: 15px;
        color: #333;
    }

    .terms-container h1 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .terms-container h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .terms-container section {
        margin-bottom: 28px;
    }

    .terms-container p {
        margin: 0;
    }

    .terms-container ol {
        margin: 10px 0 0 18px;
        padding: 0;
    }

    .terms-container li {
        margin-bottom: 6px;
    }

    .terms-footer {
        margin-top: 50px;
        padding-top: 20px;
        border-top: 1px solid #ddd;
    }

  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1;
  }
  .slider-btn.prev {
    left: -10px;
  }
  .slider-btn.next {
    right: -10px;
  }
  
    .left-view, .right-view {
        background: #fff;
        box-shadow: 0 0 12px rgb(0 0 0 / 0.05);
        border-radius: 20px;
        padding: 24px 32px;
    }

  .campaign-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
  }
  
  .leader_name {
    text-align: center;
    font-size: x-large;
  }
  .campaign-info-box {
    font-size: 14px;
  }
  
  .campaign-tags {
    /* display: flex; */
    font-weight: bold;
    margin: 10px 0;
    /* justify-content: center;
    align-items: center; */
      /* 가로 가운데 정렬 세로 가운데 정렬(필요시) */
  }
  
  .campaign-tags .tag {
    font-size: 15px;
    background: #eee;
    color: #555;
    padding: 2px 6px;
    border-radius: 4px;
  }
  
  .campaign-tags .leader {
    padding: 8px 15px;
    font-size: 1.5em;
    background: #f8e1ff;
    color: #b151ff;
  }

  .campaign-tags .leader .sub-text {
    font-size: 0.8em; /* 부모 폰트 사이즈의 80%로 줄임 (예시) */
    /* 또는 font-size: 12px; 처럼 절대값으로 지정할 수도 있어 */
    margin-left: 4px; /* 사용자 이름과 인솔자 사이의 간격 */
    color: #b151ff; /* 글자색을 살짝 연하게 할 수도 있어 */
  }

  .campaign-title-text {
    /* 1. 필수 설정: 박스 형태를 멀티라인에 맞게 변경 */
    /* display: -webkit-box; */
    -webkit-box-orient: vertical;
    
    /* 2. 핵심 설정: 최대 몇 줄까지 보여줄지 결정 */
    -webkit-line-clamp: 2; 
    
    /* 3. 넘치는 부분 처리 */
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* 4. 기존 한 줄 고정 코드는 반드시 삭제하거나 주석 처리하세요 */
    /* white-space: nowrap;  <- 이 줄이 있으면 무조건 한 줄만 나옵니다. 삭제 필수! */

    /* 추가 디자인 제안 */
    width: 100%;
    font-size: 1.1em;
    font-weight: 500;
    line-height: 1.4;   /* 줄 간격이 너무 좁으면 겹쳐 보이니 1.4 정도가 적당합니다 */
}

.campaign-point-text {
    /* 1. 필수 설정: 박스 형태를 멀티라인에 맞게 변경 */
    /* display: -webkit-box; */
    -webkit-box-orient: vertical;
    
    /* 2. 핵심 설정: 최대 몇 줄까지 보여줄지 결정 */
    -webkit-line-clamp: 2; 
    
    /* 3. 넘치는 부분 처리 */
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* 4. 기존 한 줄 고정 코드는 반드시 삭제하거나 주석 처리하세요 */
    /* white-space: nowrap;  <- 이 줄이 있으면 무조건 한 줄만 나옵니다. 삭제 필수! */

    /* 추가 디자인 제안 */
    width: 100%;
    font-size: 1.1em;
    font-weight: 500;
    line-height: 1.4;   /* 줄 간격이 너무 좁으면 겹쳐 보이니 1.4 정도가 적당합니다 */
}

  .recruitment-num{
    font-weight: normal;
    color:#888;
  }

  .card-title {
    margin: 10px 0; /* 기본 마진 제거 */
    font-size: 1.2rem;
    line-height: 1.4;
    color: #333;
    word-wrap: break-word; /* 긴 단어도 줄 바꿈되도록 */
     /* 두 줄 말줄임 설정 (가장 추천하는 모바일 방식) */
    display: -webkit-box;
    -webkit-line-clamp: 2;    /* 보여줄 줄 수 (2줄) */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* 한 줄로 유지하고 싶다면 아래 주석을 풀고 위 box 설정을 지우세요 */
    /* white-space: nowrap; */ 
  }


  .campaign-stats {
    font-weight: bold;
    font-size: 1.5em;
    /* padding: 10px 0px; */
    color: #333;
    margin-bottom: 10px;
  }
  .campaign_mission {
        font-weight: bold;
        font-size: 1.1em;
        /* padding: 10px 0px; */
        color: #333;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .campaign_tile {
        font-size: 2em;
        margin-block-start: 0.67em;
        margin-block-end: 0.67em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        font-weight: bold;
        unicode-bidi: isolate;
    }
  
  .tag.status {
    padding: 8px 15px;
    font-size: 1.2em;
    background: #d1f4ff;
    color: #00789e;
  }
    .all-view {
        text-align: right;
        font-size: 15px;
        float: right;
        margin-right: 50px;
    }
/* campaign-slider-container: 슬라이더 전체를 감싸는 컨테이너 */
.campaign-slider-container {
    position: relative; /* 버튼 배치를 위해 */
    overflow: hidden; /* 슬라이더 트랙을 넘어가는 부분 숨기기 */
    padding: 0 0px; /* 버튼이 위치할 공간 확보 */
    box-sizing: border-box; /* 패딩이 너비에 포함되도록 */
    transform-style: preserve-3d
}
  
  /* campaign-slider-track: 캠페인 카드들을 담고 실제 움직이는 요소 */
  .campaign-slider-track {
    display: flex; /* 자식 요소(카드)들을 가로로 나열 */
    transition: transform 0.5s ease-in-out; /* 슬라이드 애니메이션 효과 */
    /* transition을 JavaScript로 제어하여 무한 루프 구현 시 순간 이동 구간에서는 제거할 것 */
  }
  
  
  
  /* slide-button: 이전/다음 버튼 */
  .slide-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%; /* 원형 버튼 */
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    transition: background-color 0.2s ease;
  }
  
  .slide-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
  }
  
  .slide-button.prev {
    left: 0; /* 컨테이너 좌측 끝 */
  }
  
  .slide-button.next {
    right: 0; /* 컨테이너 우측 끝 */
  }
  
  .slide-button:disabled {
    background-color: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
  }

  /* 사이드바 스타일 */
.sidebar {
    /* width: 16%; */
    width: 16%;
    border-right: 1px solid #ddd;
    box-sizing: border-box;
    float: left;
    height: 50vh; /* 필요에 따라 조절 */
}

.sidebar h3, .sidebar h4 {
    margin-top: 15px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 18px;
    color: #333;
}
.notice_title_list{
    display: none;
}
.notice-title {
    margin: 10px 0 10px 5%;
    font-size: 2.4em;
    font-weight: 700;
    /* margin: 5%; */
    /* padding-bottom: 10px; */
    color: #111;
}
.article-info { margin: 10px 0 0 5%; font-size: 1.2em; color: #666; margin-bottom: 20px; font-weight: 700;}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.sidebar-menu li {
    margin-bottom: 12px;
}

.sidebar-menu li a {
    text-decoration: none;
    color: #555;
    font-size: 16px;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar-menu li.active a,
.sidebar-menu li a:hover {
    max-width: 80%;
    background-color: #6f59b6;
    color: #fff;
    font-weight: 600;
}

/* 메인 콘텐츠 스타일 */
.main-side-content {
    width: 90%;
    margin: 15px auto;
    box-sizing: border-box;
    /* min-height: 100vh; */
    flex-grow: 1;  /* 남은 공간 모두 점유 */
    background-color: #fff;
}

/* 공지사항 테이블 스타일 */
.notice-table {
    float: right;
    min-width: 80%;
    border-collapse: collapse; /* 테이블 셀 경계선 병합 */
    margin-bottom: 25px;
    /* margin-right: 100px; */
}
.notice-table_mobile {
    display: none;
}

.notice-table th, .notice-table td {
    padding: 20px 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 20px;
}

.notice-table th {
    /* background-color: #f2f2f2; */
    font-weight: 600;
    color: #555;
    white-space: nowrap; /* 제목 등 셀 너비 유지 */
}

.notice-table td.title {
    text-align: left;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 내용이 길면 ...으로 표시 */
    max-width: 400px; /* 제목 컬럼 최대 너비 */
}

.notice-table td.title:hover {
    text-decoration: underline;
    color: #007bff;
}

.notice-table tr:hover {
    background-color: #fdfdfd;
}

.mobile-header {
    display: none;
}

.certification-logos-mobile {
    display: none;
}

  /* style.css */
.main-footer {
    background-color: #fff; /* 어두운 배경색 */
    color: #000000; /* 흰색 글자색 */
    padding: 20px 0; /* 상하 패딩 */
    text-align: right; /* 내용 가운데 정렬 */
    width: 1400px; /* 전체 너비 */
    margin: 0 auto;
    /* 푸터를 항상 하단에 고정하고 싶다면 다음 속성을 추가할 수 있어. */
    /* position: relative; (컨텐츠가 적을 때 하단에 붙이기 위한 기본 설정) */
    /* 또는 position: fixed; bottom: 0; (화면 하단에 항상 고정) */
}

.footer-content {
    display: flex; /* 내부 요소들을 유연하게 배치하기 위해 flexbox 사용 */
    flex-direction: column; /* 세로 방향으로 정렬 */
    align-items: right; /* 가운데 정렬 */
}

.main-footer p {
    margin: 0 0 10px 0; /* 문단 하단 여백 */
    font-size: 20px;
}

.main-footer ul {
    list-style: none; /* 목록 마커 제거 */
    padding: 0;
    margin: 0;
    display: flex; /* 목록 아이템들을 가로로 배열 */
    gap: 15px; /* 아이템 사이 간격 */
}

.main-footer ul li a {
    color: #000000; /* 링크 글자색 */
    text-decoration: none; /* 밑줄 제거 */
    font-size: 14px;
}

.site-footer {
    padding: 40px 20px;
    /* background-color: #fafafa; */
    /* font-family: 'Apple SD Gothic Neo', Malgun Gothic, sans-serif; */
    /* color: #666; */
    
}
.footer-separator {
    border: none;
    /* border-top: 1px solid #ddd; */
    margin: 0 auto;
}
.stats-info {
    text-align: left;
    font-size: 25px;
    padding: 15px 0;
    max-width: 90%;
    margin: 0 auto;
}
.footer-top {text-align: left; /* 내용 가운데 정렬 */
    /* max-width: 80%; 전체 너비 */
    margin: 0 auto;
    /* border-top: 1px solid #ddd; */
    font-size: 14px;
    display: grid;
    align-items: flex-start;
    gap: 10px;
    max-width: 90%;
    margin: 25px auto;
}

.mobile-sticky-nav {display: none;}

.footer-logo-row {
    display: block;
    min-width: 100%;
}
.footer-logo {
    width: 150px;
    height: auto;
}
.company-info p {
    text-align: left;
    font-size: 14px;
    color :#888;
    line-height: 1.6;
    margin: 0;
}
.footer-copyright {
    /* border-top: 1px solid #ddd; */
    padding-top: 20px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: large;
    color: #000000;
}
.footer-copyright p {
    
    font-size: large;
    color: #000000;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: left;
    max-width: 90%;
    font-size: larger;
    padding: 20px 0;
    margin: 0 auto;
    gap: 25px;
}
.footer-links {
    display: flex;
    gap: 6px;
}
.certification-logos {
    display: flex;
    /* gap: 20px; */
    align-items: center;
    margin-left: 80%;
    /* margin-top: -20%; */
}
.certification-logos img {
    float: right;
    height: 100px;
    margin-top: -250px;
}

.mrg10-top{
    margin-top: 10px;
}

.mrg10-left{
    margin-left: 10px;
}

.main-footer ul li a:hover {
    text-decoration: underline; /* 호버 시 밑줄 추가 */
}

.allView{
    text-align: right;
    font-size: 20px;
    float: right;
    
}

.wdt200{ 
    width: 200px;
}
.mrgR50{
    margin-right: 50px;
}


.highlight {
    color: #ff5733;
    font-weight: bold;
}
.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0px auto;
}

.mypage_title {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-left: 120px;
}

.card-box {
    background-color: #ffffff; /* 하얀 배경 */
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* 둥근 모서리 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* 부드러운 그림자 */
    padding: 10px; /* 카드 내부 패딩 */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 호버 효과 */
    height: 400px;
    /* ⭐ 카드 내부 콘텐츠 정렬 (아이콘, 제목, 설명) ⭐ */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 상단 정렬 (아이콘-제목-설명 순서) */
    align-items: center; /* 수평 중앙 정렬 */
    }


.card-box1 {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: auto;           /* ⭐★★ 유동적인 높이를 위해 height: auto로 설정 ★★⭐ */
    min-height: 00px;      /* ⭐ (선택 사항) 최소 높이를 지정하여 너무 작아지는 것 방지 ⭐ */

    text-align: left;
    /* margin: 30px;
    padding: 20px; */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
 /* 슬라이더 박스 */ 

.slider-container {
    width: 100%;
    /* max-width: 1200px; 전체 슬라이더의 최대 너비 (카드를 7장 정도 보여줄 공간) */
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
}

.slider-track {
    /* flex-direction: column; */
    /* justify-content: center; */
    align-items: center;
    display: flex;
    height: 700px;
    gap: 30px; /* 카드 사이의 간격 */
    transition: transform 0.5s ease; /* 슬라이드 애니메이션 속도 */
    will-change: transform; /* 애니메이션 성능 최적화 */
    /* padding-left: -210px; 좌우 패딩 추가 */
}

.card {
    /* 100% / 7장 - (간격 * 6/7) = 7장과 간격이 잘 분배되도록 */
    /* flex: 0 0 calc((100% / 7) - 16px * (6 / 7)); */
    flex: 0 0 calc((100% - (30px * 5)) / 6); 
    min-width: calc((100% - (30px * 5)) / 6);
    height: 60%;
    background: white;
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.3);
    padding: 20px;
    box-sizing: border-box;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    user-select: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease; /* 강조 효과도 부드럽게 */
    
}
.card-grid-container {
    width: 100%;
    display: grid;                   /* Grid 컨테이너로 만듦 */
    grid-template-columns: repeat(auto-fit, minmax(0px, 1fr)); /* ⭐ 핵심! ⭐ */
    gap: 30px;                       /* Grid 아이템들 사이의 간격 */
    justify-content: center;         /* 컨테이너 내 Grid 트랙들을 중앙 정렬 */
    /* padding: 20px; */
    max-width: 89%;
    margin: 0 auto;
    align-items: stretch; /* ⭐ Grid 아이템들의 높이를 동일하게 맞춤 (기본값) ⭐ */
}


/* .card-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 350px;
    text-align: left;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
} */
/* 첫 번째와 마지막 카드도 동일한 크기 유지 */
.card:first-child, .card:last-child {
    /* 별도의 마진 없이 기본 gap에 의존 */
    flex: 0 0 calc((100% - 30px * 6) / 7);
    margin-left: -215px;
}

/* 동적으로 적용될 강조 카드 스타일 */
.card.highlight {
    /* 4번째 카드가 더 커지도록 flex-basis를 더 크게 */
    /* 1.4배 커지면 전체 너비에 7장이 안 들어갈 수 있으니, 이 값을 조정해서 7장이 보이게 하거나,
    flex-grow를 사용해 다른 카드를 줄여서 공간을 확보하는 전략도 가능함.
    여기서는 flex-basis만 조정하여 옆 카드와 함께 자연스럽게 공간을 나누도록 해볼게. */
    display: flex;
    flex-direction: column;
    justify-content: center;  /* 수직 가운데 정렬 */
    align-items: center;      /* 수평 가운데 정렬 */
    flex: 0 0 calc(((100% / 6) - 8px * (5 / 6)) * 1.3); /* 1.3배 정도 커지게 */
    min-width: 280px; /* 최소 너비도 키움 */
    height: 65%; /* 높이도 키움 */
    background-color: #ff7f50; /* 눈에 띄는 배경색 */
    color: white;
    box-shadow: 0 0 30px rgba(255,127,80,0.7);
    transform: scale(1.05); /* 약간 확대 효과도 추가 */
}

.number {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.desc {
    font-size: 1.1rem;
    color: inherit; /* 부모(card)의 color를 상속 */
}


/* 섹션 헤더 스타일 */
.business-features-section {
padding: 60px 0px; /* 섹션 상하 여백 */
min-width: 100%; /* 섹션 최대 너비 */
margin: 0 auto;    /* 중앙 정렬 */
text-align: center;
}

.section-header h2 {
font-size: 2.5em;
color: #333;
margin-bottom: 10px;
}

.section-header p {
font-size: 1.1em;
color: #666;
margin-bottom: 40px;
}

/* ⭐ 한 줄에 3개 카드가 배치되는 스타일 ⭐ */
.card-grid-container.three-cols {
    grid-template-columns: repeat(3, 1fr); /* 3개의 동일한 너비의 칼럼 */
}

/* ⭐ 한 줄에 4개 카드가 배치되는 스타일 (필요하다면) ⭐ */
.card-grid-container.four-cols {
    grid-template-columns: repeat(4, 1fr); /* 4개의 동일한 너비의 칼럼 */
}

.card-grid-container.six-cols {
    grid-template-columns: repeat(6, 1fr); /* 4개의 동일한 너비의 칼럼 */
}

/* ⭐ 개별 카드 박스 스타일 ⭐ */
.card-box1 {
background-color: #ffffff; /* 하얀 배경 */
border: 1px solid #e0e0e0;
border-radius: 12px; /* 둥근 모서리 */
box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* 부드러운 그림자 */
padding: 10; /* 카드 내부 패딩 */
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease; /* 호버 효과 */

/* ⭐ 카드 내부 콘텐츠 정렬 (아이콘, 제목, 설명) ⭐ */
display: flex;
flex-direction: column;
justify-content: flex-start; /* 상단 정렬 (아이콘-제목-설명 순서) */
align-items: center; /* 수평 중앙 정렬 */
}

.card-box2 {
    background-color: #ffffff; /* 하얀 배경 */
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* 둥근 모서리 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* 부드러운 그림자 */
    padding: 30px; /* 카드 내부 패딩 */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 호버 효과 */
    
    /* ⭐ 카드 내부 콘텐츠 정렬 (아이콘, 제목, 설명) ⭐ */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 상단 정렬 (아이콘-제목-설명 순서) */
    align-items: center; /* 수평 중앙 정렬 */
}

.card-box1:hover {
transform: translateY(-5px); /* 호버 시 살짝 떠오르는 효과 */
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-icon {
    width: 30%; /* 아이콘 크기 */
    height: auto;
    justify-content: right;
    margin: 90px 0 0 200px;
    align-items: right;
}

.card-box-text {
    text-align: left;
    font-size: 1.8em;
    font-weight: 700;
    width: 100%;
    margin: 30px 0 0 80px;
}
.card-box-no {
    text-align: left;
    font-size: 3em;
    font-weight: 700;
    width: 100%;
    margin: 40px 0 0 80px;
}

.card-description {
font-size: 1em;
color: #666;
line-height: 1.6;
flex-grow: 1; /* 내용이 길어지면 공간을 채우도록 */
}



.ads-reason-container {
    height: 90vh;
    display: block;
    max-width: 90%;
    margin: 0 auto;
    gap: 40px;
    font-family: '맑은 고딕', sans-serif;
}

/* 좌측 리스트 스타일 */
.spacer {
    width: 100%;
    height: 20vh;
    margin: 50px 0 0 0;

    font-weight: bold;
    font-size: 48px
}

.reason-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 65%;
    border-right: 1px solid #eee;
}

.reason-list li {
    cursor: pointer;
    padding: 20px;
    border-left: 4px solid transparent;
    color: #333;
    display: flex;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s;
}

.reason-list li span.num-circle {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 54px;
    border-radius: 50%;
    text-align: center;
    margin-right: 30px;
    font-size: 1.1em;
    font-weight: 700;
    border: 2px solid #ff7448;
    color: #ff7448;
    background-color: transparent;
    
    transition: all 0.3s;
}

.reason-list li.active {
    border-left-color: #ff7448;
    color: #ff7448;
}

.reason-list li.active span.num-circle {
    background-color: #ff7448;
    color: white;
    border-color: #ff7448;
}

/* 우측 슬라이드 영역 */
.reason-slide {
    height: 500px;
    flex-grow: 1;
    position: relative;
    background: #fff;
    padding: 70px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-top: -500px;
    margin-left: 20%
}

/* 개별 슬라이드 숨기기/보이기 */
.slide-item {
    display: none;
    animation: fadeInSlide 0.5s ease forwards;
}

.slide-item.active {
    display: block;
}





.mobile-header {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 10px;
}

.hamburger {
  font-size: 24px;
  cursor: pointer;
  margin-right: 20px;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.campaign-container {
    width: 90%;
    justify-content: left;  /* 수직 가운데 정렬 */
    align-items: center;      /* 수평 가운데 정렬 */
    display: flex;
    flex-wrap: wrap;      /* 아이템들이 줄을 넘으면 자동으로 다음 줄로 넘기기 */

    grid-template-columns: repeat(5, 1fr); /* 1줄에 2개 */
    gap: 10px; /* 카드 사이 간격 */
    padding: 0px;
    margin: 0 auto;
}

.campaign-item {
  box-sizing: border-box;
  /* background: #f0f0f0; */
  padding: 0px;
  text-align: center;
}

.imageUploadBtn {
    margin-top: 10px; background-color: #aaa; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer;
}

.form-remove {
    width: 70%;
    display: block;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: center;
}
/* PC에서는 모바일 헤더 감추기 */
@media(min-width: 768px) {
  .mobile-header,
  .mobile-nav {
    display: none;
  }
  /* nav-bar 등 기존 메뉴 보이게 조정 필요 */
}

/* 모바일에선 기존 nav-bar 숨기기 */
@media(max-width: 767px) {
  .nav-bar {
    display: none;
  }
}

.desktop_sidebar {
    display: block;
}
.mobile_sidebar_menu {
    display: none;
}
.mobile_sidebar_profile {
    display: none;
}

  .container-ask {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
    .container_campaign {
        display: flex;
        gap: 40px;
        max-width: 90%;
        margin: 0 auto;
    }
  .text-area {
    flex: 1 1 400px;
    min-width: 60%;
  }

  .text-area h1 {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .text-area h1 .highlight {
    color: #ff6c26;
  }

  .askForm{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }

  .askForm label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0px;
    display: block;
  }

  .askForm input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="password"] {
    width: 70%;
    padding: 15px 16px;
    border: 1px solid #ff6c26;
    border-radius: 6px;
    background: transparent;
    color: black;
    font-size: 1rem;
    outline-offset: 2px;
  }

  .captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .captcha-img {
    width: 110px;
    height: 40px;
    border: 1px solid #ff6c26;
    border-radius: 6px;
    object-fit: contain;
  }

  .captcha-input {
    flex: 1 1 auto;
  }

  .captcha-input input {
    width: 100%;
  }

  .captcha-refresh {
    background-color: #ff6c26;
    border: none;
    color: white;
    padding: 0 14px;
    height: 40px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
  }

  .privacy-consent {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    margin-top: 8px;
    gap: 8px;
  }

  .submit-button {
    margin-top: 24px;
    padding: 14px;
    background-color: #ff6c26;
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 75%;
}

  .submit-button:hover {
    background-color: #e95815;
  }

  .image-area {
    flex: 1 1 300px;
    min-width: 280px;
    text-align: center;
  }

  .image-area img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(255, 108, 38, 0.6);
  }

  .note {
    font-size: 0.85rem;
    color: #ccc;
    margin-top: 10px;
  }

  a.privacy-link {
    color: #ff6c26;
    text-decoration: underline;
    cursor: pointer;
  }

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    /* border: 1px solid #ff7448; */
    border-radius: 12px;
    color: #ff7448;
    font-size: 1.5em;
    font-weight: bold;
}

.slide-item h3 {
    font-weight: 700;
    font-size: 2.0em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.desc-list {
    /* margin-top: -250px; */
    width: 700px;
    list-style: none;
    padding-left: 0;
    color: #555;
    font-size: 1.8em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.desc-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 22px;
}

.desc-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #ff7448;
}

.slide-img {
    text-align: right;
}

.slide-img img {
    margin: 0 auto;
    width: 250px;
    height: auto;
    position: absolute;
    top: 310px;
    left: 77.7%;
}

/* 다음 버튼 스타일 */
.slide-next {
    position: absolute;
    top: 30%;
    right: 7%;
    transform: translateY(-50%);
    border: none;
    background: #ff7448;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: background 0.3s ease;
}

.slide-prev {
    position: absolute;
    top: 30%;
    right: 12%;
    transform: translateY(-50%);
    border: none;
    background: #ff7448;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: background 0.3s ease;
}

.slide-next:hover {
    background: #e05a2f;
}


.password-input-container {
    position: relative; /* 자식 요소 (아이콘)의 위치를 위해 필요 */
    text-align: left; /* 라벨과 입력창을 왼쪽 정렬 */
}

.password-input-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #7a69d9;
    font-size: 0.95rem;
}

.password-input-container input[type="password"],
.password-input-container input[type="text"] { /* type=text일 때도 스타일 적용 */
    width: 100%;
    padding: 12px 40px 12px 14px; /* 아이콘 공간 확보를 위해 패딩 조정 */
    border: 2px solid #c1b6e7;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.password-toggle {
    position: absolute;
    right: 12px; /* 오른쪽에서 여백 */
    top: 41%; /* 컨테이너의 중앙에 오도록 */
    transform: translateY(-50%) translateY(12px); /* 세로 중앙 정렬 및 라벨만큼 내려줌 */
    cursor: pointer;
    color: #836ddf; /* 아이콘 색상 */
    font-size: 1.2rem;
    /* 추가: z-index를 주면 다른 요소에 가려지지 않아 */
    z-index: 10; 
}

/* .number {
    margin-left: 10px;
    font-size: 52px;
    font-weight: bold;
    color: #333;
} */
.unit {
    font-size: 46px;
    color: #777;
}
.description {
    margin-top: 10px;
    font-size: 16px;
    color: #555;
}
.icon {
    margin-top: 15px;
    width: 40px;
    height: 40px;
}

.w100vh {
    min-width: 100vh;
}

.h100vh {
    height: 100vh;
}

.h80vh {
    height: 80vh;
}

.h55vh {
    height: 70vh;
}
.w90per {
    width: 90%;
}

.w80vw {
    width: 80vw;
}
.profile_img {
    width: 60%;
    height: 250px;
    margin: 0 auto;
    display: block;
}

.bestAgent_container table {
    width: 45%;
    border-collapse: collapse;
    margin: 20px auto;
}

table.bestAgentList {
    float: left;
    width: 100%;
    border-collapse: collapse;
    margin: 15px auto;
}

table.bestPayList {
    float: right;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.bestAgent_title {
    margin-top: 0px;
    font-size: 2.4em;
    font-weight: 700;
    /* margin: 5%; */
    /* padding-bottom: 10px; */
    color: #111;
}

.bestAgent-header {
    display: flex;
    justify-content: space-between; /* 양 끝 정렬 */
    max-width: 1200px;             /* 테이블의 전체 너비와 맞춤 */
}

.ranking-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    /* 만약 글자가 너무 양 끝으로 붙는다면 margin으로 세밀하게 조정 가능합니다 */
}

.ranking-container {
    display: block;
    justify-content: space-between; /* 두 섹션 사이 간격 */
    /* gap: 40px; */
    width: 60%;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.ranking-section {
    flex: 1; /* 두 테이블이 1:1 비율로 너비를 나눠 가짐 */
}

.section-title-point {
    margin-top: -28px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: left; /* 제목을 항상 테이블 왼쪽 끝에 맞춤 */
}

.mission-box {
    white-space: pre-wrap;    /* 핵심: 엔터 친 곳은 줄바꿈하고, 화면 끝에서도 자동으로 줄바꿈함 */
    word-break: break-all;    /* 긴 영문/숫자도 화면 밖으로 안 나가게 끊어줌 */
    line-height: 1.5;         /* 가독성을 위해 줄 간격을 약간 넓힘 */
    font-size: 14px;
    color: #444;
    padding: 10px 0;
}

.section-title {
    width: 80%;
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.8;
    padding-bottom: 2px;
}

.form-row {
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: center;
}

.mypage_form {
    max-width: 54%;
    margin-top: 20px;
    margin: 20px auto;
}

.mypage_hr {
    display: none;
    border: none;
    border-top: 0.5px solid #eee;
    margin: 20px auto;
    width: 100%;
    margin: 20px 0; border: 0.5px solid #eee;
}

.table_container {
    float: right;
    width: 77%;          /* 컨테이너 너비 설정 */
    display: grid;           /* 가로 나열 */
    justify-content: space-between; /* 테이블 사이 공간 균등 배분 */
    align-items: flex-start; /* 상단 정렬 */
    gap: 20px;               /* 테이블 사이 간격 */
}

.point_List {
    width: 300%;
    max-width: 1200px;
    border-collapse: collapse;
    margin: 0px auto;
}
.calendar {
    max-width: 900px;
    height: auto;
    margin: 20px auto;
    padding: 0 auto;
}

  /* 모바일 화면 (예: 768px 이하) */
  @media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
/* 모바일 헤더 스타일 */
.mobile-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.campaign-container {
    margin-top: 10px;
    width: 100%;
    justify-content: center;  /* 수직 가운데 정렬 */
    align-items: center;      /* 수평 가운데 정렬 */
    display: flex;
    flex-wrap: wrap;      /* 아이템들이 줄을 넘으면 자동으로 다음 줄로 넘기기 */

    grid-template-columns: repeat(2, 1fr); /* 1줄에 2개 */
    gap: 10px; /* 카드 사이 간격 */
    padding: 0px;
}
.campaign-item {
    justify-content: center;  /* 수직 가운데 정렬 */
    align-items: center;      /* 수평 가운데 정렬 */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    justify-self: end; /* start, center, stretch 등 선택 가능 */
}
.campaign-image {
    width: 165px;
    height: 165px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
  }
  .left-view, .right-view {
        background: #fff;
        box-shadow: 0 0 12px rgb(0 0 0 / 0.05);
        border-radius: 20px;
        padding: 0px 10px;
    }

.header-inner {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

/* 햄버거 막대기 디자인 */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* 모바일 네비게이션 본체 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* 처음엔 화면 밖 */
    width: 100%;
    height: 100%;
    z-index: 999;
    transition: 0.3s ease;
    display: flex; /* 숨김/보임 처리를 transform으로 조절 */
}

.mobile-nav.active {
    right: 0;
}

.nav-content {
    width: 70%; /* 메뉴 너비 */
    background: #fff;
    height: 100%;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 1001;
}

.nav-overlay {
    width: 30%;
    background: rgba(0,0,0,0.5);
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.mobile-menu-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.logo_image{
    margin-top: 10px;
    width: 140px;
}

    .menu-toggle {
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-header {
        display: contents;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        background: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid #ddd;
    }

    .mobile-header.open {
        max-height: 300px; /* 메뉴 항목 충분히 보이도록 조정 */
    }

    .mobile-header ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-header ul li a {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
        color: #333;
        text-decoration: none;
    }
    
    .mobile-header ul li a:hover {
            background-color: #f0f0f0;
    }

    .banner_section {
        display: none;
    }
    .banner_section img {
        object-fit: cover;
        height:-webkit-fill-available;
    }
    
    .banner_section_mobile {
        max-width: 90%;
        height: 50px;
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        margin: 60px auto 0px auto;
        gap: 10px;
        text-align: center;
    }

    .campaign-info-box {
        width: 165px;
        font-size: 14px;
    }

    .campaign-stats {
        font-weight: bold;
        font-size: 1.1em;
        /* padding: 10px 0px; */
        color: #333;
        margin-bottom: 10px;
    }

    .campaign_mission {
        font-weight: bold;
        font-size: 1.1em;
        /* padding: 10px 0px; */
        color: #333;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .nav-bar {
        display: none;
    }
    .campaign-slider-container {
      padding: 0 20px; /* 버튼 공간 줄이기 */
    }

    /* JavaScript에서 cardWidth, cardMarginRight 재계산되도록 initializeSlider() 호출 */
    
    .slide-button {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
    .certification-logos {
        display: flex;
        /* gap: 20px; */
        align-items: center;
        margin-left: 80%;
        /* margin-top: -20%; */
    }
    .certification-logos img {
        float: right;
        height: 100px;
        margin-top: -250px;
    }

    .container_mobile {
        flex-direction: column;
        gap: 40px;
        padding-top: 60px;
        text-align: center;
    }

    .container_campaign {
        display: block;
        gap: 40px;
        max-width: 90%;
        margin: 60px auto auto;
    }
    .image-area {
        max-width: 280px;
        margin: 0 auto;
    }
    .text-area h1 {
        font-size: 1.8rem;
    }
    
    .profile_img {
        width: 60%;
        height: 180px;
    }
    .fc .fc-toolbar-title  { font-size: 1em !important; white-space: nowrap; }
    .sidebar {
        display: none;
    }

    .left-side-menu, .header-title { display: none !important; }

    .mobile-sticky-nav {
        display: block;
        position: sticky;
        top: 0;
        /* z-index: 1000; */
        background: #fff;
        margin-top: 60px;
        border-bottom: 1px solid #eee;
    }

    .m-header-main {
        display: flex;
        justify-content: space-between;
        padding: 10px 15px;
        align-items: center;
    }

    /* 가로 스크롤 메뉴 핵심 코드 */
    .m-scroll-menu {
        display: flex;
        overflow-x: auto; /* 가로 스크롤 허용 */
        white-space: nowrap; /* 줄바꿈 방지 */
        -webkit-overflow-scrolling: touch; /* 부드러운 스크롤 */
        /* border-top: 1px solid #f5f5f5; */
        padding: 10px 0px;
    }

    .m-scroll-menu::-webkit-scrollbar { display: none; } /* 스크롤바 숨김 */

    .m-scroll-menu a {
        /* padding: 5px 15px; */
        margin: 0 auto;
        color: #666;
        text-decoration: none;
        font-size: 14px;
        flex: 0 0 auto; /* 크기 고정 */
    }

    .m-scroll-menu a.active {
        color: #ff5a5f;
        font-weight: bold;
        border-bottom: 2px solid #ff5a5f;
    }

    .card {
        flex: 0 0 calc((100% / 3) - 16px * (2 / 3)); /* 3개 카드 보이도록 */
        height: 240px;
        font-size: 1.1rem;
        }
        .card.highlight {
        flex: 0 0 calc(((100% / 3) - 16px * (2 / 3)) * 1.0);
        height: 270px;
        }
        .number {
        font-size: 1.8rem;
        }
    
        .card-grid-container.three-cols,
    .card-grid-container.four-cols {
    grid-template-columns: repeat(1, 1fr); /* 모두 1개로 */
    }
    .business-features-section {
    padding: 40px 10px;
    }
    .section-header h2 {
    font-size: 2em;
    }
    .section-header p {
    font-size: 1em;
    }
    .card-box1 {
    min-height: 200px; /* 모바일에서 최소 높이도 조절 */
    }
    .ads-reason-container {
        flex-direction: column;
        gap: 20px;
    }
    .reason-list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-around;
    }
    .reason-list li {
        border-left: none;
        padding: 10px 5px;
        font-size: 14px;
        flex-grow: 1;
        justify-content: center;
    }
    .slide-img img {
        width: 150px;
    }
    .ads-reason-container {
        flex-direction: column;
        gap: 20px;
    }
    .reason-list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-around;
    }
    .reason-list li {
        border-left: none;
        padding: 10px 5px;
        font-size: 14px;
        flex-grow: 1;
        justify-content: center;
    }
    .slide-img img {
        width: 150px;
    }
    .card-title {
        font-size: 1.4em;
        color: #333;
        margin-bottom: 10px;
        line-height: 1;
         /* 두 줄 말줄임 설정 (가장 추천하는 모바일 방식) */
    display: -webkit-box;
    -webkit-line-clamp: 2;    /* 보여줄 줄 수 (2줄) */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* 한 줄로 유지하고 싶다면 아래 주석을 풀고 위 box 설정을 지우세요 */
    /* white-space: nowrap; */ 
    }
    
    .notice-table {
        display: none;
        float: none;
        min-width: 80%;
        border-collapse: collapse; /* 테이블 셀 경계선 병합 */
        margin-bottom: 25px;
        /* margin-right: 100px; */
    }

    .article-info {
        margin-left:0; font-size: 1.2em; color: #666; margin-bottom: 20px; font-weight: 700;
    }
    
    .notice-title {
        margin-left: 0;
        font-size: 2em;
        font-weight: 700;
        /* margin: 5%; */
        /* padding-bottom: 10px; */
        color: #111;
    }
    .bestAgent_title {
        margin-top: 10px;
        font-size: 2em;
        font-weight: 700;
        color: #111;
    }

    .mission-box {
        white-space: pre-wrap;    /* 핵심: 엔터 친 곳은 줄바꿈하고, 화면 끝에서도 자동으로 줄바꿈함 */
        word-break: break-all;    /* 긴 영문/숫자도 화면 밖으로 안 나가게 끊어줌 */
        line-height: 1.5;         /* 가독성을 위해 줄 간격을 약간 넓힘 */
        font-size: 14px;
        color: #444;
        padding: 10px 0;
    }

    .bestAgent_container table {
        width: 45%;
        border-collapse: collapse;
        margin: 20px auto;
    }

    .ranking-container {
        display: block;
        justify-content: space-between; /* 두 섹션 사이 간격 */
        /* gap: 40px; */
        width: 100%;
        /* max-width: 1200px; */
        margin: 0 auto;
    }

    table.bestAgentList {
        width: 100%;
        border-collapse: collapse;
        margin: 20px auto;
    }

    table.bestPayList {
        float: right;
        width: 100%;
        border-collapse: collapse;
        margin: 20px auto;
    }


    .bestAgent-header {
        flex-direction: column;    /* 모바일에서는 위아래로 배치 */
        gap: 20px;
    }

    .section-title {
        width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
        font-weight: 700;
        font-size: 1.2rem;
    }

    .form-row {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 15px;
        align-items: center;
    }

    .mypage_form {
        max-width: 100%;
        margin-top: 20px;
        margin: 20px auto;
    }

    .table_container {
        float: none;
        width: 100%;          /* 컨테이너 너비 설정 */
        display: block;           /* 가로 나열 */
        justify-content: space-between; /* 테이블 사이 공간 균등 배분 */
        align-items: flex-start; /* 상단 정렬 */
        gap: 20px;               /* 테이블 사이 간격 */
    }

    .point_List {
        width: 100%;
        max-width: 1200px;
        border-collapse: collapse;
        margin: 0px auto;
        font-size: 0.99em;
    }

    .form-remove {
        width: 100%;
        display: block;
        flex-wrap: wrap;
        margin-bottom: 15px;
        align-items: center;
    }

    .desktop_sidebar {
        display: none;
    }
    .mobile_sidebar_menu {
        display: block;
    }
    .mobile_sidebar_profile {
        width: 100%;
        height: auto;
        margin: 0 auto;
        display: flow-root;
    }

    .mrg20_b {
        margin-bottom: 20px;
    }

    .calendar {
        max-width: 900px;
        height: 455px;
        margin: 20px auto;
        padding: 0 auto;
    }
    .mypage_hr {
        display: block;
        border: none;
        border-top: 0.5px solid #eee;
        margin: 20px auto;
        width: 100%;
        margin: 20px 0; border: 0.5px solid #eee;
    }
    .campaign-title-text {
        /* 1. 필수 설정: 박스 형태를 멀티라인에 맞게 변경 */
        /* display: -webkit-box; */
        -webkit-box-orient: vertical;
        
        /* 2. 핵심 설정: 최대 몇 줄까지 보여줄지 결정 */
        -webkit-line-clamp: 2; 
        
        /* 3. 넘치는 부분 처리 */
        overflow: hidden;
        text-overflow: ellipsis;
        
        /* 4. 기존 한 줄 고정 코드는 반드시 삭제하거나 주석 처리하세요 */
        /* white-space: nowrap;  <- 이 줄이 있으면 무조건 한 줄만 나옵니다. 삭제 필수! */
    
        /* 추가 디자인 제안 */
        width: 100%;
        font-size: 0.8em;
        font-weight: 700;
        line-height: 0.8;   /* 줄 간격이 너무 좁으면 겹쳐 보이니 1.4 정도가 적당합니다 */
    }

    .campaign-point-text {
        /* 1. 필수 설정: 박스 형태를 멀티라인에 맞게 변경 */
        /* display: -webkit-box; */
        -webkit-box-orient: vertical;
        
        /* 2. 핵심 설정: 최대 몇 줄까지 보여줄지 결정 */
        -webkit-line-clamp: 2; 
        
        /* 3. 넘치는 부분 처리 */
        overflow: hidden;
        text-overflow: ellipsis;
        
        /* 4. 기존 한 줄 고정 코드는 반드시 삭제하거나 주석 처리하세요 */
        /* white-space: nowrap;  <- 이 줄이 있으면 무조건 한 줄만 나옵니다. 삭제 필수! */
    
        /* 추가 디자인 제안 */
        width: 100%;
        font-size: 1em;
        font-weight: 700;
        line-height: 1.6;   /* 줄 간격이 너무 좁으면 겹쳐 보이니 1.4 정도가 적당합니다 */
    }
    .recruitment-num{
    font-weight: normal;
    color:#888;
    }

    .login_link {
        font-size: 14px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        margin-top: 5px;
        margin-left: auto;
        width: 65px;
    }
    
    .mypage_link{
        font-size: 14px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        margin-top: 5px;
        margin-left: auto;
        width: 65px;
    }

    .search {
        width: 210px;
        padding: 10px;
        font-size: 1em;
        border: none;
        border-bottom: 2px solid #ccc;
        padding-right: 90px;
        outline: none;
        position: relative;
        top: 0px;
        left: 3%;
    }
    
    .optionSubmit {
        display: inline-block;
        width: 25px;  /* 아이콘이 잘 안 보이면 크기를 조금 키워보세요 */
        height: 25px;
        margin-top: 2px;
        border: 0 none;
        cursor: pointer; /* 마우스 올렸을 때 손가락 모양 추가 */
        text-indent: -9999em;
        
        /* 배경 설정 수정 */
        background: url('https://cdn-icons-png.flaticon.com/512/149/149852.png') no-repeat center;
        background-size: contain; /* 아이콘이 버튼 크기에 딱 맞게 조절됩니다 */
        background-color: transparent; /* 배경색 투명하게 */
    
        position: relative;
        top: 0px;
        left: -7%;
    }
}

  /* 더 작은 모바일 화면 (예: 480px 이하) */
@media (max-width: 480px) {
    .login_link {
        font-size: 14px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        margin-top: 5px;
        margin-left: 45px;
        width: 65px;
    }
    
    .mypage_link{
        font-size: 14px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        margin-top: 5px;
        margin-left: auto;
        width: 65px;
    }

    .search {
        width: 80px;
        padding: 5px;
        font-size: 1em;
        border: none;
        border-bottom: 2px solid #ccc;
        padding-right: 40px;
        outline: none;
        position: relative;
        top: 20px;
        left: 8%;
    }
    
    .optionSubmit {
        display: inline-block;
        width: 25px;  /* 아이콘이 잘 안 보이면 크기를 조금 키워보세요 */
        height: 25px;
        margin-top: 2px;
        border: 0 none;
        cursor: pointer; /* 마우스 올렸을 때 손가락 모양 추가 */
        text-indent: -9999em;
        
        /* 배경 설정 수정 */
        background: url('https://cdn-icons-png.flaticon.com/512/149/149852.png') no-repeat center;
        background-size: contain; /* 아이콘이 버튼 크기에 딱 맞게 조절됩니다 */
        background-color: transparent; /* 배경색 투명하게 */
    
        position: relative;
        top: -13px;
        left: 110px;
    }
    .search_from {
        height: 60px;
    }

    .desktop-header {
        display: none;
    }

    .menu-toggle {
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-header {
        display: contents;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        background: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid #ddd;
    }

    .mobile-header.open {
        max-height: 300px; /* 메뉴 항목 충분히 보이도록 조정 */
    }

    .mobile-header ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-header ul li a {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
        color: #333;
        text-decoration: none;
    }
    
    .mobile-header ul li a:hover {
            background-color: #f0f0f0;
    }

    .banner_section img {
        object-fit: cover;
        height:-webkit-fill-available;
    }
    
    .banner_section_mobile {
        max-width: 90%;
        height: 50px;
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        margin: 60px auto 0px auto;
        gap: 10px;
        text-align: center;
    }

    .certification-logos {
        display: none;
        /* gap: 20px; */
        align-items: center;
        margin-left: 80%;
        /* margin-top: -20%; */
    }
    .certification-logos img {
        display: none;
        float: right;
        height: 100px;
        margin-top: -250px;
    }

    .certification-logos-mobile {
        display: inline-block;
    }


    .certification-logos-mobile img{
        float: right;
        height: 100px;
    }
    
    .nav-bar {
        display: none;
    }
    
    .campaign-slider-container {
        padding: 0 10px; /* 버튼 공간 더 줄이기 */
    }
    .campaign-card {
        flex: 0 0 calc((100% / 2) - 16px * (1 / 2)); /* 2개 카드 보이도록 */
        font-size: 1rem;
        width: 100%;
    }

    .leader_name {
        text-align: center;
        font-size: large;
    }

    .campaign-tags .leader {
        padding: 8px 10px;
        font-size: 1em;
        background: #f8e1ff;
        color: #b151ff;
    }

    /* .footer_mobile{
        display: block;
        text-align: center;
        padding: 90px 0;
    } */
    .card-badge {
        background-color: #e0f2f7; /* 기본 뱃지 색상 */
        color: #01579b;
        font-size: 1em;
        padding: 8px 10px;
        margin: 0px 5px ;
        border-radius: 4px;
        align-self: flex-start; /* 뱃지를 왼쪽 정렬 */
        font-weight: bold;
    }
    
    .campaign-list {
        display: flex; /* 가로 배열의 정석 */
        overflow-x: auto; /* 내용이 넘칠 때만 스크롤 생성 */
        scroll-snap-type: x mandatory; /* 스냅 기능 유지 */
        gap: 10px; /* 아이템 사이 간격 */
        /* padding: 10px 15px; 양 끝에 여유 공간 확보 */
        width: 100%; /* 부모 너비에 딱 맞춤 */
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch; /* 모바일 부드러운 스크롤 */
    }
    
    /* 자식 요소 (개별 캠페인 카드) */
    .campaign-list > div { 
        flex: 0 0 auto; /* ★중요: 너비가 줄어들지 않도록 고정 */
    }

    .slide-button {
      /* 버튼 위치를 카드 위로 옮기거나 아예 숨길 수도 있음 */
    }

    .card {
        flex: 0 0 calc(100% - 32px); /* 1개 카드 보이도록 + 좌우 패딩 */
        height: 200px;
        font-size: 1rem;
        margin: 0 16px; /* 좌우 마진 추가 */
    }
    .card.highlight {
        flex: 0 0 calc(100% - 32px);
        height: 220px;
        transform: scale(1.03);
    }
    .slider-track {
        gap: 0; /* 작은 화면에서는 간격 제거 */
    }
    .card-grid-container {
        gap: 15px; /* 모바일에서 간격 줄이기 */
    }
    .card-box1 {
        padding: 20px;
    }
    .card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .notice-table {
        display: none;
        float: none;
        min-width: 80%;
        border-collapse: collapse; /* 테이블 셀 경계선 병합 */
        margin-bottom: 25px;
        /* margin-right: 100px; */
    }
    .notice-table_mobile {
        /* display: block 대신 table을 유지해야 컬럼 제어가 가능합니다 */
        display: table; 
        width: 100%;           /* 80% 대신 100%로 꽉 채우기 */
        table-layout: fixed;   /* 컬럼 너비를 고정하기 위해 필수 */
        border-collapse: collapse;
        margin: 10px 0;
    }
    
    /* 컬럼 비율 강제 조정 */
    .notice-table_mobile th:nth-child(1),
    .notice-table_mobile td:nth-child(1) {
        width: 60px;           /* 번호 칸은 딱 60px만 차지 */
        text-align: center;
    }
    
    .notice-table_mobile th:nth-child(2),
    .notice-table_mobile td:nth-child(2) {
        width: auto;           /* 제목 칸이 남은 공간을 다 차지함 */
    }
    
    .notice-table_mobile th, .notice-table_mobile td {
        padding: 15px 10px;    /* 모바일에 맞게 패딩 살짝 조정 */
        border-bottom: 1px solid #eee;
        font-size: 16px;       /* 20px은 모바일에서 커 보일 수 있어 16~18px 권장 */
    }
    
    .notice-table_mobile th {
        font-weight: 600;
        color: #555;
    }
    
    .notice-table_mobile td.title {
        text-align: left;      /* 제목은 왼쪽 정렬 */
        color: #333;
        padding-left: 15px;    /* 번호와 떨어뜨리는 여백 */
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* 너무 길면 ... 표시 */
    }
    
    .notice-table_mobile tr:hover {
        background-color: #fdfdfd;
    }

    .article-info {
        margin-left:0; font-size: 1.2em; color: #666; margin-bottom: 20px; font-weight: 700;
    }

    .notice-title {
        margin-left: 0;
        font-size: 2em;
        font-weight: 700;
        /* margin: 5%; */
        /* padding-bottom: 10px; */
        color: #111;
    }

    .footer-separator {
        border: none;
        /* border-top: 1px solid #ddd; */
        margin: 25px auto;
    }
    .stats-info {
        text-align: left;
        padding: 15px 0;
        font-size: 1em;
        max-width: 90%;
        margin: 0 auto;
    }

    .banner-card {
        flex: 1;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    .banner-card img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .mypage_title {
        font-size: 2.4rem;
        font-weight: 900;
        line-height: 1.3;
        margin-left: 0px;
        margin-top: 120px;
    }

}
