/**
 * 홈페이지1형 (회사소개형) 스타일시트
 * 파일: templates/homepage1_corporate/style.css
 */

/* ============================================
   Top Bar 스타일 - layout.css에서 관리
   ============================================ */
/* Top Bar 스타일은 layout.css에서 중앙 관리됩니다 */
    
    .submenu-area {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .submenu-container {
        padding: 0 10px;
        max-width: 100%;
    }
    
/* PC/모바일 메뉴 표시 규칙은 하단 미디어 쿼리에서 관리 */
}

/* ============================================
   리셋 및 기본 설정
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family, 'Noto Sans KR', sans-serif);
    font-size: var(--pc-font-size, 16px);
    line-height: 1.5;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--pc-hover-color, #1e40af);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   헤더 - layout.css에서 관리
   ============================================ */
/* 헤더 스타일은 layout.css에서 중앙 관리됩니다 */

/* 로고 */
.header-logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--pc-main-color, #2563eb);
}

.header-logo img {
    max-height: 42px;
    width: auto;
}

.logo-text {
    white-space: nowrap;
}

/* PC 네비게이션 */
.pc-nav {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

/* 메인 네비게이션 */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 22px 26px;
    font-size: 19px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--pc-main-color, #2563eb);
    background: #f9fafb;
}

/* 서브메뉴 */
.nav-item.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-top: 2px solid var(--pc-main-color, #2563eb);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0;
    list-style: none;
    margin: 0;
}

.submenu li {
    border-bottom: 1px solid #ddd;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    display: block;
    padding: 8px 20px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.submenu a:hover {
    background: var(--pc-main-color, #2563eb);
    color: #fff;
    padding-left: 25px;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--pc-main-color, #2563eb);
    cursor: pointer;
    padding: 10px;
}

/* PC에서는 모바일 메뉴 버튼 숨김 */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-nav {
        display: flex !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block !important;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
}

.mobile-menu-logo {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #f3f4f6;
    color: #000;
}

.mobile-nav {
    flex: 1;
    overflow-y: auto;
}

.mobile-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background: var(--pc-main-color, #2563eb);
    color: #fff;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* 모바일 메뉴 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--mobile-main-color, #2563eb);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
}

.mobile-menu-nav {
    padding: 0;
}

.mobile-nav-list {
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.mobile-nav-link i {
    font-size: 14px;
    color: #999;
    transition: transform 0.3s ease;
}

.mobile-nav-item.active .mobile-nav-link i {
    transform: rotate(180deg);
}

/* 모바일 서브메뉴는 하단에 별도로 정의됨 */

.mobile-submenu-link {
    display: block;
    padding: 12px 20px 12px 40px;
    font-size: 14px;
    color: #555;
}

.mobile-submenu-link:hover {
    background: #fff;
    color: var(--mobile-main-color, #2563eb);
}

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block !important;
}

/* ============================================
   메인슬라이드 섹션
   ============================================ */
.main-slide-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-slide-section .main-slide-container {
    margin: 0 !important;
}

/* ============================================
   메인 컨텐츠
   ============================================ */
.site-main {
    min-height: 400px;
}

/* 컨테이너 */
.content-container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 60px 20px;
}

/* 페이지 타이틀 - 서브레이아웃 시스템에서 관리 */

/* ============================================
   푸터 - layout.css에서 관리
   ============================================ */
/* 푸터 스타일은 layout.css에서 중앙 관리됩니다 */

.copyright {
    font-size: 13px;
    color: #6b7280;
}

/* ============================================
   반응형: 태블릿
   ============================================ */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 15px;
    }
    
    .content-container {
        padding: 40px 15px;
    }
    
    .nav-link {
        padding: 25px 15px;
        font-size: 15px;
    }
}

/* ============================================
   반응형: 모바일
   ============================================ */
@media (max-width: 767px) {
    /* 기본 폰트 설정 */
    body {
        font-size: var(--mobile-font-size, 14px);
        line-height: 1.5;
    }
    
    /* 링크 호버 색상 */
    a:hover {
        color: var(--mobile-hover-color, #1e40af);
    }
    
    /* 헤더 */
    .header-container {
        height: 60px;
        padding: 0 15px;
    }
    
    .header-logo a {
        font-size: 18px;
    }
    
    /* 모바일 메뉴 표시 규칙 */
    .desktop-menu {
        display: none !important;
    }
    

    .header-logo img {
        max-height: 40px;
    }
    
    /* PC 네비게이션 숨김 */
    .pc-nav {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    /* 모바일 메뉴 버튼 표시 */
    .mobile-menu-toggle {
        display: block;
    }
    .mobile-menu-btn {
        display: flex;
    }
    
    /* 컨텐츠 */
    .content-container {
        padding: 30px 10px;
    }
    
    .page-title {
        font-size: 22px;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    /* 푸터 */
    .site-footer {
        padding: 20px;
        margin-top: 40px;
        background:#33458a;
    }
    
    .footer-container {
        padding: 0px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .footer-logo {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .footer-company-info p {
        font-size: 13px;
    }
    
    .copyright {
        font-size: 12px;
    }
}

/* ============================================
   메인 페이지 섹션 스타일
   ============================================ */

/* 섹션 공통 */
.main-section {
    padding: 60px 0;
    background: #fff;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #4a7ba7;
}

.section-more {
    text-align: center;
    margin-top: 30px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #4a7ba7;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: #3d6688;
    transform: translateY(-2px);
}

/* 최근게시물 섹션 */
.recent-posts-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    height: 100%;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-item:hover {
    transform: translateY(-2px);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
}

.post-board {
    background: #4a7ba7;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.post-date {
    color: #666;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #4a7ba7;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 배너 섹션 */
.banner-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.banner-item {
    flex: 1;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.banner-link:hover {
    transform: translateY(-2px);
}

.banner-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-link:hover .banner-image {
    transform: scale(1.05);
}

/* 갤러리 섹션 */
.gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 123, 167, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    font-size: 24px;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-info {
    padding: 20px;
}

.gallery-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.gallery-date {
    color: #666;
    font-size: 14px;
}

/* 웹진 섹션 */
.webzine-section {
    padding: 80px 0;
    background: white;
}

.webzine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.webzine-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.webzine-item:hover {
    transform: translateY(-5px);
}

.webzine-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 200px;
}

.webzine-image {
    flex: 0 0 200px;
    overflow: hidden;
}

.webzine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.webzine-item:hover .webzine-image img {
    transform: scale(1.05);
}

.webzine-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.webzine-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.webzine-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}

.webzine-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.webzine-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 반응형 */
@media (max-width: 768px) {
    .main-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .recent-posts-section {
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .webzine-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .webzine-link {
        flex-direction: column;
        height: auto;
    }
    
    .webzine-image {
        flex: none;
        height: 200px;
    }
}

/* ============================================
   유틸리티
   ============================================ */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-20 {
    padding-top: 20px;
}

.pb-20 {
    padding-bottom: 20px;
}

/* 서브탑 100% 폭 스타일 */
.page-header {
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* 페이지 헤더 스타일 */
.page-header .page-title {
    margin: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.tab-navigation {
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* 서브탑 내부 컨테이너 100% 폭 */
.page-header .container,
.tab-navigation .container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 20px !important;
}

/* ============================================
   탭메뉴 스타일 (기존 사이트와 완전히 동일)
   ============================================ */
.page-title-area {
    background: linear-gradient(to right, #5b9bd5, #4a90c9);
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 9997;
}

.page-title-area h1 {
    color: white;
    font-size: 36px;
    font-weight: 500;
    padding:12px 0 16px 0;
    margin: 0;
    z-index: 0 !important;
    letter-spacing: -0.5px;
}

.submenu-area {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
    z-index: 999;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.submenu-container {
    max-width: var(--site-width) !important;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-left {
    display: flex;
    align-items: center;
    gap: 0;
    order: 1;
}

.home-btn {
    width: 60px;
    height: 48px;
    border: none;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s;
    background: white;
}

.home-btn:hover {
    color: #666;
    background: #f8f8f8;
}

/* dropdown-menus 스타일은 하단에서 통합 관리 */

.dropdown-item {
    position: relative;
}

.dropdown-btn {
    padding: 0 25px 0 20px;
    border: none;
    border-right: 1px solid #d0d0d0;
    background: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
    height: 48px;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
}

.dropdown-btn:hover {
    background: #f8f8f8;
}

.dropdown-btn.active {
    background: #f8f8f8;
    color: #333;
}

.dropdown-btn i {
    font-size: 14px;
    color: #999;
}

/* 드롭다운 컨텐츠 기본 스타일 - 첫 번째 이미지와 동일한 파란색 스타일 */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #4a7ba7;
    min-width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-top: none;
    z-index: 999;
    display: none;
    border-radius: 0 0 4px 4px;
}

.dropdown-content a:hover {color:#fff !important;}

.dropdown-item:hover .dropdown-content,
.dropdown-item.open .dropdown-content {
    display: block;
}

.dropdown-item.open .dropdown-btn {
    background: #f8f8f8;
}

.dropdown-content a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    background: #4a7ba7;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #3d6688;
}

.dropdown-content a.active {
    background: #2a5b87;
    font-weight: 600;
}

.dropdown-content a i.fa-chevron-right {
    font-size: 10px;
    color: white;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    order: 2;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #4a7ba7;
}

.breadcrumb .separator {
    color: #ccc;
    margin: 0 2px;
}

.breadcrumb .current {
    color: #4a7ba7;
}

/* PC/모바일 메뉴 표시 규칙 */
.desktop-menu {
    display: block !important;
}

.mobile-dropdown {
    display: none !important;
}

/* PC용 드롭다운 메뉴 스타일 - 통합 관리 */
.dropdown-menus {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dropdown-item.desktop-menu {
    display: block !important;
}

/* PC에서 모바일 드롭다운 완전 숨김 - 통합 관리 */
.dropdown-item.mobile-dropdown,
.dropdown-item.mobile-dropdown * {
    display: none !important;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block !important;
    }
    
    .mobile-menu-overlay {
        display: block !important;
    }
    
    .mobile-nav {
        display: block !important;
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .page-title-area {
        margin-top: 60px !important;
        padding: 12px 0;
        z-index: 0;
    }
    
    .page-title-area h1 {
        font-size: 32px;
    }
    
    .submenu-container {
        padding: 0px 12px;
        overflow-x: auto;
    }
    
    .breadcrumb {
        display: none !important;
    }
    
    .submenu-left {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    
    /* 모바일에서 홈버튼 스타일 개선 */
    .home-btn {
        width: 60px !important;
        height: 48px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: white !important;
        border: 1px solid #d0d0d0 !important;
        color: #999 !important;
        font-size: 18px !important;
        text-decoration: none !important;
    }
    
    .home-btn:hover {
        color: #666 !important;
        background: #f8f8f8 !important;
    }
    
    /* 모바일에서 커뮤니티 메뉴 완전 숨김 */
    .dropdown-item:first-child {
        display: none !important;
    }
    
    /* 홈버튼 오른쪽으로 최종단 메뉴만 표시 - 화면에 꽉 차게 */
    .dropdown-menus {
        flex: 1 !important;
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: calc(100% - 60px) !important;
        margin-left: 0 !important;
    }
    
    /* 모바일 드롭다운 버튼 가로 사이즈 조정 */
    .dropdown-btn {
        min-width: calc(100vw - 72px) !important;
        max-width: calc(100vw - 72px) !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        padding: 0 15px !important;
        font-size: 16px !important;
        white-space: nowrap !important;
    }
    
    /* 모바일에서도 동일한 드롭다운 스타일 적용 */
    .dropdown-content {
        background: #4a7ba7 !important;
        border-radius: 0 0 4px 4px !important;
    }
    
    .dropdown-content a {
        background: #4a7ba7 !important;
        color: white !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .dropdown-content a:hover {
        background: #3d6688 !important;
    }
    
    .dropdown-content a.active {
        background: #2a5b87 !important;
        font-weight: 600 !important;
    }

    
}

/* 일반 컨테이너는 사이트 폭 적용 */
.layout-content .container {
    max-width: var(--site-width) !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}


/* 콘텐츠 영역 좌우 padding 제거 */
.layout-content,
.board-container,
.webzine-list,
.content-area {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.layout-content .container,
.board-container .container,
.webzine-list .container,
.content-area .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 홈페이지 콘텐츠 100% 폭 */
.home-content {
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* ============================================
   게시판/페이지 타이틀 공통 스타일
   ============================================ */
.board-header {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 30px;
}

.board-title {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.board-desc {
    color: #7f8c8d;
    font-size: 1rem;
}

/* 반응형: 모바일 */
@media (max-width: 768px) {
    .board-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .board-title {
        font-size: 1.3rem;
    }
}

/* ============================================
   모바일 메뉴 서브메뉴 스타일
   ============================================ */
.mobile-menu-item {
    position: relative;
}

.mobile-menu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-menu-title a {
    flex: 1;
    padding: 12px 20px;
    display: block;
    color: #222;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
}

.mobile-submenu-toggle {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: #333;
    font-size: 15px !important;
    transition: all 0.3s ease;
}

.mobile-submenu-toggle:hover {
    color: var(--mobile-main-color, #2563eb);
}

.mobile-nav .mobile-submenu {
    display: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    background: #f8f9fa;
    padding-left: 0;
    list-style: none;
    margin: 0;
    transition: max-height 0.3s ease;
}

.mobile-nav .mobile-menu-item.open > .mobile-submenu {
    display: block !important;
    max-height: 1000px !important;
    overflow: visible !important;
}

.mobile-nav .mobile-submenu li {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav .mobile-submenu .mobile-menu-title {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav .mobile-submenu .mobile-menu-title a {
    flex: 1;
    padding: 10px 20px 10px 32px !important;
    font-size: 15px !important;
    color: #555 !important;
    display: block;
    text-decoration: none;
}

.mobile-nav .mobile-submenu .mobile-submenu {
    background: #f0f1f3;
}

.mobile-nav .mobile-submenu .mobile-submenu .mobile-menu-title a {
    padding: 10px 20px 10px 60px !important;
    font-size: 13px !important;
    color: #666 !important;
}

.mobile-nav .mobile-menu-item.has-children > .mobile-menu-title > a {
    padding-right: 0;
}

