/*
Theme Name: 토지+자유연구소
Theme URI: https://www.landliberty.or.kr/
Description: 토지+자유연구소 공식 워드프레스 테마. 연구소의 정체성과 콘텐츠를 효과적으로 표현하는 전문적인 테마입니다.
Author: 토지+자유연구소
Version: 1.0
License: GPL v2 or later
Text Domain: landliberty
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative; /* Add this line */
}

.header-top {
    background-color: #f8f9fa;
    padding: 8px 0;
    font-size: 12px;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.header-top a {
    color: #666;
    text-decoration: none;
}

.header-top a:hover {
    color: rgb(39, 96, 145);
}

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

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

.site-logo {
    height: 60px;
}

.site-logo img {
    height: 100%;
    width: auto;
}

/* Navigation Styles */
.main-navigation {
    background-color: #2c5aa0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    background-color: #1e4080;
}

/* Dropdown Menu */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

.sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.sub-menu li a:hover {
    background-color: #f8f9fa;
    color: #2c5aa0;
}

/* Main Content */
.site-main {
    padding: 40px 0;
    min-height: 60vh;
}

.content-area {
    display: block;
    width: 100%;
}

/* 메인페이지는 사이드바 없이 단일 컬럼 */
.home .content-area {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgb(39, 96, 145) 0%, rgb(30, 64, 128) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Banner Slider */
.banner-slider {
    position: relative;
    height: 485px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 40px;
}

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

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

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f5f5f5;
}

/* 기본 배너 스타일 */
.banner-slide:not(:has(img)) {
    background: linear-gradient(135deg, rgb(39, 96, 145) 0%, rgb(30, 58, 138) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 30px 25px 25px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 배너 네비게이션 */
.banner-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.banner-nav-dot.active {
    background: #fff;
}

/* 배너 화살표 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
    z-index: 10;
}

.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.banner-arrow.prev {
    left: 20px;
}

.banner-arrow.next {
    right: 20px;
}

/* Quick Links Section */
.quick-links-section {
    margin-bottom: 40px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgb(39, 96, 145);
    color: rgb(39, 96, 145);
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgb(39, 96, 145), rgb(30, 58, 138));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.quick-link-item:hover .quick-link-icon {
    background: linear-gradient(135deg, rgb(30, 58, 138), rgb(39, 96, 145));
    transform: scale(1.1);
}

.quick-link-icon i {
    font-size: 24px;
    color: #fff;
}

.quick-link-text {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* Newsletter Signup Section */
.newsletter-signup {
    background: linear-gradient(135deg, rgb(39, 96, 145), rgb(30, 58, 138));
    color: #fff;
}

.newsletter-signup .section-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form .form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.newsletter-form .form-group {
    flex: 1;
}

.newsletter-form input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.newsletter-form input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form .btn {
    width: 100%;
    padding: 15px 30px;
    background: #fff;
    color: #2c5aa0;
    border: none;
    font-weight: 600;
    font-size: 16px;
}

.newsletter-form .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
    color: rgb(39, 96, 145);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

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

.research-item {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.research-item h3 {
    color: rgb(39, 96, 145);
    margin-bottom: 10px;
}

/* Sidebar (숨김 처리) */
.sidebar {
    display: none;
}

.widget {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    color: #2c5aa0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2c5aa0;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.widget ul li a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.widget ul li a:hover {
    color: #2c5aa0;
    background-color: #f0f7ff;
}

.widget ul li a.current {
    color: #2c5aa0;
    background-color: #e6f3ff;
    font-weight: 600;
}

/* 메일링 폼 스타일 */
.mailing-form {
    text-align: left;
}

.mailing-form p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 14px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: #2c5aa0;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #1e4080;
    color: #fff;
}

.btn-primary {
    width: 100%;
}

.btn-support {
    width: 100%;
    background-color: #e74c3c;
    margin-bottom: 15px;
}

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

.form-message {
    margin-top: 10px;
    font-size: 14px;
}

.form-message .success {
    color: #27ae60;
    font-weight: 600;
}

.form-message .error {
    color: #e74c3c;
    font-weight: 600;
}

/* 후원 정보 스타일 */
.support-widget p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 14px;
}

.support-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.support-info h4 {
    color: #2c5aa0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 15px;
}

.support-info h4:first-child {
    margin-top: 0;
}

.support-info p {
    font-size: 13px;
    margin-bottom: 10px;
}

.support-info strong {
    color: #333;
}

/* 하위메뉴 스타일 */
.submenu-list {
    margin: 0;
    padding: 0;
}

.submenu-list li {
    margin: 0;
    padding: 0;
}

.submenu-list li a {
    position: relative;
    padding-left: 20px;
}

.submenu-list li a:before {
    content: "▶";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #999;
}

.submenu-list li a.current:before {
    color: #2c5aa0;
}

/* Footer */
.site-footer {
    background-color: rgb(39, 96, 145);
    color: #fff;
    padding: 25px 0 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

/* Footer Left - Logo and Brand */
.footer-left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 0px;
}

.footer-logo {
    width:280px;
    height: 70px;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}



/* Footer Center - Navigation and Info */
.footer-center {
    flex: 1;
    max-width: 750px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-nav a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-info p {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #bdc3c7;
}

.footer-info .copyright {
    color: #95a5a6;
    font-size: 0.8rem;
    margin-top: 15px;
}



.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e4080;
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-footer,
    footer.site-footer,
    body .site-footer {
        background-color: rgb(39, 96, 145) !important;
        color: #fff !important;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start; /* Align items to the left */
        gap: 15px;
    }
    
    .site-logo {
        width: 100%; /* 로고가 부모 컨테이너의 전체 너비를 차지하도록 */
        text-align: center; /* 로고 이미지를 가운데 정렬 */
    }

    .site-logo img {
        max-height: 50px; /* 모바일에서 로고 높이 조절 */
        width: auto; /* 비율 유지를 위해 너비 자동 설정 */
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu > li > a {
        padding: 8px 8px; /* 좌우 패딩을 12px에서 8px로 줄임 */
        font-size: 14px; /* 폰트 크기 조정 */
    }
    
    .content-area {
        display: block;
        width: 100%;
    }
    
    .widget {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-left {
        justify-content: center;
    }
    
    .footer-center {
        max-width: none;
    }
    
    .footer-nav {
        justify-content: center;
        gap: 15px;
    }
    

    
    .banner-slider {
        height: 250px;
    }
    
    .banner-content {
        padding: 20px;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .banner-arrow {
        padding: 10px 8px;
        font-size: 16px;
    }
    
    .banner-arrow.prev {
        left: 10px;
    }
    
    .banner-arrow.next {
        right: 10px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .quick-link-item {
        padding: 20px 10px;
    }
    
    .quick-link-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .quick-link-icon i {
        font-size: 20px;
    }
    
    .quick-link-text {
        font-size: 12px;
    }
    
    .newsletter-form .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form .form-group {
        flex: none;
    }
    
    .newsletter-description {
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: rgb(39, 96, 145);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #1e4080;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgb(39, 96, 145);
    color: rgb(39, 96, 145);
}

.btn-outline:hover {
    background-color: rgb(39, 96, 145);
    color: #fff;
}

/* Additional Styles for Posts and Widgets */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;  /* 간격 줄임 */
    margin-top: 20px;
}

.post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
}

.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.post-thumbnail img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.post-content {
    padding: 0 10px;  /* 좌우 패딩만 추가 */
    margin: 0;  /* 모든 여백 제거 */
}

/* 썸네일 카드의 텍스트 영역만 높이 설정 */
.post-card:has(.post-thumbnail) .post-content {
    height: auto;  /* 자동 높이로 변경 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;  /* 모든 여백 제거 */
    padding: 0 15px;  /* 좌우 패딩만 추가 */
}

.post-content h3 {
    margin: 0;  /* 모든 마진 제거 */
    padding: 0;  /* 모든 패딩 제거 */
    line-height: 1.2;  /* 줄간격 조정 */
}

.post-content h3 a {
    color: #333;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 1.2;  /* 줄간격 조정 */
}

.post-content h3 a:hover {
    color: #2c5aa0;
}

.post-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.post-category {
    color: rgb(39, 96, 145);
    font-weight: 500;
}

.post-category a {
    color: rgb(39, 96, 145);
    text-decoration: none;
    font-weight: 500;
}

.post-category a:hover {
    text-decoration: underline;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.read-more {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Search Form Styles */
.header-search {
    display: flex;
    align-items: center;
}

.header-search form {
    display: flex;
    gap: 5px;
}

.header-search input[type="search"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 250px;
}

.header-search button {
    padding: 8px 15px;
    background-color: #2c5aa0;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.header-search button:hover {
    background-color: #1e4080;
}

/* Mailing Form Styles */
.mailing-form {
    text-align: center;
}

.mailing-form p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.mailing-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.mailing-form .btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

/* News Widget Styles */
.news-item {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.news-item h4 {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.news-item h4 a {
    color: #333;
    text-decoration: none;
}

.news-item h4 a:hover {
    color: #2c5aa0;
}

.news-date {
    color: #999;
    font-size: 0.8rem;
}

/* Tag Cloud Styles */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 5px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #2c5aa0;
    color: #fff;
}

/* Support Widget Styles */
.support-widget {
    text-align: center;
}

.support-widget p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.support-info {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* 새로운 모던 페이지네이션 스타일 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 6rem 0 0 0;
    padding-top: 3rem;
    position: relative;
    box-shadow: none !important;
}



.page-links,
.wp-pagenavi,
.navigation.pagination .nav-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    background: white !important;
    border-radius: 50px !important;
    box-shadow: none !important;
    overflow: hidden !important;
    border: 2px solid #f8f9fa !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    text-align: center !important;
}

.pagination .page-numbers,
.page-links a,
.page-links span,
.wp-pagenavi a,
.wp-pagenavi span,
.navigation.pagination .nav-links a,
.navigation.pagination .nav-links span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    color: #495057 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-width: 48px !important;
    font-weight: 600 !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    background: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.pagination .page-numbers.current,
.page-links .current,
.wp-pagenavi .current,
.navigation.pagination .nav-links .current {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    font-weight: 700 !important;
    transform: scale(1.1) !important;
    box-shadow: none !important;
    z-index: 2 !important;
    position: relative !important;
}

.pagination .page-numbers:hover,
.page-links a:hover,
.wp-pagenavi a:hover,
.navigation.pagination .nav-links a:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #007bff !important;
    transform: translateY(-2px) !important;
    box-shadow: none !important;
}

/* 페이지네이션 그림자 완전 제거 */
.pagination,
.pagination *,
.pagination .page-numbers,
.pagination .page-numbers:hover,
.pagination .prev,
.pagination .next,
.pagination .prev:hover,
.pagination .next:hover {
    box-shadow: none !important;
}

.pagination .prev,
.pagination .next {
    font-weight: 700 !important;
    padding: 12px 20px !important;
    background: #f8f9fa !important;
    color: #007bff !important;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    transform: translateY(-3px) !important;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .header-search {
        margin-top: 15px;
        width: 100%;
    }
    
    .header-search input[type="search"] {
        width: 200px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .post-thumbnail img {
        height: 150px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .mailing-form input[type="email"] {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Mobile Menu Styles */
/* Mobile Menu Toggle */
/* Removed mobile menu toggle styles */

/* Hide main navigation on mobile */
@media (max-width: 767px) {
    /* Removed main-navigation display: none rule */
}

/* Mobile menu styles when open */
@media (max-width: 767px) {
    /* Removed mobile menu styles */
}

/* Hamburger icon animation */
/* Removed hamburger animation styles */

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #fff;
}

/* Scroll Header Effects */
.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Search Form Focus Effects */
.header-search.search-focused {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Single Post Styles */
.single-post {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.post-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.post-title {
    color: #2c5aa0;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.single-post .post-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.9rem;
}

.single-post .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-featured-image {
    margin-bottom: 30px;
    text-align: center;
}

.post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.post-content h1, .post-content h2, .post-content h3, 
.post-content h4, .post-content h5, .post-content h6 {
    color: #2c5aa0;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content blockquote {
    background-color: #f8f9fa;
    border-left: 4px solid #2c5aa0;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
}

.post-tags {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.post-tags a {
    color: #2c5aa0;
    text-decoration: none;
    font-size: 0.9rem;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.nav-previous,
.nav-center,
.nav-next {
    position: relative;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 100%;
    min-height: 100px;
}

.post-navigation a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.15);
    border-color: #007bff;
}

.nav-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.nav-title {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nav-category {
    font-size: 0.85rem;
    color: #007bff;
    font-weight: 500;
    margin-top: 4px;
}

.nav-list-btn {
    background: white !important;
    color: #333 !important;
    border-color: #e9ecef !important;
}

.nav-list-btn:hover {
    background: #f8f9fa !important;
    transform: translateY(-3px) scale(1.02) !important;
}

.nav-list-btn .nav-subtitle,
.nav-list-btn .nav-category {
    color: #333 !important;
}

.nav-list-btn i {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #333;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.related-posts h3 {
    color: #2c5aa0;
    margin-bottom: 20px;
    text-align: center;
}

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

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

.related-post-item:hover {
    transform: translateY(-3px);
}

.related-post-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 15px;
}

.related-post-content h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

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

.related-post-content h4 a:hover {
    color: #2c5aa0;
}

.related-post-date {
    color: #999;
    font-size: 0.8rem;
}

/* Archive Styles */
.archive-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    color: #fff;
    border-radius: 8px;
}

.archive-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.no-posts h2 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

.no-posts p {
    color: #666;
    margin-bottom: 20px;
}

/* 카테고리 뷰 전용 스타일 */
.posts-container .post-card .post-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.posts-container .post-card .post-excerpt {
    font-size: 0.95rem; /* 제목보다 약 2포인트 작게 */
    line-height: 1.6;
    color: #666;
    margin-bottom: 4px;
}

.posts-container .post-card .read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background-color: #6c757d; /* 회색 계열로 변경 */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.posts-container .post-card .read-more-btn:hover {
    background-color: #5a6268; /* 더 어두운 회색으로 호버 */
    color: #fff;
    transform: translateX(2px);
}

.posts-container .post-card .read-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.posts-container .post-card .read-more-btn:hover i {
    transform: translateX(2px);
}

/* Mobile Responsive for Advanced Features */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: row; /* 가로 배치로 변경 */
        flex-wrap: wrap; /* 필요시 줄바꿈 */
        justify-content: center; /* 중앙 정렬 */
    }
    
    .nav-menu > li > a {
        padding: 8px 12px; /* 패딩 조정 */
        font-size: 14px; /* 폰트 크기 조정 */
    }
    
    .content-area {
        display: block;
        width: 100%;
    }
    
    .widget {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-left {
        justify-content: center;
    }
    
    .footer-center {
        max-width: none;
    }
    
    .footer-nav {
        justify-content: center;
        gap: 15px;
    }
    

    
    .banner-slider {
        height: 250px;
    }
    
    .banner-content {
        padding: 20px;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .banner-arrow {
        padding: 10px 8px;
        font-size: 16px;
    }
    
    .banner-arrow.prev {
        left: 10px;
    }
    
    .banner-arrow.next {
        right: 10px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .quick-link-item {
        padding: 20px 10px;
    }
    
    .quick-link-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .quick-link-icon i {
        font-size: 24px;
    }
    
    .quick-link-text {
        font-size: 12px;
    }
    
    .newsletter-form .form-row {
        flex-direction: column;
    }
    
    .newsletter-form .form-group {
        width: 100%;
    }
    
    .newsletter-description {
        font-size: 14px;
    }
}

/* 연구소 소개 페이지 스타일 */
.institute-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.institute-intro .page-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 3px solid #2c5aa0;
    padding-bottom: 20px;
}

.institute-intro .page-title {
    font-size: 2.5rem;
    color: #2c5aa0;
    font-weight: bold;
    margin: 0;
}

.intro-section {
    margin-bottom: 60px;
}

.intro-section .section-title {
    font-size: 2rem;
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.welcome-text {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-text p {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
}

.intro-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #2c5aa0;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

.intro-image {
    text-align: center;
    margin: 30px 0;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 비전 섹션 */
.vision-section {
    margin-bottom: 60px;
}

.vision-section .section-title {
    font-size: 2rem;
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.vision-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.vision-item:hover {
    border-color: #2c5aa0;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
}

.vision-number {
    background: #2c5aa0;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.vision-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.vision-content strong {
    font-size: 1.1rem;
    color: #2c5aa0;
    font-weight: bold;
    display: block;
}

/* 연구과제 섹션 */
.research-section {
    margin-bottom: 60px;
}

.research-section .section-title {
    font-size: 2rem;
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.research-tasks {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.task-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.task-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.task-item h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 10px;
}

.task-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* 연구소 소개 페이지 모바일 반응형 */
@media (max-width: 768px) {
    .institute-intro {
        padding: 20px 15px;
    }
    
    .institute-intro .page-title {
        font-size: 2rem;
    }
    
    .intro-section .section-title,
    .vision-section .section-title,
    .research-section .section-title {
        font-size: 1.5rem;
    }
    
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vision-item {
        padding: 20px;
    }
    
    .task-item {
        padding: 20px;
    }
    
    .intro-content {
        padding: 20px;
    }
}

/* 연구소 사람들 페이지 스타일 */
.people-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.people-page .page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2c5aa0;
}

.people-page .page-title {
    font-size: 2.5rem;
    color: #2c5aa0;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.people-intro {
    text-align: center;
    margin-bottom: 50px;
}

.people-intro .intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 개인 프로필 섹션 */
.person-profile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.person-profile:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.profile-header {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.profile-header h2 {
    color: #2c5aa0;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.contact-info .email {
    color: #666;
    font-size: 1rem;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
}

.profile-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: start;
}

.profile-image {
    text-align: center;
}

.profile-image img {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #f8f9fa;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-details h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.profile-details h4 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 20px 0 10px 0;
}

.profile-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.profile-details ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.profile-details ul li:last-child {
    border-bottom: none;
}

/* 연구위원 및 검토위원회 섹션 */
.advisory-board,
.review-committee {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
}

.advisory-board h2,
.review-committee h2 {
    color: #2c5aa0;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #2c5aa0;
}

.board-section {
    margin-bottom: 30px;
}

.board-section:last-child {
    margin-bottom: 0;
}

.board-section h3 {
    color: #495057;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    border-left: 5px solid #2c5aa0;
}

.member-list p,
.committee-members p {
    background: white;
    padding: 12px 20px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 3px solid #e9ecef;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    transition: all 0.3s ease;
}

.member-list p:hover,
.committee-members p:hover {
    border-left-color: #2c5aa0;
    background: #f8f9fa;
    transform: translateX(5px);
}

/* 직책별 프로필 구분 */
.person-profile.director {
    border-left: 5px solid #dc3545;
}

.person-profile.deputy-director {
    border-left: 5px solid #fd7e14;
}

.person-profile.researcher {
    border-left: 5px solid #28a745;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .people-page {
        padding: 20px 15px;
    }
    
    .people-page .page-title {
        font-size: 2rem;
    }
    
    .person-profile {
        padding: 25px 20px;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .profile-image img {
        width: 150px;
        height: 180px;
    }
    
    .profile-details {
        text-align: left;
    }
    
    .advisory-board,
    .review-committee {
        padding: 25px 20px;
    }
    
    .advisory-board h2,
    .review-committee h2 {
        font-size: 1.6rem;
    }
    
    .board-section h3 {
        font-size: 1.2rem;
        padding: 12px 15px;
    }
    
    .member-list p,
    .committee-members p {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .people-page .page-title {
        font-size: 1.8rem;
    }
    
    .profile-header h2 {
        font-size: 1.5rem;
    }
    
    .profile-image img {
        width: 120px;
        height: 150px;
    }
    
    .advisory-board h2,
    .review-committee h2 {
        font-size: 1.4rem;
    }
}

/* KBoard Powered by 텍스트 숨김 */
.kboard-default-poweredby,
.kboard-avatar-poweredby,
.kboard-contact-form-poweredby,
.kboard-thumbnail-poweredby,
.kboard-media-poweredby {
    display: none !important;
}

/* KBoard 언론기고 게시판 - 작성자와 추천 컬럼 숨김 */
#kboard-default-list .kboard-list-user,
#kboard-default-list .kboard-list-vote {
    display: none !important;
}

/* 모바일에서도 작성자와 추천 정보 숨김 */
#kboard-default-list .kboard-mobile-contents .kboard-user,
#kboard-default-list .kboard-mobile-contents .kboard-vote,
#kboard-default-list .kboard-mobile-contents .contents-separator {
    display: none !important;
}

/* 블로그 목록 페이지 스타일 (index.php) */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
    border-radius: 8px;
}

.page-header .page-title {
    color: #2c5aa0;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.posts-list .post-item {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.posts-list .post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.posts-list .post-thumbnail {
    flex-shrink: 0;
    width: 250px;
}

.posts-list .post-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.posts-list .post-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.posts-list .post-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.posts-list .post-content h3 a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.posts-list .post-content h3 a:hover {
    color: #2c5aa0;
}

.posts-list .post-meta {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.posts-list .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.posts-list .post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.posts-list .read-more {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
    padding: 8px 16px;
    border: 1px solid #2c5aa0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.posts-list .read-more:hover {
    background-color: #2c5aa0;
    color: #fff;
}

/* 블로그 목록 페이지 모바일 반응형 */
@media (max-width: 768px) {
    .page-header {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .page-header .page-title {
        font-size: 1.6rem;
    }
    
    .posts-list .post-item {
        flex-direction: column;
    }
    
    .posts-list .post-thumbnail {
        width: 100%;
    }
    
    .posts-list .post-thumbnail img {
        height: 200px;
    }
    
    .posts-list .post-content {
        padding: 20px;
    }
    
    .posts-list .post-content h3 {
        font-size: 1.2rem;
    }
    
    .posts-list .post-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 767px) {
    .header-search {
        display: none;
    }
}

@media (min-width: 768px) {
    .header-search {
        display: block; /* Or flex, inline-block, etc., depending on original display property */
    }
}

/* 강제 모바일 푸터 배경색 적용 */
@media (max-width: 768px) {
    .site-footer,
    footer.site-footer,
    body .site-footer,
    html body .site-footer {
        background-color: rgb(39, 96, 145) !important;
    }
    
    /* 와이드 모드와 동일한 글자색 유지 */
    .site-footer .footer-info p,
    footer.site-footer .footer-info p,
    body .site-footer .footer-info p {
        color: #bdc3c7 !important;
    }
    
    .site-footer .footer-info .copyright,
    footer.site-footer .footer-info .copyright,
    body .site-footer .footer-info .copyright {
        color: #95a5a6 !important;
    }
    
    .site-footer a,
    footer.site-footer a,
    body .site-footer a {
        color: #bdc3c7 !important;
    }
    
    .site-footer a:hover,
    footer.site-footer a:hover,
    body .site-footer a:hover {
        color: #fff !important;
    }
    
    /* 모바일 개별 글 보기 페이지 스타일 개선 */
    .single-post {
        background: transparent !important;
        border-radius: 0 !important;
        padding: 20px 15px !important;
        box-shadow: none !important;
        margin-bottom: 20px !important;
    }
    
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .content-area {
        padding: 0 !important;
    }
    
    .main-content {
        padding: 0 !important;
    }
}

/* 썸네일 카드 스타일 */
.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 100%;  /* 카드 전체 높이 사용 */
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.post-card:hover .thumbnail-image {
    transform: scale(1.05);
}

.default-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
}

/* 오버레이 스타일 */
.thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
    color: white;
    padding: 60px 15px 30px;
    z-index: 2;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.overlay-title {
    margin: 0;
    padding: 0;
    line-height: 1.3;
    font-size: 1.3em;  /* 1.1em에서 1.3em으로 증가 (약 2pt 증가) */
    font-weight: 600;
}

.overlay-title a {
    color: white;
    text-decoration: none;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 1.3;
}

.overlay-title a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

.overlay-meta {
    margin: 0;
}

.overlay-date {
    color: #e0e0e0;
    font-size: 0.9em;
}

.overlay-date i {
    margin-right: 5px;
}

/* 썸네일 카드만 높이 고정 */
.post-card:has(.post-thumbnail) {
    height: 400px;
    overflow: hidden;
}

/* 기본 카드 내부 */
.post-card-inner {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 기존 post-content 스타일 숨김 (오버레이로 대체) */
.post-card:has(.post-thumbnail) .post-content {
    display: none;
}

/* 반응형 카드 높이 */
@media (max-width: 768px) {
    .post-card {
        /* min-height 제거 - 내용에 맞게 자동 조정 */
    }
}

@media (max-width: 480px) {
    .post-card {
        /* min-height 제거 - 내용에 맞게 자동 조정 */
    }
}

/* Video Gallery Styles */
.video-header {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #2c5aa0;
}

.video-title {
    font-size: 2.5em;
    color: #2c5aa0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.video-title i {
    font-size: 0.8em;
}

.video-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 15px;
}

.video-stats {
    font-size: 1.2em;
    color: #888;
    font-weight: 500;
}

.video-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.video-view-options {
    display: flex;
    gap: 10px;
}

.video-view-btn {
    padding: 8px 16px;
    border: 2px solid #2c5aa0;
    background: transparent;
    color: #2c5aa0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.video-view-btn.active,
.video-view-btn:hover {
    background: #2c5aa0;
    color: white;
}

.video-sort select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
}

.video-container {
    margin-bottom: 40px;
}

.video-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.video-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.video-item-inner {
    position: relative;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c5aa0;
    color: white;
    font-size: 3em;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.play-button {
    background: rgba(44, 90, 160, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: #2c5aa0;
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.video-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.youtube {
    background: #ff0000;
    color: white;
}

.badge.vimeo {
    background: #1ab7ea;
    color: white;
}

.badge.local {
    background: #28a745;
    color: white;
}

.video-content {
    padding: 20px;
}

.video-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-meta i {
    color: #2c5aa0;
}

.video-content .video-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-content .video-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-content .video-title a:hover {
    color: #2c5aa0;
}

.video-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.video-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.video-action-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-action-btn:hover {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.video-action-btn.play-btn {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.video-action-btn.play-btn:hover {
    background: #1e3d6b;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}

.video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.video-modal-header h3 {
    margin: 0;
    color: #333;
}

.video-modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover {
    color: #333;
}

.video-player-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

#video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-modal-info {
    padding: 20px;
}

.video-modal-info p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

.modal-video-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 14px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .video-filters {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .video-view-options {
        justify-content: center;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-actions {
        justify-content: center;
    }
    
    .video-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .video-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .video-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .video-actions {
        flex-direction: column;
    }
    
    .video-action-btn {
        justify-content: center;
    }
}

/* Message Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal Open Body Style */
body.modal-open {
    overflow: hidden;
}

/* Message Styles */
.message {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-weight: 500;
}
