/* ==========================================================
   BRITISH MIDLAND VIRTUAL
   NEWS PAGE
   Requires: base.css
========================================================== */


/* ==========================================================
   NEWS HERO
========================================================== */

.news-hero {

    position: relative;

    min-height: 470px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            var(--bm-blue),
            var(--bm-blue-light)
        );

    color: #ffffff;

    text-align: center;

}


.news-hero-content {

    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 900px;

    margin: 0 auto;

    padding-top: 125px;
    padding-bottom: 80px;

}


.news-hero .eyebrow {

    display: block;

    margin: 0 0 20px;

    color: var(--bm-red);

    font-size: .75rem;

    font-weight: 800;

    letter-spacing: .18em;

    line-height: 1.4;

    text-transform: uppercase;

}


.news-hero h1 {

    max-width: 850px;

    margin: 0 auto;

    color: #ffffff;

    font-size: clamp(3rem, 5vw, 4.6rem);

    font-weight: 800;

    line-height: 1.03;

    letter-spacing: -.045em;

}


.news-hero .hero-divider {

    width: 52px;

    height: 3px;

    margin: 28px auto 25px;

    background: var(--bm-red);

    border-radius: 999px;

}


.news-hero p {

    max-width: 700px;

    margin: 0 auto;

    color: rgba(255, 255, 255, .86);

    font-size: .98rem;

    font-weight: 400;

    line-height: 1.8;

}


/* ==========================================================
   NEWS FILTER
========================================================== */

.news-filter-section {

    position: relative;

    z-index: 5;

    padding: 0;

    background: #ffffff;

    border-bottom: 1px solid rgba(0, 26, 58, .10);

}


.news-filter {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 38px;

    min-height: 76px;

    overflow-x: auto;

    scrollbar-width: none;

}


.news-filter::-webkit-scrollbar {

    display: none;

}


.news-filter-button {

    position: relative;

    flex: 0 0 auto;

    padding: 28px 0 25px;

    border: 0;

    background: transparent;

    color: #737d8d;

    font-family: inherit;

    font-size: .72rem;

    font-weight: 800;

    letter-spacing: .12em;

    line-height: 1;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        color .25s ease;

}


.news-filter-button::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 3px;

    background: var(--bm-red);

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform .25s ease;

}


.news-filter-button:hover {

    color: var(--bm-blue);

}


.news-filter-button.active {

    color: var(--bm-blue);

}


.news-filter-button.active::after {

    transform: scaleX(1);

}


/* ==========================================================
   FEATURED ARTICLE
========================================================== */

.featured-section {

    padding: 110px 0;

    background: var(--bm-cream);

}


.featured-card {

    position: relative;

    display: grid;

    grid-template-columns: 60% 40%;

    overflow: hidden;

    border-radius: var(--radius-lg);

    background: #ffffff;

    box-shadow: var(--shadow-xl);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

}


.featured-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 40px 90px rgba(0, 0, 0, .16);

}


.featured-card img {

    width: 100%;

    height: 100%;

    min-height: 560px;

    display: block;

    object-fit: cover;

    transition:
        transform .45s ease;

}


.featured-card:hover img {

    transform: scale(1.035);

}


.featured-content {

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 60px;

}


.badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    align-self: flex-start;

    padding: 9px 18px;

    border-radius: 999px;

    background: var(--bm-red);

    color: #ffffff;

    font-size: .68rem;

    font-weight: 800;

    letter-spacing: .14em;

    line-height: 1;

    text-transform: uppercase;

}


.featured-content h2 {

    margin: 24px 0;

    color: var(--bm-blue);

    line-height: 1.12;

    letter-spacing: -.025em;

}


.featured-content p {

    margin: 0;

    color: var(--text);

    line-height: 1.9;

}


.read-button {

    margin-top: 40px;

    align-self: flex-start;

}


/* ==========================================================
   LATEST NEWS
========================================================== */

.news-section {

    padding: 120px 0;

    background: #ffffff;

}


.section-title {

    max-width: 760px;

    margin: 0 auto 65px;

    text-align: center;

}


.section-title .section-kicker {

    display: block;

    margin-bottom: 12px;

}


.section-title h2 {

    margin: 0 0 18px;

    color: var(--bm-blue);

}


.section-title p {

    margin: 0;

    color: var(--text-light);

    line-height: 1.8;

}


/* ==========================================================
   NEWS GRID
========================================================== */

.news-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 30px;

    align-items: stretch;

}


/* ==========================================================
   NEWS CARD
========================================================== */

.news-card {

    position: relative;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(0, 26, 58, .07);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);

    transition:
        transform .30s ease,
        box-shadow .30s ease;

}


.news-card:hover {

    transform: translateY(-6px);

    box-shadow: var(--shadow-xl);

}


.news-card img {

    width: 100%;

    height: 225px;

    display: block;

    object-fit: cover;

    transition:
        transform .40s ease;

}


.news-card:hover img {

    transform: scale(1.035);

}


.news-card-content {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 32px;

}


.news-card .badge {

    align-self: flex-start;

    margin-bottom: 18px;

    padding: 0;

    background: none;

    color: var(--bm-red);

    font-size: .68rem;

    font-weight: 800;

    letter-spacing: .14em;

}


.news-card h3 {

    margin: 0 0 16px;

    color: var(--bm-blue);

    line-height: 1.3;

    letter-spacing: -.015em;

}


.news-card p {

    flex: 1;

    margin: 0;

    color: var(--text);

    line-height: 1.85;

}


.news-card a {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 28px;

    padding-top: 22px;

    border-top: 1px solid rgba(0, 26, 58, .08);

    color: var(--bm-red);

    font-weight: 700;

    text-decoration: none;

    transition:
        color .25s ease,
        transform .25s ease;

}


.news-card a:hover {

    color: #b91f1b;

    transform: translateX(5px);

}


/* ==========================================================
   EMPTY STATE
========================================================== */

.news-empty {

    max-width: 650px;

    margin: 60px auto 0;

    padding: 65px 35px;

    border: 1px solid rgba(0, 26, 58, .08);

    border-radius: var(--radius-lg);

    background: var(--bm-cream);

    text-align: center;

}


.news-empty[hidden] {

    display: none;

}


.news-empty .section-kicker {

    display: block;

    margin-bottom: 12px;

}


.news-empty h3 {

    margin: 0 0 14px;

    color: var(--bm-blue);

}


.news-empty p {

    margin: 0;

    color: var(--text-light);

    line-height: 1.8;

}


/* ==========================================================
   MICRO INTERACTIONS
========================================================== */

.featured-card::before,
.news-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: var(--bm-red);

    transform: scaleX(0);

    transform-origin: left;

    transition:
        transform .35s ease;

    z-index: 5;

}


.featured-card:hover::before,
.news-card:hover::before {

    transform: scaleX(1);

}


.featured-content h2,
.news-card h3 {

    transition:
        color .25s ease;

}


.featured-card:hover h2,
.news-card:hover h3 {

    color: var(--bm-red);

}


.read-button {

    box-shadow:
        0 12px 28px rgba(208, 40, 35, .20);

}


.read-button:hover {

    box-shadow:
        0 20px 38px rgba(208, 40, 35, .28);

}


/* ==========================================================
   AIRCRAFT STYLING
========================================================== */

.aircraft-type {

    color: var(--bm-red);

    font-weight: 800;

}


.aircraft-reg {

    display: inline-flex;

    align-items: center;

    padding: 3px 10px;

    margin: 0 4px;

    border-radius: 999px;

    background: rgba(0, 26, 58, .08);

    border: 1px solid rgba(0, 26, 58, .12);

    color: var(--bm-blue);

    font-family: "JetBrains Mono", monospace;

    font-size: .9rem;

    font-weight: 700;

    letter-spacing: .05em;

}


.aircraft-name {

    color: var(--bm-blue);

    font-style: italic;

    font-weight: 600;

}


/* ==========================================================
   RESPONSIVE — LARGE TABLET
========================================================== */

@media (max-width: 1100px) {

    .featured-card {

        grid-template-columns: 1fr;

    }


    .featured-card img {

        min-height: 420px;

        max-height: 520px;

    }


    .featured-content {

        padding: 50px;

    }


    .news-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* ==========================================================
   RESPONSIVE — TABLET / MOBILE
========================================================== */

@media (max-width: 768px) {

    .news-hero {

        min-height: 430px;

    }


    .news-hero-content {

        padding-top: 105px;
        padding-bottom: 70px;

    }


    .news-hero h1 {

        font-size: 3rem;

    }


    .news-hero p {

        font-size: .94rem;

    }


    .news-filter {

        justify-content: flex-start;

        gap: 28px;

        min-height: 68px;

        padding: 0 20px;

    }


    .news-filter-button {

        padding: 25px 0 22px;

    }


    .featured-section,
    .news-section {

        padding: 85px 0;

    }


    .featured-content {

        padding: 40px;

    }


    .news-grid {

        grid-template-columns: 1fr;

        gap: 28px;

    }


    .news-card-content {

        padding: 28px;

    }

}


/* ==========================================================
   RESPONSIVE — SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .news-hero {

        min-height: 400px;

    }


    .news-hero-content {

        padding-top: 90px;
        padding-bottom: 60px;

    }


    .news-hero h1 {

        font-size: 2.4rem;

    }


    .news-hero p {

        font-size: .9rem;

    }


    .news-filter {

        gap: 24px;

        padding: 0 16px;

    }


    .news-filter-button {

        font-size: .66rem;

    }


    .featured-content {

        padding: 28px;

    }


    .featured-card img {

        min-height: 280px;

        max-height: 340px;

    }


    .news-card img {

        height: 210px;

    }


    .news-empty {

        padding: 50px 25px;

    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .featured-card,
    .featured-card img,
    .news-card,
    .news-card img,
    .read-button,
    .news-filter-button,
    .news-filter-button::after {

        transition: none !important;

        animation: none !important;

    }

}


/* ==========================================================
   END OF NEWS.CSS
========================================================== */
