/**
 * News page – page-specific styles only.
 * Colors and shared tokens from main.css (var(--color-*), etc.).
 */

/* Hero */
.news-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.news-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin: 0 0 1.5rem;
}

.news-hero-desc {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-primary);
    margin: 0;
    max-width: 56ch;
}

/* Latest News, Most Read, Publications — 2rem side gutters */
.news-latest.section-padding-x,
.news-grid-wrap.section-padding-x,
.news-most-read.section-padding-x,
.news-publications.section-padding-x {
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.news-latest-bar,
.news-grid,
.news-section-header,
.news-most-read-grid,
.news-pubs-grid {
    max-width: none;
    width: 100%;
}

.news-latest-bar {
    margin-left: 0;
    margin-right: 0;
}

.news-grid {
    margin-left: 0;
    margin-right: 0;
}

.news-most-read-grid {
    margin-left: 0;
    margin-right: 0;
}

.news-section-header {
    margin-left: 0;
    margin-right: 0;
}

/* Latest News section */
.news-latest {
    position: relative;
    background: var(--color-background);
    overflow-x: hidden;
}

.news-divider {
    display: block;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
    margin-bottom: 0;
}

.news-divider--top {
    margin-bottom: 0;
}

.news-divider--bottom {
    margin-top: 0;
}

.news-latest-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.news-latest-title {
    font-size: clamp(1.25rem, 2vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.news-latest-title em {
    font-style: italic;
    font-weight: 400;
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.news-filter {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    text-decoration: none;
}

.news-filter:hover {
    color: var(--color-primary);
}

.news-filter--active {
    color: var(--color-primary);
    font-weight: 500;
}

/* News grid: featured cards + sidebar */
.news-grid-wrap {
    background: var(--color-background);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 320px;
    gap: 2rem;
}

.news-featured-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    grid-column: span 2;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    justify-content: stretch;
}

/* News featured cards – same design as Future Lab project cards */
.news-featured-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.375rem;
    padding: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

.news-featured-card .news-card-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.news-featured-card .news-card-meta i {
    font-size: 1.125rem;
}

.news-featured-card .news-card-img-wrap {
    overflow: hidden;
    margin: 0 -1.25rem 1rem;
    width: calc(100% + 2.5rem);
}

.news-featured-card .news-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.news-featured-card .news-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.news-featured-card .news-card-tag {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    padding: 0.25rem 0.6rem;
}

.news-featured-card .news-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.news-featured-card .news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.35rem;
}

.news-card-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-card-link:hover {
    color: var(--color-accent-hover);
}

.news-card-share {
    background: none;
    border: none;
    color: var(--color-primary);
    padding: 0.35rem;
    cursor: pointer;
    font-size: 1.25rem;
}

.news-card-share:hover {
    opacity: 0.8;
}

/* Sidebar */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: min(100%, 330px);
    justify-self: start;
}

.news-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 1rem;
}

.news-search-wrap {
    position: relative;
    width: 100%;
}

.news-search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: #000000;
    background: #ffffff;
    border: none;
    border-radius: 0.375rem;
}

.news-search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.news-search-input:focus {
    outline: none;
}

.news-search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem;
    color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.news-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-recent-list li {
    margin-bottom: 0.875rem;
}

.news-recent-list li:last-child {
    margin-bottom: 0;
}

.news-recent-item {
    display: flex;
    gap: 0.875rem;
    align-items: center;
    text-decoration: none;
    padding: 0.25rem 0;
}

.news-recent-item:hover .news-recent-title {
    color: var(--color-primary);
}

.news-recent-thumb {
    width: 84px;
    height: 64px;
    object-fit: cover;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.news-recent-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.news-recent-title {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.news-recent-date {
    font-size: 0.8125rem;
    color: var(--color-accent);
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-featured-cards {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .news-featured-cards {
        grid-template-columns: 1fr;
    }
}

/* Most Read */
.news-most-read {
    background: var(--color-background);
    margin-top: 0;
    padding-top: 0;
}

.news-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.85rem;
    margin: 3rem 0 1.5rem;
}

.news-section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.news-section-title em {
    font-style: italic;
    font-weight: 400;
}

.news-section-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: var(--pagination-compact-gap);
}

.news-nav-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: var(--pagination-compact-chevron-btn);
    line-height: 1;
    padding: 0.15rem;
    cursor: pointer;
}

.news-nav-btn:hover {
    opacity: 0.9;
}

.news-nav-btn:disabled,
.news-nav-text:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.news-nav-text {
    background: none;
    border: none;
    font-family: var(--font-sans-regular);
    font-size: var(--pagination-compact-font);
    font-weight: 400;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1.2;
    padding: 0.15rem 0.1rem;
}

.news-nav-text:hover {
    color: var(--color-primary);
}

.news-nav-page {
    background: none;
    border: none;
    font-size: var(--pagination-compact-font);
    color: var(--color-accent);
    line-height: 1.2;
    padding: 0 0.2rem;
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
}

.news-nav-label {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.news-most-read-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-projects-carousel {
    width: 100%;
}

.news-projects-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.news-projects-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.45s ease;
    will-change: transform;
}

.news-projects-carousel-slide {
    width: 100%;
    flex: 0 0 100%;
}

/* First 3 cards: same design as Future Lab Featured Projects */
/* First 3 Most Read cards – same design as Latest News featured cards */
.news-most-read-card--project-style {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.375rem;
    padding: 1.25rem;
    overflow: hidden;
}

.news-most-read-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.news-most-read-card--project-style .news-most-read-card-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.news-most-read-card--project-style .news-most-read-card-meta i {
    font-size: 1.125rem;
}

.news-most-read-card--project-style .news-most-read-card-img-wrap {
    overflow: hidden;
    margin: 0 -1.25rem 1rem;
    width: calc(100% + 2.5rem);
}

.news-most-read-card--project-style .news-most-read-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.news-most-read-card--project-style .news-most-read-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.news-most-read-card--project-style .news-most-read-card-tag {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    padding: 0.25rem 0.6rem;
}

.news-most-read-card--project-style .news-most-read-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.3;
}

.news-most-read-card--featured {
    position: relative;
    padding: 0;
    overflow: hidden;
    min-height: 280px;
}

.news-most-read-featured-img {
    position: absolute;
    inset: 0;
}

.news-most-read-featured-img .news-most-read-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
}

.news-most-read-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 50%);
}

.news-most-read-featured-brand {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.news-most-read-featured-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.news-most-read-featured-tagline {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Publications */
.news-publications {
    position: relative;
    background: var(--color-background);
    overflow-x: hidden;
    padding-top: 0;
    padding-bottom: 0;
}

.news-publications-divider {
    display: block;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 0;
}

.news-publications-divider--top {
    margin-bottom: 0;
}

.news-publications-divider--bottom {
    margin-top: 0;
}

.news-pubs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-pub-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    overflow: hidden;
    align-items: stretch;
    margin-bottom: 4rem;
}

.news-pub-img-wrap {
    width: 140px;
    min-height: 140px;
    flex-shrink: 0;
}

.news-pub-card .news-pub-img-wrap {
    height: 100%;
}

.news-pub-img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    display: block;
}

.news-pub-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-pub-content .news-card-tag {
    display: inline-block;
    width: fit-content;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    padding: 0.2rem 0.45rem;
    margin-bottom: 0.5rem;
}

.news-pub-title {
    font-size: 1.25rem;
    font-weight: 500;
    font-family: var(--font-sans-regular);
    color: var(--color-primary);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.news-pub-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-pub-link-sep {
    color: #ffffff;
    margin: 0 0.25rem;
}

.news-pub-link:hover {
    color: var(--color-accent-hover);
}

/* Join the Community */
.news-community {
    background: var(--color-background);
    position: relative;
    overflow: hidden;
}

.news-community-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 70%;
    margin: 0 auto;
    background: #000000;
    padding: 4.5rem 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.news-community-inner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80vmin;
    height: 80vmin;
    background: radial-gradient(circle at 100% 0%, var(--color-accent) 0%, transparent 60%);
    opacity: 0.2;
    pointer-events: none;
}

.news-community-label {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-accent);
    margin: 0 0 0.5rem;
}

.news-community-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    margin: 0 0 0.5rem;
}

.news-community-desc {
    font-size: 1.8rem;
    max-width: 550px;
    color: var(--color-primary);
    margin: 0 auto 1.5rem;
}

.news-community-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 360px;
    margin: 0 auto;
}

.news-community-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-family: var(--font-sans-regular);
    font-size: 0.9375rem;
    font-weight: 400;
    color: #000000;
    background: #ffffff;
    border: none;
    border-radius: 0.375rem;
    text-align: center;
}

.news-community-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.news-community-input:focus {
    outline: none;
}

.news-community-btn {
    width: 100%;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans-regular);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-background);
    background: var(--color-accent);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
}

.news-community-btn:hover {
    background: var(--color-accent-hover);
    opacity: 0.95;
}

/* News page footer CTA – "Want To Collaborate" (replaces Enquire), no background */
.news-footer-cta {
    background: transparent;
}

.news-footer-cta .cta-direction-buttons {
    align-items: center;
}

.news-footer-cta .cta-direction-btn {
    width: fit-content;
}

.news-footer-cta .cta-direction-heading {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
}

.news-footer-cta .cta-direction-heading em {
    font-weight: 400;
    font-family: var(--font-sans-regular);
}

@media (max-width: 900px) {
    .news-most-read-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-pubs-grid {
        grid-template-columns: 1fr;
    }

    .news-pub-card {
        grid-template-columns: 1fr;
    }

    .news-pub-img-wrap {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .news-section-header {
        gap: 0.45rem;
    }

    .news-section-title {
        font-size: clamp(1.2rem, 4.5vw, 1.75rem);
    }

    .news-section-nav {
        gap: 0.35rem;
    }

    .news-nav-text {
        padding: 0.12rem 0;
    }

    .news-most-read-grid {
        grid-template-columns: 1fr;
    }

    .news-community-inner {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .news-community-form {
        flex-direction: column;
    }

    .news-community-input {
        min-width: 100%;
    }
}
