/* 기본 리셋 및 폰트 설정 */
* {
    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: #f8f9fa;
    padding-bottom: 80px; /* 하단 네비게이션 공간 확보 */
}

/* 상단 알림 배너 */
.top-banner {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
}

.banner-content i {
    font-size: 12px;
}

/* 헤더 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 100%;
}

.alarm-btn {
    background: #FFA726;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-weight: 500;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #2196F3;
}

.logo-icon {
    background: #2196F3;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.search-btn, .menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 8px;
}

/* 메인 콘텐츠 */
.main-content {
    max-width: 100%;
    margin: 0 auto;
}

/* 메인 배너 섹션 */
.main-banner {
    padding: 20px;
    background: white;
    margin-bottom: 8px;
}

.banner-text {
    text-align: center;
    margin-bottom: 20px;
}

.banner-subtitle {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}

.highlight {
    color: #2196F3;
    font-weight: 600;
}

.popular-tags {
    display: flex;
    justify-content: center;
}

.tag {
    background: #E3F2FD;
    color: #1976D2;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.main-promotion {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

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

.promotion-text {
    flex: 1;
}

.promotion-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.promotion-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.3;
}

.apply-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.geometric-shape {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 50% 20% 50% 20%;
    position: relative;
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    line-height: 1.2;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.support-cards {
    display: flex;
    gap: 12px;
}

.support-card {
    flex: 1;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.card-icon {
    background: #E3F2FD;
    color: #1976D2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 16px;
}

.support-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.card-agency {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.card-deadline {
    font-size: 12px;
    color: #f44336;
    font-weight: 500;
}

/* 랭킹 섹션 */
.ranking-section {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.crown-icon, .diamond-icon, .feed-icon {
    background: #FFA726;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.ranking-cards {
    display: flex;
    gap: 12px;
}

.ranking-card {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.rank-icon {
    background: #FFA726;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 14px;
}

.ranking-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 탭 섹션 */
.tab-section {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
}

.tab-navigation {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-btn {
    background: #f8f9fa;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    font-weight: 500;
}

.tab-btn.active {
    background: #333;
    color: white;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 12px;
    background: white;
}

.item-image {
    flex-shrink: 0;
}

.item-image img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.item-content {
    flex: 1;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.item-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.item-category {
    background: #E3F2FD;
    color: #1976D2;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.item-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.item-apply-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-block;
}

/* 머니 피드 섹션 */
.money-feed-section {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
}

.category-tabs-container {
    position: relative;
    margin-bottom: 20px;
    padding-left: 40px;
    padding-right: 40px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.scroll-arrow:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-arrow.right {
    right: 0px;
    display: flex !important;
}

.scroll-arrow.left {
    left: 0px;
}

.scroll-arrow i {
    color: #666;
    font-size: 14px;
}

.category-tab {
    background: #f8f9fa;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
}

.category-tab.active {
    background: #E3F2FD;
    color: #1976D2;
}

.category-tab {
    transition: all 0.2s ease;
}

.category-tab:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.category-tab:active {
    transform: scale(0.95);
}

.news-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.card-content {
    padding: 16px;
}

.card-categories {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.card-categories span {
    color: #2196F3;
}

.news-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.load-more-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    font-weight: 500;
}

/* 하단 네비게이션 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    padding: 8px 0;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px 4px;
    cursor: pointer;
    color: #999;
    font-size: 12px;
}

.nav-item.active {
    color: #2196F3;
}

.nav-item i {
    font-size: 18px;
}

/* 사이드 메뉴 */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.side-menu.active .menu-content {
    transform: translateX(0);
}

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

.menu-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px;
}

.menu-list {
    list-style: none;
    padding: 20px 0;
}

.menu-list li {
    margin-bottom: 4px;
}

.menu-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s;
}

.menu-list a:hover {
    background-color: #f8f9fa;
}

.menu-list i {
    font-size: 16px;
    width: 20px;
    color: #666;
}

/* 반응형 디자인 */
@media (max-width: 360px) {
    .support-cards {
        flex-direction: column;
    }
    
    .ranking-cards {
        flex-direction: column;
    }
    
    .promotion-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .header-content {
        padding: 10px 16px;
    }
    
    .main-banner, .ranking-section, .tab-section, .money-feed-section {
        padding: 16px;
    }
}

@media (min-width: 768px) {
    .main-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
}

/* 터치 기기 최적화 */
button, a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 로딩 애니메이션 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 모달 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-logo {
    margin-bottom: 20px;
}

.modal-info .support-badge {
    background: #E3F2FD;
    color: #1976D2;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 12px;
}

.modal-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.support-agency {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.support-amount {
    background: #F3E5F5;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.amount-text {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #7B1FA2;
    margin-bottom: 4px;
}

.amount-desc {
    font-size: 14px;
    color: #666;
}

.support-description {
    text-align: left;
}

.support-description h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 16px 0 12px;
}

.support-description ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.support-description li {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.support-description li:before {
    content: "•";
    color: #2196F3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.modal-footer {
    padding: 0 20px 20px;
}

.modal-apply-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.modal-apply-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.modal-apply-btn i {
    margin-right: 8px;
}

/* 상단 배너 클릭 가능하게 */
.top-banner {
    cursor: pointer;
    transition: background 0.2s ease;
}

.top-banner:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 클릭 가능한 카드들 */
.clickable-card, .clickable-item, .clickable-promotion {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.clickable-promotion:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* 지원 카드 호버 효과 */
.support-card:hover {
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    border: 2px solid #4A90E2;
}

.support-card:hover .card-icon {
    transform: scale(1.1);
    color: #4A90E2;
}

.support-card:hover h3 {
    color: #4A90E2;
}

/* 랭킹 카드 호버 효과 */
.ranking-card:hover {
    background: linear-gradient(135deg, #fff8e1, #ffffff);
    border: 2px solid #FFC107;
}

.ranking-card:hover .rank-icon {
    transform: scale(1.1);
    color: #FFC107;
}

.ranking-card:hover h3 {
    color: #FFC107;
}

/* 지원 아이템 호버 효과 */
.support-item:hover {
    background: linear-gradient(135deg, #f0f8ff, #ffffff);
    border: 1px solid #2196F3;
}

.support-item:hover .item-header h4 {
    color: #2196F3;
}

.support-item:hover .item-category {
    background: #E3F2FD;
    color: #1976D2;
}

/* 메인 프로모션 호버 효과 */
.main-promotion:hover .promotion-title {
    color: #4A90E2;
}

.main-promotion:hover .geometric-shape {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

/* 클릭 애니메이션 */
.clickable-card:active, .clickable-item:active, .clickable-promotion:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

/* 아이콘 애니메이션 */
.card-icon, .rank-icon {
    transition: all 0.3s ease;
}

.geometric-shape {
    transition: all 0.3s ease;
}

/* 기사 페이지 스타일 */
.article-content {
    padding: 20px;
    padding-bottom: 100px;
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 20px;
}

.article-category {
    margin-bottom: 12px;
}

.category-tag {
    background: #E3F2FD;
    color: #1976D2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    font-size: 40px;
    color: #666;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.publish-date {
    font-size: 12px;
    color: #666;
}

.article-actions {
    display: flex;
    gap: 16px;
}

.like-btn, .share-btn, .bookmark-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.like-btn:hover, .share-btn:hover, .bookmark-btn:hover {
    color: #2196F3;
}

.article-image {
    margin-bottom: 24px;
}

.article-body {
    line-height: 1.7;
}

.article-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 32px;
    border-left: 4px solid #2196F3;
}

.article-summary h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.article-summary ul {
    margin: 0;
    padding-left: 20px;
}

.article-summary li {
    margin-bottom: 8px;
    color: #555;
}

.article-content-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #2196F3;
}

.article-content-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 12px 0;
}

.article-content-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 8px 0;
}

.article-content-section p {
    margin-bottom: 16px;
    color: #555;
}

.article-content-section ul, .article-content-section ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-content-section li {
    margin-bottom: 8px;
    color: #555;
}

/* 테이블 스타일 */
.support-table table, .duration-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.support-table th, .support-table td,
.duration-table th, .duration-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.support-table th, .duration-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

/* 단계별 가이드 */
.step-guide {
    margin: 24px 0;
}

.step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.step-number {
    background: #2196F3;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.step-content p {
    margin: 0 0 4px 0;
    color: #555;
}

.step-content small {
    color: #666;
    font-size: 12px;
}

/* 경고 박스 */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box h4 {
    color: #856404;
    margin: 0 0 12px 0;
}

.warning-box ul {
    margin: 0;
    padding-left: 20px;
}

.warning-box li {
    color: #856404;
    margin-bottom: 4px;
}

/* CTA 섹션 */
.cta-section {
    background: linear-gradient(135deg, #f0f8ff, #e3f2fd);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin: 32px 0;
}

.cta-section h3 {
    margin: 0 0 8px 0;
    color: #1976D2;
}

.cta-section p {
    margin: 0 0 20px 0;
    color: #555;
}

.apply-now-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.apply-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* 관련 기사 */
.related-articles {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.related-articles h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

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

.related-card {
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

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

.related-image {
    width: 100%;
    height: 80px;
}

.related-card h4 {
    padding: 12px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* 기타 카드 스타일 */
.changes-grid, .eligibility-grid, .method-grid, .activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.change-card, .condition-card, .method-card, .activity-card {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.change-card.positive {
    background: #f0f8ff;
    border-color: #4CAF50;
}

.change-card.info {
    background: #f8f9fa;
    border-color: #2196F3;
}

.method-card.recommended {
    background: #f0f8ff;
    border-color: #2196F3;
}

.condition-card h4, .method-card h4, .activity-card h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* FAQ 스타일 */
.faq-section {
    margin: 24px 0;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 16px 0;
}

.faq-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.faq-item p {
    margin: 0;
    color: #555;
    padding-left: 16px;
}

/* 민생회복지원금 상세 페이지 스타일 */
.detail-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.detail-header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.detail-header .back-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
}

.detail-header .detail-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    flex: 1;
    margin-left: 16px;
}

.detail-header .header-actions {
    display: flex;
    gap: 8px;
}

.detail-header .search-btn,
.detail-header .menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.detail-header .search-btn:hover,
.detail-header .menu-btn:hover {
    background: #f5f5f5;
}

.breadcrumb {
    background: #f8f9fa;
    padding: 12px 20px;
    font-size: 12px;
    color: #666;
}

.breadcrumb a {
    color: #2196F3;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 공식 이미지 갤러리 */
.official-gallery {
    background: white;
    margin-bottom: 8px;
    padding: 20px;
}

.official-gallery h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3/2;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

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

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

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

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

.gallery-overlay i {
    font-size: 24px;
    margin-bottom: 8px;
}

.gallery-overlay span {
    font-size: 12px;
    font-weight: 500;
}

.gallery-note {
    text-align: center;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.gallery-note i {
    color: #2196F3;
}

/* 이미지 모달 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
    z-index: 1001;
}

.image-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.image-modal-caption {
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* 섹션 공통 스타일 */
.eligibility-section,
.support-content-section,
.application-method-section {
    background: white;
    margin-bottom: 8px;
    padding: 20px;
}

.section-icon {
    margin-bottom: 12px;
}

.eligibility-section h2,
.support-content-section h2,
.application-method-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 지원대상 카드 */
.eligibility-card,
.support-content-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.eligibility-item,
.support-item {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.eligibility-item:last-child,
.support-item:last-child {
    border-bottom: none;
}

.eligibility-item.detailed {
    flex-direction: column;
    gap: 8px;
}

.item-label {
    font-weight: 600;
    color: #333;
    min-width: 100px;
    margin-right: 16px;
}

.item-value {
    color: #666;
    flex: 1;
    line-height: 1.5;
}

.eligibility-item.detailed .item-value {
    font-size: 13px;
    line-height: 1.6;
}

/* 신청방법 카드 */
.method-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.method-card h3 {
    background: #f8f9fa;
    padding: 16px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.application-info {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.application-info:last-child {
    border-bottom: none;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
}

.info-label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
    margin-right: 16px;
}

.info-value {
    color: #666;
    flex: 1;
    line-height: 1.5;
}

.info-note {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    line-height: 1.4;
}

.period-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.period-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.period-label {
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.period-date {
    color: #666;
    font-size: 14px;
}

/* 신청 지급방식 탭 */
.method-tabs {
    padding: 20px;
}

.method-tab {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.method-tab h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.time-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
}

.method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.option-icon {
    color: #2196F3;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.option-desc {
    font-size: 12px;
    color: #666;
}

.special-info {
    background: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 사용처 안내 카드 */
.usage-guide-card,
.usage-places-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.usage-guide-card h3,
.usage-places-card h3 {
    background: #f8f9fa;
    padding: 16px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.usage-flow {
    padding: 20px;
}

.flow-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.flow-step:last-child {
    margin-bottom: 0;
}

.flow-step .step-number {
    background: #2196F3;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.step-platforms {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-badges {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.platform-badge {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.platform-badge.naver {
    background: #03C75A;
}

.platform-badge.kakao {
    background: #FEE500;
    color: #333;
}

.platform-badge.telegram {
    background: #0088CC;
}

.platform-section {
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.platform-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.platform-desc,
.platform-action,
.platform-result {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.step-action {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* 사용처 섹션 */
.usage-section {
    padding: 20px;
}

.usage-period,
.usage-location,
.usage-stores {
    margin-bottom: 24px;
}

.usage-period h4,
.usage-location h4,
.usage-stores h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.period-info,
.location-info {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.period-note,
.location-note {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.location-details {
    margin-top: 8px;
}

.location-item {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

.store-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-type {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
}

.store-icon {
    font-size: 16px;
}

.store-name {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.store-note {
    font-size: 12px;
    color: #888;
    margin-left: 24px;
    margin-top: 4px;
}

/* 사용처 분류 */
.usage-classification {
    border-top: 1px solid #e0e0e0;
    padding: 20px;
}

.classification-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.classification-allowed h4,
.classification-forbidden h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.business-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.business-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0f8ff;
    border-radius: 6px;
    border-left: 3px solid #4CAF50;
}

.business-icon {
    font-size: 16px;
}

.forbidden-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.forbidden-item {
    padding: 6px 12px;
    background: #fff5f5;
    border-radius: 6px;
    border-left: 3px solid #f44336;
    font-size: 14px;
    color: #666;
    line-height: 1.3;
}

.forbidden-note {
    font-size: 12px;
    color: #888;
    margin: 4px 0;
    padding-left: 12px;
}

.usage-note {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    line-height: 1.4;
}

/* 특별 공지 */
.special-notice {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    margin: 20px;
    border-radius: 12px;
    padding: 20px;
    color: white;
}

.notice-highlight h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.notice-center {
    text-align: center;
}

.sticker-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sticker-text {
    font-size: 14px;
    opacity: 0.9;
}

.sticker-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.logo-circle {
    background: white;
    color: #2196F3;
    padding: 12px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

/* CTA 버튼 */
.cta-section {
    padding: 20px;
    background: white;
    margin-bottom: 100px;
}

.main-cta-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: block;
    text-align: center;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.main-cta-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.main-cta-btn i {
    margin-right: 8px;
}

/* 상세 정보 보기 버튼 */
.detail-info-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: block;
    text-align: center;
    margin-bottom: 24px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.detail-info-btn:hover {
    background: linear-gradient(135deg, #1976D2, #2196F3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.detail-info-btn i {
    margin-right: 8px;
}

.secondary-cta-btn {
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.secondary-cta-btn:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

/* 카드사별 신청 링크 */
.card-company-links {
    margin: 24px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.card-company-links h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.company-link {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.company-link:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 카드사별 브랜드 컬러 */
.company-logo.kb {
    background: linear-gradient(135deg, #FFB800, #FF8C00);
}

.company-logo.shinhan {
    background: linear-gradient(135deg, #0066CC, #004499);
}

.company-logo.samsung {
    background: linear-gradient(135deg, #1428A0, #0F1B6D);
}

.company-logo.hyundai {
    background: linear-gradient(135deg, #000000, #333333);
}

.company-logo.lotte {
    background: linear-gradient(135deg, #E60012, #CC0010);
}

.company-logo.bc {
    background: linear-gradient(135deg, #FF6B35, #E55100);
}

.company-logo.woori {
    background: linear-gradient(135deg, #0067B1, #004D85);
}

.company-logo.hana {
    background: linear-gradient(135deg, #00A651, #008040);
}

.company-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.company-link i {
    color: #666;
    font-size: 12px;
}

.company-link:hover i {
    color: #2196F3;
}

.card-note {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.card-note p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-note p:last-child {
    margin-bottom: 0;
}

.card-note i {
    color: #2196F3;
    font-size: 12px;
}

/* 반응형 */
@media (max-width: 768px) {
    .article-content {
        padding: 16px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .changes-grid, .eligibility-grid, .method-grid, .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .classification-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .detail-header .detail-title {
        font-size: 16px;
    }
    
    .eligibility-item,
    .support-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .item-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 4px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .info-label {
        min-width: auto;
        margin-right: 0;
    }
    
    .period-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .company-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .company-link {
        padding: 10px 12px;
    }
    
    .company-logo {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }
    
    .company-name {
        font-size: 13px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .gallery-item {
        aspect-ratio: 16/9;
    }
    
    .gallery-overlay i {
        font-size: 20px;
    }
    
    .gallery-overlay span {
        font-size: 11px;
    }
    
    .image-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .image-modal-close {
        top: -35px;
        width: 28px;
        height: 28px;
    }
    
    .image-modal-caption {
        font-size: 12px;
        padding: 8px 16px;
        margin-top: 12px;
    }
    
    .service-notice {
        padding: 16px;
        margin: 16px 0 0 0;
    }
    
    .service-notice .service-header h3 {
        font-size: 14px;
    }
    
    .service-notice .service-description p {
        font-size: 11px;
        line-height: 1.5;
    }
    
}

/* 서비스 안내 섹션 */
.service-notice {
    background: #f8f9fa;
    margin: 24px 0 0 0;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.service-notice .service-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.service-notice .service-description p {
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    text-align: justify;
    margin: 0;
}

/* =================================== */
/* 더보기 메뉴 모달 (수정된 최종 버전) */
/* =================================== */

/* 1. 오버레이 (배경) 스타일 */
.more-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* 어둡게 처리 */
    z-index: 999;
    
    /* 초기 상태: 숨김 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.more-menu-overlay.active {
    /* 활성 상태: 보임 */
    opacity: 1;
    visibility: visible;
}

/* 2. 모달창 본문 스타일 */
.more-menu-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0; /* 둥근 모서리 */
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);

    /* 초기 상태: 화면 아래에 숨김 */
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease; /* 부드러운 애니메이션 */
}

.more-menu-modal.active {
    /* 활성 상태: 제자리로 올라옴 */
    transform: translateY(0);
    visibility: visible;
}

/* 3. 모달 헤더 (제목, 닫기 버튼) */
.more-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
}

.more-menu-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
}

.more-menu-header .close-btn {
    background: #f1f3f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    transition: background-color 0.2s;
}
.more-menu-header .close-btn:hover {
    background-color: #e9ecef;
}

/* 4. 모달 바디 (메뉴 항목들) */
.more-menu-body {
    padding: 0 24px 24px 24px;
}

.menu-items-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2열 그리드 */
    gap: 12px;
}

.menu-link-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column; /* 아이콘과 텍스트를 세로로 정렬 */
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #343a40;
    border: 1px solid #f1f3f5;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.menu-link-box:hover {
    transform: translateY(-3px);
    background-color: #f1f3f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.menu-link-icon {
    margin-bottom: 10px;
}
.menu-link-icon svg {
    width: 32px; /* 아이콘 크기 조정 */
    height: 32px;
    fill: #0067FF; /* SVG 색상 적용 */
}

.menu-link-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px 0;
}

.menu-link-subtitle {
    font-size: 12px;
    color: #868e96;
}

/* 5. 카카오톡 버튼 */
.kakao-action-wrapper {
    margin-top: 20px;
}

.kakao-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #FEE500;
    color: #191919;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.kakao-button:hover {
    background-color: #FDD835;
}

/* 6. 모바일 반응형 */
@media (max-width: 768px) {
    .menu-items-container {
        grid-template-columns: 1fr 1fr; /* 모바일에서도 2열 유지 */
    }
}