/* News Hub page */

/* Hero: clear fixed header, optional bg colour + full-bleed image, text centred */
body.page-template-page-news-hub .news-hub__hero {
    padding-top: 2.5rem;
}

@media (min-width: 768px) {
    body.page-template-page-news-hub .news-hub__hero {
        padding-top: 7.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    body.page-template-page-news-hub .news-hub__hero {
        padding-top: 5rem;
    }
}

.news-hub__hero {
    background-color: #bfdae2;
    margin-bottom: 2.5rem;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .news-hub__hero {
        padding-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .news-hub__hero {
        padding-bottom: 5rem;
    }
}

.news-hub__hero--has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.news-hub__hero__inner {
    display: block;
    text-align: center;
    position: relative;
    z-index: 1;
}

.news-hub__hero__content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news-hub__hero__content .mainPageTitle {
    margin-bottom: 0.75rem;
}

.news-hub__hero__content p:last-child {
    margin-bottom: 0;
}

.news-hub__hero--dark,
.news-hub__hero--dark .news-hub__hero__inner {
    color: #fff;
}

.news-hub__hero--dark a {
    color: #fff;
    text-decoration: underline;
}

.news-hub__hero--dark a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.news-hub__hero--dark h1,
.news-hub__hero--dark h2,
.news-hub__hero--dark h3 {
    color: #fff;
}

/* Category cards: same block as front page .howWeHelp (icons, services-wrap) */
.page-template-page-news-hub .full-width .news-hub__certifications,
.page-template-page-news-hub .full-width .news-hub__case-studies,
.page-template-page-news-hub .full-width .news-hub__explore-industry,
.page-template-page-news-hub .full-width .news-hub__stay-connected,
.page-template-page-news-hub .full-width .news-hub__explore-more {
    float: left;
    width: 100%;
    clear: both;
}

.page-template-page-news-hub .howWeHelp.news-hub__how-we-help,
body.page-template-page-news-hub .howWeHelp {
    float: left;
    width: 100%;
    padding-top: 0;
    margin-bottom: 2.5rem;
}

.page-template-page-news-hub .howWeHelp .smallTitle {
    margin-bottom: 22px;
}

/* News Hub only: category icon size matches front page (circle 140px, icon 80px) */
.page-template-page-news-hub .howWeHelp .service-icon {
    height: 140px;
    width: 140px;
}

.page-template-page-news-hub .howWeHelp .service-icon img,
.page-template-page-news-hub .howWeHelp .service-icon svg {
    max-width: 80px;
    max-height: 80px;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* News Hub: category cards full width in container on mobile (1 col), 4 cols on desktop */
.page-template-page-news-hub .howWeHelp .services-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.page-template-page-news-hub .howWeHelp .services-wrap .service {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Whole card is a link when it has a URL */
.page-template-page-news-hub .howWeHelp .news-hub__service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.page-template-page-news-hub .howWeHelp .news-hub__service-card-link-text {
    color: #fff;
    font-weight: 700;
}
.page-template-page-news-hub .howWeHelp .news-hub__service-card-link-text::after {
    content: '>';
    color: #00B9F2;
}

/* Desktop: keep link in original bottom-right position inside overlay */
@media (min-width: 768px) {
    .page-template-page-news-hub .howWeHelp .news-hub__service-card-link-text {
        position: absolute;
        bottom: 2em;
        right: 2em;
        padding-left: 2em;
        display: inline-block;
    }
}

@media (min-width: 768px) {
    .page-template-page-news-hub .howWeHelp .services-wrap {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* Mobile: show info-section (description + link) inline so cards are usable without hover */
@media (max-width: 767px) {
    .page-template-page-news-hub .howWeHelp .services-wrap .service {
        height: auto;
        padding: 1.5rem 1.5rem;
        gap: 1.5rem;
    }

    /* Keep icon circle round (flex can squash it) */
    .page-template-page-news-hub .howWeHelp .service .service-icon {
        flex-shrink: 0;
        width: 140px;
        height: 140px;
        min-width: 140px;
        min-height: 140px;
    }

    .page-template-page-news-hub .howWeHelp .service .info-section {
        position: static;
        opacity: 1;
        background-color: transparent;
        padding: 0;
    }

    .page-template-page-news-hub .howWeHelp .service .info-section__text {
        margin-top: 0.5rem;
    }

    .page-template-page-news-hub .howWeHelp .service .news-hub__service-card-link-text {
        display: inline-block;
        margin-top: 1.25rem;
    }

    .page-template-page-news-hub .howWeHelp .service .info-section a {
        position: static;
        margin-top: 0.75rem;
        display: inline-block;
    }
}

/* Explore with confidence + Statistics (combined block) */
.page-template-page-news-hub .news-hub__explore.news-hub__statistics,
body.page-template-page-news-hub .news-hub__explore.news-hub__statistics {
    float: left;
    width: 100%;
    clear: both;
}

.news-hub__explore {
    margin-bottom: 2.5rem;
}

/* Spacing between block heading/content and stats grid when combined */
.news-hub__explore.news-hub__statistics .news-hub__statistics__grid {
    margin-top: 2rem;
}

.full-width .news-hub__explore__title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 1rem;
}

/* H2 inside explore WYSIWYG: match other section titles on the page */
.full-width .news-hub__explore__content h2 {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 1rem;
}
.full-width .news-hub__explore__content h2:first-child {
    margin-top: 0;
}

.news-hub__explore__content {
    max-width: 800px;
    line-height: 1.6;
}

.news-hub__explore__content p {
    margin-bottom: 1em;
}

/* Statistics grid (4) */
.news-hub__statistics {
    margin-bottom: 2.5rem;
}

.news-hub__statistics__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .news-hub__statistics__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .news-hub__statistics__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.news-hub__stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: #f5f5f5;
    border-radius: 20px;
}

.news-hub__stat-card__number {
    display: block;
    font-size: 2.5rem;
    color: #002a3a;
    line-height: 1.2;
}

.news-hub__stat-card__number-main {
    display: inline-flex;
    align-items: baseline;
    font-weight: 700;
}

.news-hub__stat-card__number-unit {
    display: block;
    font-weight: 500;
    font-size: 1.2rem;
    margin-left: 0;
    margin-top: 0.25rem;
}

.news-hub__stat-card__label {
    display: block;
    font-size: 1rem;
    color: #555;
    margin-top: 0.5rem;
}

/* Logos carousel (Swiper with arrows, like accreditations) */
.news-hub__logos {
    margin-bottom: 2.5rem;
}

.news-hub__certifications__intro {
    margin-bottom: 1.5rem;
}

.full-width .news-hub__certifications__title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 0.5rem;
}

.news-hub__certifications__text {
    margin: 0;
    max-width: 800px;
    line-height: 1.6;
}

.news-hub__logos .inner {
    position: relative;
    padding-left: 50px;
    padding-right: 50px;
}

.news-hub-logos-slider .swiper-wrapper {
    align-items: center;
}

.news-hub-logos-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 10px 0;
}

.news-hub-logos-slider .swiper-slide img {
    max-height: 125px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.news-hub-logos-slider .swiper-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hub-logos-slider .swiper-button-prev,
.news-hub-logos-slider .swiper-button-next {
    color: #002a3a;
}

.news-hub-logos-slider .swiper-button-prev:hover,
.news-hub-logos-slider .swiper-button-next:hover {
    color: #00b9f2;
}

/* Case studies: uses existing .cards-container.papers.resource-type-case-study block */
.news-hub__case-studies {
    margin-bottom: 2.5rem;
}

.full-width .news-hub__case-studies__title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 2rem;
}

.news-hub__case-studies__more {
    text-align: right;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.news-hub__case-studies__more-link {
    display: inline-block;
    padding: 0.6em 1.2em;
    background-color: #002a3a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.news-hub__case-studies__more-link:hover {
    background-color: #00b9f2;
    color: #fff;
}

/* Explore your industry: grid of buttons */
.news-hub__explore-industry {
    margin-bottom: 2.5rem;
}

.full-width .news-hub__explore-industry__title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 1.5rem;
}

.news-hub__explore-industry__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .news-hub__explore-industry__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-hub__explore-industry__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.news-hub__explore-industry__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    background-color: #fff;
    color: #002a3a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #00b9f2;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.news-hub__explore-industry__btn:hover,
.news-hub__explore-industry__btn:focus,
.news-hub__explore-industry__btn:active {
    background-color: #002a3a;
    color: #fff;
    border-color: #00b9f2;
}

/* Stay Connected: 50/50 text + image, image top on mobile, right on desktop */
.news-hub__stay-connected {
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
}

.news-hub__stay-connected__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

/* Mobile: image on top */
.news-hub__stay-connected__content {
    order: 2;
}

.news-hub__stay-connected__image {
    order: 1;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
}

.news-hub__stay-connected__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .news-hub__stay-connected__layout {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .news-hub__stay-connected__content {
        order: 1;
    }

    .news-hub__stay-connected__image {
        order: 2;
    }
}

.full-width .news-hub__stay-connected__title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 1rem;
}

.news-hub__stay-connected__text {
    max-width: 800px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-hub__stay-connected__text p {
    margin-bottom: 0.75em;
}

.news-hub__stay-connected__text p:last-child {
    margin-bottom: 0;
}

.news-hub__stay-connected__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-hub__stay-connected__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1.25em;
    background-color: #fff;
    color: #002a3a;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #00b9f2;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.news-hub__stay-connected__btn:hover,
.news-hub__stay-connected__btn:focus,
.news-hub__stay-connected__btn:active {
    background-color: #002a3a;
    color: #fff;
    border-color: #00b9f2;
}

/* Explore More: quicklinks – H2 + repeater of blocks (heading + links) */
.news-hub__explore-more {
    margin-bottom: 8rem;
}

.full-width .news-hub__explore-more__title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 1.5rem;
}

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

@media (min-width: 640px) {
    .news-hub__explore-more__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-hub__explore-more__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-hub__explore-more__block {
    padding: 1.25rem;
    background: #f5f5f5;
    border-radius: 12px;
}

.news-hub__explore-more__block-title {
    font-size: 1.125rem;
    margin: 0 0 0.75rem;
    color: #002a3a;
}

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

.news-hub__explore-more__links li {
    margin-bottom: 0.5rem;
}

.news-hub__explore-more__links li:last-child {
    margin-bottom: 0;
}

.news-hub__explore-more__links a {
    color: #00b9f2;
    text-decoration: none;
    font-weight: 500;
}

.news-hub__explore-more__links a:hover,
.news-hub__explore-more__links a:focus {
    text-decoration: underline;
}
