/* 뉴스 섹션 스타일 - 디자이너가 수정 가능 */

/* 섹션, 컨테이너, 카드 투명 */
.pricing01-news,
.pricing01-news .container,
.pricing01-news .card {
    background: transparent !important;
}

/* 카드 wrapper 흰색 + 라운드 */
.pricing01-news .card-wrapper {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.pricing01-news .mbr-text {
    line-height: 1.4 !important;
    /* max-height 제거 - 전체 내용 표시 */
    overflow: visible;
}

.pricing01-news .mbr-text p {
    line-height: 1.4 !important;
}

/* ===== 뉴스 카드 간격 ===== */
[data-news-container] section[data-news-item] {
    margin-bottom: 2rem;
}

/* 컨테이너 하단 여백 (푸터와의 간격) */
[data-news-container] {
    padding-bottom: 3rem;
}

/* 썸네일 이미지 크기 고정 - 가로형 비율 유지 */
.image-wrapper {
    width: 100%;
    height: 280px;  /* 고정 높이 증가 */
    overflow: hidden;
    border-radius: 4px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 비율 유지하며 꽉 채우기 */
    object-position: center;
}

/* 반응형 - 1400px 이하 */
@media (max-width: 1400px) {
    .pricing01-news .image-wrapper {
        margin-bottom: 1rem;
    }

    .pricing01-news .card-wrapper {
        flex-direction: column !important;
    }

    .pricing01-news .col-md-3 {
        max-width: 100% !important;
    }
}

/* 반응형 - 작은 화면에서는 높이 조정 */
@media (max-width: 768px) {
    .image-wrapper {
        height: 300px;
    }
}

/* ===== 뉴스 카드 버튼 영역 ===== */
/* 버튼 컬럼 최소 너비 확보 */
[data-news-container] .col-md-auto {
    min-width: 120px;
    flex-shrink: 0;
}

/* 뉴스 카드 버튼 세로 정렬 - 뉴스 섹션에만 적용 */
[data-news-container] .mbr-section-btn {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

[data-news-container] .mbr-section-btn .btn {
    width: auto;
    min-width: 100px;
    white-space: nowrap;
    justify-content: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

[data-news-container] .mbr-section-btn .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* 버튼 나타날 때 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PDF 버튼 전용 스타일 */
[id^="cardPdfBtn-"] {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    box-shadow: 0 3px 6px rgba(231, 76, 60, 0.3) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

[id^="cardPdfBtn-"]:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%) !important;
    box-shadow: 0 5px 12px rgba(231, 76, 60, 0.4) !important;
    transform: translateY(-2px) !important;
}
