@charset "utf-8";
/* =====================================================================
   메인 레이아웃 정렬 (2026-11-28)
   - 기존 인라인 음수 마진(-12/-17/-30px), padding:14px 등으로 어긋난
     블록들의 좌우 끝선과 상하 간격을 통일합니다.
   - 메인(.widget-index) 안에서만 적용됩니다.
   ===================================================================== */

.widget-index { --gap: 12px; --line: #dfe3e8; }

/* ---------- 컬럼 ---------- */
.widget-index > .at-row > .at-main { padding-left: 0 !important; padding-right: 15px; padding-top: 10px; }
.widget-index > .at-row > .at-side { padding-top: 10px; }
.widget-index .main_opens { display: none; }

/* ---------- 메인 : 블록 간격 통일 ---------- */
.widget-index .at-main > .hidden-xs > .row,
.widget-index .at-main > .row {
    margin: 0 0 var(--gap) 0 !important;
    padding: 0 !important;
}
.widget-index .at-main > .hidden-xs:empty { display: none; }

/* 배너 : 같은 너비, 같은 간격 */
.widget-index .b_banner_ad { display: flex; flex-direction: column; gap: 8px; }
.widget-index .b_banner_ad .banner_list_b_banner_ad {
    float: none !important; margin: 0 !important; padding: 0 !important; line-height: 0;
}
.widget-index .b_banner_ad .banner_list_b_banner_ad img { display: block; width: 100%; height: auto; }
.widget-index .b_banner_ad + div[style*="clear"] { display: none; }

/* ---------- 메인 : 탭 게시판 2개 (구버전/신버전.. / 포토/자유/후기) ---------- */
.widget-index .at-main > .row > .hidden-xs { display: flex; gap: var(--gap); }
.widget-index .at-main > .row > .hidden-xs > .col-sm-6 {
    flex: 1 1 0; width: auto; float: none; padding: 0 !important; margin: 0 !important; min-width: 0;
}
.widget-index #contabroll, .widget-index #contabroll2 {
    position: relative; height: 100% !important; min-height: 220px; margin: 0;
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden;
}
.widget-index #contabroll .mm1, .widget-index #contabroll2 .mm1 {
    position: relative; display: flex; z-index: 2;
    height: 34px; background: #f5f7f9; border-bottom: 1px solid var(--line);
}
.widget-index #contabroll .mm1 a, .widget-index #contabroll2 .mm1 a { display: block; text-decoration: none; }
.widget-index #contabroll dd, .widget-index #contabroll2 dd {
    float: none; width: auto; min-width: 64px; height: 34px; line-height: 34px; margin: 0; padding: 0 14px;
    border: 0; border-right: 1px solid var(--line);
    color: #555; font-size: 13px; text-align: center; white-space: nowrap;
}
.widget-index #contabroll dd.on, .widget-index #contabroll2 dd.on {
    background: #fff; color: #2753a2; font-weight: 700; box-shadow: inset 0 -2px 0 #2753a2;
}
.widget-index #contabroll dt, .widget-index #contabroll2 dt { height: auto !important; margin: 0; flex: 1 1 auto; }
.widget-index #contabroll dt.on, .widget-index #contabroll2 dt.on { display: block; }
/* 최신글 스킨 표 : 탭 헤더가 제목줄 역할을 하므로 중복 제목줄/테두리 제거 */
.widget-index #contabroll dt > table, .widget-index #contabroll2 dt > table { border: 0 !important; }
.widget-index #contabroll dt > table > tbody > tr:first-child > td[colspan],
.widget-index #contabroll dt > table > tr:first-child > td[colspan],
.widget-index #contabroll2 dt > table > tbody > tr:first-child > td[colspan] { display: none; }
.widget-index #contabroll dt td, .widget-index #contabroll2 dt td { height: 30px; vertical-align: middle; }
.widget-index #contabroll dt tr:last-child > td, .widget-index #contabroll2 dt tr:last-child > td { border-bottom: 0 !important; }

/* ---------- 메인 : 바로가기 아이콘 (서버일정 / BJ 방송 / 고객센터) ----------
   (원본은 <table><tr> 안에 div 를 넣어 브라우저가 div 를 표 밖으로 꺼냄 -> 행 자체를 flex 로 정렬) */
.widget-index .at-main .row:has(> [id^="show_menu"]) {
    display: flex !important; justify-content: space-around; align-items: center;
    padding: 14px 0 !important; border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.widget-index .at-main .row:has(> [id^="show_menu"]) > table { display: none; }
.widget-index .at-main [id^="show_menu"] { display: block !important; width: auto !important; flex: 1 1 0; text-align: center; font-size: 14px !important; }
.widget-index .at-main [id^="show_menu"] a { display: inline-block; color: #333; text-decoration: none; }
.widget-index .at-main [id^="show_menu"] img { display: block; margin: 0 auto 6px; width: 56px !important; height: 56px; }

/* ---------- 메인 : 서버일정 달력 위젯 ---------- */
.widget-index .at-main .server-schedule { margin: 0; text-align: left; }

/* =====================================================================
   사이드
   ===================================================================== */
.widget-index .at-side .widget-box { margin: 0 0 var(--gap) 0 !important; }
.widget-index .at-side > .hidden-sm > .widget-box { margin-top: 0 !important; }

/* 로그인 버튼 2개 : 같은 높이, 끝선 맞춤 */
.widget-index .at-side .widget-box > table:first-of-type,
.widget-index .at-side table[height="30"] { width: 100%; margin: 0 !important; border-collapse: separate; border-spacing: 0; }
.widget-index .at-side table[height="30"] td { width: 50%; padding: 0; vertical-align: top; }
.widget-index .at-side table[height="30"] td:first-child { padding-right: 4px; }
.widget-index .at-side table[height="30"] td:last-child { padding-left: 4px; }
.widget-index .at-side table[height="30"] img { display: block; width: 100% !important; height: auto; margin: 0 !important; }
.widget-index .at-side #sns_login, .widget-index .at-side #sns_login .sns-wrap {
    margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
}
.widget-index .at-side #sns_login, .widget-index .at-side #sns_login .sns-wrap { display: block !important; width: 100% !important; float: none !important; }
.widget-index .at-side #sns_login .sns-icon { display: block !important; width: 100% !important; height: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; }

/* 뉴스 티커 */
.widget-index .at-side .ticker-bannermanage {
    margin: 0 0 var(--gap) 0; padding: 10px 14px !important;
    border: 1px solid var(--line) !important; border-radius: 4px; background: #fafbfc !important;
}

/* 사이드 배너 : 박스 끝선과 일치 */
.widget-index .at-side > .row { width: 100% !important; margin: 0 0 var(--gap) 0 !important; padding: 0; }
.widget-index .at-side .hidden-xs > table { width: 100%; margin: 0 0 var(--gap) 0; }
.widget-index .at-side .hidden-xs > table td { padding: 0; }
.widget-index .at-side .hidden-xs > table .widget-box > div { height: auto !important; }
.widget-index .at-side .hidden-xs > table .widget-box { margin: 0 !important; }

/* 새댓글/새글 탭 */
.widget-index #contabroll3 {
    position: relative; height: auto !important; min-height: 0; margin: 0;
    border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden;
}
.widget-index #contabroll3 .mm1 { position: relative; display: flex; height: 34px; background: #f5f7f9; border-bottom: 1px solid var(--line); }
.widget-index #contabroll3 dd {
    float: none; width: auto; min-width: 64px; height: 34px; line-height: 34px; margin: 0; padding: 0 14px;
    border: 0; border-right: 1px solid var(--line); color: #555; font-size: 13px; text-align: center; cursor: pointer;
}
.widget-index #contabroll3 dd.on { background: #fff; color: #2753a2; font-weight: 700; box-shadow: inset 0 -2px 0 #2753a2; }
.widget-index #contabroll3 dt { height: auto !important; margin: 0; }
.widget-index #contabroll3 dt > table { border: 0 !important; }
.widget-index #contabroll3 dt > table > tbody > tr:first-child > td[colspan] { display: none; }
.widget-index #contabroll3 dt td { height: 30px; vertical-align: middle; }
.widget-index #contabroll3 dt tr:last-child > td { border-bottom: 0 !important; }

/* =====================================================================
   디자인 정리 (2026-11-29)
   - 카드(탭 게시판·바로가기·달력) 모양 통일, 배너 모서리·간격 통일
   - 좌측 사이드의 배너 안쪽 여백(3~4px)을 없애 다른 박스와 끝선 일치
   - 달력 위젯을 사이트 톤으로 정리
   ===================================================================== */
.widget-index { --radius: 10px; --line: #e3e6ec; --soft: #f6f7fa; --accent: #2753a2; }

/* 카드 : 같은 모서리·테두리·그림자 */
.widget-index #contabroll, .widget-index #contabroll2, .widget-index #contabroll3,
.widget-index .at-main .row:has(> [id^="show_menu"]) {
    border-radius: var(--radius); border-color: var(--line); box-shadow: 0 1px 3px rgba(20,28,60,.06);
}
.widget-index #contabroll .mm1, .widget-index #contabroll2 .mm1, .widget-index #contabroll3 .mm1 { background: var(--soft); border-bottom-color: var(--line); }
.widget-index #contabroll dd.on, .widget-index #contabroll2 dd.on, .widget-index #contabroll3 dd.on { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.widget-index #contabroll dd, .widget-index #contabroll2 dd, .widget-index #contabroll3 dd { transition: background .12s, color .12s; }
.widget-index #contabroll dd:hover, .widget-index #contabroll2 dd:hover, .widget-index #contabroll3 dd:hover { background: #fff; color: var(--accent); }

/* 목록 줄 : 높이·간격 통일, 마우스를 올리면 강조 */
.widget-index #contabroll dt td, .widget-index #contabroll2 dt td, .widget-index #contabroll3 dt td { height: 32px; }
.widget-index #contabroll dt tr, .widget-index #contabroll2 dt tr, .widget-index #contabroll3 dt tr { transition: background .1s; }
.widget-index #contabroll dt tr:hover, .widget-index #contabroll2 dt tr:hover, .widget-index #contabroll3 dt tr:hover { background: #f5f8ff; }

/* 배너 : 같은 모서리, 같은 간격, 살짝 떠오르는 효과 */
.widget-index .b_banner_ad { gap: 10px; }
.widget-index .b_banner_ad .banner_list_b_banner_ad { border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(20,28,60,.12); transition: transform .12s, box-shadow .12s; }
.widget-index .b_banner_ad .banner_list_b_banner_ad:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(20,28,60,.18); }
.widget-index .b_banner_ad .banner_list_b_banner_ad img { border-radius: 8px; }

/* 사이드 : 배너·박스의 좌우 끝선과 간격을 같게 (.banner_list 의 4px/3px 여백 제거) */
.widget-index .at-side .b_banner_ad { width: 100%; padding: 0; margin: 0; }
.widget-index .at-side .b_banner_ad .banner_list_b_banner_ad { margin: 0 !important; width: 100%; }
.widget-index .at-side .hidden-xs > table, .widget-index .at-side .hidden-xs > table td { width: 100%; display: block; }
.widget-index .at-side .widget-box > div[style*="height:180px"] { height: auto !important; margin: 0 !important; }
.widget-index .at-side .widget-box { margin-bottom: var(--gap) !important; }
.widget-index .at-side .widget-box img { max-width: 100%; height: auto; }

/* 바로가기 아이콘 카드 */
.widget-index .at-main .row:has(> [id^="show_menu"]) { padding: 16px 8px !important; }
.widget-index .at-main [id^="show_menu"] a { padding: 6px 10px; border-radius: 10px; transition: background .12s, transform .12s; }
.widget-index .at-main [id^="show_menu"] a:hover { background: #f1f5ff; transform: translateY(-2px); }
.widget-index .at-main [id^="show_menu"] img { margin-bottom: 8px; }

/* 서버일정 달력 : 노란 머리줄 → 사이트 톤, 칸 높이 통일 */
.widget-index .server-schedule { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(20,28,60,.06); }
.widget-index .server-schedule > ul { min-height: 0; }
.widget-index .server-schedule > ul > li { box-shadow: 1px 0 0 0 var(--line) inset, 0 -1px 0 0 var(--line) inset; font-size: 12.5px; }
.widget-index .server-schedule .week { background: #fff3a6; color: #3b3200; font-weight: 700; padding: 6px 0; border-bottom-color: var(--line); }
.widget-index .server-schedule .week-0 { color: #d4263b; }
.widget-index .server-schedule .week-6 { color: #2753a2; }
.widget-index .server-schedule .day { padding: 5px 0; background: var(--soft); color: #4b5563; border-bottom-color: var(--line); }
.widget-index .server-schedule > ul > li.today { background-color: #fff9d6; }
.widget-index .server-schedule > ul > li.today .day { background: #ffe97a; color: #3b3200; font-weight: 800; }
.widget-index .server-schedule > ul > li { min-height: 86px; }

/* 달력 위쪽 버튼·검색 줄 */
.widget-index .at-main .server-schedule-top, .widget-index .at-main form[name*="schedule"] { margin-bottom: 8px; }

/* 좁은 화면 */
@media (max-width: 991px) {
    .widget-index .b_banner_ad .banner_list_b_banner_ad:hover { transform: none; }
}

/* =====================================================================
   모바일 최적화 (2026-11-29) - 767px 이하
   - 그동안 휴대폰에서는 `hidden-xs` 때문에 배너·탭 게시판·바로가기·로그인이 모두 숨겨져 거의 빈 화면이었음
   - 한 줄(1단)로 쌓고, 터치하기 편하게 크기·간격을 조정
   ===================================================================== */
@media (max-width: 767px) {
    html, body { overflow-x: hidden; }
    .at-container.widget-index { padding-left: 10px; padding-right: 10px; }

    /* 숨겨지던 영역을 모바일에서도 표시 (양옆 고정 배너 .quick_left/.quick_right 는 제외) */
    .widget-index .hidden-xs, .widget-index .hidden-sm { display: block !important; }
    .widget-index .main_opens { display: none !important; }

    /* 컬럼 : 폭 100%, 떠 있는 배치 해제 */
    .widget-index > .at-row > .at-main, .widget-index .at-main, .widget-index .at-side {
        float: none !important; width: 100% !important; margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important;
    }
    .widget-index .at-side { margin-top: 12px !important; }

    /* 탭 게시판 2개 : 위아래로 쌓기 */
    .widget-index .at-main > .row > .hidden-xs { flex-direction: column; }
    .widget-index #contabroll, .widget-index #contabroll2, .widget-index #contabroll3 { min-height: 0; }
    .widget-index #contabroll .mm1, .widget-index #contabroll2 .mm1, .widget-index #contabroll3 .mm1 { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .widget-index #contabroll dd, .widget-index #contabroll2 dd, .widget-index #contabroll3 dd { min-width: 0; padding: 0 12px; flex: 0 0 auto; }
    .widget-index #contabroll dt td, .widget-index #contabroll2 dt td, .widget-index #contabroll3 dt td { height: 38px; font-size: 13px; }
    /* '포토' 탭(이미지 격자)은 한 줄에 3개 유지, 이미지는 칸에 맞춤 */
    .widget-index #contabroll img, .widget-index #contabroll2 img { max-width: 100%; height: auto; }

    /* 배너 : 터치하기 좋은 간격, 가로 넘침 방지 */
    .widget-index .b_banner_ad { gap: 8px; }
    .widget-index img { max-width: 100%; height: auto; }

    /* 바로가기 아이콘 : 2열 격자 */
    .widget-index .at-main .row:has(> [id^="show_menu"]) { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 10px 4px !important; }
    .widget-index .at-main [id^="show_menu"] { width: auto !important; padding: 6px 0; }
    .widget-index .at-main [id^="show_menu"] a { display: block; padding: 8px 4px; }
    .widget-index .at-main [id^="show_menu"] img { width: 48px !important; height: 48px; margin-bottom: 4px; }
    .widget-index .scale:hover { transform: none; }
    /* 부트스트랩 .row 의 :before/:after(clearfix)가 격자의 빈 칸이 되지 않게 */
    .widget-index .at-main .row:has(> [id^="show_menu"])::before, .widget-index .at-main .row:has(> [id^="show_menu"])::after { display: none; }
    .widget-index > .h20, .widget-index > .at-row > .h20 { display: none; }

    /* 서버일정 달력 : 요일 칸을 한 줄씩 */
    .widget-index .server-schedule > ul { display: block; }
    .widget-index .server-schedule > ul > li { width: 100%; min-height: 0; display: grid; grid-template-columns: 74px 1fr; box-shadow: 0 -1px 0 0 var(--line) inset; }
    .widget-index .server-schedule .week, .widget-index .server-schedule .day { grid-column: 1; border-bottom: 0; text-align: left; padding: 6px 10px; }
    .widget-index .server-schedule > ul > li > :not(.week):not(.day) { grid-column: 2; grid-row: 1 / span 2; padding: 6px; }
    .widget-index .server-schedule .server-schedule-top, .widget-index form[name*="schedule"] { display: flex; flex-wrap: wrap; gap: 6px; }

    /* 사이드(로그인·배너·새글) */
    .widget-index .at-side .widget-box, .widget-index .at-side .row { width: 100% !important; }
    .widget-index .at-side img { max-width: 100%; height: auto; }

    /* 위로 가기 버튼은 엄지가 닿기 쉬운 곳에 */
    .at-go { right: 12px; bottom: 16px; }
}
