/* News & Updates Page Styles */

/* Hero Section Override */
.news-page .about-hero {
    background: #3D5AA8 !important;
    position: relative;
    padding: 80px 112px 70px !important;
}

.news-page .about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at -4325% -4325%, rgba(29, 37, 48, 1) 1%, rgba(29, 37, 48, 0) 1%);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.news-page .about-hero .about-hero-content {
    position: relative;
    z-index: 1;
}

.news-page .about-hero .about-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.news-page .about-hero .about-breadcrumb svg {
    width: 16px;
    height: 16px;
}

.news-page .about-hero .about-breadcrumb .breadcrumb-item {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3333;
    color: #fff !important;
}

.news-page .about-hero .about-breadcrumb svg path {
    stroke: #fff;
}

.news-page .about-hero h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 48px !important;
    font-weight: 700;
    line-height: 1em !important;
    letter-spacing: -0.025em !important;
    color: #fff !important;
    margin: 0 0 16px 0 !important;
}

.news-page .about-hero p {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px !important;
    font-weight: 400;
    line-height: 1.4em !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 !important;
}

/* Recent News Section */
.recent-news-section {
    padding: 48px 80px;
    background: rgba(227, 229, 232, 0.3);
    display: flex;
    justify-content: center;
}

.recent-news-section .container {
    width: 100%;
    max-width: 1440px;
}

.section-header-left {
    margin-bottom: 48px;
}

.section-header-left h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.6px;
    color: var(--color-primary);
    margin: 0;
}

.recent-news-grid {
    display: flex;
    gap: 44px;
    justify-content: center;
}

/* Featured Article */
.featured-article {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-article-image {
    width: 100%;
    height: 361px;
    border-radius: 12px;
    overflow: hidden;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article .article-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3333;
}

.article-badge.highlights {
    background: rgba(61, 90, 168, 0.05);
    border: 1px solid rgba(61, 90, 168, 0.2);
    color: #3D5AA8;
}

.article-badge.events {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #047857;
}

.article-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4286;
    color: #67717E;
}

.featured-article .article-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-article h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
    letter-spacing: -0.5px;
    color: var(--color-primary);
    margin: 0;
}

.featured-article h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-article h3 a:hover {
    color: #3D5AA8;
}

.featured-article p {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.625;
    color: #67717E;
    margin: 0;
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid #3D5AA8;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.9px;
    color: var(--color-secondary);
    text-decoration: none;
    width: fit-content;
    transition: opacity 0.3s;
}

.article-read-more:hover {
    opacity: 0.8;
}

.article-read-more svg {
    width: 24px;
    height: 24px;
    fill: var(--color-secondary);
}

/* Side Articles */
.side-articles {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.side-article {
    display: flex;
    gap: 16px;
    align-items: center;
}

.side-article-image {
    flex: 0 0 160px;
    width: 160px;
    height: 146px;
    border-radius: 6px;
    overflow: hidden;
}

.side-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-article .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-meta-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-article h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.35px;
    color: #1D2530;
    margin: 0;
}

.side-article h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.side-article h3 a:hover {
    color: #3D5AA8;
}

.side-article p {
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    color: var(--color-text-primary);
    margin: 0;
}

.article-read-more.small {
    display: inline-flex;
    align-items: center;
    gap: 4.29px;
    padding-bottom: 2.86px;
    border-bottom: 1.43px solid #3D5AA8;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4286;
    letter-spacing: -0.0536em;
    color: #3D5AA8;
    text-decoration: none;
    width: fit-content;
}

.article-read-more.small svg {
    width: 20px;
    height: 16px;
}

/* All News Section */
.all-news-section {
    padding: 64px 32px 0;
    background: #fff;
    display: flex;
    justify-content: center;
}

.all-news-section .container {
    width: 100%;
    max-width: 1440px;
}

.all-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 24px;
}

.all-news-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.all-news-title h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.6px;
    color: var(--color-primary);
    margin: 0;
}

.articles-count {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4286;
    color: #67717E;
    margin: 0;
}

.search-container {
    width: 448px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper svg {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 41px;
    background: #F9FAFB;
    border: 1px solid #DCE0E5;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.302;
    color: #1D2530;
    transition: border-color 0.3s;
}

.search-input::placeholder {
    color: #67717E;
}

.search-input:focus {
    outline: none;
    border-color: #3D5AA8;
}

/* All News Grid */
.all-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.news-card {
    background: #fff;
    border: 1px solid #DCE0E5;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-card-image {
    display: block;
    width: 100%;
    height: 217.86px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.news-card .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.news-card .article-date {
    font-size: 12px;
    opacity: 0.8;
}

.news-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.4px;
    color: var(--color-primary);
    margin: 0;
}

.news-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-card h3 a:hover {
    color: #3D5AA8;
}

.news-card p {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--color-text-primary);
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 80px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4286;
    color: #67717E;
    cursor: pointer;
    transition: color 0.3s;
}

.pagination-btn:not(:disabled):hover {
    color: #3D5AA8;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-numbers {
    display: flex;
    gap: 12px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4286;
    color: #67717E;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-number:hover {
    background: rgba(61, 90, 168, 0.05);
    color: #3D5AA8;
}

.pagination-number.active {
    background: #3D5AA8;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 1440px) {
    .news-page .about-hero {
        padding: 60px 80px !important;
    }

    .recent-news-section {
        padding: 48px 40px;
    }
}

@media (max-width: 1280px) {
    .recent-news-grid {
        flex-direction: column;
        align-items: center;
    }

    .featured-article {
        max-width: 696px;
    }

    .side-articles {
        max-width: 696px;
    }

    .all-news-section {
        padding: 64px 24px 0;
    }
}

@media (max-width: 992px) {
    .news-page .about-hero h1 {
        font-size: 40px !important;
    }

    .all-news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-container {
        width: 100%;
    }

    .all-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recent-news-section {
        padding: 48px 24px;
    }
}

@media (max-width: 768px) {
    .news-page .about-hero {
        padding: 48px 40px !important;
    }

    .news-page .about-hero h1 {
        font-size: 36px !important;
    }

    .news-page .about-hero p {
        font-size: 18px !important;
    }

    .section-header-center h2 {
        font-size: 20px;
    }

    .side-article {
        flex-direction: column;
        align-items: flex-start;
    }

    .side-article-image {
        width: 100%;
        flex: 0 0 200px;
    }

    .all-news-grid {
        grid-template-columns: 1fr;
    }

    .all-news-title h2 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .news-page .about-hero {
        padding: 32px 24px !important;
    }

    .recent-news-section {
        padding: 40px 16px;
    }

    .all-news-section {
        padding: 48px 16px 0;
    }

    .news-page .about-hero h1 {
        font-size: 28px !important;
    }

    .news-page .about-hero p {
        font-size: 16px !important;
    }

    .section-header-center h2,
    .all-news-title h2 {
        font-size: 18px;
    }

    .featured-article-image {
        height: 240px;
    }

    .news-card-image {
        height: 180px;
    }

    .all-news-grid {
        margin-bottom: 32px;
    }

    .pagination {
        margin-bottom: 48px;
        gap: 12px;
    }

    .pagination-btn {
        font-size: 12px;
        padding: 6px 12px;
        gap: 8px;
    }

    .pagination-btn svg {
        width: 14px;
        height: 14px;
    }

    .pagination-numbers {
        gap: 8px;
    }

    .pagination-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
