/* News Detail Page Styles */

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 100;
    display: none;
}

.sticky-header.active {
    display: block;
}

.sticky-header-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 16px 252px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 56px;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.back-button:hover {
    opacity: 0.6;
}

.back-button img {
    width: 24px;
    height: 24px;
    display: block;
}

.sticky-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.6px;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hero Section */
.news-detail-hero {
    margin-top: 72px;
    background-color: #ffffff;
    min-height: calc(100vh - 72px);
    padding-bottom: 120px;
    position: relative;
}

/* Ticker Banner */
.news-detail-ticker {
    background-color: #1a1a1a;
    height: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.news-detail-ticker .ticker-content {
    display: flex;
    gap: 8px;
    animation: ticker-scroll 20s linear infinite;
    white-space: nowrap;
}

.news-detail-ticker .ticker-content span {
    color: #696969;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.42px;
    padding: 0 8px;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.news-detail-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 252px;
}

/* Page Title */
.news-detail-page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: -1.44px;
    text-transform: uppercase;
    margin: 60px 0 48px 0;
}

/* Article Header */
.news-detail-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    max-width: 813px;
}

.news-detail-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.96px;
    line-height: 1.45;
    margin: 0;
}

.news-detail-date {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #8c8c8c;
    letter-spacing: -0.48px;
    line-height: 1.45;
}

/* Article Images */
.news-detail-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.news-detail-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Article Content */
.news-detail-content {
    margin-bottom: 60px;
}

.news-detail-content p {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #474747;
    letter-spacing: -0.54px;
    line-height: 1.6;
    margin: 0;
}

/* Back to List Button */
.news-detail-actions {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.back-to-list {
    display: inline-block;
    padding: 12px 40px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.48px;
    transition: background-color 0.3s ease;
}

.back-to-list:hover {
    background-color: #333333;
}

/* Responsive Styles */
@media (max-width: 1680px) {
    .news-detail-container {
        padding: 0 180px;
    }
    
    .sticky-header-container {
        padding: 16px 180px;
    }
}

@media (max-width: 1440px) {
    .news-detail-container {
        padding: 0 120px;
    }
    
    .sticky-header-container {
        padding: 16px 120px;
    }
}

@media (max-width: 1280px) {
    .news-detail-container {
        padding: 0 120px;
    }
    
    .sticky-header-container {
        padding: 16px 120px;
    }
    
    .news-detail-images {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-detail-image {
        height: 400px;
    }
}

@media (max-width: 1024px) {
    .news-detail-container {
        padding: 0 60px;
    }
    
    .sticky-header-container {
        padding: 16px 60px;
    }
    
    .news-detail-title {
        font-size: 28px;
    }
    
    .sticky-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .news-detail-container {
        padding: 0 30px;
    }
    
    .sticky-header-container {
        padding: 12px 20px;
        gap: 16px;
        height: 48px;
    }
    
    .back-button {
        width: 28px;
        height: 28px;
    }
    
    .back-button img {
        width: 20px;
        height: 20px;
    }
    
    .sticky-title {
        font-size: 16px;
    }
    
    .news-detail-page-title {
        font-size: 48px;
        margin: 40px 0 30px 0;
    }
    
    .news-detail-title {
        font-size: 24px;
    }
    
    .news-detail-images {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .news-detail-image {
        height: 250px;
    }
    
    .news-detail-content p {
        font-size: 16px;
    }
    
    .news-detail-actions {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .news-detail-page-title {
        font-size: 36px;
    }
    
    .news-detail-title {
        font-size: 20px;
    }
    
    .news-detail-image {
        height: 200px;
    }
    
    .news-detail-content p {
        font-size: 14px;
    }
}