/**
 * News & Media Page Stylesheet - Aberdeen Holdings
 * Self-contained stylesheet for News page hero banner
 * Theme: Archivo font, Primary Cyan (#1bbfdd), Primary Dark (#014f6e)
 */

/* Page Background Configuration */
body.news-page {
    min-height: 100vh;
    background-color: #ffffff;
}

/* ==========================================================================
   Full-Width Hero Banner (Edge-to-Edge)
   ========================================================================== */
.about-hero-fullwidth {
    position: relative;
    width: 100%;
    min-height: 82vh;
    display: flex;
    align-items: flex-end;
    padding-top: 180px;
    padding-bottom: 85px;
    overflow: hidden;
}

/* Background photo layer (slow zoom-out animation) */
.about-hero-fullwidth::before,
.news-banner-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/news-banner.jpg?v=2') !important;
    background-size: cover;
    background-position: center 38% !important;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.15);
    animation: heroZoom 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Vignette & High-Contrast Gradient Overlay */
.about-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(3 10 18 / 18%) 0%, rgba(3, 10, 18, 0.25) 38%, rgba(3, 10, 18, 0.45) 60%, rgb(3 10 18 / 7%) 100%),
        linear-gradient(90deg, rgb(3 10 18 / 48%) 0%, rgba(3, 10, 18, 0.2) 55%, rgba(3, 10, 18, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: heroOverlayIn 1.4s ease 0.1s forwards;
}

/* Hero Content Container Alignment */
.about-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Banner Content Flex Layout */
.about-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    width: 100%;
}

/* Left Column: Title, Subtitle & Accent Line */
.about-banner-left {
    width: 100%;
    position: relative;
}

.about-banner-title {
    font-size: clamp(34px, 4.5vw, 54px);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.12;
    margin: 0 0 16px 0;
    opacity: 0;
    animation: heroRise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.about-banner-desc {
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    max-width: 680px;
    opacity: 0;
    animation: heroRise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

/* Accent line under the description */
.about-banner-left::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 24px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 0.12) 65%, rgba(255, 255, 255, 0) 100%);
    transform: scaleX(0);
    transform-origin: left;
    animation: heroLineGrow 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

/* Right Column: CTA Button */
.about-banner-right {
    flex-shrink: 0;
    margin-bottom: 6px;
    opacity: 0;
    animation: heroBtnIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

.about-banner-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--color-primary-dark, #014f6e) 0%, #036891 40%, var(--color-primary-cyan, #1bbfdd) 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(27, 191, 221, 0.5);
    box-shadow: 0 6px 22px rgba(27, 191, 221, 0.38), 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.about-banner-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(27, 191, 221, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, var(--color-primary-cyan, #1bbfdd) 0%, var(--color-primary-dark, #014f6e) 100%);
    border-color: rgba(255, 255, 255, 0.85);
    color: #ffffff;
}

.about-banner-cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-120%) skewX(-20deg);
    animation: heroBtnShine 3.6s ease-in-out 2.4s infinite;
    pointer-events: none;
}

/* ==========================================================================
   Banner Keyframe Animations
   ========================================================================== */
@keyframes heroZoom {
    from {
        transform: scale(1.15);
    }

    to {
        transform: scale(1);
    }
}

@keyframes heroOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(34px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroBtnIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes heroLineGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes heroBtnShine {
    0% {
        transform: translateX(-120%) skewX(-20deg);
    }

    60%,
    100% {
        transform: translateX(260%) skewX(-20deg);
    }
}

.news-intro-section {
    padding: 90px 0px 20px;
    background: #ffffff;
    text-align: center;
}

.news-intro-container {
    max-width: 1040px;
    margin: 0 auto;
}

.news-intro-content {
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsroom-title {
    font-family: 'Archivo', sans-serif;
    font-size: 45px;
    font-weight: 800;
    line-height: 1.18;
    color: #0b1727;
    margin-bottom: 20px;
}

.cyan-highlight-text {
    color: #014f6e;
    background: linear-gradient(90deg, #014f6e 0%, #1bbfdd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.newsroom-desc {
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
    font-weight: 300;
    margin: 0 auto;
}

/* ==========================================================================
   News Grid Section (3-Column Layout Matching Reference)
   ========================================================================== */
.news-grid-section {
    padding: 0px 0 90px 0;
    background-color: #ffffff;
}

.news-grid-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Featured Recent Post (Full-Width Horizontal Box at Top of Grid)
   ========================================================================== */
.news-featured-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 50px;
    padding: 80px 0px;
    border-bottom: 1px solid #eef2f6;
}

.news-featured-img-link {
    display: block;
    text-decoration: none;
    width: 100%;
}

.news-featured-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f1f5f9;
    border-radius: 15px;
}

.news-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-featured-card:hover .news-featured-img {
    transform: scale(1.04);
}

.news-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-featured-date {
    font-family: 'Archivo', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
    display: block;
}

.news-featured-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px 0;
}

.news-featured-title a {
    color: #0b1727;
    text-decoration: none;
    transition: color 0.25s ease;
}

.news-featured-card:hover .news-featured-title a,
.news-featured-title a:hover {
    color: #014f6e;
}

.news-featured-excerpt {
    font-family: 'Archivo', sans-serif;
    font-size: 16px;
    color: #475569;
    font-weight: 400;
    margin: 0 0 24px 0;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 32px;
    row-gap: 52px;
}

/* Individual News Card */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
}

/* Card Image Wrap */
.news-card-img-link {
    display: block;
    text-decoration: none;
    margin-bottom: 18px;
}

.news-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10.5;
    overflow: hidden;
    background-color: #f1f5f9;
    border-radius: 15px;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Card Body Content */
.news-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Date */
.news-card-date {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    display: block;
}

/* Title / Headline */
.news-card-title {
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 12px 0;
}

.news-card-title a {
    color: #0b1727;
    text-decoration: none;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card-title a,
.news-card-title a:hover {
    color: #014f6e;
}

/* Excerpt */
.news-card-excerpt {
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    font-weight: 400;
    margin: 0 0 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Read More Link */
.news-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #014f6e;
    text-decoration: none;
    margin-top: auto;
    width: fit-content;
    transition: color 0.25s ease;
}

.news-card-readmore i {
    font-size: 13px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-card-readmore,
.news-card-readmore:hover {
    color: #1bbfdd;
}

.news-card:hover .news-card-readmore i,
.news-card-readmore:hover i {
    transform: translateX(6px);
}

/* ==========================================================================
   News Page Responsive Styles
   ========================================================================== */

/* 1. Large Tablets & Small Laptops (<= 1024px) */
@media screen and (max-width: 1024px) {

    /* Hero Banner */
    .about-hero-fullwidth {
        min-height: 65vh;
        padding-top: 150px;
        padding-bottom: 70px;
    }

    .about-banner-title {
        font-size: 45px;
    }

    .about-banner-desc {
        font-size: 16px;
        max-width: 580px;
    }

    /* News Grid Section */
    .news-grid-section {
        padding: 0 0 70px 0;
    }

    /* Featured Recent Post */
    .news-featured-card {
        gap: 36px;
        padding: 60px 0px;
        margin-bottom: 60px;
    }

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

    .news-featured-excerpt {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    /* News Cards Grid */
    .news-cards-grid {
        column-gap: 24px;
        row-gap: 40px;
    }

    .news-card-title {
        font-size: 17px;
    }
}

/* 2. Tablets (<= 991px) */
@media screen and (max-width: 991px) {

    /* Hero Banner */
    .about-hero-fullwidth {
        min-height: 55vh;
        padding-top: 135px;
        padding-bottom: 55px;
    }

    /* News Grid Section */
    .news-grid-section {
        padding: 0 0 60px 0;
    }

    /* Featured Recent Post - Stack layout on tablets */
    .news-featured-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 60px 0px;
        margin-bottom: 60px;
    }

    .news-featured-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .news-featured-excerpt {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    /* News Cards Grid - 2 columns on tablets */
    .news-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .news-card-title {
        font-size: 17px;
    }
}

/* 3. Phablets & Large Phones (<= 767px) */
@media screen and (max-width: 767px) {

    /* Hero Banner */
    .about-hero-fullwidth {
        padding-top: 200px;
        padding-bottom: 50px;
    }

    .about-hero-fullwidth::before,
    .news-banner-bg::before {
        background-position: center center !important;
    }

    .about-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .about-banner-title {
        font-size: 35px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .about-banner-desc {
        font-size: 15px;
        line-height: 1.5;
        max-width: 100%;
    }

    .about-banner-cta-btn {
        padding: 13px 30px;
        font-size: 15px;
    }

    /* News Grid Section */
    .news-grid-section {
        padding: 0 0 60px 0;
    }


    .news-featured-card {
        padding: 60px 0px 40px;
        margin-bottom: 40px;
    }

    /* Featured Recent Post */

    .news-featured-img-wrap {
        border-radius: 12px;
    }

    .news-featured-date {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .news-featured-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .news-featured-excerpt {
        font-size: 14.5px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .news-card-readmore {
        font-size: 15px;
    }

    /* News Cards Grid - Single column on mobile */
    .news-cards-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .news-card-img-wrap {
        border-radius: 12px;
    }

    .news-card-img-link {
        margin-bottom: 14px;
    }

    .news-card-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .news-card-excerpt {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 14px;
    }
}

/* 4. Mobile Phones (<= 480px) */
@media screen and (max-width: 480px) {

    /* Hero Banner */
    .about-hero-fullwidth::before,
    .news-banner-bg::before {
        background-position: center center !important;
    }

    .about-banner-overlay {
        background: linear-gradient(180deg, rgba(3, 10, 18, 0.45) 0%, rgba(3, 10, 18, 0.6) 45%, rgba(3, 10, 18, 0.88) 100%);
    }

    .about-banner-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    .about-banner-cta-btn {
        padding: 12px 26px;
        font-size: 14px;
    }


    /* Featured Recent Post */

    .news-featured-img-wrap {
        border-radius: 10px;
        aspect-ratio: 16 / 10;
    }

    .news-featured-date {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .news-featured-title {
        font-size: 19px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .news-featured-excerpt {
        font-size: 13.5px;
        line-height: 1.55;
        margin-bottom: 14px;
    }

    /* News Cards Grid */
    .news-cards-grid {
        gap: 26px;
    }

    .news-card-img-wrap {
        border-radius: 10px;
    }

    .news-card-img-link {
        margin-bottom: 12px;
    }

    .news-card-date {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .news-card-title {
        font-size: 16px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .news-card-excerpt {
        font-size: 13.5px;
        line-height: 1.55;
        margin-bottom: 12px;
    }

    .news-card-readmore {
        font-size: 14px;
    }
}