/* 기본 설정 */
    :root {
        --primary-color: #e63946;
        --secondary-color: #1d3557;
        --light-color: #f1faee;
        --dark-color: #1d1d1d;
        --accent-color: #457b9d;
        --gray-light: #f8f9fa;
        --gray: #e9ecef;
        --gray-dark: #6c757d;
    }
    *, *::before, *::after { box-sizing: border-box; }
    body { margin: 0; overflow-x: hidden; }
    .trendy-magazine-header {
        font-family: 'Noto Sans KR', 'Montserrat', sans-serif;
        color: var(--dark-color);
        width: 100%;
        background: #fff;
        position: relative;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        overflow-x: hidden;
    }
    .container {
        width: 100%;
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 20px;
    }
    /* Breaking News Bar */
    .breaking-news-bar {
        background: var(--primary-color);
        color: white;
        padding: 10px 0;
        overflow: hidden;
        position: relative;
    }
    .breaking-news-bar .container { display: flex; align-items: center; }
    .breaking-label {
        background: #c1121f;
        padding: 5px 12px;
        margin-right: 15px;
        font-weight: 700;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 3px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .live-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        background-color: #fff;
        border-radius: 50%;
        animation: pulse 1.5s infinite;
    }
    @keyframes pulse {
        0% { transform: scale(0.8); opacity: 0.7; }
        50% { transform: scale(1.2); opacity: 1; }
        100% { transform: scale(0.8); opacity: 0.7; }
    }
    .breaking-news-content { flex: 1; overflow: hidden; }
    .ticker-controls { margin-left: 15px; }
    .ticker-control {
        background: transparent;
        border: none;
        color: white;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-radius: 50%;
        transition: all 0.3s;
    }
    .ticker-control:hover { background: rgba(255,255,255,0.2); }
    .news-ticker { overflow: hidden; position: relative; }
    .ticker-items {
        list-style: none;
        padding: 0;
        margin: 0;
        animation: ticker 30s linear infinite;
        white-space: nowrap;
    }
    .ticker-items.paused { animation-play-state: paused; }
    .ticker-items li {
        display: inline-block;
        padding-right: 50px;
        font-size: 14px;
        font-weight: 500;
        position: relative;
    }
    .ticker-items li:after {
        content: '•';
        position: absolute;
        right: 20px;
        color: rgba(255,255,255,0.5);
    }
    @keyframes ticker {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }
    /* Top Bar */
    .top-bar {
        background: var(--secondary-color);
        color: var(--light-color);
        padding: 10px 0;
        font-size: 13px;
    }
    .top-bar-content { display: flex; justify-content: space-between; align-items: center; }
    .date-info { display: flex; align-items: center; }
    .date-info i { margin-right: 5px; color: var(--primary-color); }
    .right-info { display: flex; align-items: center; gap: 20px; }
    /* SNS 아이콘 */
    .sns-icons { display: flex; gap: 12px; align-items: center; }
    .sns-icon, .search-icon {
        color: var(--light-color);
        font-size: 14px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(255,255,255,0.1);
        text-decoration: none;
    }
    .sns-icon:hover, .search-icon:hover {
        background: var(--primary-color);
        transform: translateY(-2px);
        color: white;
    }
    /* 날씨 정보 - 모바일 및 데스크탑 모두 흰색 텍스트 적용 */
    .weather-info {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 5px 10px;
        background: rgba(255,255,255,0.1);
        border-radius: 20px;
        transition: all 0.3s ease;
        color: white;
    }
    .weather-info:hover { background: rgba(255,255,255,0.2); }
    .weather-icon { color: #ffd700; font-size: 14px; }
    .weather-text { font-weight: 500; font-size: 13px; color: white; }
    .location { font-size: 11px; opacity: 0.8; margin-left: 5px; color: white; }
    /* 사용자 프로필 */
    .user-profile { display: flex; align-items: center; }
    .profile-link, .login-link {
        color: var(--light-color);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        transition: all 0.3s ease;
        padding: 5px 10px;
        background: rgba(255,255,255,0.1);
        border-radius: 20px;
    }
    .profile-link:hover, .login-link:hover {
        background: var(--primary-color);
        color: white;
    }
    /* 로고 영역 */
    .logo-header { background: #000; padding: 20px 0; }
    .logo-header .container { display: flex; justify-content: space-between; align-items: center; }
    .logo-area { flex: 1; text-align: center; }
    .logo-link { display: inline-block; }
    .logo { display: block; }
    
    /* 텍스트 로고 스타일 */
    .text-logo {
        font-family: 'Montserrat', sans-serif;
        font-weight: 800;
        font-size: 28px;
        letter-spacing: 1px;
        color: white;
        text-transform: uppercase;
        padding: 8px 0;
    }

    .text-logo.mobile {
        font-size: 22px;
    }

    .logo-accent {
        color: #e63946;
    }
    
    /* 모바일 메뉴 버튼 */
    .mobile-menu-btn {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        flex-direction: column;
        gap: 4px;
        z-index: 10;
    }
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: white;
        transition: all 0.3s ease;
    }
    /* 데스크탑 네비게이션 */
    .main-nav {
        background: var(--dark-color);
        padding: 0;
        position: relative;
    }
    .nav-menu { width: 100%; }
    .menu-items {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        position: relative;
        justify-content: space-around;
    }
    .menu-item { position: relative; }
    .menu-item a {
        display: block;
        color: white;
        text-decoration: none;
        padding: 15px 20px;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }
    .menu-item.home a { padding: 15px 20px; font-size: 14px; }
    .menu-item a:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 3px;
        background: var(--primary-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    .menu-item a:hover, .menu-item.current-menu-item a { background: #2a2a2a; }
    .menu-item a:hover:after, .menu-item.current-menu-item a:after { width: 100%; }
    /* 모바일 메뉴 */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: var(--dark-color);
        z-index: 100000;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    .mobile-menu.active { left: 0; }
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background: #000;
    }
    .mobile-logo { flex: 1; }
    .close-menu {
        background: none;
        border: none;
        color: white;
        font-size: 18px;
        cursor: pointer;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    .close-menu:hover { background: rgba(255,255,255,0.1); }
    /* 모바일 서브메뉴 (카테고리 리스트 등) */
    .mobile-category-wrapper { margin-top: 20px; }
    .mobile-menu-title {
        color: white;
        font-size: 16px;
        margin: 20px 0 10px;
        font-weight: 600;
        position: relative;
        padding-left: 15px;
    }
    .mobile-menu-title:before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 16px;
        background: var(--primary-color);
        border-radius: 2px;
    }
    .mobile-category-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .mobile-category-list li { border-bottom: 1px solid rgba(255,255,255,0.05); }
    .mobile-category-list li:last-child { border-bottom: none; }
    .mobile-category-list a {
        color: rgba(255,255,255,0.8);
        display: block;
        padding: 12px 0;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.2s ease;
    }
    .mobile-category-list a:hover {
        color: white;
        padding-left: 5px;
    }
    .mobile-category-list a i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
        color: var(--primary-color);
    }
    /* 모바일 소셜 아이콘 */
    .mobile-social { margin-top: 20px; }
    .mobile-social-icons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 15px;
    }
    .mobile-sns-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #2d2d2d;
        color: white;
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    .mobile-sns-icon:hover {
        background: var(--primary-color);
        transform: translateY(-2px);
    }
    .mobile-user-actions {
        margin-top: 25px;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 20px;
    }
    .mobile-profile-link, .mobile-login-link {
        display: flex;
        align-items: center;
        gap: 10px;
        color: white;
        text-decoration: none;
        background: var(--primary-color);
        padding: 12px 20px;
        border-radius: 30px;
        font-weight: 500;
        font-size: 14px;
        transition: all 0.2s ease;
    }
    .mobile-profile-link:hover, .mobile-login-link:hover {
        background: #d32f37;
    }
    /* 검색 모달 닫기 버튼 */
    .close-search {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
        z-index: 1100;
    }
    .close-search:hover { background: rgba(255,255,255,0.1); }
    .search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.95);
        z-index: 1001;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        justify-content: center;
        align-items: center;
    }
    .search-overlay.active { display: flex; opacity: 1; }
    .search-content {
        width: 90%;
        max-width: 600px;
        background: #1a1a1a;
        padding: 30px;
        border-radius: 10px;
        position: relative;
        color: white;
    }
    .search-content h2 {
        margin-top: 0;
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        position: relative;
    }
    .search-content h2:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: var(--primary-color);
    }
    /* 검색 폼 한 줄 정렬 및 모바일 최적화 */
    .search-form {
        display: flex;
        align-items: center;
        margin-bottom: 30px;
    }
    .search-input {
        flex: 1;
        padding: 15px 20px;
        font-size: 16px;
        background: #2d2d2d;
        border: none;
        color: white;
        border-radius: 30px 0 0 30px;
    }
    .search-input:focus { outline: none; box-shadow: 0 0 0 2px var(--primary-color); }
    .search-button {
        padding: 12px 15px;
        background: var(--primary-color);
        border: none;
        height: 100%;
        border-radius: 0 30px 30px 0;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        transition: all 0.3s ease;
    }
    .search-button:hover { background: #d32f37; }
    .popular-searches { margin-top: 20px; }
    .popular-searches h3 {
        font-size: 16px;
        margin-bottom: 15px;
        color: rgba(255,255,255,0.7);
    }
    .search-tags { display: flex; flex-wrap: wrap; gap: 10px; }
    .search-tags a {
        display: inline-block;
        padding: 8px 15px;
        background: #2d2d2d;
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        border-radius: 20px;
        font-size: 13px;
        transition: all 0.3s ease;
    }
    .search-tags a:hover { background: var(--primary-color); color: white; }
    /* 스티키 내비게이션 */
    .main-nav.sticky {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        animation: slideDown 0.3s forwards;
    }
    @keyframes slideDown {
        from { transform: translateY(-100%); }
        to { transform: translateY(0); }
    }
    /* 반응형 스타일 */
    @media (max-width: 768px) {
        .main-nav { display: none; }
        .mobile-menu-btn { display: flex; }
        .top-bar-content { justify-content: center; }
        .weather-info, .date-info { display: none; }
        .logo-area { text-align: left; }
        /* 모바일 실시간 뉴스 영역 재배치 */
        .breaking-news-bar { padding: 5px 0; }
        .breaking-news-bar .container {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
        }
        .breaking-label { order: 1; margin-right: 5px; font-size: 12px; padding: 4px 8px; }
        .breaking-news-content { order: 2; flex: 1; margin: 0 5px; }
        .ticker-controls { order: 3; margin-left: 0; }
        .ticker-items li { font-size: 12px; padding-right: 20px; }
        .ticker-items li:after { right: 10px; }
        .sns-icon, .search-icon { width: 30px; height: 30px; font-size: 14px; }
        .text-logo { font-size: 24px; }
    }
    @media (max-width: 576px) {
        .mobile-menu { width: 85%; }
        .search-content { padding: 20px; }
        .search-input { 
            padding: 12px 15px; 
            font-size: 14px; 
            border: 1px solid #ccc;
            border-right: none;
            border-radius: 30px 0 0 30px;
            background: #fff;
            color: #333;
        }
        .search-button { 
            padding: 12px 15px; 
            font-size: 16px;
            border: 1px solid var(--primary-color);
            border-left: none;
            border-radius: 0 30px 30px 0;
        }
        .top-bar { padding: 8px 0; }
        .logo-header { padding: 15px 0; }
        .user-profile { display: none; }
        /* 모바일 검색 폼 (햄버거 메뉴 내) */
        .mobile-search-form input { 
            width: 100%; 
            padding: 10px 15px; 
            font-size: 16px; 
            border: 1px solid #ccc;
            border-radius: 30px;
            background: #fff;
            color: #333;
        }
        .mobile-search-form input::placeholder { color: #999; }
        .mobile-search-form button {
            padding: 8px;
            background: var(--primary-color);
            border: none;
            color: white;
            border-radius: 50%;
            margin-left: 5px;
        }
        /* 모바일 날씨 디자인 개선: 흰색 텍스트, 심플한 배경 */
        .mobile-weather {
            background: transparent;
            color: white;
            font-size: 16px;
            padding: 8px;
            text-align: center;
            border: none;
        }
        .mobile-weather i {
            font-size: 18px;
            margin-right: 5px;
            color: #ffd700;
        }
        .text-logo { font-size: 20px; }
        .text-logo.mobile { font-size: 18px; }
    }
    
    * {
        margin: 0; padding: 0; box-sizing: border-box;
        font-family: 'Noto Sans KR', sans-serif;
    }
    .news-layout-container {
        max-width: 1400px; margin: 30px auto; background: #fff; padding: 20px;
    }
    .content-row {
        display: flex; align-items: stretch; gap: 20px;
    }
    .left-column, .middle-column, .right-column {
        display: flex; flex-direction: column; flex: 1;
    }
    .middle-column { flex: 1.1; }

    .section-title {
        font-size: 20px; font-weight: 700; margin-bottom: 10px;
    }
    .items-wrapper {
        display: flex; flex-direction: column;
    }

    /* 공통 아이템 스타일 */
    .news-item, .trend-item, .popular-news-item {
        display: flex; align-items: center; gap: 10px;
        padding: 8px 10px; background: #fff;margin: 5px 0;
    }
    .news-item:hover,
    .trend-item:hover,
    .popular-news-item:hover {
        /* background: #f5f5f5; */
    }
    .news-thumbnail, .trend-image-wrapper, .popular-news-thumb {
        flex-shrink: 0; width: 60px; height: 60px; overflow: hidden;
    }
    .news-thumbnail img,
    .trend-image,
    .popular-news-thumb img {
        width: 100%; height: 100%; object-fit: cover;
    }
    .news-content, .trend-text-content, .popular-news-content {
        display: flex; flex-direction: column;
    }
    .news-content .category,
    .trend-category,
    .popular-news-content .pop-cat {
        font-size: 9px; color: #000;
    }
    .news-content .title,
    .trend-text,
    .popular-news-content .pop-title {
        font-size: 15px; font-weight: 600; color: #333; line-height: 1.4;
    }
    .news-content .title a,
    .trend-text a,
    .popular-news-content .pop-title a {
        color: inherit; text-decoration: none;
    }
    .news-content .title a:hover,
    .trend-text a:hover,
    .popular-news-content .pop-title a:hover {
        text-decoration: underline;
    }

    /* --- 중앙 컬럼 이미지 별도 클래스 (468×468 고정) --- */
    .main-center-image {
        width: 468px !important;
        height: 468px !important;
        object-fit: cover !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* 반응형: 모바일에서 넘치면 100%로 */
    @media (max-width: 1024px) {
        .content-row { flex-direction: column; }
        .middle-column { flex: 1; }
        .main-center-image {
            width: 100% !important; height: auto !important;
        }
    }
    /* 전체 래퍼 */
        .pn-container {
            max-width: 1400px;
            margin: 0 auto 40px;
            padding: 0;
            background: none;
            color: #000;
            font-family: 'Noto Sans KR', sans-serif;
            position: relative;
        }

        /* 헤더 영역 */
        .pn-header {
            margin: 0 0 15px 0;
            padding: 0 0 8px 0;
            position: relative;
            border-bottom: 2px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .pn-title {
            font-size: 22px;
            font-weight: 700;
            color: #222;
            margin: 0;
            position: relative;
            padding-left: 18px;
            display: inline-block;
        }
        
        .pn-title:before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 18px;
            background-color: #c00;
            border-radius: 2px;
        }

        /* 슬라이더 컨테이너 */
        .pn-slider-container {
            position: relative;
            overflow: hidden;
            padding: 0 40px;
        }
        
        .pn-slider {
            display: flex;
            gap: 20px; /* 슬라이드 간격 */
            transition: transform 0.5s ease;
        }

        /* 각 슬라이드 */
        .pn-slide {
            min-width: calc(25% - 15px);
            flex: 0 0 calc(25% - 15px);
            position: relative;
            background: none;
            border: none;
            box-shadow: none;
            transition: transform 0.3s ease;
        }
        
        .pn-slide:hover {
            transform: translateY(-5px);
        }

        /* 이미지 컨테이너: 1:1 비율 유지 */
        .pn-image-container {
            position: relative;
            padding-top: 75%; /* 4:3 비율 */
            overflow: hidden;
            border: none;
            border-radius: 6px;
            margin-bottom: 10px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        }
        
        /* 이미지: 오버플로우 영역을 잘라내고 동일 높이 유지 */
        .pn-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .pn-slide:hover .pn-image {
            transform: scale(1.08);
        }

        /* 슬라이드 오버레이 */
        .pn-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
            color: #fff;
            padding: 20px 15px 15px;
            font-size: 16px;
            font-weight: 500;
            line-height: 1.4;
            text-align: left;
            transition: background 0.3s ease;
        }
        
        .pn-slide:hover .pn-overlay {
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
        }

        /* 카테고리 태그 */
        .pn-category {
            position: absolute;
            top: 10px;
            left: 10px;
            background: #c00;
            color: #fff;
            font-size: 12px;
            font-weight: 500;
            padding: 4px 8px;
            border-radius: 3px;
            z-index: 2;
        }

        /* 슬라이더 내비게이션 버튼 */
        .pn-nav-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            background: rgba(0, 0, 0, 0.6);
            border: none;
            border-radius: 50%;
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 2;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
        
        .pn-nav-button:hover {
            background: rgba(204, 0, 0, 0.8);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
        }
        
        .pn-prev {
            left: 5px;
        }
        
        .pn-next {
            right: 5px;
        }
        
        .pn-nav-button i {
            font-size: 14px;
        }
        
        /* 페이지네이션 인디케이터 */
        .pn-pagination {
            display: flex;
            justify-content: center;
            margin-top: 15px;
            gap: 8px;
        }
        
        .pn-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ccc;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .pn-dot.active {
            background: #c00;
            transform: scale(1.2);
        }

        /* 반응형 */
        @media (max-width: 1200px) {
            .pn-slide {
                min-width: calc(33.333% - 14px);
                flex: 0 0 calc(33.333% - 14px);
            }
            
            .pn-title {
                font-size: 20px;
            }
        }
        
        @media (max-width: 768px) {
            .pn-slide {
                min-width: calc(50% - 10px);
                flex: 0 0 calc(50% - 10px);
            }
            
            .pn-slider-container {
                padding: 0 30px;
            }
            
            .pn-title {
                font-size: 18px;
            }
            
            .pn-overlay {
                font-size: 14px;
                padding: 15px 10px 10px;
            }
            
            .pn-nav-button {
                width: 30px;
                height: 30px;
            }
        }
        
        @media (max-width: 480px) {
            .pn-container {
                margin-bottom: 25px;
            }
            
            .pn-slide {
                min-width: 100%;
                flex: 0 0 100%;
            }
            
            .pn-header {
                margin-bottom: 10px;
            }
            
            .pn-image-container {
                padding-top: 66.67%; /* 3:2 비율 */
            }
            
            .pn-nav-button {
                width: 28px;
                height: 28px;
            }
            
            .pn-category {
                font-size: 11px;
                padding: 3px 6px;
            }
        }
        
        /* 전체 래퍼 */
        .most-viewed-wrapper {
            max-width: 1400px;
            margin: 70px auto;
            padding: 0 20px;
            font-family: 'Noto Sans KR', sans-serif;
            color: #111;
        }
        
        /* 헤더 영역 - 고급 매거진 스타일로 업그레이드 */
        .most-viewed-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 35px;
            position: relative;
            padding-bottom: 15px;
        }
        
        .most-viewed-header:before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #eaeaea;
        }
        
        .most-viewed-title {
            font-size: 28px;
            font-weight: 900;
            margin: 0;
            position: relative;
            padding-bottom: 5px;
            letter-spacing: -0.5px;
            font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
            text-transform: uppercase;
        }
        
        .most-viewed-title:before {
            content: '#';
            color: #e01e1e;
            margin-right: 5px;
        }
        
        .most-viewed-title:after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 0;
            width: 60px;
            height: 3px;
            background-color: #e01e1e;
        }
        
        .most-viewed-more {
            text-decoration: none;
            color: #111;
            font-weight: 600;
            font-size: 15px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            border: 1px solid #ddd;
            padding: 8px 16px;
            border-radius: 30px;
        }
        
        .most-viewed-more:after {
            content: '→';
            margin-left: 8px;
            transition: transform 0.3s ease;
        }
        
        .most-viewed-more:hover {
            background-color: #111;
            color: #fff;
            border-color: #111;
        }
        
        .most-viewed-more:hover:after {
            transform: translateX(3px);
        }

        /* 5개 기사를 한 줄에 배치 (데스크톱 기준) */
        .most-viewed-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 25px;
        }

        /* 카드 형태 - 프리미엄 매거진 스타일 */
        .most-viewed-card {
            position: relative;
            background: #fff;
            border: none;
            border-radius: 0;
            overflow: hidden;
            transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        }
        
        .most-viewed-card:hover {
            transform: translateY(-8px);
        }

        /* 이미지 래퍼: 가로세로 비율을 고정 */
        .most-viewed-image-wrapper {
            position: relative;
            width: 100%;
            aspect-ratio: 1 / 1.2; /* 세로로 약간 더 긴 비율로 변경 - 매거진 커버 스타일 */
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }
        
        .most-viewed-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
            filter: brightness(0.95);
        }
        
        .most-viewed-card:hover .most-viewed-image {
            transform: scale(1.08);
            filter: brightness(1);
        }
        
        /* 순위 표시 - 모던 매거진 스타일 */
        .most-viewed-rank {
            position: absolute;
            top: 15px;
            left: 15px;
            width: 35px;
            height: 35px;
            background: rgba(224, 30, 30, 0.9);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            font-size: 18px;
            z-index: 2;
            box-shadow: 0 3px 10px rgba(0,0,0,0.2);
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        }

        /* 텍스트 영역 */
        .most-viewed-content {
            padding: 20px 5px 0;
            position: relative;
        }
        
        /* 카테고리 표시 - 럭셔리 매거진 스타일 */
        .most-viewed-category {
            font-size: 11px;
            font-weight: 800;
            color: #e01e1e;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 10px;
            display: block;
            position: relative;
            padding-left: 15px;
        }
        
        .most-viewed-category:before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 2px;
            background-color: #e01e1e;
        }

        /* 기사 제목 */
        .most-viewed-headline {
            font-size: 16px;
            font-weight: 700;
            margin: 0;
            line-height: 1.4;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2; /* 2줄까지만 표시 후 말줄임 */
            -webkit-box-orient: vertical;
            transition: color 0.3s ease;
        }
        
        .most-viewed-headline a {
            color: #111;
            text-decoration: none;
            background-image: linear-gradient(transparent calc(100% - 3px), #e01e1e 3px);
            background-repeat: no-repeat;
            background-size: 0% 100%;
            transition: background-size 0.4s ease;
        }
        
        .most-viewed-card:hover .most-viewed-headline a {
            background-size: 100% 100%;
        }
        
        /* 트렌드 표시 - 현대적 느낌의 태그 */
        .most-viewed-trend {
            position: absolute;
            top: -15px;
            right: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 3px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            z-index: 2;
        }
        
        .most-viewed-trend:before {
            content: '';
            display: inline-block;
            width: 8px;
            height: 8px;
            background-color: #e01e1e;
            border-radius: 50%;
            margin-right: 5px;
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0% { opacity: 0.4; transform: scale(0.8); }
            50% { opacity: 1; transform: scale(1.1); }
            100% { opacity: 0.4; transform: scale(0.8); }
        }

        /* 반응형: 모바일에서 5개를 한 줄에 모두 담기 어려우므로 2~3개씩 줄바꿈 */
        @media screen and (max-width: 1200px) {
            .most-viewed-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
            }
            
            .most-viewed-title {
                font-size: 24px;
            }
        }
        
        @media screen and (max-width: 768px) {
            .most-viewed-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .most-viewed-title {
                font-size: 22px;
            }
            
            .most-viewed-wrapper {
                margin: 30px auto;
                padding: 0 15px;
            }
            
            .most-viewed-headline {
                font-size: 15px;
            }
        }
        
        @media screen and (max-width: 480px) {
            .most-viewed-content {
                padding: 12px 0 0;
            }
            
            .most-viewed-rank {
                width: 25px;
                height: 25px;
                font-size: 14px;
            }
            
            .most-viewed-title {
                font-size: 20px;
            }
            
            .most-viewed-headline {
                font-size: 14px;
                -webkit-line-clamp: 3;
            }
        }
       /* 기본 설정 */
       :root {
           --opinion-color: #FF6B35;
           --border-color: #eaeaea;
           --bg-light: #ffffff;
           --bg-dark: #222;
           --text-dark: #222;
           --text-medium: #555;
           --text-light: #fff;
           --shadow: 0 2px 20px rgba(0,0,0,0.1);
           --radius: 8px;
           --transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
       }
       
       .news-wrapper {
           width: 100%;
           max-width: 1400px;
           margin: 50px auto;
           padding: 0;
           background: transparent;
           box-sizing: border-box;
           font-family: 'Noto Sans KR', sans-serif;
           color: var(--text-dark);
       }
       
       /* 각 행의 아래쪽 마진 */
       .news-row {
           margin-bottom: 50px;
           border-radius: var(--radius);
           overflow: hidden;
           box-shadow: var(--shadow);
           background: var(--bg-light);
       }
       
       /* 상단 행 */
       .news-row.top-row {
           padding: 30px;
       }
       
       /* 하단 행은 어두운 배경 처리 */
       .news-row.bottom-row {
           background: var(--bg-dark);
           color: var(--text-light);
           padding: 30px;
       }
       
       /* 행 제목 */
       .row-title {
           font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
           font-size: 28px;
           font-weight: 800;
           margin: 0 0 30px 0;
           text-transform: uppercase;
           letter-spacing: -0.5px;
           position: relative;
           display: inline-block;
       }
       
       .row-title:after {
           content: '';
           position: absolute;
           left: 0;
           bottom: -10px;
           width: 50px;
           height: 3px;
           background-color: var(--opinion-color);
       }
       
       .bottom-row .row-title {
           color: var(--text-light);
       }
       
       /* 4컬럼 그리드 (오피니언 + 3개 카테고리) */
       .category-section {
           display: grid;
           grid-template-columns: repeat(4, 1fr);
           gap: 30px;
       }
       
       /* 개별 컬럼 */
       .category-item {
           display: flex;
           flex-direction: column;
           border-radius: var(--radius);
           overflow: hidden;
           background: var(--bg-light);
           height: 100%;
       }
       
       .bottom-row .category-item {
           background: #2a2a2a;
       }
       
       /* 공통 헤더 스타일 */
       .category-header {
           font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
           font-size: 18px;
           font-weight: 700;
           margin: 0;
           color: var(--text-light);
           padding: 12px 15px;
           position: relative;
           display: flex;
           align-items: center;
           transition: var(--transition);
       }
       
       /* 카테고리별 색상 */
       .category-header.opinion {
           background-color: var(--opinion-color);
       }
       
       /* 헤더 링크 스타일 */
       .category-header a {
           text-decoration: none;
           color: inherit;
           display: flex;
           align-items: center;
           width: 100%;
           transition: var(--transition);
       }
       
       /* 더보기 아이콘 */
       .category-header a:after {
           content: '→';
           margin-left: auto;
           opacity: 0;
           transform: translateX(-10px);
           transition: var(--transition);
       }
       
       .category-header:hover a:after {
           opacity: 1;
           transform: translateX(0);
       }
       
       /* 아티클 컨테이너 */
       .articles-container {
           padding: 20px;
           flex: 1;
           display: flex;
           flex-direction: column;
           justify-content: space-between;
       }
       
       .bottom-row .articles-container {
           background: #2a2a2a;
       }
       
       /* 기사 아이템 (이미지 + 텍스트) */
       .article-item {
           display: flex;
           align-items: flex-start;
           margin-bottom: 20px;
           transition: var(--transition);
           border-radius: var(--radius);
           padding: 8px;
       }
       
       .article-item:last-child {
           margin-bottom: 0;
       }
       
       .article-item:hover {
           background: rgba(0,0,0,0.03);
           transform: translateX(5px);
       }
       
       .bottom-row .article-item:hover {
           background: rgba(255,255,255,0.05);
       }
       
       .article-text {
           margin-left: 15px;
           overflow: hidden;
           display: -webkit-box;
           -webkit-line-clamp: 2;
           -webkit-box-orient: vertical;
           font-size: 15px;
           line-height: 1.5;
           font-weight: 500;
           color: var(--text-dark);
       }
       
       /* 하단 행의 링크 텍스트는 흰색 */
       .bottom-row .article-text {
           color: var(--text-light);
       }
       
       .article-text a {
           text-decoration: none;
           color: inherit;
           transition: var(--transition);
       }
       
       .article-text a:hover {
           color: var(--opinion-color);
       }
       
       /* 이미지 컨테이너 개선 */
       .image-container {
           width: 120px;
           height: 85px;
           overflow: hidden;
           flex-shrink: 0;
           border-radius: calc(var(--radius) - 2px);
           box-shadow: 0 3px 10px rgba(0,0,0,0.1);
           transition: var(--transition);
       }
       
       .article-item:hover .image-container {
           box-shadow: 0 5px 15px rgba(0,0,0,0.2);
       }
       
       .image-container img {
           width: 100%;
           height: 100%;
           object-fit: cover;
           display: block;
           transition: var(--transition);
       }
       
       .article-item:hover .image-container img {
           transform: scale(1.05);
       }
       
       /* 카테고리 태그 */
       .category-tag {
           display: inline-block;
           font-size: 10px;
           font-weight: 700;
           text-transform: uppercase;
           padding: 3px 6px;
           margin-bottom: 6px;
           border-radius: 3px;
           letter-spacing: 0.5px;
           color: var(--text-light);
       }
       
       /* 컬럼 배경 & 구분선 추가 */
       .category-item {
           position: relative;
           box-shadow: 0 3px 15px rgba(0,0,0,0.05);
       }
       
       /* 게시일 */
       .article-date {
           font-size: 11px;
           color: var(--text-medium);
           margin-top: 5px;
           display: block;
       }
       
       .bottom-row .article-date {
           color: rgba(255,255,255,0.6);
       }
       
       /* 반응형 디자인 */
       @media (max-width: 1200px) {
           .category-section {
               grid-template-columns: repeat(2, 1fr);
           }
           
           .news-row {
               padding: 25px;
           }
           
           .row-title {
               font-size: 24px;
               margin-bottom: 25px;
           }
       }
       
       @media (max-width: 768px) {
           .news-wrapper {
               margin: 30px auto;
           }
           
           .news-row {
               padding: 20px;
               margin-bottom: 30px;
           }
           
           .category-section {
               grid-template-columns: 1fr;
               gap: 20px;
           }
           
           .image-container {
               width: 100px;
               height: 70px;
           }
           
           .category-header {
               font-size: 16px;
               padding: 10px 15px;
           }
           
           .articles-container {
               padding: 15px;
           }
           
           .article-text {
               font-size: 14px;
           }
           
           .article-item {
               margin-bottom: 15px;
           }
           
           .row-title {
               font-size: 22px;
               margin-bottom: 20px;
           }
           
           .row-title:after {
               width: 40px;
               height: 3px;
           }
       }
       
       @media (max-width: 480px) {
           .image-container {
               width: 85px;
               height: 60px;
           }
           
           .article-text {
               font-size: 13px;
               margin-left: 10px;
           }
           
           .article-item {
               padding: 5px;
           }
           
           .news-row {
               padding: 15px;
           }
           
           .articles-container {
               padding: 12px;
           }
       }
       
        .hd-magazine-footer {
            background: #111;
            background-image: linear-gradient(to bottom, #1a1a1a, #000);
            color: #fff;
            font-family: 'Montserrat', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
            padding: 60px 0 40px;
            position: relative;
            overflow: hidden;
        }
        
        .hd-magazine-footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(to right, #e51c23 0%, #e51c23 33%, #fff 33%, #fff 66%, #000 66%, #000 100%);
        }

        .hd-footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 30px;
            position: relative;
            z-index: 1;
        }

        .hd-footer-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 30px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            margin-bottom: 30px;
            position: relative;
        }
        
        .hd-footer-logo-container {
            position: relative;
            transition: transform 0.3s ease;
        }
        
        .hd-footer-logo-container:hover {
            transform: translateY(-3px);
        }
        
        .hd-footer-logo {
            height: 45px;
            width: auto;
            filter: brightness(1.1);
        }
        
        .hd-footer-logo-accent {
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 20px;
            height: 2px;
            background-color: #e51c23;
        }

        .hd-footer-nav {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
        }

        .hd-footer-nav a {
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            padding: 5px 0;
            position: relative;
            text-transform: uppercase;
        }
        
        .hd-footer-nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #e51c23;
            transition: width 0.3s ease;
        }

        .hd-footer-nav a:hover {
            color: #fff;
        }
        
        .hd-footer-nav a:hover::after {
            width: 100%;
        }

        .hd-footer-info {
            margin-top: 30px;
            font-size: 13px;
            color: rgba(255,255,255,0.7);
            line-height: 1.8;
            position: relative;
        }

        .hd-footer-company {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 15px;
        }

        .hd-footer-company span {
            position: relative;
            transition: color 0.3s ease;
        }
        
        .hd-footer-company span:hover {
            color: rgba(255,255,255,0.9);
        }

        .hd-footer-company span:not(:last-child):after {
            content: '';
            position: absolute;
            right: -10px;
            top: 50%;
            transform: translateY(-50%);
            width: 1px;
            height: 12px;
            background: rgba(255,255,255,0.2);
        }

        .hd-highlight {
            color: #e51c23;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .hd-highlight::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background-color: #fff;
            transition: width 0.3s ease;
        }

        .hd-magazine-footer a.hd-highlight:hover {
            color: #fff;
        }
        
        .hd-magazine-footer a.hd-highlight:hover::after {
            width: 100%;
        }
        
        .hd-copyright {
            color: rgba(255,255,255,0.5); 
            font-size: 12px; 
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.05);
            letter-spacing: 1px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .hd-social-links {
            display: flex;
            gap: 15px;
        }
        
        .hd-social-icon {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            color: #fff;
            transition: all 0.3s ease;
            text-decoration: none;
        }
        
        .hd-social-icon:hover {
            background: #e51c23;
            transform: translateY(-3px);
        }
        
        .hd-social-icon i {
            font-size: 14px;
        }
        
        /* 액센트 요소 */
        .hd-accent-dot {
            display: inline-block;
            width: 5px;
            height: 5px;
            background-color: #e51c23;
            border-radius: 50%;
            margin-right: 5px;
            vertical-align: middle;
            position: relative;
            top: -1px;
        }

        @media (max-width: 992px) {
            .hd-magazine-footer {
                padding: 50px 0 30px;
            }
            
            .hd-footer-nav {
                gap: 20px;
            }
            
            .hd-footer-nav a {
                font-size: 12px;
            }
            
            .hd-copyright {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
        }

        @media (max-width: 768px) {
            .hd-footer-top {
                flex-direction: column;
                gap: 30px;
                text-align: center;
                padding-bottom: 25px;
            }

            .hd-footer-logo {
                height: 40px;
            }
            
            .hd-footer-logo-accent {
                left: 50%;
                transform: translateX(-50%);
                width: 30px;
            }

            .hd-footer-nav {
                justify-content: center;
                gap: 15px 20px;
                margin-top: 10px;
            }
            
            .hd-footer-nav a {
                font-size: 11px;
            }

            .hd-footer-company {
                justify-content: center;
                text-align: center;
                gap: 12px;
                margin-bottom: 10px;
            }

            .hd-footer-info {
                text-align: center;
                font-size: 12px;
                margin-top: 20px;
            }
            
            .hd-social-links {
                margin-top: 15px;
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .hd-magazine-footer {
                padding: 40px 0 25px;
            }
            
            .hd-footer-container {
                padding: 0 20px;
            }
            
            .hd-footer-company span {
                font-size: 11px;
            }
            
            .hd-footer-company span:not(:last-child):after {
                height: 10px;
            }
            
            .hd-footer-nav {
                max-width: 300px;
                gap: 10px 15px;
            }
            
            .hd-footer-nav a {
                font-size: 10px;
                letter-spacing: 0.3px;
            }
        }

        /* 추가 공통 스타일 */
        .hd-magazine-footer .hd-footer-info a {
            color: rgba(255,255,255,0.7);
            transition: color 0.3s ease;
        }
        
        .hd-magazine-footer .hd-footer-info a:hover {
            color: #e51c23;
        }
        
        .hd-magazine-footer .hd-footer-container .hd-footer-info .hd-footer-company span {
            font-size: 13px;
        }
        
        .hd-magazine-footer .hd-footer-info .hd-footer-company {
            margin-bottom: 10px;
        }
        
        .hd-magazine-footer .hd-footer-info .hd-footer-company span:not(:last-child) {
            margin-right: 10px;
        }
        
        .hd-magazine-footer .hd-footer-info .hd-footer-company span:not(:last-child):after {
            right: -10px;
        }
        
        .hd-magazine-footer .hd-footer-info .hd-footer-company span:last-child {
            margin-right: 0;
        }
        
        .hd-magazine-footer .hd-footer-info .hd-footer-company:last-of-type {
            margin-bottom: 0;
        }
        * {
            margin: 0; padding: 0; box-sizing: border-box;
            font-family: 'Noto Sans KR', sans-serif;
        }
        body { background: #fff; color: #000; }
        
        /* 메인 컨테이너 */
        .news-layout-container {
            max-width: 1400px; margin: 40px auto; 
            background: #fff; 
            padding: 30px 0;
        }
        
        /* 타이틀 바 제거 */
        
        /* 컨텐츠 레이아웃 */
        .content-row {
            display: grid;
            grid-template-columns: 1fr 1.2fr 1fr;
            gap: 30px;
        }
        
        .left-column, .middle-column, .right-column {
            display: flex; 
            flex-direction: column;
        }
        
        .left-column {
            padding-right: 20px;
        }
        
        .middle-column { 
            padding: 0 20px;
        }
        
        .right-column {
            padding-left: 20px;
        }

        /* 섹션 타이틀 - 매거진 스타일 */
        .section-title {
            font-size: 22px; 
            font-weight: 700; 
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 12px;
            position: relative;
            color: #111;
        }
        
        .section-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background-color: #e01e1e;
        }
        
        .section-title:before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #f1f1f1;
        }
        
        .middle-column .section-title {
            text-align: center;
            font-size: 26px;
        }
        
        .middle-column .section-title:after {
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
        }
        
        .right-column .section-title {
            font-size: 20px;
        }
        
        .items-wrapper {
            display: flex; flex-direction: column;
        }

        /* 공통 아이템 스타일 */
        .news-item, .trend-item, .popular-news-item {
            display: flex; 
            align-items: center; 
            gap: 15px;
            padding: 15px 0; 
            border-bottom: 1px solid #f5f5f5;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .news-item:after, 
        .trend-item:after, 
        .popular-news-item:after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 0;
            height: 1px;
            background-color: #e01e1e;
            transition: width 0.3s ease;
        }
        
        .news-item:hover:after,
        .trend-item:hover:after,
        .popular-news-item:hover:after {
            width: 100%;
        }
        
        .news-item:last-child, 
        .trend-item:last-child, 
        .popular-news-item:last-child {
            border-bottom: none;
        }
        
        .news-item:hover,
        .trend-item:hover,
        .popular-news-item:hover {
            transform: translateX(5px);
        }
        
        /* 썸네일 스타일 개선 */
        .news-thumbnail, .trend-image-wrapper, .popular-news-thumb {
            flex-shrink: 0; 
            width: 80px; 
            height: 80px; 
            overflow: hidden;
            border-radius: 5px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .news-item:hover .news-thumbnail,
        .trend-item:hover .trend-image-wrapper,
        .popular-news-item:hover .popular-news-thumb {
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        
        .news-thumbnail img,
        .trend-image,
        .popular-news-thumb img {
            width: 100%; 
            height: 100%; 
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .news-thumbnail:hover img,
        .trend-image-wrapper:hover img,
        .popular-news-thumb:hover img {
            transform: scale(1.05);
        }
        
        /* 텍스트 콘텐츠 개선 */
        .news-content, .trend-text-content, .popular-news-content {
            display: flex; 
            flex-direction: column;
            flex: 1;
        }
        
        /* 카테고리 라벨 */
        .news-content .category,
        .trend-category,
        .popular-news-content .pop-cat {
            display: inline-block;
            font-size: 10px; 
            font-weight: 700;
            color: #e01e1e;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 5px;
            padding: 2px 0;
        }
        
        /* 타이틀 스타일 */
        .news-content .title,
        .trend-text,
        .popular-news-content .pop-title {
            font-size: 16px; 
            font-weight: 600; 
            color: #111; 
            line-height: 1.4;
            transition: color 0.2s ease;
        }
        
        .news-content .title a,
        .trend-text a,
        .popular-news-content .pop-title a {
            color: inherit; 
            text-decoration: none;
        }
        
        .news-content .title a:hover,
        .trend-text a:hover,
        .popular-news-content .pop-title a:hover {
            color: #e01e1e;
        }
        
        /* 게시날짜 추가 */
        .post-date {
            font-size: 12px;
            color: #888;
            margin-top: 5px;
        }
        
        /* 주요 뉴스 메인 이미지 스타일 */
        .main-news-container {
            position: relative;
            margin-bottom: 20px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .main-news-container:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }
        
        .main-news-image-wrapper {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            display: block;
            text-decoration: none;
        }
        
        .main-news-image-wrapper:before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 60%;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            z-index: 1;
        }
        
        .main-center-image {
            width: 100% !important;
            height: 380px !important;
            object-fit: cover !important;
            display: block !important;
            margin: 0 auto !important;
            transition: transform 0.5s ease;
        }
        
        .main-news-container:hover .main-center-image {
            transform: scale(1.03);
        }
        
        .main-news-content {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 30px;
            z-index: 2;
            text-align: left;
        }
        
        .main-news-category {
            display: inline-block;
            background: #e01e1e;
            color: #fff;
            padding: 5px 12px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 12px;
            border-radius: 3px;
            box-shadow: 0 2px 5px rgba(224, 30, 30, 0.3);
        }
        
        .main-news-title {
            font-size: 24px;
            font-weight: 700;
            color: #fff;
            text-shadow: 0 1px 3px rgba(0,0,0,0.3);
            line-height: 1.3;
            margin-bottom: 10px;
        }
        
        .main-news-excerpt {
            color: rgba(255,255,255,0.9);
            font-size: 15px;
            line-height: 1.5;
            margin-bottom: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .read-more {
            display: inline-flex;
            align-items: center;
            color: #fff;
            background-color: rgba(224, 30, 30, 0.8);
            padding: 8px 15px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 500;
            text-decoration: none;
            transition: background-color 0.3s ease;
        }
        
        .read-more:after {
            content: '→';
            margin-left: 5px;
        }
        
        .read-more:hover {
            background-color: #e01e1e;
        }
        
        /* 주요 뉴스 텍스트 아이템 */
        .main-text-item {
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 15px 10px;
            border-bottom: 1px solid #f1f1f1;
            height: 110px; /* 다른 컬럼 아이템과 높이 통일 */
            transition: all 0.3s ease;
            position: relative;
        }
        
        .main-text-item:after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 0;
            height: 1px;
            background-color: #e01e1e;
            transition: width 0.3s ease;
        }
        
        .main-text-item:hover:after {
            width: 100%;
        }
        
        .main-text-item:last-child {
            border-bottom: none;
        }
        
        .main-text-item:hover {
            transform: translateX(5px);
        }
        
        .main-text-category {
            display: inline-block;
            font-size: 10px;
            font-weight: 700;
            color: #e01e1e;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 5px;
            padding: 2px 0;
        }
        
        .main-text-title {
            font-size: 16px;
            font-weight: 600;
            color: #111;
            line-height: 1.4;
            margin-bottom: 5px;
            transition: color 0.2s ease;
        }
        
        .main-text-title a {
            color: inherit;
            text-decoration: none;
        }
        
        .main-text-title a:hover {
            color: #e01e1e;
        }
        
        /* 트렌드 섹션 개선 */
        .trending-section {
            margin-bottom: 40px;
        }
        
        .trending-section .trend-item {
            padding: 12px 0;
        }
        
        /* 인기 뉴스 섹션 개선 */
        .popular-section .popular-news-item {
            position: relative;
            padding: 12px 0;
        }
        
        .popular-section .popular-news-item:before {
            content: counter(popular-count);
            counter-increment: popular-count;
            position: absolute;
            top: 12px;
            left: -25px;
            width: 22px;
            height: 22px;
            background: #e01e1e;
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
        }
        
        .popular-section .items-wrapper {
            counter-reset: popular-count;
            padding-left: 25px;
        }
        
        /* 주요 뉴스 하단 서브 기사 */
        
        .left-column .news-item:last-child,
        .trending-section .trend-item:last-child, 
        .popular-section .popular-news-item:last-child {
            border-bottom: none;
        }

        /* 반응형: 모바일에서 넘치면 100%로 */
        @media (max-width: 1024px) {
            .content-row { 
                grid-template-columns: 1fr; 
            }
            .left-column, .right-column, .middle-column {
                padding: 0 20px;
            }
            .left-column, .middle-column, .right-column {
                margin-bottom: 40px;
            }
            .section-title {
                text-align: left;
            }
            .middle-column .section-title {
                text-align: left;
            }
            .middle-column .section-title:after {
                left: 0;
                transform: none;
            }
            .main-center-image {
                height: auto !important;
                max-height: 400px !important;
            }
            .main-news-title {
                font-size: 22px;
            }
            .main-news-excerpt {
                font-size: 14px;
            }
            .popular-section .items-wrapper {
                padding-left: 30px;
            }
        }
        
        @media (max-width: 768px) {
            .news-layout-container {
                padding: 20px 15px;
                margin: 20px auto;
            }
            .magazine-logo {
                font-size: 32px;
            }
            .main-news-content {
                padding: 20px;
            }
            .main-news-title {
                font-size: 20px;
            }
            .main-news-excerpt {
                display: none;
            }
        }

        .excerpt>p {
            display: -webkit-box;
            -webkit-line-clamp: 3;      /* 최대 줄 수 */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .mobile-search-form>input[type=text]{max-width: 85%;}
        @media only screen and (max-width: 768px) {
            .news-left img {
                margin-bottom: 0 !important;
            }
        }
        .ticker-items>li>a{color:#eee}
        .weather-info{display:none}