/* ==========================================================================
   NEWS PAGE MASTER WRAPPER
   ========================================================================== */

.news-page-master {
    width: 100%;
    max-width: 100%;;
    margin: 0 auto;
    background-color: #FDFFF6;
    /* Ivory background matching the hero section */
    box-sizing: border-box;
    overflow: hidden;
    /* Prevents horizontal scroll from child elements */
}

/* ==========================================================================
   NEWS PAGE HERO SECTION (Desktop 1440px x 924px Canvas, #FDFFF6)
   ========================================================================== */

.ow-news-hero-section {
    position: relative;
    width: 100%;
    max-width: 100%;;
    min-height: 804px;
    /* 924px page height minus global header offset */
    background-color: #FDFFF6;
    padding: 64px 48px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.ow-news-hero-container {
    width: 1344px;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 48px;
    box-sizing: border-box;
}

/* ==========================================================================
   Left Content Column 
   ========================================================================== */

.ow-news-hero-left {
    flex: 1;
    max-width: 564px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    /* Space between text block and CTA */
    box-sizing: border-box;
    z-index: 2;
}

.ow-news-hero-text-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Headline: Aspekta 400, 56px, line-height 110%, tracking -1.12px, #111111 */
.ow-news-hero-title {
    font-family: 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 110%;
    /* 61.6px */
    letter-spacing: -1.12px;
    color: #111111;
    margin: 0;
    text-align: left;
}

/* Description: Inter 400, 16px/24px, #111111 at 75% opacity */
.ow-news-hero-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    /* 24px */
    letter-spacing: 0;
    color: rgba(17, 17, 17, 0.75);
    margin: 0;
    text-align: left;
    max-width: 524px;
    /* Matches prompt's constraint for optimal reading width */
}

/* Dual-Segment CTA Button Group */
.ow-news-hero-cta-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    height: 48px;
    box-sizing: border-box;
}

/* Text Pill */
.ow-news-cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 16px;
    background-color: #F3F3F3;
    border-radius: 4px;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.ow-news-cta-pill span {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    /* 16.8px */
    letter-spacing: 0;
    text-transform: uppercase;
    color: #2A2A2A;
    white-space: nowrap;
}

.ow-news-cta-pill:hover {
    background-color: #E6E6E6;
}

/* Arrow Circle: #CAED57 (Lime) */
.ow-news-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background-color: #CAED57;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ow-news-cta-arrow:hover {
    background-color: #bce042;
    transform: translateX(2px);
}


/* ==========================================================================
   Right Artwork Column (Pixel Megaphone Video)
   ========================================================================== */

.ow-news-hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.ow-news-media-wrap {
    width: 702px;
    height: 768px;
    border-radius: 16px;
    justify-content: space-between;
    angle: 0 deg;
    opacity: 1;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ow-news-media-graphic {
    /* width: 100%;
    height: 100%; */
    object-fit: contain;
    display: block;
    width: 702px;
    height: 768px;
    border-radius: 16px;
    justify-content: space-between;
    margin-right: -35%;
    /* 1. Invert the video: Black background becomes white, light megaphone becomes dark */
    filter: invert(1);

    /* 2. Multiply blend: Drops out the new white background, letting the ivory page show through */
    mix-blend-mode: multiply;

    /* 3. Rotate the video 180 degrees */
    transform: scaleX(-1) rotate(35deg);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1200px) {
    .ow-news-hero-section {
        min-height: auto;
        padding: 48px 24px;
    }

    .ow-news-hero-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 64px;
    }

    .ow-news-hero-left,
    .ow-news-hero-right {
        width: 100%;
        max-width: 100%;
    }

    .ow-news-media-wrap {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 1;
    }
}

@media (max-width: 640px) {
    .ow-news-hero-section {
        padding: 32px 16px 64px 16px;
    }

    .ow-news-hero-title {
        font-size: 42px;
        line-height: 46px;
    }

    .ow-news-hero-title br {
        display: none;
        /* Allows natural wrapping on smaller screens */
    }

    .ow-news-hero-text-stack {
        gap: 16px;
    }
}

/* News hero: mobile (design 390px) */
@media (max-width: 780px) {
    .ow-news-hero-section {
        padding: 24px 20px 32px;
    }

    .ow-news-hero-container {
        gap: 36px;
    }

    .ow-news-hero-left {
        gap: 36px;
    }

    .ow-news-hero-text-stack {
        gap: 24px;
    }

    .ow-news-hero-title {
        font-size: 36px;
        line-height: 39.6px;
        letter-spacing: -0.72px;
    }

    .ow-news-media-wrap {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: auto;
        padding: 0;
    }

    .ow-news-media-graphic {
        width: 80%;
        height: auto;
        margin-right: -26%;
        transform: scaleX(-1) rotate(35deg)
    }
}
/* ==========================================================================
   NEWS - FEATURED SECTION (1440px Baseline, #DBD5FF Background)
   ========================================================================== */

.ow-news-featured-section {
    position: relative;
    width: 100%;
    max-width: 100%;;
    background-color: #DBD5FF;
    margin: 0 auto;
    padding: 96px 48px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.ow-news-featured-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    box-sizing: border-box;
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */

.ow-news-featured-grid {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch; /* Allows left and right columns to match height naturally */
    gap: 24px;
    box-sizing: border-box;
}

.ow-news-hero-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ow-news-sidebar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Evenly distributes the 3 small cards */
    gap: 24px;
}

/* ==========================================================================
   Card Stylings
   ========================================================================== */

.ow-news-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ow-news-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.ow-news-card-link:focus-visible {
    outline: 2px solid #7E6DEB;
    outline-offset: 2px;
}

/* Large Hero Card (Left) */
.ow-news-card-large {
    background-color: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 721px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.ow-news-card-media {
    width: 100%;
    height: 434px; /* Updated to match Figma spec */
    background-size: cover;
    background-position: center;
    background-color: #E2E2E2; /* Fallback if no image */
}

/* Small Sidebar Cards (Right) */
.ow-news-card-small {
    background-color: #FFFFFF;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    flex: 1; /* Ensures cards stretch evenly to fill the column height */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

/* Shared Content Box (Padding and Layout) */
.ow-news-card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1; /* Pushes content to fill the remaining space */
}

.ow-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Date: DM Mono, 16px, Purple */
.ow-news-date {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 16px;
    line-height: 130%; /* 20.8px */
    color: #9180FF;
}

/* Publisher: Inter 500, 16px, Black */
.ow-news-publisher {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 130%;
    color: #111111;
}

/* Title: Aspekta 400, 24px/32px, Black */
.ow-news-card-title {
    font-family: 'Aspekta', sans-serif;
    font-weight: 400;
    color: #111111;
    margin: 0;
}

.ow-news-card-large .ow-news-card-title {
    font-size: 32px;
    line-height: 110%; /* 35.2px */
    letter-spacing: -0.64px;
}

.ow-news-card-small .ow-news-card-title {
    font-size: 24px;
    line-height: 110%; /* 26.4px */
    letter-spacing: -0.48px;
}

/* Excerpt: Inter 400, 16px, Muted Gray */
.ow-news-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%; /* 24px */
    color: #4C4D4A;
    margin: 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
    .ow-news-featured-section {
        padding: 72px 32px;
    }
    
    .ow-news-featured-grid {
        flex-direction: column;
    }

    .ow-news-card-media {
        height: 380px; /* Reduced for tablet */
    }
}

@media (max-width: 640px) {
    .ow-news-featured-section {
        padding: 48px 16px;
    }
    
    .ow-news-card-content {
        padding: 24px;
    }

    .ow-news-card-large .ow-news-card-title {
        font-size: 28px;
    }

    .ow-news-card-media {
        height: 240px; /* Reduced for mobile */
    }
    
    .ow-news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* News featured: mobile (design 390px). Scoped to the section because the grid section below reuses the card class names. */
@media (max-width: 767px) {
    .ow-news-featured-section {
        padding: 24px 16px;
    }

    .ow-news-featured-container {
        gap: 48px;
    }

    .ow-news-featured-section .ow-news-featured-grid,
    .ow-news-featured-section .ow-news-sidebar-col {
        gap: 24px;
    }

    .ow-news-featured-section .ow-news-card-media {
        height: 380px;
    }

    .ow-news-featured-section .ow-news-card-content {
        padding: 24px 24px 12px;
        gap: 16px;
    }

    .ow-news-featured-section .ow-news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ow-news-featured-section .ow-news-date,
    .ow-news-featured-section .ow-news-publisher {
        font-size: 16px;
        line-height: 21px;
    }

    .ow-news-featured-section .ow-news-card-large .ow-news-card-title {
        font-size: 28px;
        line-height: 30.8px;
        letter-spacing: -0.56px;
    }

    .ow-news-featured-section .ow-news-card-small .ow-news-card-title {
        font-size: 24px;
        line-height: 26.4px;
        letter-spacing: -0.48px;
    }

    .ow-news-featured-section .ow-news-card-excerpt {
        font-size: 16px;
        line-height: 24px;
    }
}

/* ==========================================================================
   NEWS - IN THE NEWS GRID SECTION (1440px Baseline, #111111 Background)
   ========================================================================== */

.ow-news-grid-section {
    position: relative;
    width: 100%;
    max-width: 100%;;
    background-color: #111111;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* ==========================================================================
   Header Block
   ========================================================================== */

.ow-news-grid-header {
    width: 100%;
    padding: 96px 48px 64px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
}

/* Title: Aspekta 400, 48px, #FFFFFF */
.ow-news-grid-title {
    font-family: 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 110%; /* 52.8px */
    letter-spacing: -0.96px;
    color: #FFFFFF;
    margin: 0;
    text-align: center;
}

/* Tagline: Inter 400, 16px, #FFFFFF */
.ow-news-grid-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%; /* 24px */
    color: #FFFFFF;
    margin: 0;
    text-align: center;
    max-width: 800px;
}

/* ==========================================================================
   Cards Grid
   ========================================================================== */

.ow-news-grid-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 48px 96px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.ow-news-grid-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    box-sizing: border-box;
}

/* Individual Standard Card */
.ow-news-card-standard {
    background-color: #F3F0E8; /* Ivory/Beige card background from reference */
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.ow-news-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ow-news-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.ow-news-card-link:focus-visible {
    outline: 2px solid #CAED57; /* Lime focus ring to contrast dark background */
    outline-offset: 2px;
}

/* Fixed height image area */
.ow-news-card-media {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly visible placeholder if no image */
}

/* Fixed height image area */
.ow-news-card-featured-media {
    width: 100%;
    height: 434px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly visible placeholder if no image */
}

/* Shared Content Box (Padding and Layout) */
.ow-news-card-content {
    padding: 24px 24px 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.ow-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 4px;
}

/* Date: DM Mono, 14px, Purple */
.ow-news-date {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 14px;
    line-height: 150%; /* 21px */
    color: #9180FF;
}

/* Publisher: Inter 500, 14px, Black */
.ow-news-publisher {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    color: #111111;
}

/* Title: Aspekta 400, 28px/30.8px, Black */
.ow-news-card-title {
    font-family: 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 110%; /* 30.8px */
    letter-spacing: -0.56px;
    color: #111111;
    margin: 0;
}

/* Excerpt: Inter 400, 16px, Muted Gray */
.ow-news-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%; /* 24px */
    color: rgba(17, 17, 17, 0.75);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Pagination Controls
   ========================================================================== */

.ow-news-pagination {
    margin-top: 64px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ow-news-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.ow-news-pagination li {
    margin: 0;
}

.ow-news-pagination a,
.ow-news-pagination span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

/* Inactive Page Links */
.ow-news-pagination a.page-numbers {
    background-color: #FFFFFF;
    color: #262626;
    border: 1px solid rgba(38, 38, 38, 0.12);
}

.ow-news-pagination a.page-numbers:hover {
    background-color: #F3F3F3;
}

/* Active Page Link */
.ow-news-pagination span.current {
    background-color: #CAED57; /* Lime highlight */
    color: #111111;
    border: 1px solid #CAED57;
}

/* Next / Prev Arrows */
.ow-news-pagination a.next,
.ow-news-pagination a.prev {
    color: #262626;
}

.ow-news-empty {
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    opacity: 0.7;
    margin-top: 32px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
    .ow-news-grid-header {
        padding: 72px 32px 48px 32px;
    }

    .ow-news-grid-container {
        padding: 0 32px 72px 32px;
    }

    .ow-news-grid-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .ow-news-grid-header {
        padding: 48px 16px 32px 16px;
    }

    .ow-news-grid-title {
        font-size: 36px;
        line-height: 42px;
    }

    .ow-news-grid-container {
        padding: 0 16px 48px 16px;
    }

    .ow-news-grid-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    
    .ow-news-card-media {
        height: 200px; /* Slimmer image on mobile */
    }
}
/* News grid: tablet (design 768px) and mobile (design 390px) */
@media (max-width: 1023px) {
    .ow-news-grid-section .ow-news-grid-header {
        padding: 36px;
        gap: 24px;
    }

    .ow-news-grid-section .ow-news-grid-title {
        font-size: 48px;
        line-height: 52.8px;
        letter-spacing: -0.96px;
    }

    .ow-news-grid-section .ow-news-grid-container {
        padding: 0 36px 36px;
    }

    .ow-news-grid-section .ow-news-grid-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px;
    }

    .ow-news-grid-section .ow-news-card-media {
        height: 250px;
    }

    .ow-news-grid-section .ow-news-card-content {
        padding: 24px;
        gap: 12px;
    }

    .ow-news-grid-section .ow-news-meta {
        margin-bottom: 24px;
    }

    .ow-news-grid-section .ow-news-pagination {
        margin-top: 36px;
    }
}

@media (max-width: 767px) {
    .ow-news-grid-section .ow-news-grid-header {
        padding: 24px 16px 36px;
    }

    .ow-news-grid-section .ow-news-grid-title {
        font-size: 36px;
        line-height: 39.6px;
        letter-spacing: -0.72px;
    }

    .ow-news-grid-section .ow-news-grid-container {
        padding: 0 16px 24px;
    }

    .ow-news-grid-section .ow-news-grid-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
}

/* News grid: carousel on tablet and mobile, white arrows on the dark background */
.ow-news-grid-nav {
    display: none;
}

@media (max-width: 1023px) {
    .ow-news-grid-section .ow-news-grid-wrap {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .ow-news-grid-section .ow-news-grid-wrap::-webkit-scrollbar {
        display: none;
    }

    .ow-news-grid-section .ow-news-card-standard {
        flex: 0 0 calc((100% - 36px) / 2);
        scroll-snap-align: start;
    }

    .ow-news-grid-nav {
        display: flex;
        justify-content: flex-end;
        gap: 4px;
        width: 100%;
        margin-top: 36px;
    }

    .ow-news-grid-nav-btn {
        width: 48px;
        height: 48px;
        border-radius: 9999px;
        background-color: #FFFFFF;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: background-color 0.2s ease;
    }

    .ow-news-grid-nav-btn:hover {
        background-color: #E6E6E6;
    }

    .ow-news-grid-nav-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .ow-news-grid-section .ow-news-card-standard {
        flex-basis: 100%;
    }
}
