/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Malgun Gothic', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

/* TradingView 시세 티커 */
.tradingview-ticker-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tradingview-widget-container {
    height: 46px;
    overflow: hidden;
}

.tradingview-widget-copyright {
    display: none !important;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 */
.header-top {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-menu a {
    margin-left: 15px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.header-menu a:hover {
    color: #1a9d8e;
}

.header-main {
    background-color: #fff;
    padding: 20px 0;
}

.logo h1 {
    color: #1a9d8e;
    font-size: 32px;
    font-weight: bold;
}

.logo h1 a {
    color: #1a9d8e;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.logo h1 a:hover {
    color: #158f81;
}

/* 네비게이션 */
.main-nav {
    background-color: #1a9d8e;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1001;
}

.main-nav .container {
    position: relative;
}

/* 햄버거 메뉴 버튼 - 기본적으로 숨김 (모바일에서만 표시) */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 15px 20px;
    background: none;
    border: none;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* PC 버전 - 가로 메뉴 */
.main-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 0;
    margin: 0;
}

.main-nav > .container > ul > li {
    position: relative;
}

.main-nav > .container > ul > li > a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.main-nav > .container > ul > li > a:hover,
.main-nav > .container > ul > li > a.active {
    background-color: #158f81;
}

/* 드롭다운 메뉴 - PC 버전 */
.dropdown {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex-direction: column;
    z-index: 1002;
}

.has-dropdown:hover > .dropdown {
    display: flex !important;
}

.dropdown li {
    display: block;
    width: 100%;
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 14px;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background-color: #f8f8f8;
    color: #1a9d8e;
    padding-left: 25px;
}

/* 메인 컨텐츠 */
main {
    padding: 30px 0;
}

.main-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

/* 왼쪽 사이드바 */
.sidebar-left {
    background-color: #fff;
    min-width: 0;
}

.login-box {
    padding: 25px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
}

.login-box h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a9d8e;
}

.login-content form {
    margin-top: 15px;
}

.input-group {
    position: relative;
    margin-bottom: 12px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
    z-index: 1;
}

.input-field {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #fff;
}

.input-field:focus {
    outline: none;
    border-color: #1a9d8e;
    box-shadow: 0 0 0 3px rgba(26, 157, 142, 0.1);
}

.input-field::placeholder {
    color: #aaa;
}

.auto-login-wrapper {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.auto-login-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.auto-login-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    cursor: pointer;
    accent-color: #1a9d8e;
}

.auto-login-label span {
    user-select: none;
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(to bottom, #1a9d8e 0%, #158f81 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(26, 157, 142, 0.3);
}

.btn-login:hover {
    background: linear-gradient(to bottom, #158f81 0%, #147a6e 100%);
    box-shadow: 0 4px 8px rgba(26, 157, 142, 0.4);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(26, 157, 142, 0.3);
}

.login-options {
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
}

.login-options .links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.login-options .links a {
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.login-options .links a:hover {
    color: #1a9d8e;
    text-decoration: underline;
}

.login-options .links .divider {
    color: #ccc;
}

/* 로그인 후 사용자 정보 박스 */
.user-info-box {
    text-align: center;
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.user-avatar-icon {
    font-size: 32px;
    color: #fff;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.user-tier-points {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.user-tier-points .divider {
    margin: 0 5px;
    color: #ccc;
}

.user-tier {
    color: #1a9d8e;
    font-weight: 500;
}

.user-points {
    font-weight: 600;
    color: #ff6b6b;
}

/* 경험치 바 */
.exp-section {
    margin-bottom: 12px;
}

.exp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.exp-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.exp-value {
    font-size: 11px;
    color: #999;
}

.exp-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.exp-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a9d8e 0%, #26d0ce 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.exp-bar.game-exp {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* 사용자 액션 버튼 */
.user-actions {
    display: flex;
    gap: 5px;
    margin-top: 15px;
}

.btn-user-action {
    flex: 1;
    padding: 12px 10px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-mypage {
    background: linear-gradient(135deg, #1a9d8e 0%, #26d0ce 100%);
    color: #fff;
    box-shadow: 0 2px 5px rgba(26, 157, 142, 0.3);
}

.btn-mypage:hover {
    background: linear-gradient(135deg, #158f81 0%, #1ebfbd 100%);
    box-shadow: 0 3px 8px rgba(26, 157, 142, 0.4);
    transform: translateY(-1px);
}

.btn-logout-side {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #666;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-logout-side:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    color: #333;
}

.sidebar-menu {
    display: flex;
}

.sidebar-menu button {
    flex: 1;
    padding: 15px;
    border: none;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.sidebar-menu button.active {
    background-color: #1a9d8e;
    color: #fff;
}

.sidebar-menu button:hover {
    background-color: #158f81;
    color: #fff;
}

.notice-list {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.notice-list ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.notice-list ul li:last-child {
    border-bottom: none;
}

.notice-list ul li a {
    color: #555;
}

.notice-list ul li a:hover {
    color: #1a9d8e;
}

/* 최신댓글 섹션 */
.latest-comments-section {
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
}

.section-header {
    background-color: #1a9d8e;
    padding: 12px 15px;
}

.section-header h4 {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

.comments-list {
    padding: 10px;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 5px;
    border-bottom: 1px solid #f5f5f5;
    gap: 8px;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background-color: #1a9d8e;
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-text {
    display: block;
    color: #333;
    font-size: 12px;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-text:hover {
    color: #1a9d8e;
    text-decoration: underline;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.comment-count {
    color: #ff6b6b;
    font-weight: bold;
}

.comment-time {
    color: #999;
}

/* 포인트/레벨 순위 섹션 */
.ranking-section {
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
    max-height: 400px;
}

.ranking-content {
    max-height: 320px;
    overflow-y: auto;
}

/* 랭킹 스크롤바 스타일 */
.ranking-content::-webkit-scrollbar {
    width: 6px;
}

.ranking-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.ranking-content::-webkit-scrollbar-thumb {
    background: #1a9d8e;
    border-radius: 3px;
}

.ranking-content::-webkit-scrollbar-thumb:hover {
    background: #158f81;
}

.ranking-tabs {
    display: flex;
}

.ranking-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background-color: #f5f5f5;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.ranking-tab.active {
    background-color: #1a9d8e;
    color: #fff;
    font-weight: bold;
}

.ranking-tab:hover:not(.active) {
    background-color: #e8e8e8;
    color: #1a9d8e;
}

.ranking-content {
    max-height: 400px;
    overflow-y: auto;
}

.ranking-list {
    padding: 5px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid #f5f5f5;
    gap: 8px;
    transition: background-color 0.3s;
}

.ranking-item:hover {
    background-color: #f9f9f9;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item .rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
}

.ranking-item .rank-1 {
    color: #ffd700;
    font-size: 14px;
}

.ranking-item .rank-2 {
    color: #c0c0c0;
    font-size: 13px;
}

.ranking-item .rank-3 {
    color: #cd7f32;
    font-size: 13px;
}

.ranking-item .rank-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.ranking-item .rank-user {
    flex: 1;
    font-size: 12px;
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-item .rank-score {
    font-size: 11px;
    color: #666;
    font-weight: bold;
    white-space: nowrap;
}

/* 스크롤바 스타일 */
.ranking-content::-webkit-scrollbar {
    width: 6px;
}

.ranking-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ranking-content::-webkit-scrollbar-thumb {
    background: #1a9d8e;
    border-radius: 3px;
}

.ranking-content::-webkit-scrollbar-thumb:hover {
    background: #158f81;
}

.quick-links {
    padding: 15px;
    margin-bottom: 0;
}

.btn-support {
    width: 100%;
    padding: 12px;
    background-color: #1a9d8e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-support:hover {
    background-color: #158f81;
}

/* 중앙 컨텐츠 */
.main-content {
    background-color: #fff;
    min-width: 0; /* 그리드 아이템이 내용 크기로 늘어나는 것 방지 */
    overflow: hidden;
}

/* 히어로 섹션 */
.hero-section {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* 슬라이드 컨테이너: 명시적 width 100% 필수 */
.hero-slides {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

/* 각 슬라이드: flex-basis 100%로 컨테이너 기준 명확히 */
.hero-slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
}

/* 이미지: 가로 100% 채우고, 최대 높이 제한 + object-fit cover */
.hero-slide > img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* 기본 배너(이미지 없을 때) fallback */
.hero-slide.default-banner {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
    width: 100%;
    pointer-events: none;
}

.hero-content a,
.hero-content button {
    pointer-events: auto;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #1a9d8e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover {
    background-color: #158f81;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    border-radius: 5px;
}

.hero-prev:hover,
.hero-next:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.hero-dot.active {
    background-color: #1a9d8e;
    width: 30px;
    border-radius: 6px;
}

.hero-dot:hover {
    background-color: #158f81;
}

/* 게시판 */
.board-section {
    padding: 20px;
}

.board-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.board-tabs .tab {
    padding: 12px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.board-tabs .tab.active {
    color: #1a9d8e;
    border-bottom-color: #1a9d8e;
    font-weight: bold;
}

.board-tabs .tab:hover {
    color: #1a9d8e;
}

.board-list {
    margin-top: 15px;
}

.board-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.board-item:hover {
    background-color: #f9f9f9;
}

.board-item .number {
    width: 40px;
    color: #1a9d8e;
    font-weight: bold;
}

.board-item .title {
    flex: 1;
    color: #333;
}

.board-item .comment {
    color: #ff6b6b;
    margin-right: 15px;
    font-size: 13px;
}

.board-item .date {
    color: #999;
    font-size: 13px;
}

/* 푸터 */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
}

footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar-left {
        display: none;
    }

    /* 모바일에서만 햄버거 메뉴 표시 */
    .hamburger {
        display: block;
    }

    /* 모바일 메뉴 스타일 */
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a9d8e;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        flex-direction: column;
        z-index: 1002;
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav > .container > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav > .container > ul > li > a {
        padding: 15px 25px;
    }

    /* 모바일 드롭다운 */
    .dropdown {
        position: static;
        background-color: #158f81;
        box-shadow: none;
        min-width: auto;
    }

    .has-dropdown:hover > .dropdown {
        display: none !important;
    }

    .has-dropdown.open > .dropdown {
        display: flex !important;
    }

    .dropdown li a {
        padding: 12px 20px 12px 40px;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown li a:hover {
        background-color: #147a6e;
        color: #fff;
        padding-left: 40px;
    }

    /* 히어로 섹션 반응형 */
    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    .hero-prev,
    .hero-next {
        padding: 10px 15px;
        font-size: 18px;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    /* 메인정보글 반응형 */
    .main-info-hero {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .main-info-hero-content {
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .main-info-hero-content h2 {
        font-size: 22px;
        margin-bottom: 18px;
        line-height: 1.5;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .hero-subtitle-line {
        font-size: 17px;
        line-height: 1.8;
        margin: 5px 0;
    }

    .hero-subtitle-line.highlight {
        font-size: 18px;
    }

    .hero-main-point {
        font-size: 17px;
        margin: 12px 0 8px;
        line-height: 1.8;
    }

    .main-info-guide-item {
        padding: 20px 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .main-info-guide-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 15px;
        margin-right: 0;
    }

    .main-info-guide-content h3 {
        font-size: 18px;
    }

    .main-info-guide-content p {
        font-size: 14px;
    }
}

/* ===================================== */
/* 메인정보글 섹션 (경쟁사 스타일) */
/* ===================================== */
.main-info-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* 히어로 배너 스타일 (경쟁사 스타일) */
.main-info-hero {
    background: linear-gradient(135deg, #1e4d54 0%, #1a3a42 50%, #0d2731 100%);
    border-radius: 20px;
    padding: 70px 50px;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.main-info-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(26, 157, 142, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(22, 186, 170, 0.08) 0%, transparent 40%);
    pointer-events: none;
    animation: subtle-pulse 8s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.main-info-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

/* 메인 타이틀 */
.main-info-hero-content h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* 부제목 라인들 */
.hero-subtitle-line {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 2.2;
    margin: 8px 0;
    font-weight: 400;
}

.hero-subtitle-line.highlight {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

/* 강조 색상 */
.hero-highlight {
    color: #1affcc;
    font-weight: 600;
}

/* 모바일 전용 줄바꿈 */
.mobile-br {
    display: none;
}

@media (max-width: 768px) {
    .mobile-br {
        display: block;
    }
}

/* 구분선 */
.hero-divider {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 8px;
}

@media (max-width: 768px) {
    .hero-divider {
        display: none;
    }
    .hero-item {
        display: block;
        margin: 4px 0;
    }
}

/* 히어로 텍스트 모바일 오버라이드 (데스크탑 스타일 이후에 위치해야 적용됨) */
@media (max-width: 768px) {
    .main-info-hero-content h2 {
        font-size: 22px !important;
        line-height: 1.5 !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
    }

    .hero-main-point {
        font-size: 17px !important;
        line-height: 1.8 !important;
        word-break: keep-all !important;
    }

    .hero-subtitle-line {
        font-size: 17px !important;
    }
}

/* 큰 강조 라인 */
.hero-main-point {
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    margin: 20px 0 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 가이드 섹션 */
.main-info-guide {
    background: #fff;
    border-radius: 10px;
    padding: 0;
}

.main-info-guide-item {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    transition: background-color 0.3s;
}

.main-info-guide-item:last-child {
    border-bottom: none;
}

.main-info-guide-item:hover {
    background-color: #f8f9fa;
}

.main-info-guide-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a9d8e 0%, #16baaa 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 20px;
    box-shadow: 0 4px 10px rgba(26, 157, 142, 0.3);
}

.main-info-guide-content {
    flex: 1;
}

.main-info-guide-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.main-info-guide-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.main-info-guide-content a {
    color: #1a9d8e;
    text-decoration: underline;
    transition: color 0.3s;
}

.main-info-guide-content a:hover {
    color: #16baaa;
}

.main-info-guide-content strong {
    color: #333;
    font-weight: 600;
}

.main-info-guide-content ul,
.main-info-guide-content ol {
    margin-top: 10px;
    margin-left: 20px;
}

.main-info-guide-content li {
    margin-bottom: 8px;
    color: #666;
}

.main-info-guide-content h4 {
    color: #1a9d8e;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.main-info-guide-content p {
    margin: 10px 0;
    line-height: 1.8;
    color: #555;
}

.faq-question {
    background: #e3f2fd;
    padding: 15px;
    border-left: 4px solid #1a9d8e;
    margin: 15px 0;
    border-radius: 5px;
}

.faq-question strong {
    color: #1976d2;
    font-size: 15px;
}

/* 메인 배너 3개 */
.main-banners-section {
    margin: 30px 0;
}

.main-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.main-banners-grid > div,
.main-banners-grid > a {
    transition: transform 0.3s ease;
}

.main-banners-grid > div:hover,
.main-banners-grid > a:hover {
    transform: translateY(-2px);
}

/* 커뮤니티 게시판 4개 */
.community-boards-section {
    margin: 30px 0;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.board-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.board-box:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.board-posts-list {
    min-height: 150px;
}

.board-posts-list > div {
    transition: background-color 0.2s ease;
}

.board-posts-list > div:hover {
    background-color: #f8f9fa;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    /* 메인 배너 - 모바일에서도 가로 3개 (작은 크기) */
    .main-banners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        margin: 15px 0;
    }

    .main-banners-grid img {
        border-radius: 4px;
    }

    .boards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .board-box {
        padding: 15px;
    }

    .community-boards-section h2 {
        font-size: 20px;
    }

    /* 모바일에서 게시판 1열로 */
    #boardList > div {
        grid-template-columns: 1fr !important;
    }

    .board-column-left {
        border-right: none !important;
    }
}

/* 태블릿 (768px ~ 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-banners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* 헤더 모바일 개선 */
@media (max-width: 768px) {
    .header-info {
        display: none;
    }

    .header-menu {
        width: 100%;
        justify-content: flex-end;
    }

    .logo h1 {
        font-size: 22px;
    }

    .header-main {
        padding: 12px 0;
    }

    /* board-sort 모바일 */
    .board-sort {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px !important;
    }
}
