/*
 Theme Name: Algeco Child Theme
 Template: astra
 Version: 1.0
*/

/* =========================================================
   GLOBAL VARIABLES
========================================================= */

:root {
    --algeco-blue: #0B2341;
    --algeco-orange: #ef7d1a;
    --algeco-lime: #b7cf1f;
    --algeco-light-grey: #f4f4f4;
    --algeco-page-bg: #f4f8fc;
    --algeco-text: #1f2933;
}

.algeco-container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.algeco-orange-lines {
    color: var(--algeco-orange);
    font-weight: 900;
    letter-spacing: 6px;
    font-size: 26px;
    line-height: 1;
}

/* =========================================================
   BLOG / NEWS & VIEWS ARCHIVE
========================================================= */

/*
 * Remove Astra's content-width restrictions from the Posts page.
 * These selectors affect the content area only and leave the
 * header and footer containers untouched.
 */

body.blog {
    overflow-x: hidden;
}

body.blog #page,
body.blog .site {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.blog #content,
body.blog .site-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.blog #content > .ast-container,
body.blog .site-content > .ast-container {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.blog #primary,
body.blog .content-area,
body.blog .site-main {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.blog #secondary,
body.blog #secondary.widget-area {
    display: none;
}


/* =========================================================
   NEWS PAGE WRAPPER
========================================================= */

body.blog .algeco-news-page {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


/* =========================================================
   INNER CONTENT CONTAINER
========================================================= */

body.blog .algeco-container {
    width: min(1180px, 90%);
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}


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

.algeco-news-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: 700px;
    margin: 0;
    padding: 170px 0 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.algeco-news-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.55) 35%,
        rgba(0, 0, 0, 0.35) 100%
    );
    pointer-events: none;
}

.algeco-news-hero > .algeco-container {
    position: relative;
    z-index: 2;
}

.algeco-news-hero-overlay {
    display: none;
}

.algeco-featured-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 730px;
    padding: 45px 30px 36px;
    color: #ffffff;
    background: rgba(239, 125, 26, 0.92);
}

.algeco-featured-label {
    display: block;
    margin-bottom: 22px;
    color: var(--algeco-blue);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.algeco-featured-box h1 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 38px;
    line-height: 1.15;
}

.algeco-featured-box p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #ffffff;
}


/* =========================================================
   BUTTONS
========================================================= */

.algeco-white-button,
.algeco-orange-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 40px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.algeco-white-button {
    color: var(--algeco-orange);
    background: #ffffff;
}

.algeco-white-button:hover,
.algeco-white-button:focus {
    color: #ffffff;
    background: var(--algeco-blue);
}

.algeco-orange-button {
    color: #ffffff;
    background: var(--algeco-orange);
}

.algeco-orange-button:hover,
.algeco-orange-button:focus {
    color: #ffffff;
    background: var(--algeco-blue);
}


/* =========================================================
   NEWS LISTING
========================================================= */

.algeco-news-listing {
    width: 100%;
    padding: 55px 0 80px;
    background: #ffffff;
}

.algeco-news-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.algeco-news-top h2 {
    margin: 0 0 18px;
    color: var(--algeco-blue);
    font-size: 34px;
    line-height: 1.2;
}


/* =========================================================
   CATEGORY SELECTOR AND SEARCH
========================================================= */

.algeco-news-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
}

.algeco-news-controls select,
.algeco-search-box input {
    height: 62px;
    min-width: 300px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #dddddd;
    border-radius: 0;
    color: var(--algeco-text);
    background: #ffffff;
    box-shadow: none;
}

.algeco-news-controls select:focus,
.algeco-search-box input:focus {
    border-color: var(--algeco-orange);
    outline: none;
    box-shadow: none;
}

.algeco-search-box {
    display: flex;
    align-items: stretch;
}

.algeco-search-box input {
    border-right: 0;
}

.algeco-search-box button {
    flex: 0 0 70px;
    width: 70px;
    height: 62px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #ffffff;
    background: var(--algeco-lime);
    font-size: 24px;
    line-height: 62px;
    cursor: pointer;
}

.algeco-search-box button:hover,
.algeco-search-box button:focus {
    color: #ffffff;
    background: var(--algeco-orange);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    .algeco-news-hero {
        min-height: 700px;
        padding: 140px 0 24px;
    }

    .algeco-news-top {
        flex-direction: column;
    }

    .algeco-news-controls {
        width: 100%;
    }

    .algeco-news-controls select,
    .algeco-search-box {
        flex: 1 1 0;
    }

    .algeco-search-box input {
        width: 100%;
        min-width: 0;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
    body.blog .algeco-container {
        width: 90%;
    }

    .algeco-news-hero {
        min-height: 620px;
        padding: 120px 0 25px;
    }

    .algeco-featured-box {
        max-width: none;
        padding: 35px 28px;
    }

    .algeco-featured-label {
        margin-bottom: 16px;
    }

    .algeco-featured-box h1 {
        margin-bottom: 18px;
        font-size: 30px;
    }

    .algeco-featured-box p {
        margin-bottom: 24px;
    }

    .algeco-news-listing {
        padding: 45px 0 60px;
    }

    .algeco-news-top h2 {
        font-size: 30px;
    }

    .algeco-news-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .algeco-news-controls select,
    .algeco-search-box,
    .algeco-search-box input {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   SHARED POST CARDS
========================================================= */

.algeco-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.algeco-post-card {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.algeco-post-image {
    display: block;
    aspect-ratio: 4 / 2.45;
    overflow: hidden;
}

.algeco-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.algeco-post-card-content,
.algeco-post-card-body {
    padding: 24px 24px 30px;
}

.algeco-post-category,
.algeco-post-cat {
    display: block;
    color: var(--algeco-orange);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.algeco-post-card h3 {
    font-size: 21px;
    line-height: 1.2;
    margin: 0 0 16px;
}

.algeco-post-card h3 a {
    color: var(--algeco-blue);
    text-decoration: none;
}

.algeco-post-date {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 24px;
}

.algeco-read-more,
.algeco-text-link {
    color: var(--algeco-orange);
    font-weight: 800;
    text-decoration: none;
}

/* =========================================================
   CATEGORY ARCHIVE PAGE
========================================================= */

body.category #content,
body.category .site-content,
body.category .ast-container,
body.category .content-area,
body.category .site-main,
body.category #primary {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.category .site-header .ast-container,
body.category .main-header-bar .ast-container,
body.category .ast-primary-header-bar .ast-container,
body.category .ast-builder-grid-row {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.algeco-cat-hero {
    position: relative;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.algeco-cat-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5, 18, 36, 0.9) 0%,
        rgba(5, 18, 36, 0.62) 45%,
        rgba(5, 18, 36, 0.25) 100%
    );
    z-index: 1;
}

.algeco-cat-hero-overlay {
    display: none;
}

.algeco-cat-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 70px 20px;
}

.algeco-cat-label {
    display: block;
    color: var(--algeco-orange);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 14px;
}

.algeco-cat-hero h1 {
    color: #fff;
    font-size: 48px;
    line-height: 1.1;
    margin: 0 0 18px;
}

.algeco-cat-description {
    max-width: 560px;
    color: #fff;
    font-size: 17px;
    line-height: 1.6;
}

.algeco-cat-content {
    background: #fff;
    padding: 34px 20px 70px;
}

.algeco-cat-breadcrumb-wrap {
    max-width: 1200px;
    margin: 0 auto 34px;
}

.algeco-breadcrumbs {
    font-size: 13px;
    color: #6b7280;
}

.algeco-breadcrumbs a,
.algeco-breadcrumbs span {
    color: #6b7280;
    text-decoration: none;
    margin-right: 8px;
}

.algeco-breadcrumbs a:hover {
    color: var(--algeco-orange);
}

.algeco-cat-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 38px;
}

.algeco-cat-top {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 38px;
}

.algeco-cat-top h2,
.algeco-sidebar-box h3 {
    color: var(--algeco-blue);
    font-size: 32px;
    margin: 0;
}

.algeco-cat-search {
    display: flex;
}

.algeco-cat-search input {
    width: 300px;
    height: 58px;
    border: 1px solid #ddd;
    border-right: 0;
    padding: 0 18px;
    background: #fff;
}

.algeco-cat-search button {
    width: 64px;
    height: 58px;
    border: 0;
    background: var(--algeco-lime);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

body.category .algeco-post-card {
    background: var(--algeco-light-grey);
    border-top: 5px solid var(--algeco-orange);
    box-shadow: none;
}

body.category .algeco-post-grid {
    grid-template-columns: repeat(3, 1fr);
}

.algeco-cat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* =========================================================
   SIDEBAR
========================================================= */

.algeco-sidebar-box {
    background: #f4f4f4;
    padding: 30px 28px;
    box-shadow: none;
}

.algeco-category-list {
    list-style: none;
    padding: 14px 0 0;
    margin: 0;
}

.algeco-category-list li {
    border-bottom: 1px solid #e5e5e5;
}

.algeco-category-list a {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    color: var(--algeco-text);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.algeco-category-list li.active a,
.algeco-category-list li.is-active a {
    color: var(--algeco-orange);
}

.algeco-latest-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.algeco-latest-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    text-decoration: none;
    color: var(--algeco-text);
}
.algeco-latest-item {padding-top: 10px;}
.algeco-latest-thumb img,
.algeco-latest-item img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    display: block;
}

.algeco-latest-item strong {
    display: block;
    color: var(--algeco-blue);
    font-size: 13px;
    line-height: 1.25;
}

.algeco-latest-item span,
.algeco-latest-item small {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 0px;
}

/* =========================================================
   PAGINATION
========================================================= */

.algeco-pagination {
    margin-top: 35px;
}

.algeco-pagination .nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.algeco-pagination .page-numbers {
    display: inline-block;
    background: #fff;
    color: var(--algeco-blue);
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid #e5e5e5;
}

.algeco-pagination .page-numbers.current,
.algeco-pagination .current {
    background: var(--algeco-lime);
    color: #fff;
    border-color: var(--algeco-lime);
}

/* =========================================================
   SINGLE POST PAGE
========================================================= */

/*
 * Remove Astra's width restrictions from individual posts
 * without changing the header or footer containers.
 */

body.single-post {
    overflow-x: hidden;
}

body.single-post #content,
body.single-post .site-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.single-post #content > .ast-container,
body.single-post .site-content > .ast-container {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.single-post #primary,
body.single-post .content-area,
body.single-post .site-main {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.single-post #secondary,
body.single-post #secondary.widget-area {
    display: none;
}


/* =========================================================
   SINGLE POST HERO
========================================================= */

.algeco-single-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: 840px;
    margin: 0;
    padding: 170px 0 24px;
    color: #ffffff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.algeco-single-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.70) 0%,
        rgba(0, 0, 0, 0.38) 45%,
        rgba(0, 0, 0, 0.20) 100%
    );
    pointer-events: none;
}

.algeco-single-hero > .algeco-container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   SINGLE POST ORANGE HERO TILE
========================================================= */

.algeco-single-hero-box {
    width: 100%;
    max-width: 730px;
    padding: 45px 30px 36px;
    color: #ffffff;
    background: rgba(239, 125, 26, 0.92);
}

.algeco-single-category {
    display: block;
    margin: 0 0 18px;
    color: var(--algeco-blue);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.algeco-single-hero-box h1,
.algeco-single-hero h1 {
    max-width: 680px;
    margin: 0;
    color: #ffffff;
    font-size: 38px;
    line-height: 1.15;
}

.algeco-single-meta {
    margin: 22px 0 0;
    color: #ffffff;
    font-weight: 600;
}


/* =========================================================
   SINGLE POST BODY
========================================================= */

.algeco-single-body {
    width: 100%;
    padding: 60px 0;
    background: #ffffff;
}

.algeco-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    gap: 48px;
}

.algeco-breadcrumb {
    margin-bottom: 35px;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.algeco-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.algeco-breadcrumb a:hover,
.algeco-breadcrumb a:focus {
    color: var(--algeco-orange);
}

.algeco-breadcrumb span {
    color: #9ca3af;
}

.algeco-single-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 36px;
}

.algeco-gutenberg-content {
    color: var(--algeco-text);
    font-size: 17px;
    line-height: 1.8;
}

.algeco-gutenberg-content h2,
.algeco-gutenberg-content h3 {
    margin-top: 34px;
    color: var(--algeco-blue);
}


/* =========================================================
   SINGLE POST SIDEBAR
========================================================= */

.algeco-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.algeco-sidebar-cta {
    padding: 32px;
    color: #ffffff;
    background: var(--algeco-blue);
}

.algeco-sidebar-cta h3,
.algeco-sidebar-cta p {
    color: #ffffff;
}

.algeco-sidebar-cta a {
    display: inline-block;
    margin-top: 12px;
    padding: 13px 28px;
    border-radius: 40px;
    color: #ffffff;
    background: var(--algeco-orange);
    font-weight: 700;
    text-decoration: none;
}

.algeco-sidebar-cta a:hover,
.algeco-sidebar-cta a:focus {
    color: #ffffff;
    background: var(--algeco-lime);
}


/* =========================================================
   RELATED ARTICLES
========================================================= */

.algeco-related-posts {
    padding: 0 0 80px;
}

.algeco-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 28px;
}

.algeco-related-card {
    overflow: hidden;
    border-top: 5px solid var(--algeco-orange);
    background: var(--algeco-light-grey);
}

.algeco-related-card a {
    color: inherit;
    text-decoration: none;
}

.algeco-related-card img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.algeco-related-card div {
    padding: 22px;
}

.algeco-related-card span {
    color: #6b7280;
    font-size: 13px;
}

.algeco-related-card h3 {
    margin: 10px 0;
    color: var(--algeco-blue);
    font-size: 20px;
    line-height: 1.2;
}

.algeco-related-card p {
    margin-top: 16px;
    color: var(--algeco-orange);
    font-weight: 700;
}


/* =========================================================
   SINGLE POST TABLET
========================================================= */

@media (max-width: 1024px) {
    .algeco-single-hero {
        min-height: 700px;
        padding: 140px 0 24px;
    }

    .algeco-single-layout {
        grid-template-columns: 1fr;
    }

    .algeco-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   SINGLE POST MOBILE
========================================================= */

@media (max-width: 640px) {
    .algeco-single-hero {
        min-height: min(620px, 85svh);
        padding: 110px 0 25px;
    }

    .algeco-single-hero-box {
        max-width: none;
        padding: 35px 28px;
    }

    .algeco-single-category {
        margin-bottom: 16px;
    }

    .algeco-single-hero-box h1,
    .algeco-single-hero h1 {
        font-size: 30px;
    }

    .algeco-single-meta {
        margin-top: 18px;
    }

    .algeco-single-body {
        padding: 45px 0;
    }

    .algeco-related-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
    .algeco-cat-container,
    .algeco-single-layout {
        grid-template-columns: 1fr;
    }

    .algeco-cat-top,
    .algeco-news-top {
        flex-direction: column;
    }

    .algeco-post-grid,
    .algeco-related-grid,
    body.category .algeco-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .algeco-cat-hero h1,
    .algeco-single-hero h1 {
        font-size: 34px;
    }

    .algeco-featured-box h1 {
        font-size: 30px;
    }

    .algeco-featured-box {
        padding: 35px 28px;
    }

    .algeco-post-grid,
    .algeco-related-grid,
    body.category .algeco-post-grid {
        grid-template-columns: 1fr;
    }

    .algeco-cat-search,
    .algeco-cat-search input,
    .algeco-news-controls,
    .algeco-news-controls select,
    .algeco-search-box,
    .algeco-search-box input {
        width: 100%;
        min-width: 0;
    }
}

body.category .algeco-category-news-hero {
    min-height: 520px;
    padding: 140px 0 60px;
    align-items: flex-end;
}

body.category .algeco-category-featured-box {
    max-width: 620px;
}

body.category .algeco-category-featured-box h1 {
    color: #fff;
    font-size: 46px;
    line-height: 1.1;
    margin-bottom: 18px;
}

body.category .algeco-category-featured-box p,
body.category .algeco-category-featured-box div {
    color: #fff;
}

/* Make category header overlap hero */
body.category .site-header {
    position: absolute;
    top: -30px; /* admin bar height */
    left: 0;
    width: 100%;
    z-index: 95;
    background: transparent !important;
}

body.category .main-header-bar,
body.category .ast-primary-header-bar {
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.25);
}

body.category .main-header-menu .menu-link,
body.category .ast-builder-menu .menu-link,
body.category .ast-header-search .ast-icon,
body.category .site-header a {
    color: #fff !important;
}

body.category .algeco-news-hero,
body.category .algeco-category-news-hero {
    margin-top: 0 !important;
    padding-top: 190px;
}

/* Logged-out users do not have admin bar */
body.category:not(.admin-bar) .site-header {
    top: 0;
}

/* Remove white header background completely */

body.category .site-header,
body.category .ast-builder-menu-1,
body.category .main-header-bar,
body.category .ast-primary-header-bar,
body.category .site-primary-header-wrap {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Pull hero behind header */

body.category .algeco-category-news-hero,
body.category .algeco-news-hero {
    margin-top: -120px !important;
    padding-top: 260px !important;
}

body.category .site-header {
    position: absolute !important;
    top: 32px;
    left: 0;
    width: 100%;
    z-index: 999;
    background: transparent !important;
}

body.category.admin-bar .site-header {
    top: 0px;
}

body.category:not(.admin-bar) .site-header {
    top: 0;
}

body.category .ast-above-header-wrap,
body.category .ast-above-header-bar,
body.category .site-above-header-wrap,
body.category .ast-main-header-wrap,
body.category .main-header-bar-wrap,
body.category .ast-primary-header-bar,
body.category .main-header-bar {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

body.category .algeco-news-hero,
body.category .algeco-category-news-hero {
    margin-top: -0px !important;
    padding-top: 250px !important;
}

body.category .main-header-menu .menu-link,
body.category .ast-builder-menu .menu-link,
body.category .site-header a,
body.category .ast-header-search .ast-icon {
    color: #fff !important;
}

/* =========================================================
   NEWS & VIEWS — UPDATED HERO, CATEGORIES AND TWO-COLUMN GRID
   ========================================================= */

/* Hero page heading */
.algeco-news-page .algeco-featured-box .algeco-news-page-title {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: clamp(42px, 4vw, 64px) !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
}

/* Three white decorative lines */
.algeco-news-hero-lines {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 25px 0 26px;
}

.algeco-news-hero-lines span {
    display: block;
    width: 15px;
    height: 6px;
    background-color: #ffffff;
}

/* Featured News label */
.algeco-news-page .algeco-featured-label {
    display: block;
    margin: 0 0 20px;
    color: #0b2d5c;
    font-weight: 700;
    text-transform: uppercase;
}

/* Featured article title */
.algeco-news-page .algeco-featured-box .algeco-featured-title {
    max-width: 800px;
    margin: 0 0 42px !important;
    color: #ffffff !important;
    font-size: clamp(27px, 2.4vw, 36px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

/* Category links */
.algeco-news-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    width: 100%;
    margin: 0 0 45px;
    padding: 0;
    font-size: 18px;
    line-height: 1.4;
}

.algeco-news-categories a {
    color: #0b2d5c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.algeco-news-categories a:hover,
.algeco-news-categories a.is-active {
    color: #e87522;
}

.algeco-news-categories a.is-active {
    font-weight: 700;
}

.algeco-category-separator {
    color: #e87522;
}

/* Force two equal columns */
.algeco-news-page .algeco-post-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 35px 30px !important;
}

/* Keep card images consistent */
.algeco-news-page .algeco-post-image {
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.algeco-news-page .algeco-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Empty category message */
.algeco-no-articles {
    grid-column: 1 / -1;
}

/* Mobile */
@media (max-width: 767px) {
    .algeco-news-page .algeco-featured-box .algeco-news-page-title {
        font-size: 40px !important;
    }

    .algeco-news-page .algeco-featured-box .algeco-featured-title {
        margin-bottom: 30px !important;
        font-size: 26px !important;
    }

    .algeco-news-categories {
        gap: 8px;
        margin-bottom: 30px;
        font-size: 16px;
    }

    .algeco-news-page .algeco-post-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* News & Views hero — final typography and colour adjustments */

.algeco-news-page .algeco-featured-box {
    background: rgba(239, 125, 26, 0.9) !important;
}

.algeco-news-page .algeco-featured-box .algeco-news-page-title {
    font-size: 40px !important;
    line-height: 1.15 !important;
}

.algeco-news-page .algeco-featured-label {
    font-size: 16px !important;
    line-height: 1.3 !important;
}

.algeco-news-page .algeco-featured-box .algeco-featured-title {
    font-size: 21px !important;
    line-height: 1.3 !important;
}

/* Orange line above each News & Views card */
.algeco-news-page .algeco-post-card {
    border-top: 7px solid #ef7d1a;
}

.algeco-news-page .algeco-post-card .algeco-post-image {
    margin-top: 0;
}

/* Orange tile ends at the horizontal centre of the hero */
.algeco-news-page .algeco-featured-box {
    width: 50% !important;
    max-width: 50% !important;
    box-sizing: border-box;
}

/* Mobile: allow the tile to use the available width */
@media (max-width: 767px) {
    .algeco-news-page .algeco-news-hero {
        min-height: 700px;
    }

    .algeco-news-page .algeco-featured-box {
        width: 100% !important;
        max-width: 100% !important;
    }
}