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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

/* ==================== 공통 스타일 ==================== */

/* 헤더 스타일 */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
}

.logo h1 a {
    color: #000;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    padding: 20px 25px;
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: #000;
    color: #fff;
}

.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 250px;
    max-width: 350px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #eee;
    display: block;
    padding: 10px 0;
    max-height: 400px;
    overflow-y: auto;
}

.nav-menu .dropdown li {
    display: block;
    padding: 0;
    width: 100%;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-transform: none;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

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

.dropdown li:hover a {
    background: #f8f9fa;
    color: #000;
}

/* 카테고리 숨김 처리를 위한 클래스 */
.category-hidden {
    display: none !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 공통 섹션 스타일 */
.section-title {
    font-size: 3rem;
    font-weight: 300;
    margin: 100px 0px 20px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 푸터 */
.footer {
    background: #000;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
    display: block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
}

/* ==================== 홈화면 전용 스타일 ==================== */

/* 메인 슬라이드 배너 */
.main-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: #fff;
    z-index: 2;
    max-width: 600px;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slide-btn {
    background: #fff;
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}

.slide-btn:hover {
    background: #000;
    color: #fff;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.slider-nav-wrapper {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
    height: auto;
    width: auto;
    pointer-events: auto;
}
.slider-nav-wrapper .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    background: rgba(0,0,0,0.18);
    border: none;
    cursor: pointer;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    padding: 0;
    margin: 0;
    pointer-events: auto;
}
.slider-nav-wrapper .slider-arrow-left { left: -20px; }
.slider-nav-wrapper .slider-arrow-right { right: -20px; }
.slider-arrow:hover { background: rgba(0,0,0,0.35); }

/* Activities 섹션 */
.activities-section {
    padding: 100px 0; 
    background: #f8f9fa;
    text-align: center;
}

.activities-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.activity-item {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.activity-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.activity-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.activity-item h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #000;
}

.activity-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.more-btn {
    color: #fff;
    background: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.more-btn:hover {
    color: #000;
    background: #f8f9fa;
    border-color: #666;
}

/* 홈화면 배너 섹션 */
.banner-section {
    padding: 100px 0;
    background: #fff;
    width: 100vw;
    position: relative;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    transform: none;
}

.banner-slider {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    left: 0;
    transform: none;
    position: relative;
    height: 300px;
    overflow: hidden;
    padding: 0;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-item.active {
    opacity: 1;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.banner-item:hover .banner-overlay {
    background: rgba(0,0,0,0.6);
}

/* 인기글 웹진형 리스트 (홈화면 2단) */
.popular-posts-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.popular-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
margin-top: 60px;
}

.popular-column .magazine-item {
margin-bottom: 30px;
}
.popular-column h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #000;
    text-transform: uppercase;
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
}

.popular-item {
    display: flex;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.popular-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.popular-thumb {
    width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.popular-content {
    padding: 20px;
    flex: 1;
}

.popular-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #000;
    line-height: 1.4;
}

.popular-content h4 a {
    color: #000;
    text-decoration: none;
}

.popular-content h4 a:hover {
    color: #666;
}

.popular-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}

.popular-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Gallery 섹션 */
.gallery-section {
    padding: 30px 0;
    background: #000;
    color: #fff;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0 -20px;
}

.gallery-track {
    display: flex;
    transition: transform 0.8s ease;
    will-change: transform;
    padding: 0 20px;
}

.gallery-slide {
    min-width: 350px;
    height: 450px;
    margin-right: 30px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    padding: 40px 20px 20px;
}

.gallery-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(255,255,255,0.3);
}

.gallery-arrow-left {
    left: 20px;
}

.gallery-arrow-right {
    right: 20px;
}

/* YouTube 섹션 */
.youtube-section {
    padding: 100px 0;
    background: #fff;
    color: #ffffff;
}

.youtube-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.youtube-text h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #111;
}

.youtube-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #444;
}

.youtube-video {
    position: relative;
    width: 100%;
    height: 350px;
    background: #f8f9fa;
    overflow: hidden;
    border-radius: 10px;
}

.youtube-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================== 글화면 전용 스타일 ==================== */

/* 글 상세 페이지 */
.post-section {
    padding: 100px 0;
    background: #fff;
}

.post-header {
    text-align: center;
    margin-bottom: 60px;
}

.post-category {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 8px 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 20px;
}

.post-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #000;
    line-height: 1.3;
}

.post-meta {
    color: #666;
    font-size: 1rem;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    margin: 40px 0 20px 0;
    color: #000;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-thumbnail {
    text-align: center;
    margin: 40px 0;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 태그 스타일 */
.post-tags {
    margin: 60px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.post-tags .tag {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 8px 16px;
    margin: 0 5px 10px 0;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.post-tags .tag:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* 관련글 */
.related-posts {
    margin: 80px 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
}

.related-posts h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #000;
    text-align: center;
    text-transform: uppercase;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.related-thumb {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #000;
}

.related-content h4 a {
    color: #000;
    text-decoration: none;
}

.related-content h4 a:hover {
    color: #666;
}

.related-meta {
    font-size: 0.9rem;
    color: #999;
}

/* 이전/다음 글 */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 60px 0;
}

.nav-item {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: #000;
    color: #fff;
}

.nav-item.next {
    text-align: right;
}

.nav-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.nav-item:hover .nav-label {
    color: #ccc;
}

.nav-title {
    font-size: 1.1rem;
    color: #000;
    font-weight: 500;
}

.nav-item:hover .nav-title {
    color: #fff;
}

.nav-title a {
    color: inherit;
    text-decoration: none;
}

/* 보호글 스타일 */
.protected-post {
    text-align: center;
    padding: 80px 40px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 40px 0;
}

.protected-post .lock-icon {
    font-size: 3rem;
    margin-bottom: 30px;
}

.protected-post input[type="password"] {
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-right: 15px;
    font-size: 1rem;
    width: 250px;
}

.protected-post button {
    padding: 15px 30px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.protected-post button:hover {
    background: #333;
}

/* ==================== 카테고리/리스트 페이지 스타일 ==================== */

/* 웹진형 리스트 (카테고리 화면 1단) */
.magazine-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.magazine-list {
    margin-top: 20px;
}
.magazine-grid1 {
display: grid;
grid-template-columns: 1fr;
column-gap: 20px;  /* 좌우 간격 */
row-gap: 0px;      /* 상하 간격(더 줄임) */
}

.magazine-grid2 {
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 20px;  /* 좌우 간격 */
row-gap: 0px;      /* 상하 간격(더 줄임) */
}

@media (max-width: 768px) {
.magazine-grid1,
.magazine-grid2 {
    grid-template-columns: 1fr;
}
}
.magazine-item {
    display: flex;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.magazine-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.magazine-thumb {
    width: 200px;
    height: 150px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.magazine-content {
    padding: 30px;
    flex: 1;
}

.magazine-content h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #000;
    line-height: 1.4;
}

.magazine-content h4 a {
    color: #000;
    text-decoration: none;
}

.magazine-content h4 a:hover {
    color: #666;
}

.magazine-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

.magazine-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* 댓글 섹션 */
.comments-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.comments-header {
    text-align: center;
    margin-bottom: 60px;
}

.comments-header h3 {
    font-size: 2rem;
    font-weight: 300;
    color: #000;
    text-transform: uppercase;
}

/* 방명록 스타일 */
.guestbook-section {
    padding: 100px 0;
    background: #fff;
}

/* 2단 배너 스타일 */
.banner2-section {
    padding: 100px 0;
    background: #fff;
}

.banner2-col {
    position: relative;
    min-height: 200px;
}
.banner2-item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}
.banner2-item.active {
    opacity: 1;
    z-index: 1;
}

/* 카테고리 페이지 전용 섹션 스타일 */
.category-highlights-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.category-highlights-section h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #000;
    text-align: center;
    text-transform: uppercase;
}

.recent-posts-section {
    padding: 80px 0;
    background: #fff;
}

.popular-posts-category-section {
    padding: 80px 0;
    background: #f8f9fa;
}

/* 관련 포스팅 슬라이더 스타일 */
.related-posts-slider {
    display: none;
}

/* 글 화면에서만 표시 */
body#tt-body-article .related-posts-slider,
body#tt-body-page .related-posts-slider {
    display: block;
}

/* 홈화면, 카테고리, 태그, 검색 화면에서는 숨김 */
body#tt-body-index .related-posts-slider,
body#tt-body-category .related-posts-slider,
body#tt-body-search .related-posts-slider,
body#tt-body-tag .related-posts-slider {
    display: none !important;
}

/* 관련 포스팅 슬라이더 기본적으로 숨김 */
.related-posts-slider.top {
    margin-top: 0;
    border-bottom: 1px solid #eee;
}

.related-posts-slider.bottom {
    margin-bottom: 0;
    border-top: 1px solid #eee;
}

/* 기존 related-posts 섹션도 슬라이더 스타일 적용 */
.related-posts {
    position: relative;
    margin: 40px 0;
    padding: 40px 0;
    background: #f8f9fa;
    border-radius: 12px;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.related-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-slider-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.related-slider-container {
    position: relative;
    overflow: hidden;
    margin: 0 60px;
}

.related-slider-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 20px;
}

.related-slide-item {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-slide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.related-slide-thumb {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    position: relative;
}

.related-slide-content {
    padding: 20px;
}

.related-slide-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 3.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #333;
}

.related-slide-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.related-slide-summary {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
    height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.related-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-slider-arrow:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.related-slider-arrow.prev {
    left: 0;
}

.related-slider-arrow.next {
    right: 0;
}

.related-slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.related-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.related-slider-dot.active {
    background: #333;
}

/* 더보기 버튼 스타일 */
.more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #333;
    color: #fff !important;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.more-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    color: #fff !important;
}

/* 이전/다음 글 네비게이션 스타일 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
    gap: 30px;
    position: relative;
    z-index: 5;
    clear: both;
}

.nav-item {
    flex: 1;
    max-width: 45%;
    position: relative;
    z-index: 6;
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 16px 20px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-item:hover {
    color: #007bff;
    text-decoration: none;
    border-color: #007bff;
    background: #f0f8ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.15);
}

.nav-item:active {
    transform: translateY(-1px);
}

.nav-item.next-post {
    text-align: right;
}

.nav-item.prev-post {
    text-align: left;
}

.nav-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.nav-title {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.nav-item:hover .nav-title {
    color: #007bff;
}

@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .nav-item {
        max-width: 100%;
        padding: 20px;
        text-align: center !important;
    }
    .nav-item.next-post,
    .nav-item.prev-post {
        text-align: center;
    }
    .nav-label {
        font-size: 0.8rem;
    }
    .nav-title {
        font-size: 1rem;
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .related-slider-container {
        margin: 0 50px;
    }
    .related-slide-item {
        flex: 0 0 280px;
    }
    .related-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .related-slider-container {
        margin: 0 40px;
    }
    .related-slide-item {
        flex: 0 0 260px;
    }
    .related-posts-slider {
        padding: 40px 0;
    }
    .related-slider-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    .related-posts {
        padding: 30px 0;
    }
    .related-posts h3 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active ul {
        display: flex;
    }
    
    .slide-content {
        left: 20px;
        right: 20px;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .youtube-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .youtube-text h2 {
        font-size: 2rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .banner-slider {
        height: 200px;
    }

    .popular-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .magazine-item {
        flex-direction: column;
    }

    .magazine-thumb {
        width: 100%;
        height: 200px;
    }

    .popular-item {
        flex-direction: column;
    }

    .popular-thumb {
        width: 100%;
        height: 150px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .nav-item.next {
        text-align: left;
    }
    
    .gallery-slide {
        min-width: 280px;
        height: 350px;
    }
    
    .gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 추가 스타일 */
.hidden {
    display: none;
}

.fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Unified Arrow Style */
.unified-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1; /* flex will center it */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    padding: 0;
}

.unified-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.unified-arrow.arrow-left {
    left: 25px;
}

.unified-arrow.arrow-right {
    right: 25px;
}

/* 페이지별 표시/숨김 규칙 */

/* 홈화면에서만 표시되는 섹션들 */
.main-slider,
.activities-section,
.banner-section,
.popular-posts-section,
.gallery-section,
.youtube-section {
    display: none;
}

body#tt-body-index .main-slider,
body#tt-body-index .activities-section,
body#tt-body-index .banner-section,
body#tt-body-index .popular-posts-section,
body#tt-body-index .gallery-section,
body#tt-body-index .youtube-section {
    display: block;
}

/* 글 상세 화면에서만 표시되는 섹션들 */
.post-section {
    display: none;
}

body#tt-body-article .post-section,
body#tt-body-page .post-section {
    display: block;
}


/* 카테고리/리스트 화면에서만 표시되는 섹션들 */
.magazine-section,
.banner2-section,
.category-highlights-section,
.recent-posts-section,
.popular-posts-category-section {
    display: none;
}

/* 카테고리 페이지에서는 웹진형 리스트만 표시 */
body#tt-body-category .magazine-section,
body#tt-body-search .magazine-section,
body#tt-body-tag .magazine-section {
    display: block;
}

/* 카테고리 페이지에서 section-subtitle 숨김 */
body#tt-body-category .section-subtitle {
    display: none !important;
}

.magazine-grid1 .magazine-thumb {
    width: 300px;
    height: 225px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.magazine-grid1 .magazine-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    max-height: 3.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}