/* ==========================================================================
   [기본 레이아웃 및 섹션]
   ========================================================================== */
.latest-section {
    width: 100%;
    padding: 30px 0;
    background: #f7f7f7;
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
    box-sizing: border-box;
}

.latest-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 0 12px;
    box-sizing: border-box;
}

.latest-left {
    flex: 2;
    min-width: 0;
}

.latest-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   [공통 카드 및 헤더 구성]
   ========================================================================== */
.news-card {
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
}

.news-header, .card-header {
    height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
    box-sizing: border-box;
}

.news-header h2, .card-header span {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.news-header a, .card-header a, .more {
    font-size: 12px;
    color: #777;
    text-decoration: none;
    transition: .2s;
}

.news-header a:hover, .card-header a:hover {
    color: #8b0000;
}

/* ==========================================================================
   [뉴스 리스트 및 항목 스타일]
   ========================================================================== */
.news-list {
    list-style: none;
    margin: 0;
    padding: 10px 18px;
    box-sizing: border-box;
}

.news-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-bottom: 1px dotted #ddd;
    transition: background .2s ease;
    box-sizing: border-box;
}

.news-list li:last-child {
    border-bottom: 0;
}

.news-list li:hover {
    background: #f3f3f3;
}

/* 썸네일 & 노이미지 */
.news-thumb {
    width: 100px;
    height: 68px;
    flex-shrink: 0;
    overflow: hidden;
    background: #eee;
    display: block;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-image-box {
    width: 100%;
    height: 100%;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b0000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* 본문 컨텐츠 내역 */
.news-body {
    flex: 1;
    min-width: 0;
}

.news-title {
    display: block;
    font-size: 15px; /* 기본 크기 하단 사양 결합 */
    font-weight: 500;
    color: #111;
    text-decoration: none;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.large-list .news-title {
    font-size: 18px; /* 메인 대형 리스트용 크기 분리 유지 */
}

.news-title:hover {
    color: #8b0000;
}

.news-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-desc {
    width: 68%;
    margin: 0;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.large-list .news-desc {
    width: 70%;
    font-size: 13px;
}

.news-date {
    flex-shrink: 0;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    background: #f3f3f3;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    line-height: 1.35;
    white-space: nowrap;
    gap: 5px;
}

.large-list .news-date {
    padding: 7px 10px;
    font-size: 13px;
    line-height: 1.4;
}

.news-good {
    color: #8b0000;
    font-weight: 600;
}

.bottom-more {
    height: 38px;
    border-top: 1px solid #eee;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-more a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.bottom-more a:hover {
    color: #8b0000;
}

/* ==========================================================================
   [상단 3분할 그리드 관련 영역]
   ========================================================================== */
.top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid #eee;
}

.top-item {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 8px;
    transition: background 0.2s ease;
}

.top-item:hover {
    background: #f3f3f3;
}

.top-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #eee;
    margin-bottom: 10px;
}

.top-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-item strong {
    display: -webkit-box;
    font-size: 17px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    min-height: 46px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
}

.top-item p {
    margin: 4px 0 6px;
    font-size: 13px;
    color: #777;
    line-height: 1.35;
    min-height: 35px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f3f3f3;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    line-height: 1.35;
}

.top-good {
    color: #8b0000;
    font-weight: 600;
}

/* ==========================================================================
   [커뮤니티 보드 (기타정보형 2열 구조)]
   ========================================================================== */
.community-board {
    width: 90%;
    margin: 24px auto 0;
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
}

.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
}

.community-header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.3px;
}

.community-header a {
    font-size: 12px;
    color: #777;
    text-decoration: none;
}

.community-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 16px 10px;
}

.community-col {
    list-style: none;
    margin: 0;
    padding: 0;
}

.community-col li {
    display: flex;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #f1f1f1;
}

.community-col li:last-child {
    border-bottom: none;
}

.community-col li a {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    overflow: hidden;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    transition: .2s;
}

.community-col li a:hover {
    color: #8b0000;
}

.list-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8b0000;
    flex-shrink: 0;
}

.subject-text {
    flex: 1;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ==========================================================================
   [롤링 공지사항 애니메이션 구역]
   ========================================================================== */
.notice-roll-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 14px auto;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

.notice-roll-label {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #3049b5;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}

.notice-roll-label:hover {
    background: #6d0000;
}

.notice-roll-box {
    position: relative;
    flex: 1;
    height: 40px;
    overflow: hidden;
    border: 1px solid #e7ddb0;
    background: #fff9d9;
    border-radius: 6px;
}

.notice-roll-list {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: noticeRoll 12s infinite;
}

.notice-roll-list li {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
}

.notice-date {
    flex: 0 0 auto;
    margin-right: 10px;
    color: #aaa;
    font-size: 11px;
    font-weight: 500;
}

.notice-roll-list li a {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-roll-list li a:hover {
    color: #8b0000;
}

@keyframes noticeRoll {
    0%, 28% { transform: translateY(0); }
    33%, 61% { transform: translateY(-40px); }
    66%, 94% { transform: translateY(-80px); }
    100% { transform: translateY(0); }
}

/* ==========================================================================
   [기타 배너 세션 (어드바이저, 스토어, 앱, 포인트)]
   ========================================================================== */
/* 어드바이저 배너 & 레이어 팝업 */
.advisor-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 18px 18px;
    padding: 14px 20px;
    background: #111;
    border: 1px solid #222;
    box-sizing: border-box;
    cursor: pointer;
    transition: .2s;
}

.advisor-banner:hover { background: #181818; }
.advisor-left { flex: 1; min-width: 0; }
.advisor-sub { font-size: 9px; font-weight: 700; color: #ffd400; letter-spacing: 1.4px; margin-bottom: 5px; }
.advisor-title { font-size: 22px; font-weight: 500; color: #fff; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 4px; }
.advisor-desc { font-size: 12px; color: rgba(255,255,255,0.66); line-height: 1.45; }
.advisor-right { text-align: right; flex-shrink: 0; }
.advisor-contact { font-size: 13px; font-weight: 600; color: #ffd400; white-space: nowrap; }

.advisor-layer { position: fixed; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.58); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.advisor-layer-box { width: 100%; max-width: 340px; background: #fff; padding: 26px 22px; text-align: center; box-sizing: border-box; }
.advisor-layer-title { font-size: 22px; font-weight: 800; color: #111; margin-bottom: 12px; }
.advisor-layer-text { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 22px; }
.advisor-layer-close { width: 100%; height: 44px; border: 0; background: #111; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }

/* 스토어(업체정보) 메인 배너 */
.store-main-banner-link { display: block; text-decoration: none; }
.store-main-banner { background: #fff; border-radius: 16px; padding: 16px 18px; border: 1px solid #ececec; box-shadow: 0 4px 14px rgba(0,0,0,0.04); transition: .18s; }
.store-main-banner:hover { transform: translateY(-2px); border-color: #03c75a; box-shadow: 0 8px 22px rgba(0,0,0,0.08); }
.store-main-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.store-main-left { flex: 1; min-width: 0; }
.store-main-sub { font-size: 10px; font-weight: 800; color: #03c75a; letter-spacing: 1.6px; margin-bottom: 5px; }
.store-main-title { font-size: 20px; font-weight: 500; color: #111; line-height: 1.2; letter-spacing: -0.4px; }
.store-main-desc { margin-top: 6px; font-size: 12px; color: #888; line-height: 1.45; }
.store-main-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.store-main-count { text-align: right; }
.store-main-count strong { display: block; font-size: 24px; font-weight: 800; color: #03c75a; line-height: 1; }
.store-main-count span { display: block; margin-top: 3px; font-size: 11px; color: #777; }
.store-main-arrow { width: 42px; height: 42px; border-radius: 50%; background: #03c75a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }

/* 앱 다운로드 배너 */
.android-app-banner { height: 68px; background: #ffd400; border: 1px solid #e0bc00; border-radius: 8px; overflow: hidden; box-sizing: border-box; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.android-app-banner a { width: 100%; height: 100%; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; box-sizing: border-box; }
.android-app-left { display: flex; align-items: center; gap: 10px; }
.android-icon { font-size: 24px; line-height: 1; }
.android-app-text { color: #111; font-size: 16px; font-weight: 400; letter-spacing: -0.3px; }
.android-download-btn { height: 38px; padding: 0 18px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: #111; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15); transition: .2s ease; }
.android-app-banner:hover .android-download-btn { transform: translateY(-1px); opacity: .92; }

/* 포인트 가이드 배너 */
.point-guide-banner { position: relative; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, #bb42e8 0%, #8d2bd1 100%); box-shadow: 0 6px 18px rgba(0,0,0,0.08); transition: .2s ease; }
.point-guide-banner:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.14); }
.point-guide-banner a { display: flex; align-items: center; gap: 12px; padding: 14px; text-decoration: none; color: #fff; }
.point-guide-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.10); display: flex; align-items: center; justify-content: center; font-size: 23px; backdrop-filter: blur(4px); }
.point-guide-text { flex: 1; min-width: 0; }
.point-guide-title { font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -0.5px; color: #fff; }
.point-guide-desc { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,0.82); line-height: 1.4; }
.point-guide-arrow { flex-shrink: 0; font-size: 28px; color: #fff2a8; font-weight: 300; }

/* 광고 구역 중간/사이드 배너 */
.mid-banner { height: 80px; margin: 0 18px 18px; background: #e9e9e9; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.mid-banner a { color: #555; font-size: 16px; font-weight: 500; text-decoration: none; }
.side-banner { height: 50px; background: #e9e9e9; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.side-banner a { color: #555; font-size: 14px; font-weight: 500; text-decoration: none; }

/* 누적 조회수 현황 상자 */
.total-hit-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.total-hit-box { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; height: 66px; border: 1px solid #ddd; background: #fff; box-sizing: border-box; }
.total-hit-box span { font-size: 13px; color: #666; font-weight: 500; }
.total-hit-box strong { color: #8b0000; font-size: 22px; font-weight: 800; line-height: 1; }
.total-hit-box.today { background: #fff8f8; }

/* ==========================================================================
   [조회수 기준 랭킹 영역]
   ========================================================================== */
.rank-box { border: 1px solid #ddd; background: #fff; }
.rank-head { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #eee; background: #fafafa; box-sizing: border-box; }
.rank-title { font-size: 14px; font-weight: 700; color: #8b0000; }
.rank-more { font-size: 11px; font-weight: 700; color: #777; text-decoration: none; letter-spacing: 0.5px; }
.rank-more:hover { color: #8b0000; }
.rank-content { padding: 10px 12px; }
.rank-content ul { list-style: none; margin: 0; padding: 0; }
.rank-content li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dotted #eee; font-size: 13px; transition: background .2s ease; }
.rank-content li:hover { background: #f5f5f5; }
.rank-content li:last-child { border-bottom: 0; }
.num { width: 18px; text-align: center; font-weight: 700; color: #8b0000; }
.rank-content a { flex: 1; color: #222; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-content a:hover { color: #8b0000; }
.date { font-size: 11px; color: #999; flex-shrink: 0; }

/* ==========================================================================
   [반응형 미디어 쿼리 - 태블릿 및 소형 PC 구간]
   ========================================================================== */
@media (max-width: 900px) {
    .latest-wrap { flex-direction: column; }
    .top-grid { grid-template-columns: 1fr; }
    .top-img { height: 210px; }
}

/* ==========================================================================
   [반응형 미디어 쿼리 - 모바일 전용 구간]
   ========================================================================== */
@media (max-width: 768px) {
    /* 레이아웃 & 패딩 조절 */
    .news-header, .card-header { padding: 0 14px; height: 40px; }
    .news-header h2, .card-header span { font-size: 15px; }
    .news-header a, .card-header a, .rank-more { font-size: 11px; }
    .news-list { padding: 8px 10px; }
    .news-list li { gap: 10px; padding: 9px 6px; }
    .news-thumb { width: 82px; height: 58px; }
    
    /* 폰트 및 세부 너비 비율 */
    .news-title { font-size: 14px; }
    .large-list .news-title { font-size: 15px; }
    .news-desc { width: 68%; font-size: 11px; }
    .news-date { font-size: 10px; padding: 5px 8px; }
    .large-list .news-date { font-size: 11px; padding: 6px 8px; width: auto; }
    
    /* 어드바이저 모바일 스타일 */
    .advisor-banner { flex-direction: column; align-items: flex-start; gap: 12px; margin: 0 12px 12px; padding: 14px; }
    .advisor-title { font-size: 18px; margin-bottom: 3px; }
    .advisor-desc { font-size: 11px; }
    .advisor-right { width: 100%; text-align: left; }
    .advisor-contact { font-size: 12px; }
    .advisor-layer-box { padding: 22px 18px; }
    .advisor-layer-title { font-size: 20px; }
    .advisor-layer-text { font-size: 13px; }

    /* 커뮤니티 보드 모바일 스타일 */
    .community-board { width: 92%; margin-top: 18px; border-left: 0; border-right: 0; }
    .community-wrap { grid-template-columns: 1fr; gap: 0; padding: 0 14px 8px; }
    .community-col:nth-child(2) { display: none; } /* 모바일에서 우측 열 숨김 */
    .community-col li { padding: 9px 0; }
    .community-col li a { font-size: 12px; gap: 7px; }
    .list-dot { width: 4px; height: 4px; }

    /* 롤링 공지사항 모바일 스타일 */
    .notice-roll-wrap { margin: 10px auto; gap: 8px; }
    .notice-roll-label { height: 34px; padding: 0 12px; font-size: 12px; }
    .notice-roll-box, .notice-roll-list li { height: 34px; }
    .notice-roll-list li a { font-size: 12px; }
    .notice-date { margin-right: 8px; font-size: 10px; }
    @keyframes noticeRoll {
        0%, 28% { transform: translateY(0); }
        33%, 61% { transform: translateY(-34px); }
        66%, 94% { transform: translateY(-68px); }
        100% { transform: translateY(0); }
    }

    /* 배너 인프라 모바일 스타일 */
    .pc-store-banner { display: none; } /* PC 전용 배너 은닉 */
    .store-main-banner { padding: 14px; border-radius: 14px; }
    .store-main-title { font-size: 17px; }
    .store-main-desc { font-size: 11px; }
    .store-main-count strong { font-size: 20px; }
    .store-main-arrow { width: 36px; height: 36px; font-size: 17px; }
    
    .android-app-banner { height: 58px; border-radius: 6px; }
    .android-app-banner a { padding: 0 12px; }
    .android-icon { font-size: 18px; }
    .android-app-text { font-size: 13px; }
    .android-download-btn { height: 32px; padding: 0 14px; font-size: 11px; }

    .point-guide-banner a { padding: 12px; gap: 10px; }
    .point-guide-icon { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; }
    .point-guide-title { font-size: 15px; }
    .point-guide-desc { margin-top: 3px; font-size: 11px; }
    .point-guide-arrow { font-size: 22px; }

    .total-hit-wrap { gap: 8px; }
    .total-hit-box { height: 58px; }
    .total-hit-box span { font-size: 11px; }
    .total-hit-box strong { font-size: 18px; }
    
    .mid-banner { height: 70px; margin: 0 12px 12px; }
    
    /* 랭킹 박스 모바일 스타일 */
    .rank-head { height: 40px; padding: 0 12px; }
    .rank-title { font-size: 13px; }
    .rank-content { padding: 8px 10px; }
    .rank-content li { font-size: 12px; padding: 6px 0; }
    .date { font-size: 10px; }

    /* ==========================================================================
       🚨 화살표 강제 삭제 코드 (모든 슬라이드 플러그인 무력화)
       ========================================================================== */
    [class*="slick-arrow"], 
    [class*="swiper-button"], 
    [class*="owl-nav"], 
    [class*="bx-controls"],
    button.slick-prev, 
    button.slick-next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        z-index: -9999 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 520px) {
    .latest-section { padding: 20px 0; }
    .top-grid { padding: 12px; gap: 10px; }
    .top-img { height: 180px; }
}

