/* news.css */
/* Wrapper & Grid */
.custom-news-wrapper { 
    font-family: 'Roboto', sans-serif; 
}
.cn-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    align-items: stretch; 
}
.cn-side-wrapper { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
}

/* Card Borders & Base */
.cn-main-card, .cn-side-card {
    border: 1px solid #1D4D5E;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    display: flex;
}
.cn-main-card { 
    flex-direction: column; 
}
.cn-side-card { 
    flex-direction: row; 
    flex: 1; 
}

/* Images */
.cn-main-card .cn-img-link { 
    display: block; 
    width: 100%;
}
.cn-main-img { 
    width: 100% !important;
    height: 350px !important;
    object-fit: cover !important;
    display: block;
}
.cn-side-card .cn-img-link { 
    flex: 0 0 40%; 
    display: block; 
    overflow: hidden;
}
.cn-side-img { 
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block;
}

/* Content Body */
.cn-card-body { 
    flex: 1; 
    padding: 20px; 
    display: flex;
    flex-direction: column;
}

.cn-side-card:hover .cn-card-body {
    background: #E8EDEF;
}
.cn-main-card:hover .cn-card-body {
    background: #E8EDEF;
}

/* Meta Data */
.cn-meta { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 12px; 
    font-size: 14px; 
}
.cn-date { 
    color: #555; 
}
.cn-cat { 
    background: #F5823226; 
    color: #F58232; 
    padding: 0px 14px; 
    border-radius: 24px; 
    font-weight: 600; 
    font-size: 12px; 
    text-transform: uppercase; 
    display: inline-block;
}

@media (max-width: 980px) {
.cn-cat {  
    font-size: 12px;
}
}

/* Titles */
.cn-card-title { 
    font-size: 22px; 
    margin: 0; 
    line-height: 1.4; 
    font-weight: 600;
    flex-grow: 1; /* Pushes Learn More button down */
}
/* Move the clamping to the <a> tag to fix browser bugs */
.cn-card-title a { 
    color: #101010; 
    text-decoration: none;
	font-weight: 600 !important;
    transition: 0.3s; 
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Enforce 2 lines max */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cn-card-title a:hover { 
    color: #F58232; 
}

/* Learn More Button with SVG Arrow */
.sp-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F58232;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    align-self: flex-start;
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: 15px;
}
.sp-learn-more:hover {
    gap: 12px; 
    color: #F58232;
}

/* Mobile Responsive */
@media (max-width: 980px) {
    .cn-grid { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }
}
@media (max-width: 480px) {
    .cn-side-card { 
        flex-direction: column; 
    }
    .cn-side-card .cn-img-link { 
        flex: none; 
        width: 100%; 
    }
    .cn-side-img { 
        height: 200px !important; 
    }
}