/* News & Updates Page Styles */

/* --- General Layout --- */
.news-page-container {
    background: #F8F8F8;
    min-height: 100vh;
    padding-bottom: 80px;
    position: relative;
    overflow-x: hidden;
}

/* Header Spacer - Hidden (same as Services) */
.news-header-spacer {
    display: none;
}

.news-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* --- Hero Section (Matching Services Page) --- */
.news-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    padding: 0;
    padding-top: 80px;
    background: linear-gradient(95.29deg, rgba(1, 21, 41, 0.6) 54.94%, rgba(253, 99, 21, 0.6) 101.42%), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    margin-bottom: 0;
}

.news-page-title {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 62px;
    line-height: 78px;
    color: #FFFFFF;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Latest News List Section --- */
.latest-news-section {
    margin-top: 60px;
    margin-bottom: 80px;
}

.latest-news-title {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 36px;
    line-height: 1.3;
    color: #0C2742;
    margin-bottom: 30px;
}

.latest-news-title span {
    color: #5A7A96;
}

.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: #FFFFFF;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.news-list-item:hover {
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.06);
    border-color: #E0E4E8;
    transform: translateY(-2px);
}

.news-item-text {
    flex: 1;
    min-width: 0;
    padding-right: 24px;
}

.news-item-date {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    color: #0C2742;
    opacity: 0.5;
    margin-bottom: 4px;
}

.news-item-title {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.4;
    color: #0C2742;
}

.news-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #0C2742;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0C2742;
    background: transparent;
    transition: all 0.3s ease;
}

.news-list-item:hover .news-item-icon {
    background: #0C2742;
    color: #FFFFFF;
}

.news-item-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}


/* --- Initiatives Section --- */
.initiatives-section {
    position: relative;
    padding-top: 60px;
}

/* Filter Buttons */
.initiatives-filters {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    outline: none;
}

.filter-btn.active,
.filter-btn:hover {
    background: #0C2742;
    color: #FFFFFF;
    border: 1px solid #0C2742;
}

.filter-btn.inactive {
    background: #FFFFFF;
    color: #0C2742;
    border: 1px solid #D8DCE0;
}


/* Section Heading Text */
.initiatives-heading {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.45;
    color: #0C2742;
    max-width: 700px;
    margin-bottom: 50px;
}

.initiatives-heading span {
    font-weight: 400;
    color: #8A9BB0;
}


/* Grid Layout */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.news-card {
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 28px rgba(0, 0, 0, 0.08);
}

.news-card-image-wrap {
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 14px;
    padding: 14px;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.news-card-content {
    flex: 1;
    padding: 22px 24px 22px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.news-card-title {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.45;
    color: #0C2742;
    margin: 0 0 10px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card-excerpt {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.55;
    color: #6B7B8D;
    margin: 0 0 14px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card-link {
    font-family: var(--font-main);
    font-size: 13px;
    color: #0C2742;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.4px;
}

.news-card-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #FD6315;
    flex-shrink: 0;
}

.news-card:hover .news-card-link-icon {
    background: #E5570F;
}

/* Card Title/Excerpt Divider */
.news-card-divider {
    width: 100%;
    height: 1px;
    background: #E0E4E8;
    margin: 10px 0 12px 0;
    border-radius: 1px;
}

/* Empty State */
.news-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    background: #FFFFFF;
    border-radius: 14px;
    border: 1px dashed #D0D6DC;
}

.news-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #F0F2F5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A9BB0;
    margin-bottom: 20px;
}

.news-empty-title {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 20px;
    color: #0C2742;
    margin: 0 0 8px 0;
}

.news-empty-text {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #8A9BB0;
    max-width: 380px;
    margin: 0;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.news-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F0F2F5;
    color: #5D6B7A;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-pagination .page-numbers:hover {
    background: #E0E4E8;
    color: #0C2742;
}

.news-pagination .page-numbers.current {
    background: #FD6315;
    color: #FFFFFF;
}

.news-pagination .page-numbers.prev,
.news-pagination .page-numbers.next {
    background: transparent;
    color: #5D6B7A;
}

.news-pagination .page-numbers.prev:hover,
.news-pagination .page-numbers.next:hover {
    background: #F0F2F5;
    color: #FD6315;
}


/* --- Single News Post --- */
.single-news-content {
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.04);
    padding: 48px 56px;
    margin-top: 50px;
    margin-bottom: 60px;
}

/* Breadcrumb */
.single-news-breadcrumb {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    color: #8A9BB0;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.single-news-breadcrumb a {
    color: #8A9BB0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-news-breadcrumb a:hover {
    color: #FD6315;
}

.breadcrumb-separator {
    color: #C0C8D0;
}

.breadcrumb-current {
    color: #0C2742;
    font-weight: 600;
}

/* Post Title */
.single-news-title {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 36px;
    line-height: 1.3;
    color: #0C2742;
    margin: 0 0 24px 0;
}

/* Divider */
.single-news-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #FD6315 0%, #E0E4E8 40%, #E0E4E8 100%);
    margin-bottom: 36px;
    border-radius: 1px;
}

/* Post Body */
.single-news-body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.8;
    color: #3A4A5A;
}

.single-news-body p {
    margin-bottom: 24px;
}

.single-news-body h2 {
    font-size: 28px;
    font-weight: 600;
    color: #0C2742;
    margin-top: 40px;
    margin-bottom: 16px;
}

.single-news-body h3 {
    font-size: 22px;
    font-weight: 600;
    color: #0C2742;
    margin-top: 32px;
    margin-bottom: 12px;
}

.single-news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 24px 0;
}

.single-news-body ul,
.single-news-body ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.single-news-body li {
    margin-bottom: 8px;
}

.single-news-body blockquote {
    border-left: 4px solid #FD6315;
    padding: 16px 24px;
    margin: 24px 0;
    background: #F8F8F8;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #5A6A7A;
}

/* Post Navigation */
.single-news-navigation {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E0E4E8;
}

.news-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #F8F8F8;
    border-radius: 10px;
    text-decoration: none;
    color: #0C2742;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    max-width: 45%;
    border: 1px solid transparent;
}

.news-nav-link:hover {
    background: #FFFFFF;
    border-color: #E0E4E8;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.06);
    color: #FD6315;
}

.news-nav-link svg {
    flex-shrink: 0;
}

.news-nav-next {
    margin-left: auto;
    text-align: right;
}


/* --- Responsive --- */
@media (max-width: 992px) {
    .news-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-item-date {
        width: auto;
        font-size: 12px;
    }

    .news-item-title {
        font-size: 18px;
    }

    .news-item-icon {
        align-self: flex-end;
    }

    .initiatives-heading {
        font-size: 24px;
        line-height: 1.4;
    }

    /* Single Post Responsive */
    .single-news-content {
        padding: 28px 20px;
        margin-top: 30px;
    }

    .single-news-title {
        font-size: 26px;
    }

    .single-news-navigation {
        flex-direction: column;
    }

    .news-nav-link {
        max-width: 100%;
    }
}


/* --- News Attachments Section --- */
.news-attachments-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #E0E4E8;
}

.news-attachments-title {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    color: #0C2742;
    margin-bottom: 20px;
    /* text-transform: uppercase; */
    /* Design doesn't look fully uppercase in screenshot */
    letter-spacing: 0.5px;
}

.news-attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    /* Smaller cards */
    gap: 20px;
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid #E0E4E8;
    border-radius: 12px;
}

.news-attachment-card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #F8F9FA;
    transition: all 0.3s ease;
    border: 1px solid #E0E4E8;
    height: 0;
    padding-bottom: 130%;
    /* Aspect ratio 1:1.3 */
}

.news-attachment-card:hover {
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #D0D6DC;
}

.news-attachment-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.news-attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-attachment-card:hover .news-attachment-thumb img {
    transform: scale(1.05);
}

.news-attachment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 39, 66, 0.5);
    /* Brand dark blue transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-attachment-card:hover .news-attachment-overlay {
    opacity: 1;
}

.news-attachment-overlay svg {
    color: #FFFFFF;
    width: 32px;
    height: 32px;
}

.news-attachments-helper {
    font-family: var(--font-main);
    font-size: 13px;
    color: #8A9BB0;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
}