/* 뉴스룸 슬라이더 스타일 */
.newsroom-section {
    padding: 80px 0;
    background: #fafafa;
    overflow-x: visible;
    width: 100%;
}

.newsroom-section .core-values-container {
    padding: 0;
    max-width: 100%;
}

.news-slider-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin-top: 40px;
    overflow: visible;
    padding: 0;
    box-sizing: border-box;
}

.news-slider-wrapper {
    width: 100%;
    overflow: visible;
}

.news-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    padding: 0 24px;
    box-sizing: border-box;
}

.news-item {
    flex: 0 0 auto;
    width: calc(25% - 18px);
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.news-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.news-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 비율 유지 */
    aspect-ratio: 1 / 1; /* 최신 브라우저 지원 */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* aspect-ratio 지원 브라우저에서는 padding-bottom 제거 */
@supports (aspect-ratio: 1 / 1) {
    .news-image-container {
        height: auto;
        padding-bottom: 0;
    }
}

.news-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(26, 117, 187, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.news-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.news-date {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.news-source {
    font-size: 12px;
    color: #1a75bb;
    font-weight: 600;
}

/* 네비게이션 버튼 */
.news-slider-nav {
    position: absolute;
    top: 100%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    gap: 10px;
    pointer-events: none;
    z-index: 10;
}

.news-slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    backdrop-filter: blur(10px);
}

.news-slider-btn:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.news-slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: scale(1);
}

.news-prev-btn {
    margin-left: 4px;
}

.news-next-btn {
    margin-right: 4px;
}

/* 인디케이터 도트 */
.news-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-dot.active {
    background: linear-gradient(180deg, #ff9d00 10%, #fff201fd 100%);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgb(251, 255, 8, 0.2), 0 0 20px rgb(251, 255, 8, 0.1), 0 0 30px rgba(251, 255, 8, 0.227);
}

.news-dot:hover {
    background: #1a75bb;
    opacity: 0.7;
}

/* 중간 크기 데스크톱 */
@media (max-width: 1200px) and (min-width: 1025px) {
    .news-item {
        width: calc(33.33% - 16px);
        min-height: 280px;
    }
    
    .news-content {
        padding: 14px;
    }
    
    .news-title {
        font-size: 14px;
    }
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
    .news-item {
        width: calc(33.33% - 16px);
        min-height: 300px;
    }
    
    .news-content {
        padding: 14px;
    }
    
    .news-title {
        font-size: 14px;
    }
    
    .news-slider-nav {
        display: none;
    }
}

/* 600px ~ 768px: 큰 모바일 */
@media (min-width: 600px) and (max-width: 768px) {
    .newsroom-section {
        padding: 60px 0;
    }
    
    .news-slider-container {
        margin-top: 30px;
    }
    
    .news-slider-track {
        gap: 12px;
        padding: 0 24px;
    }
    
    .news-item {
        width: calc(50% - 6px);
        min-height: auto;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .news-category-tag {
        top: 12px;
        left: 12px;
        padding: 4px 10px;
        font-size: 11px;
    }
}

/* 480px ~ 599px: 중간 모바일 */
@media (min-width: 480px) and (max-width: 599px) {
    .newsroom-section {
        padding: 50px 0;
    }
    
    .news-slider-container {
        margin-top: 25px;
    }
    
    .news-slider-track {
        gap: 10px;
        padding: 0 20px;
    }
    
    .news-item {
        width: calc(50% - 5px);
        min-height: auto;
    }
    
    .news-content {
        padding: 16px;
    }
    
    .news-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .news-category-tag {
        top: 10px;
        left: 10px;
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .news-meta {
        padding-top: 10px;
    }
    
    .news-date,
    .news-source {
        font-size: 12px;
    }
}

/* 320px ~ 479px: 작은 모바일 */
@media (min-width: 320px) and (max-width: 479px) {
    .newsroom-section {
        padding: 40px 0;
    }
    
    .news-slider-container {
        margin-top: 20px;
    }
    
    .news-slider-track {
        gap: 12px;
        padding: 0 20px;
    }
    
    .news-item {
        width: calc(50% - 6px);
        min-height: auto;
    }
    
    .news-content {
        padding: 12px;
    }
    
    .news-title {
        font-size: 13px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }
    
    .news-category-tag {
        top: 8px;
        left: 8px;
        padding: 2px 6px;
        font-size: 9px;
    }
    
    .news-meta {
        padding-top: 8px;
    }
    
    .news-date,
    .news-source {
        font-size: 11px;
    }
}

/* 공통 768px 이하 스타일 */
@media (max-width: 768px) {
    /* 1:1 비율 강제 적용 */
    .news-image-container {
        width: 100%;
        height: 0;
        padding-bottom: 100% !important;
        aspect-ratio: 1 / 1 !important;
    }
    
    @supports (aspect-ratio: 1 / 1) {
        .news-image-container {
            height: auto !important;
            padding-bottom: 0 !important;
        }
    }
    
    .news-slider-dots {
        margin-top: 24px;
        gap: 6px;
    }
    
    .news-dot {
        width: 10px;
        height: 10px;
    }
}

/* 320px 미만: 1개 카드 */
@media (max-width: 319px) {
    .news-item {
        width: calc(100% - 8px);
        min-height: auto;
    }
    
    .news-slider-track {
        gap: 8px;
        padding: 0 16px;
    }
    
    .news-content {
        padding: 14px;
    }
    
    .news-title {
        font-size: 13px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }
    
    .news-category-tag {
        top: 8px;
        left: 8px;
        padding: 2px 6px;
        font-size: 9px;
    }
    
    .news-meta {
        padding-top: 8px;
    }
    
    .news-date,
    .news-source {
        font-size: 11px;
    }
}



/* 터치 디바이스에서 스크롤 개선 */
@media (hover: none) and (pointer: coarse) {
    .news-slider-track {
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .news-slider-track::-webkit-scrollbar {
        display: none;
    }
    
    .news-item {
        scroll-snap-align: start;
    }
}

/* 다크모드 지원 (선택사항) */
@media (prefers-color-scheme: dark) {
    .newsroom-section {
        background: #000000;
    }
    
    .news-item {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
    
    .news-title {
        color: #ffffff;
    }
    
    .news-date {
        color: #cccccc;
    }
    
    .news-meta {
        border-top-color: #404040;
    }
    
    .news-slider-btn {
        background: rgba(42, 42, 42, 0.95);
        color: #ffffff;
    }
    
    .news-dot {
        background: #555555;
    }
}

/* 애니메이션 최적화 */
@media (prefers-reduced-motion: reduce) {
    .news-slider-track {
        transition: none;
    }
    
    .news-item,
    .news-slider-btn,
    .news-dot {
        transition: none;
    }
}

/* 포커스 접근성 */
.news-slider-btn:focus,
.news-dot:focus {
    outline: 2px solid #1a75bb;
    outline-offset: 2px;
}

.news-link:focus {
    outline: 2px solid #1a75bb;
    outline-offset: 4px;
    border-radius: 16px;
} 