/* ========================================
   NEWS UPDATES STYLES - Modern Card Layout
   ======================================== */

.news-updates-container {
    display: grid;
    gap: 30px;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 1400px;
}

/* Column layouts */
.news-updates-container.columns-1 { grid-template-columns: 1fr; }
.news-updates-container.columns-2 { grid-template-columns: repeat(2, 1fr); }
.news-updates-container.columns-3 { grid-template-columns: repeat(3, 1fr); }
.news-updates-container.columns-4 { grid-template-columns: repeat(4, 1fr); }
.news-updates-container.columns-5 { grid-template-columns: repeat(5, 1fr); }
.news-updates-container.columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Individual News Card */
.news-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: visible;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(246, 179, 56, 0.18);
    border-color: #f6b338;
}

/* Featured Image */
.news-image {
    position: relative;
    overflow: visible;
    height: 220px;
    background: #f5f5f5;
}

.news-image a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

/* Gradient Background When No Image */
.news-image.no-image {
    background: linear-gradient(135deg, #f6b338 0%, #375c64 100%);
    border-radius: 12px 12px 0 0;
}

.news-card:hover .news-image.no-image {
    background: linear-gradient(135deg, #375c64 0%, #f6b338 100%);
}

/* News Content Area */
.news-content {
    padding: 50px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

/* Icon Wrapper - Positioned over image */
.news-icon-wrapper {
    width: 70px;
    height: 70px;
    background: white;
    border: 3px solid #f6b338;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -35px;
    left: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.news-card:hover .news-icon-wrapper {
    border-color: #375c64;
    transform: scale(1.05);
}

.news-icon {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.news-icon-default {
    display: block;
    width: 40px;
    height: 40px;
}

.news-card:hover .news-icon-default path {
    stroke: #375c64;
}

/* Category Badge */
.news-category-badge {
    display: inline-block;
    background: #f6b338;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

/* News Title */
.news-title {
    font-size: 17px;
    font-weight: 700;
    color: #375c64;
    margin: 0 0 15px 0;
    line-height: 1.4;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-title {
    color: #f6b338;
}

/* News Excerpt */
.news-excerpt {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    margin: 0 0 20px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Button */
.news-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f6b338;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    padding: 8px 0;
}

.news-button:hover {
    color: #375c64;
    gap: 12px;
}

.button-arrow {
    transition: transform 0.3s ease;
}

.news-button:hover .button-arrow {
    transform: translateX(4px);
}

/* ========================================
   VIEW ALL BUTTON SECTION
   ======================================== */

.news-view-all-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 20px;
}

.news-view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #f6b338;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(246, 179, 56, 0.25);
}

.news-view-all-button:hover {
    background: #375c64;
    box-shadow: 0 6px 20px rgba(55, 92, 100, 0.3);
    transform: translateY(-2px);
    gap: 20px;
}

.button-icon-circle {
    width: 36px;
    height: 36px;
    background: #375c64;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.news-view-all-button:hover .button-icon-circle {
    background: #f6b338;
    transform: rotate(45deg);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .news-updates-container.columns-5,
    .news-updates-container.columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-updates-container.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .news-updates-container.columns-3,
    .news-updates-container.columns-4,
    .news-updates-container.columns-5,
    .news-updates-container.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-title {
        font-size: 16px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .news-updates-container {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .news-image {
        height: 240px;
    }
    
    .news-content {
        padding: 50px 22px 22px;
    }
    
    .news-title {
        font-size: 15px;
    }
    
    .news-excerpt {
        font-size: 13px;
    }
    
    .news-view-all-button {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .news-card {
        border-radius: 10px;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-image a,
    .news-image.no-image {
        border-radius: 10px 10px 0 0;
    }
    
    .news-content {
        padding: 45px 20px 20px;
    }
    
    .news-icon-wrapper {
        width: 60px;
        height: 60px;
        top: -30px;
        left: 20px;
    }
    
    .news-icon {
        max-width: 35px;
        max-height: 35px;
    }
    
    .news-title {
        font-size: 15px;
        min-height: auto;
    }
    
    .news-category-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .news-view-all-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .button-icon-circle {
        width: 32px;
        height: 32px;
    }
}

/* Date and Time Styles */
.news-date-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #999;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.news-date-time svg {
    flex-shrink: 0;
}

.news-date-time span {
    line-height: 1;
}

.time-separator {
    margin: 0 2px;
    font-weight: bold;
}
