:root {
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff; /* 여전히 다른 곳에서 사용될 수 있으므로 유지 */
    --neon-green: #39ff14;
    --dark-bg: #0D0D0D;
    --content-bg: #1a1a1a;
    --light-text: #f0f0f0;
    --grey-text: #aaaaaa;
    --border-glow: 0 0 3px var(--neon-cyan), 0 0 6px var(--neon-cyan), 0 0 9px var(--neon-cyan);
    --text-glow: 0 0 2px var(--neon-cyan), 0 0 4px var(--neon-cyan);
    --section-padding: 2.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    background-color: var(--dark-bg);
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    overflow: visible;
    margin: 0 auto;
}

header {
    background-color: var(--content-bg);
    color: var(--light-text);
    padding: 1rem 0;
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

header .logo a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: var(--text-glow);
}

header nav ul { list-style: none; }
header nav ul li { display: inline; margin-left: 20px; }
header nav ul li a {
    color: var(--grey-text);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
header nav ul li a:hover { color: var(--neon-cyan); text-shadow: var(--text-glow); }

header .user-actions button {
    background-color: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 0.5rem 1rem;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}
header .user-actions button:hover {
    background-color: var(--neon-cyan);
    color: var(--dark-bg);
    box-shadow: var(--border-glow);
}

.main-content-wrapper {
    display: flex;
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
}

main { flex: 3; }

.main-area-section {
    background-color: var(--content-bg);
    padding: var(--section-padding);
    border-radius: 5px;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}
.main-area-section h2, .main-area-section h3 { /* h3 추가 */
    font-size: 2rem;
    color: var(--neon-cyan);
    text-shadow: var(--text-glow);
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}
 .main-area-section h2 .highlight, .main-area-section h3 .highlight { /* h3 추가 */
    color: var(--neon-cyan);
    text-shadow: var(--text-glow);
}

.hero {
    background: linear-gradient(rgba(13, 13, 13, 0.8), rgba(13, 13, 13, 0.8)), url('hero-background.jpg') no-repeat center center/cover; /* 실제 이미지 경로로 변경 */
    color: var(--light-text); padding: 4rem 2rem; text-align: center;
    border-radius: 5px; margin-bottom: 2rem;
    border: 1px solid var(--neon-cyan); box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}
.hero h1 { /* SEO를 위해 h1으로 변경 */
    font-size: 2.8rem; margin-bottom: 1rem; line-height: 1.3;
    color: var(--neon-cyan); text-shadow: var(--text-glow), 0 0 8px var(--neon-cyan);
}
.hero p { font-size: 1.1rem; color: var(--grey-text); }

.content-grid { padding-top: 0; }
/* .content-grid h2 { text-align: center; } 이미 main-area-section h2에 스타일 있음 */

.content-grid .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.content-grid .item {
    background-color: var(--dark-bg); padding: 1.5rem;
    border: 1px solid var(--neon-cyan); border-radius: 5px;
    text-align: center; position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}
.content-grid .item:hover {
     transform: translateY(-5px) scale(1.02);
     box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-cyan);
}
.content-grid .item img { max-width: 70px; height: auto; margin-bottom: 1rem; background-color: transparent; padding: 0; border-radius: 3px; }
.content-grid .item h3 { /* 이 부분은 h4로 변경 고려 또는 main-area-section h3 스타일과 구분 */
    color: var(--light-text); margin-bottom: 0.5rem; font-size: 1rem; font-weight: 600;
    border-bottom: none; /* main-area-section의 h3 스타일 상속 방지 */
    text-align: center; /* main-area-section의 h3 스타일 상속 방지 */
    padding-bottom: 0; /* main-area-section의 h3 스타일 상속 방지 */
}
.content-grid .item .company-name { font-size: 1.3rem; font-weight: bold; margin-bottom: 0.8rem; color: var(--neon-cyan); text-shadow: var(--text-glow); }
.content-grid .item .details { list-style: none; padding: 0; margin-bottom: 1rem; font-size: 0.9rem; color: var(--grey-text); }
.content-grid .item .details li { margin-bottom: 0.4rem; }
.content-grid .item .badge {
    position: absolute; top: -1px; right: -1px;
    background-color: var(--neon-cyan); color: var(--dark-bg);
    padding: 8px 14px; font-size: 0.9rem;
    border-radius: 0 5px 0 5px; font-weight: bold;
    box-shadow: 0 0 8px var(--neon-cyan);
}

.custom-content-section .content-box {
    background-color: rgba(0,0,0,0.2); padding: 1.5rem;
    border-radius: 4px; margin-bottom: 1.5rem;
    border-left: 3px solid var(--neon-cyan);
}
.custom-content-section .content-box h3 { /* 이 부분은 h4로 변경 고려 또는 main-area-section h3 스타일과 구분 */
    color: var(--neon-cyan); margin-bottom: 0.5rem;
    border-bottom: none; /* main-area-section의 h3 스타일 상속 방지 */
    text-align: left; /* main-area-section의 h3 스타일 상속 방지 */
    padding-bottom: 0; /* main-area-section의 h3 스타일 상속 방지 */
    font-size: 1.4rem; /* 예시 크기 */
}
.custom-content-section p { color: var(--grey-text); margin-bottom: 1rem; line-height: 1.7; }

/* 긴 콘텐츠용 섹션 (특별 이벤트 & 프로모션) 스타일 - 색상 통일 */
.alternative-content-section {
    /* main-area-section 스타일 상속 */
}

.long-content-item { /* article 태그로 변경될 수 있음 */
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed var(--neon-cyan);
}
.long-content-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.long-content-item h3 { /* 이 부분은 h4로 변경 고려 또는 main-area-section h3 스타일과 구분 */
    color: var(--neon-cyan);
    text-shadow: var(--text-glow);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    border-bottom: none; /* main-area-section의 h3 스타일 상속 방지 */
    text-align: left; /* main-area-section의 h3 스타일 상속 방지 */
    padding-bottom: 0; /* main-area-section의 h3 스타일 상속 방지 */
}
.long-content-item .content-meta {
    font-size: 0.85rem;
    color: var(--grey-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,255,255,0.2);
}
.long-content-item .content-meta span {
    margin-right: 15px;
}
.long-content-item p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.long-content-item p:last-of-type {
     margin-bottom: 1.5rem;
}
.long-content-item .read-more-link {
    display: inline-block;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 1px solid var(--neon-cyan);
    border-radius: 3px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 5px rgba(0,255,255, 0.4);
}
.long-content-item .read-more-link:hover {
    background-color: var(--neon-cyan);
    color: var(--dark-bg);
    box-shadow: var(--border-glow);
}

.faq-section details {
    background-color: rgba(0,0,0,0.2); border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px; margin-bottom: 1rem; transition: box-shadow 0.3s ease;
}
.faq-section details[open] { box-shadow: 0 0 8px rgba(0, 255, 255, 0.4); }
.faq-section summary {
    padding: 1rem; font-weight: 600; color: var(--light-text);
    cursor: pointer; outline: none; position: relative; transition: color 0.3s ease;
    list-style: none; /* 기본 마커 제거 */
}
.faq-section summary::-webkit-details-marker { display: none; } /* Chrome, Safari */
.faq-section summary::marker { display:none; } /* Firefox */

.faq-section summary:hover { color: var(--neon-cyan); }
.faq-section summary::before { /* 사용자 정의 마커 */
    content: '+'; color: var(--neon-cyan);
    position: absolute; left: 1rem; font-size: 1.5em;
    transition: transform 0.2s ease-in-out;
    top: 50%; transform: translateY(-50%) rotate(0deg);
}
.faq-section details[open] summary::before { transform: translateY(-50%) rotate(45deg); }
.faq-section summary { padding-left: 2.5rem; } /* 아이콘 공간 확보 */
.faq-section .faq-answer {
    padding: 0 1rem 1rem 2.5rem; color: var(--grey-text); /* 왼쪽 패딩 조정 */
    border-top: 1px solid rgba(0, 255, 255, 0.2); margin-top: 0.5rem;
}


aside.sidebar {
    flex: 1; background-color: var(--content-bg);
    padding: 1.5rem; border-radius: 5px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    align-self: flex-start;
}
.sidebar .widget {
    margin-bottom: 2rem; padding: 1.5rem;
    background-color: rgba(0,0,0,0.2); border-radius: 4px;
    border: 1px dashed rgba(0, 255, 255, 0.3);
}
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget h3 { /* 사이드바 위젯 제목은 h3 유지 */
    margin-bottom: 1rem; text-align: center; font-size: 1.3rem;
    color: var(--neon-cyan); text-shadow: var(--text-glow);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3); padding-bottom: 0.5rem;
}
.sidebar .widget h3 .highlight {
     color: var(--neon-cyan);
}
.sidebar .widget h3 .highlight-magenta {
    color: var(--neon-magenta);
    /* text-shadow: var(--magenta-text-glow); 이 변수는 CSS 변수에 정의되어 있지 않으므로 주석 처리 또는 정의 필요 */
    text-shadow: 0 0 2px var(--neon-magenta), 0 0 4px var(--neon-magenta); /* 예시 */
}

.sidebar .login-form label { /* 접근성 위한 label 스타일 */
    display: none; /* 시각적으로는 숨김 */
}
.sidebar .login-form input[type="text"],
.sidebar .login-form input[type="password"] {
    width: 100%; padding: 0.8rem; margin-bottom: 0.8rem;
    border: 1px solid var(--neon-cyan); background-color: var(--dark-bg);
    color: var(--light-text); border-radius: 3px; transition: box-shadow 0.3s ease;
}
.sidebar .login-form input[type="text"]:focus,
.sidebar .login-form input[type="password"]:focus { outline: none; box-shadow: var(--border-glow); }
.sidebar .login-form button[type="submit"] {
    width: 100%; padding: 0.8rem; background-color: var(--neon-cyan);
    color: var(--dark-bg); border: none; cursor: pointer;
    border-radius: 3px; font-size: 1rem; font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
}
 .sidebar .login-form button[type="submit"]:hover {
    background-color: #00e0e0; box-shadow: var(--border-glow), 0 0 12px var(--neon-cyan);
 }
.sidebar .login-form .links { margin-top: 1rem; text-align: center; font-size: 0.9rem; }
.sidebar .login-form .links a {
    color: var(--grey-text); text-decoration: none; margin: 0 5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.sidebar .login-form .links a:hover { color: var(--neon-cyan); text-shadow: var(--text-glow); }
.sidebar .customer-service .telegram-link {
    display: block; width: 100%; text-align: center;
    background-color: var(--neon-cyan); color: var(--dark-bg);
    padding: 0.8rem 1.5rem; text-decoration: none;
    border-radius: 3px; font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
}
.sidebar .customer-service .telegram-link:hover {
    background-color: #00e0e0; box-shadow: var(--border-glow), 0 0 12px var(--neon-cyan);
}
.sidebar .notices ul { list-style: none; padding:0; }
.sidebar .notices ul li {
    margin-bottom: 0.8rem; font-size: 0.9rem; display: flex;
    justify-content: space-between; align-items: center;
    padding: 0.3rem 0; border-bottom: 1px solid rgba(0,255,255,0.1);
}
 .sidebar .notices ul li:last-child { border-bottom: none; }
.sidebar .notices ul li a {
    color: var(--grey-text); text-decoration: none;
    flex-grow: 1; margin-right: 5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.sidebar .notices ul li a:hover { color: var(--neon-cyan); text-shadow: var(--text-glow); }
.sidebar .notices ul li span.tag {
    background-color: var(--neon-cyan); color: var(--dark-bg);
    padding: 3px 7px; border-radius: 3px; font-size: 0.7rem;
    font-weight: bold; white-space: nowrap; box-shadow: 0 0 3px var(--neon-cyan);
}
 .sidebar .notices ul li span.tag-hot {
    background-color: var(--neon-magenta); color: var(--dark-bg);
    box-shadow: 0 0 3px var(--neon-magenta), 0 0 6px var(--neon-magenta);
 }
.sidebar .banner img {
    width: 100%; border-radius: 3px; display: block;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.sidebar .board-section { padding-top: 1rem; }
.sidebar .board-section .board-list { list-style: none; padding: 0; }
.sidebar .board-section .board-list li {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 0.7rem 0.2rem; border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    transition: background-color 0.2s ease;
}
.sidebar .board-section .board-list li:hover { background-color: rgba(0, 255, 255, 0.05); }
.sidebar .board-section .board-list li:last-child { border-bottom: none; }
.sidebar .board-section .post-title {
    width: 100%; display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 0.3rem;
}
.sidebar .board-section .post-title a {
    color: var(--light-text); text-decoration: none;
    font-weight: 600; font-size: 0.9rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: calc(100% - 50px);
}
.sidebar .board-section .post-title a:hover { color: var(--neon-cyan); text-shadow: var(--text-glow); }
.sidebar .board-section .post-new-badge {
    background-color: var(--neon-cyan);
    color: var(--dark-bg);
    font-size: 0.65rem; padding: 2px 5px;
    border-radius: 3px; font-weight: bold;
    box-shadow: 0 0 3px var(--neon-cyan);
    white-space: nowrap;
}
.sidebar .board-section .post-new-badge.tag-hot {
     background-color: var(--neon-magenta);
     box-shadow: 0 0 3px var(--neon-magenta);
}
.sidebar .board-section .post-meta {
    font-size: 0.75rem; color: var(--grey-text);
    width: 100%; display: flex; justify-content: space-between;
}
.sidebar .board-section .post-meta .date-views span{ margin-left: 8px; }
.sidebar .board-section .view-more-btn {
    display: block; width: calc(100% - 1rem); margin: 1.5rem auto 0;
    padding: 0.6rem 0; text-align: center;
    background-color: transparent; color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan); border-radius: 3px;
    text-decoration: none; font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}
.sidebar .board-section .view-more-btn:hover {
    background-color: var(--neon-cyan); color: var(--dark-bg); box-shadow: var(--border-glow);
}

footer {
    background-color: var(--content-bg); color: var(--grey-text);
    text-align: center; padding: 2rem 0; margin-top: auto;
    border-top: 2px solid var(--neon-cyan);
    box-shadow: 0 -2px 10px rgba(0, 255, 255, 0.3);
}

@media (max-width: 1200px) {
    header .container { flex-direction: column; text-align: center; }
    header .logo { margin-bottom: 1rem; }
    header nav { width: 100%; }
    header nav ul { text-align: center; width: 85%; display:flex; gap:8px; overflow-x: auto;white-space: nowrap; }
    header nav ul li { display: block; margin: 0.5rem 0; }
    header .user-actions { margin-top: 1rem; width: 100%; display: flex; justify-content: center; }
    header .user-actions button { flex-grow: 1; margin: 0 5px; }

}

@media (max-width: 1024px) {
    .content-grid .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .main-content-wrapper { flex-direction: column; margin-top: 120px; }
    main { order: 2; }
    aside.sidebar { order: 1; width: 100%; margin-bottom: 2rem; }
    .sidebar .board-section .post-title a { max-width: calc(100% - 60px); }
}
@media (max-width: 768px) {
    .main-area-section { padding: 1.5rem; }
    .main-area-section h2, .main-area-section h3 { font-size: 1.6rem; } /* h3 추가 */
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .content-grid .grid { grid-template-columns: 1fr; }

    .long-content-item h3 { font-size: 1.4rem; } /* 모바일용 h3 크기 조정 */


    aside.sidebar { padding: 1rem; }
    .sidebar .widget { padding: 1rem; }
    .sidebar .board-section .post-title a { font-size: 0.85rem; max-width: calc(100% - 50px); }
    .sidebar .board-section .post-meta { font-size: 0.7rem; }
    .sidebar .board-section .view-more-btn { width: 100%; margin-left:0; margin-right:0;}
}
