/* TTO Homepage editorial block redesign */

.homepage,
.homepage .hp-section-title,
.homepage .hp-featured-title,
.homepage .hp-small-news-content h4,
.homepage .hp-list-content h4,
.homepage .hp-overlay-content h3,
.homepage .hp-featured-card h3,
.homepage .hp-science-card h3 {
    font-family: var(--font-reading);
}

/* Trending News: editorial carousel with a dedicated control rail. */
.hp-trending-news { display:grid; grid-template-columns:300px minmax(0,1fr); min-height:440px; padding:0 !important; overflow:hidden; background:#111214; }
.hp-trending-intro { position:relative; z-index:2; display:flex; flex-direction:column; justify-content:center; min-width:0; padding:44px 34px; color:#fff; background:#101113; }
.hp-trending-marker { width:40px; height:3px; margin-bottom:28px; background:var(--primary); }
.hp-trending-intro h3 { margin:0 0 10px; color:#fff; font-size:25px; font-weight:800; line-height:1.15; }
.hp-trending-intro p { max-width:215px; margin:0; color:rgba(255,255,255,.72); font-size:13px; font-weight:500; line-height:1.55; }
.hp-trending-controls { display:flex; gap:7px; margin-top:auto; padding-top:36px; }
.hp-trending-controls button { display:inline-grid; width:40px; height:40px; padding:0; place-items:center; border:0; border-radius:0; color:#fff; background:var(--primary); cursor:pointer; transition:background-color .2s ease,opacity .2s ease; }
.hp-trending-controls button:hover,.hp-trending-controls button:focus-visible { background:#e62b34; }
.hp-trending-controls button:disabled { opacity:.35; cursor:default; }
.hp-trending-viewport { min-width:0; overflow:hidden; }
.hp-trending-track { display:flex; height:100%; transition:transform .46s cubic-bezier(.22,1,.36,1); will-change:transform; }
.hp-trending-card { position:relative; flex:0 0 33.3333%; min-width:0; min-height:440px; overflow:hidden; border-left:1px solid rgba(255,255,255,.16); color:#fff; background:#25272a; transition:flex-basis .5s cubic-bezier(.22,1,.36,1),filter .35s ease,opacity .35s ease; }
.hp-trending-image,.hp-trending-image img,.hp-trending-image span { position:absolute; inset:0; display:block; width:100%; height:100%; }
.hp-trending-image img { object-fit:cover; transition:transform .55s cubic-bezier(.22,1,.36,1); }
.hp-trending-image span { background:linear-gradient(180deg,rgba(8,9,11,.16) 8%,rgba(8,9,11,.28) 42%,rgba(8,9,11,.94) 100%); }
.hp-trending-card:hover .hp-trending-image img,.hp-trending-card:focus-within .hp-trending-image img { transform:scale(1.035); }
.hp-trending-author { position:absolute; z-index:2; top:28px; left:28px; display:flex; align-items:center; gap:9px; }
.hp-trending-author img { width:34px; height:34px; border:2px solid rgba(255,255,255,.9); border-radius:50%; object-fit:cover; }
.hp-trending-author a { color:#fff; font-size:10px; font-weight:800; letter-spacing:.035em; text-transform:uppercase; }
.hp-trending-copy { position:absolute; z-index:2; right:28px; bottom:28px; left:28px; }
.hp-trending-category { display:inline-block; margin-bottom:14px; padding:6px 10px; color:#fff; background:var(--primary); font-size:10px; font-weight:800; letter-spacing:.03em; line-height:1; text-transform:uppercase; }
.hp-trending-copy h4 { margin:0; color:#fff; font-size:19px; font-weight:800; line-height:1.26; }
.hp-trending-copy h4 a { color:inherit; }
.hp-trending-excerpt { max-height:0; margin:0; overflow:hidden; color:rgba(255,255,255,.84); font-size:13px; line-height:1.55; opacity:0; transform:translateY(10px); transition:max-height .38s ease,margin .38s ease,opacity .28s ease,transform .38s ease; }
.hp-trending-meta { display:flex; flex-wrap:wrap; gap:14px; margin-top:14px; color:rgba(255,255,255,.78); font-size:11px; font-weight:600; }
.hp-trending-meta time,.hp-trending-meta span { display:inline-flex; align-items:center; gap:6px; }
.hp-trending-meta i { color:var(--primary); }
@media (min-width:801px) {
    .hp-trending-track.has-hovered-card .hp-trending-card.is-visible { flex-basis:22%; opacity:.72; filter:saturate(.72); }
    .hp-trending-track.has-hovered-card .hp-trending-card.is-hovered { z-index:2; flex-basis:56%; opacity:1; filter:none; }
    .hp-trending-card.is-hovered .hp-trending-image img { transform:scale(1.055); }
    .hp-trending-card.is-hovered .hp-trending-copy h4 { display:block !important; overflow:visible !important; -webkit-line-clamp:unset !important; }
    .hp-trending-card.is-hovered .hp-trending-excerpt { max-height:110px; margin-top:12px; opacity:1; transform:translateY(0); }
}
@media (max-width:1100px) { .hp-trending-news { grid-template-columns:260px minmax(0,1fr); } .hp-trending-card { flex-basis:50%; } }
@media (max-width:800px) { .hp-trending-news { grid-template-columns:1fr; min-height:0; } .hp-trending-intro { min-height:210px; padding:30px 24px; } .hp-trending-marker { margin-bottom:20px; } .hp-trending-controls { margin-top:25px; padding-top:0; } .hp-trending-viewport,.hp-trending-card { min-height:390px; } .hp-trending-card { flex-basis:50%; } }
@media (max-width:520px) { .hp-trending-card { flex-basis:100%; } .hp-trending-copy { right:22px; bottom:24px; left:22px; } .hp-trending-author { top:22px; left:22px; } }
@media (prefers-reduced-motion:reduce) { .hp-trending-track,.hp-trending-card,.hp-trending-image img,.hp-trending-excerpt { transition:none !important; } }

.homepage {
    padding: 24px 0 56px;
    background: #fff;
}

.homepage > .container > .homepage-live-rail,
.homepage > .container > .hp-section {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
}

.hp-section {
    padding: 22px;
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.055);
}

.hp-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hp-section-header::after {
    height: 1px;
    background: linear-gradient(to right, #d8dde3 0%, #e9ecef 70%, transparent 100%);
}

.hp-section-title {
    gap: 9px;
    margin: 0;
    color: #202630;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.hp-section-title::before {
    content: '';
    flex: 0 0 18px;
    width: 18px;
    height: 3px;
    background: var(--primary);
    transform: none;
}

.hp-section-title a,
.hp-featured-title a,
.hp-featured-card h3 a,
.hp-list-content h4 a,
.hp-small-news-content h4 a,
.hp-science-card h3 a {
    color: #172033;
}

.hp-section-title a {
    color: #202630;
}

.hp-section-title a:hover,
.hp-featured-title a:hover,
.hp-featured-card h3 a:hover,
.hp-list-content h4 a:hover,
.hp-small-news-content h4 a:hover,
.hp-science-card h3 a:hover {
    color: var(--primary);
}

.homepage .hp-cat-badges {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 12px;
    left: 12px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    width: auto;
    pointer-events: none;
}

.homepage .hp-cat-badges .hp-cat-badge {
    position: static;
    max-width: 100%;
    pointer-events: auto;
}

@media (max-width: 600px) {
    .homepage .hp-cat-badges {
        top: 10px;
        right: 10px;
        left: 10px;
        gap: 3px;
    }
    .homepage .hp-cat-badges .hp-cat-badge {
        min-height: 20px;
        padding: 5px 8px;
        font-size: 9px;
    }
}

/* Consistent editorial image motion across every homepage block. */
.homepage article a:has(> img) {
    overflow: hidden;
    isolation: isolate;
}

.homepage article a:has(> img) > img {
    transform: scale(1);
    transform-origin: center;
    transition: transform .42s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.homepage article:hover a:has(> img) > img,
.homepage article:focus-within a:has(> img) > img {
    transform: scale(1.045);
}

/* Profile photographs communicate authorship rather than story artwork. */
.homepage article :is(.hp-trending-author, .hp-story-mosaic-author) img {
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .homepage article a:has(> img) > img {
        transform: none !important;
        transition: none !important;
        will-change: auto;
    }
}

.hp-date,
.hp-meta {
    font-family: var(--font-meta);
    color: #59636f;
    font-size: 11px;
}

.hp-author {
    font-family: var(--font-meta);
    color: #606978;
    font-weight: 700;
}

/* Keep compact homepage bylines and timestamps visually consistent. */
.hp-trending-author,
.hp-trending-meta,
.hp-whispers-feature-meta,
.hp-story-mosaic-author,
.hp-review-showcase-meta,
.homepage .post-meta {
    font-family: var(--font-meta);
}

.hp-excerpt,
.hp-featured-small > p {
    color: #697384;
    font-size: 13px;
    line-height: 1.65;
}

/* Hero: three distinct newsroom blocks */
.hp-hero {
    padding: 0 0 34px;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(250px, 0.95fr) minmax(250px, 0.95fr);
    gap: 30px;
    max-width: 100%;
    overflow: visible;
}

.hp-hero-left,
.hp-hero-middle,
.hp-hero-right {
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hp-hero-middle,
.hp-hero-right {
    display: flex;
    flex-direction: column;
}

.hp-featured-large {
    margin-bottom: 30px;
}

.hp-featured-image,
.hp-featured-card-image,
.hp-featured-small-image,
.hp-list-thumb,
.hp-small-news-thumb,
.hp-science-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0;
}

.homepage img {
    border-radius: 0 !important;
}

.hp-featured-image {
    margin-bottom: 15px;
    aspect-ratio: 16 / 9;
}

.hp-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-featured-title {
    display: -webkit-box;
    font-size: clamp(22px, 1.7vw, 27px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-hero-left .hp-small-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 30px;
    border-top: 0;
}

.hp-hero-left .hp-small-news-item {
    align-items: flex-start;
    min-height: 78px;
    gap: 10px;
    padding: 0;
    border: 0;
}

.hp-small-news-content h4,
.hp-small-news-content h3,
.hp-list-content h4 {
    color: #273244;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.hp-small-news-content h3 {
    margin: 0;
}

/* First-block story cards: clear hover feedback without decorative underlines. */
.homepage .hp-hero-left .hp-small-news-title a {
    color: #10151b;
    text-decoration: none;
    transition: color 0.22s ease;
}

.homepage .hp-hero-left .hp-small-news-item:hover .hp-small-news-title a,
.homepage .hp-hero-left .hp-small-news-item:focus-within .hp-small-news-title a {
    color: #e62b34;
}

.homepage .hp-hero-left .hp-small-news-thumb {
    overflow: hidden;
}

.homepage .hp-hero-left .hp-small-news-thumb img {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.homepage .hp-hero-left .hp-small-news-item:hover .hp-small-news-thumb img,
.homepage .hp-hero-left .hp-small-news-item:focus-within .hp-small-news-thumb img {
    transform: scale(1.045);
}

.hp-hero-left .hp-small-news-thumb {
    width: 86px;
    height: 64px;
}

.hp-hero-middle .hp-section-header,
.hp-hero-right .hp-section-header {
    margin-bottom: 26px;
}

.hp-hero-middle .hp-featured-card-image,
.hp-gaming-section .hp-featured-card-image {
    margin-bottom: 14px;
}

.hp-hero-middle .hp-featured-card h3,
.hp-gaming-section .hp-featured-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.hp-hero-middle .hp-list-items {
    gap: 18px;
    margin-top: auto;
    padding-top: 48px;
}

.hp-hero-middle .hp-list-item {
    min-height: 64px;
    gap: 12px;
    padding: 0;
    border: 0;
}

.hp-hero-middle .hp-list-thumb {
    width: 86px;
    height: 64px;
}

.hp-hero-middle .hp-list-item,
.hp-hero-right .hp-list-item {
    min-height: 78px;
}

.hp-os-section {
    margin-top: auto;
    padding-top: 48px;
}

.hp-list-items-compact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hp-list-item-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 12px;
    align-items: start;
}

.hp-list-content-compact {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.hp-list-content-compact h4 {
    margin: 0 0 5px;
    color: #273244;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.hp-os-section .hp-list-content-compact h4 a {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hp-list-thumb-compact {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    display: block;
    width: 86px;
    height: 64px;
    overflow: hidden;
    border-radius: 0;
}

.hp-list-thumb-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Visual feature mosaic */
.hp-tech-whispers {
    overflow: hidden;
}

.hp-tech-whispers .hp-section-header {
    margin-bottom: 18px;
}

.hp-whispers-feature-board {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #11161d;
}

.hp-whispers-feature-story,
.hp-whispers-feature-link,
.hp-whispers-feature-link > img,
.hp-whispers-feature-shade {
    position: absolute;
    inset: 0;
}

.hp-whispers-feature-link {
    display: block;
    color: #fff;
}

.hp-whispers-feature-link > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-whispers-feature-story:hover .hp-whispers-feature-link > img {
    transform: scale(1.025);
}

.hp-whispers-feature-shade {
    z-index: 1;
    background: linear-gradient(90deg, rgba(5, 8, 12, 0.9) 0%, rgba(6, 10, 15, 0.68) 42%, rgba(6, 10, 15, 0.18) 74%);
}

.hp-whispers-feature-copy {
    position: absolute;
    bottom: 74px;
    left: 34px;
    z-index: 2;
    width: min(56%, 650px);
}

.hp-whispers-feature-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 700;
}

.hp-whispers-feature-category {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    color: #fff;
    background: #e62b34;
    border-left: 3px solid #e62b34;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    transition: color 0.22s ease;
}

.hp-whispers-feature-meta .hp-whispers-feature-author,
.hp-whispers-feature-meta time {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.hp-whispers-feature-author:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp-whispers-feature-meta time i {
    margin-right: 5px;
}

.hp-whispers-feature-meta time {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
}

/* Keep this chip independent from the dark image shade behind the metadata. */
.homepage .hp-whispers-feature-meta .hp-whispers-feature-category {
    position: relative;
    z-index: 3;
    background-color: rgb(230 43 52) !important;
    background-image: none !important;
    border-color: rgb(230 43 52) !important;
    box-shadow: none !important;
    filter: none !important;
    isolation: isolate;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
}

.hp-whispers-feature-category:hover,
.hp-whispers-feature-category:focus-visible {
    color: #fff;
    background: #e62b34;
    outline: none;
}

.hp-whispers-feature-copy h3 {
    margin: 0 0 17px;
    color: #fff;
    font-family: var(--font-reading);
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.hp-whispers-feature-copy h3 a {
    color: inherit;
}

.hp-whispers-read-more {
    display: inline;
    padding: 0 0 3px;
    color: #fff;
    background-color: transparent;
    background-image: linear-gradient(var(--primary), var(--primary));
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: 0 2px;
    font-family: var(--font-reading);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.22s ease, background-size 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-whispers-read-more:hover,
.hp-whispers-read-more:focus-visible {
    color: #fff;
    background-size: 100% 2px;
    outline: none;
}

.hp-whispers-side-rail {
    position: absolute;
    top: 30px;
    right: 30px;
    bottom: 30px;
    z-index: 4;
    width: min(34%, 390px);
    display: grid;
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 20px;
    background: #fff;
    border-right: 1px solid #e2e6ec;
    border-bottom: 1px solid #e2e6ec;
    border-left: 1px solid #e2e6ec;
    border-top: 4px solid var(--primary);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.hp-whispers-rail-item {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: #172033;
}

.hp-whispers-rail-thumb,
.hp-whispers-rail-item img {
    width: 88px;
    height: 62px;
}

.hp-whispers-rail-thumb {
    display: block;
    overflow: hidden;
}

.hp-whispers-rail-item img {
    object-fit: cover;
    transition: transform 0.25s ease;
}

.hp-whispers-rail-item:hover img {
    transform: scale(1.04);
}

.hp-whispers-rail-copy {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 5px;
}

.hp-whispers-rail-copy::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    content: '';
    transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-whispers-rail-item time {
    color: #7a838e;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.hp-whispers-rail-item time i {
    margin-right: 5px;
}

.hp-whispers-rail-item h4 {
    margin: 0;
}

.hp-whispers-rail-item h4 a {
    color: #172033;
    font-family: var(--font-reading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    transition: color 0.28s ease;
}

.hp-whispers-rail-item:hover h4 a,
.hp-whispers-rail-item h4 a:focus-visible {
    color: #e62b34;
    outline: none;
}

.hp-whispers-rail-item:hover .hp-whispers-rail-copy::after,
.hp-whispers-rail-item:focus-within .hp-whispers-rail-copy::after {
    width: 100%;
}

/* Shared editorial underline for linked homepage headlines. */
.homepage :is(
    .hp-featured-title,
    .hp-featured-card h3,
    .hp-featured-small h3,
    .hp-small-news-content h4,
    .hp-list-content h4,
    .hp-list-content-compact h4,
    .hp-science-card h3,
    .hp-whispers-feature-copy h3
) a {
    padding-bottom: 2px;
    background-image: linear-gradient(var(--primary), var(--primary));
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: 0 2px;
    text-decoration: none;
    transition: color 0.25s ease, background-size 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.homepage :is(
    .hp-featured-title,
    .hp-featured-card h3,
    .hp-featured-small h3,
    .hp-small-news-content h4,
    .hp-list-content h4,
    .hp-list-content-compact h4,
    .hp-science-card h3,
    .hp-whispers-feature-copy h3
) a:hover,
.homepage :is(
    .hp-featured-title,
    .hp-featured-card h3,
    .hp-featured-small h3,
    .hp-small-news-content h4,
    .hp-list-content h4,
    .hp-list-content-compact h4,
    .hp-science-card h3,
    .hp-whispers-feature-copy h3
) a:focus-visible {
    background-size: 100% 2px;
    outline: none;
}

@media (max-width: 980px) {
    .hp-whispers-feature-board {
        min-height: 0;
        background: transparent;
    }

    .hp-whispers-feature-story,
    .hp-whispers-feature-link {
        position: relative;
        min-height: 420px;
    }

    .hp-whispers-side-rail {
        position: relative;
        inset: auto;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        padding: 22px;
    }

    .hp-whispers-feature-copy {
        width: min(75%, 620px);
    }
}

@media (max-width: 600px) {
    .hp-whispers-feature-story,
    .hp-whispers-feature-link {
        min-height: 360px;
    }

    .hp-whispers-feature-copy {
        right: 20px;
        bottom: 34px;
        left: 20px;
        width: auto;
    }

    .hp-whispers-feature-copy h3 {
        font-size: 30px;
    }

    .hp-whispers-side-rail {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}

/* Five-story visual mosaic: centre lead with four supporting cards. */
.homepage .hp-section.hp-story-mosaic {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hp-story-mosaic-grid {
    display: grid;
    grid-template-columns: minmax(220px, .82fr) minmax(360px, 1.55fr) minmax(220px, .82fr);
    gap: 36px;
    align-items: start;
}

.hp-story-mosaic-side {
    display: grid;
    gap: 28px;
}

.hp-story-mosaic-card {
    min-width: 0;
    color: #111318;
    background: transparent;
}

.hp-story-mosaic-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f3f5f8;
}

.hp-story-mosaic-card.is-side .hp-story-mosaic-image {
    aspect-ratio: 16 / 10.6;
}

.hp-story-mosaic-card.is-feature .hp-story-mosaic-image {
    aspect-ratio: 16 / 10.4;
}

.hp-story-mosaic-image img,
.hp-story-mosaic-image > span {
    display: block;
    width: 100%;
    height: 100%;
}

.hp-story-mosaic-image img {
    object-fit: cover;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.hp-story-mosaic-image > span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 13, 0) 45%, rgba(8, 10, 13, .42) 100%);
}

.hp-story-mosaic-card:hover .hp-story-mosaic-image img,
.hp-story-mosaic-card:focus-within .hp-story-mosaic-image img {
    transform: scale(1.035);
}

.hp-story-mosaic-copy {
    position: static;
    padding-top: 14px;
    text-shadow: none;
}

.hp-story-mosaic-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: -42px 12px 16px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.hp-story-mosaic-kicker > a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 6px 9px;
    color: #fff;
    background: var(--primary);
    border-radius: 0;
    letter-spacing: .025em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hp-story-mosaic-kicker > a:hover,
.hp-story-mosaic-kicker > a:focus-visible {
    color: #fff;
    background: #E62B34;
}

.hp-story-mosaic-copy h2,
.hp-story-mosaic-copy h3 {
    margin: 0;
    color: #111318;
    font-weight: 800;
}

.hp-story-mosaic-copy h3 {
    font-size: 18px;
    line-height: 1.28;
    letter-spacing: -.25px;
}

.hp-story-mosaic-copy h2 {
    font-size: clamp(24px, 2.1vw, 32px);
    line-height: 1.08;
    letter-spacing: -.8px;
}

.hp-story-mosaic-copy h2 a,
.hp-story-mosaic-copy h3 a {
    color: inherit;
}

.hp-story-mosaic-copy h2 a:hover,
.hp-story-mosaic-copy h2 a:focus-visible,
.hp-story-mosaic-copy h3 a:hover,
.hp-story-mosaic-copy h3 a:focus-visible {
    color: var(--primary);
}

.hp-story-mosaic-copy > p {
    max-width: 92%;
    margin: 14px 0 0;
    color: #5f6878;
    font-size: 15px;
    line-height: 1.65;
    text-shadow: none;
}

.hp-story-mosaic-copy .post-meta {
    margin-top: 14px;
    color: #505a68;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 1180px) {
    .hp-story-mosaic-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 26px;
    }

    .hp-story-mosaic-copy h3 {
        font-size: 16px;
    }

    .hp-story-mosaic-copy h2 {
        font-size: clamp(21px, 2vw, 27px);
    }
}

@media (max-width: 900px) {
    .hp-story-mosaic-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hp-story-mosaic-card.is-feature {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

@media (max-width: 640px) {
    .hp-story-mosaic-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hp-story-mosaic-card.is-feature {
        grid-column: auto;
        grid-row: auto;
    }

    .hp-story-mosaic-side {
        gap: 24px;
    }

    .hp-story-mosaic-copy h2 {
        font-size: 22px;
    }

    .hp-story-mosaic-copy > p {
        max-width: none;
        font-size: 14px;
    }
}
@media (prefers-reduced-motion:reduce) { .hp-story-mosaic-image img { transition:none !important; } }

.homepage .hp-tech-whispers .hp-meta {
    display: flex;
    position: relative;
    z-index: 4;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    opacity: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.homepage .hp-tech-whispers .hp-author,
.homepage .hp-tech-whispers .hp-date,
.homepage .hp-tech-whispers .hp-dot {
    color: rgba(255, 255, 255, 0.9);
}

.homepage .hp-tech-whispers .hp-author {
    font-weight: 700;
}

/* Three-column editorial index */
.hp-multi-grid {
    display: grid;
    grid-template-columns: minmax(540px, 1.9fr) repeat(2, minmax(250px, 1fr));
    gap: 28px;
    max-width: 100%;
    overflow: visible;
}

.hp-multi-column-item {
    min-width: 0;
    padding: 0;
    border-left: 0;
}

.hp-multi-column-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.hp-multi-column-item:last-child {
    padding-right: 0;
}

.hp-new-release-layout {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(250px, 1fr);
    gap: 34px;
    align-items: start;
}

.hp-new-release-column .hp-featured-small-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hp-new-release-column .hp-featured-small > h3 {
    margin: 12px 0 8px;
    font-size: 22px;
    line-height: 1.32;
}

.hp-new-release-column .hp-featured-small > p {
    margin-top: 10px;
    color: #697382;
    font-size: 14px;
    line-height: 1.65;
}

.hp-multi-column .hp-list-items {
    display: grid;
    gap: 0;
}

.hp-multi-column .hp-list-item {
    min-height: 88px;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 0 0 16px;
    border: 0;
}

.hp-multi-column .hp-list-thumb {
    width: 86px;
    height: 64px;
    margin: 0;
}

.hp-multi-column .hp-list-content h4 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.38;
}

.hp-multi-column .hp-date {
    font-size: 11px;
}

.hp-featured-small-image img,
.hp-featured-card-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hp-featured-small > h3,
.hp-featured-card h3 {
    margin: 12px 0 7px;
    color: #172033;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.hp-list-item {
    align-items: center;
    min-height: 78px;
    padding: 11px 0;
    border-color: #edf0f3;
}

/* Telecom slider + Offers editorial index */
.hp-telecom-offers-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 2fr);
    gap: 30px;
    align-items: start;
}

.hp-telecom-slider {
    position: relative;
    height: 390px;
    overflow: hidden;
}

.hp-telecom-slides {
    position: relative;
    height: 356px;
    overflow: hidden;
}

.hp-telecom-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(14px);
    transition: opacity 0.38s ease, transform 0.38s ease, visibility 0.38s ease;
}

.hp-telecom-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.hp-telecom-slide-image,
.hp-telecom-slide-image img,
.hp-telecom-slide-image > span {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hp-telecom-slide-image img {
    object-fit: cover;
}

.hp-telecom-slide-image > span {
    background: linear-gradient(to top, rgba(8, 12, 18, 0.88), rgba(8, 12, 18, 0.05) 68%);
}

.hp-telecom-slide-copy {
    position: absolute;
    right: 22px;
    bottom: 24px;
    left: 22px;
    z-index: 3;
    text-align: center;
}

.hp-telecom-slide-copy h3 {
    position: relative;
    margin: 0 0 12px;
    padding-bottom: 6px;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
}

.hp-telecom-slide-copy h3 a {
    color: inherit;
}

.hp-telecom-slide-copy h3::after,
.hp-offers-feature-story > h3::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    content: '';
    transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-telecom-slide:hover .hp-telecom-slide-copy h3::after,
.hp-telecom-slide:focus-within .hp-telecom-slide-copy h3::after,
.hp-offers-feature-story:hover > h3::after,
.hp-offers-feature-story:focus-within > h3::after {
    width: 100%;
}

.hp-telecom-slide-copy time {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 600;
}

.hp-telecom-slider-dots {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.hp-telecom-slider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    background: #c9cdd3;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hp-telecom-slider-dots button.active {
    background: var(--primary);
    transform: scale(1.12);
}

.hp-offers-editorial-column .hp-section-header {
    align-items: center;
}

.hp-offers-editorial-column .hp-tabs {
    gap: 15px;
}

.hp-offers-editorial-column .hp-tabs a {
    font-size: 12px;
    white-space: nowrap;
}

.hp-offers-editorial-layout {
    display: grid;
    grid-template-columns: minmax(310px, 1.15fr) minmax(280px, 1fr);
    gap: 34px;
}

.hp-offers-feature-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hp-offers-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.hp-offers-feature-story:hover .hp-offers-feature-image img {
    transform: scale(1.03);
}

.hp-offers-feature-story > h3 {
    position: relative;
    margin: 12px 0 7px;
    padding-bottom: 6px;
    color: #172033;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.32;
}

.hp-offers-feature-story > h3 a {
    color: inherit;
}

.hp-offers-feature-story > p {
    margin-top: 10px;
    color: #697382;
    font-size: 14px;
    line-height: 1.6;
}

.hp-offers-story-list {
    display: grid;
    gap: 12px;
}

.hp-offers-story-item {
    min-height: 70px;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
}

.hp-offers-story-thumb,
.hp-offers-story-thumb img {
    width: 86px;
    height: 62px;
}

.hp-offers-story-thumb {
    display: block;
    overflow: hidden;
}

.hp-offers-story-thumb img {
    object-fit: cover;
    transition: transform 0.25s ease;
}

.hp-offers-story-item:hover img {
    transform: scale(1.04);
}

.hp-offers-story-item h4 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.hp-offers-story-item h4 a {
    color: #172033;
}

.hp-offers-story-item h4 a:hover {
    color: var(--primary);
}

.hp-offers-story-item time {
    color: #87909c;
    font-size: 11px;
}

@media (max-width: 1050px) {
    .hp-telecom-offers-grid {
        grid-template-columns: 1fr;
    }

    .hp-telecom-slider-column {
        max-width: 520px;
    }
}

@media (max-width: 760px) {
    .hp-offers-editorial-layout {
        grid-template-columns: 1fr;
    }

    .hp-offers-editorial-column .hp-tabs {
        display: none;
    }
}

@media (max-width: 520px) {
    .hp-telecom-slider {
        height: 360px;
    }

    .hp-telecom-slides {
        height: 330px;
    }

    .hp-telecom-slider-dots {
        bottom: -1px;
    }
}

/* Reviews: one feature plus a two-column reading list */
.hp-reviews-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) repeat(2, minmax(260px, 1fr));
    min-height: 470px;
    overflow: hidden;
}

.hp-review-showcase-card {
    position: relative;
    min-width: 0;
    min-height: 470px;
    overflow: hidden;
    background: #11161d;
}

.hp-review-showcase-image,
.hp-review-showcase-image img,
.hp-review-showcase-image > span {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hp-review-showcase-image img {
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-review-showcase-image > span {
    background: linear-gradient(to top, rgba(8, 12, 18, 0.9) 0%, rgba(8, 12, 18, 0.14) 65%);
}

.hp-review-showcase-card:hover .hp-review-showcase-image img {
    transform: scale(1.035);
}

.hp-review-showcase-copy {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    z-index: 3;
}

.hp-review-showcase-category {
    display: inline-block;
    margin-bottom: 13px;
    padding: 5px 8px;
    color: #fff;
    background: var(--primary);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.hp-review-showcase-copy h3,
.hp-review-showcase-copy h4 {
    margin: 0 0 15px;
    color: #fff;
    font-family: var(--font-reading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hp-review-showcase-copy h3 {
    max-width: 620px;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.1;
}

.hp-review-showcase-copy h4 {
    font-size: 23px;
    line-height: 1.22;
}

.hp-review-showcase-copy :is(h3, h4) a {
    color: inherit;
    padding-bottom: 3px;
    background-image: linear-gradient(var(--primary), var(--primary));
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: 0 2px;
    transition: background-size 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-review-showcase-copy :is(h3, h4) a:hover,
.hp-review-showcase-copy :is(h3, h4) a:focus-visible {
    background-size: 100% 2px;
    outline: none;
}

.hp-review-showcase-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 600;
}

.hp-review-showcase-meta a,
.hp-review-showcase-meta time {
    color: inherit;
}

.hp-review-showcase-meta a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp-review-score {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary);
    border-radius: 50%;
    color: #fff;
    background: rgba(10, 15, 22, 0.75);
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(5px);
}

@media (max-width: 960px) {
    .hp-reviews-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hp-review-showcase-card.is-lead {
        grid-column: 1 / -1;
    }

    .hp-review-showcase-card {
        min-height: 390px;
    }
}

@media (max-width: 600px) {
    .hp-reviews-showcase {
        grid-template-columns: 1fr;
    }

    .hp-review-showcase-card.is-lead {
        grid-column: auto;
    }

    .hp-review-showcase-card {
        min-height: 340px;
    }

    .hp-review-showcase-copy {
        right: 20px;
        bottom: 22px;
        left: 20px;
    }

    .hp-review-showcase-copy h3 {
        font-size: 29px;
    }

    .hp-review-showcase-copy h4 {
        font-size: 21px;
    }
}

.hp-reviews .hp-featured-with-list {
    grid-template-columns: minmax(280px, 1.05fr) minmax(0, 1.95fr);
    gap: 24px;
}

.hp-reviews .hp-list-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

/* Image-led blocks */
.hp-overlay-row {
    gap: 14px;
}

.hp-overlay-card {
    border-radius: 0;
    box-shadow: 0 7px 22px rgba(31, 41, 55, 0.12);
}

.hp-overlay-auto {
    aspect-ratio: 16 / 10;
}

.hp-overlay-content {
    padding: 64px 18px 16px;
    background: linear-gradient(to top, rgba(10, 15, 24, 0.94), rgba(10, 15, 24, 0));
}

.hp-overlay-auto .hp-overlay-content h3 {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.hp-overlay-content .hp-date {
    color: rgba(255, 255, 255, 0.72);
}

/* Paired newsroom blocks */
.homepage > .container > .hp-telecom {
    grid-column: span 5;
}

.homepage > .container > .hp-offers {
    grid-column: span 7;
}

.homepage > .container > .hp-current-affairs {
    grid-column: span 8;
}

.homepage > .container > .hp-entertainment {
    grid-column: span 4;
}

.homepage > .container > .hp-security,
.homepage > .container > .hp-web-social {
    grid-column: span 6;
}

.hp-telecom .hp-featured-with-list,
.hp-entertainment .hp-featured-with-list,
.hp-security .hp-featured-with-list,
.hp-web-social .hp-featured-with-list {
    grid-template-columns: 1fr;
    gap: 14px;
}

.hp-telecom .hp-featured-card-image img,
.hp-entertainment .hp-featured-card-image img,
.hp-security .hp-featured-card-image img,
.hp-web-social .hp-featured-card-image img {
    aspect-ratio: 16 / 8.5;
}

.hp-offers .hp-featured-with-list,
.hp-current-affairs .hp-featured-with-list {
    grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1fr);
    gap: 22px;
}

.hp-telecom .hp-list-items,
.hp-entertainment .hp-list-items,
.hp-security .hp-list-items,
.hp-web-social .hp-list-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

/* Science image cards */
.hp-science-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.hp-science-card {
    padding: 0 0 13px;
    overflow: hidden;
    background: #fafbfc;
    border: 1px solid #e8ebef;
    border-radius: 10px;
    text-align: left;
}

.hp-science-link {
    margin-bottom: 12px;
    border-radius: 0;
}

.hp-science-link img {
    aspect-ratio: 4 / 3;
}

.hp-science-card h3,
.hp-science-card .hp-meta {
    margin-right: 13px;
    margin-left: 13px;
}

.hp-science-card h3 {
    display: -webkit-box;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-science-card .hp-meta {
    justify-content: flex-start;
}

/* ====================================
   UNIFIED PUBLICATION SYSTEM
   Flat editorial bands replace disconnected dashboard-style cards.
   ==================================== */
.homepage > .container {
    display: block;
}

.homepage > .container > .homepage-live-rail {
    width: 100%;
    margin: 0 0 28px;
}

.homepage > .container > .hp-section {
    width: 100%;
    margin: 0;
    padding: 34px 0;
    background: #fff;
    border: 0;
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
}

.homepage > .container > .hp-hero {
    padding-top: 0;
    border-top: 0;
}

.homepage .hp-section-header {
    gap: 14px;
    margin-bottom: 24px;
}

.homepage .hp-section-header::after {
    height: 1px;
    background: linear-gradient(to right, #cfd5dc 0%, #e6e9ed 72%, transparent 100%);
}

.homepage .hp-section-title {
    gap: 10px;
    color: #11161c;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.15px;
    line-height: 1.2;
    text-transform: none;
}

.homepage .hp-section-title::before {
    flex: 0 0 5px;
    width: 5px;
    height: 19px;
    background: var(--primary);
    transform: skew(-12deg);
}

.homepage .hp-section-title a {
    color: #11161c;
}

.homepage .hp-section-title a:hover {
    color: var(--primary);
}

.homepage .hp-meta,
.homepage .hp-date {
    color: #59636f;
    font-size: 11px;
    font-weight: 400;
}

/* Consistent clock treatment for every compact homepage date. */
.homepage .hp-date,
.homepage time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.homepage .hp-date::before,
.homepage time::before {
    content: "\f017";
    flex: 0 0 auto;
    color: var(--primary);
    font-family: "Font Awesome 6 Free";
    font-size: .9em;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
}

.homepage time > i.fa-clock {
    display: none;
}

.homepage .hp-author {
    color: #4c5662;
    font-weight: 600;
}

.homepage .hp-list-item,
.homepage .hp-small-news-item {
    border-color: #e7eaee;
}

.homepage .hp-featured-card,
.homepage .hp-featured-small,
.homepage .hp-science-card,
.homepage .hp-overlay-card {
    box-shadow: none;
}

.homepage .hp-multi-column-item {
    border-color: #e2e6ea;
}

.homepage .hp-featured-title a,
.homepage .hp-featured-card h3 a,
.homepage .hp-featured-small h3 a,
.homepage .hp-small-news-content h4 a,
.homepage .hp-list-content h4 a,
.homepage .hp-list-content-compact h4 a,
.homepage .hp-science-card h3 a {
    color: #10151b;
}

.homepage .hp-featured-title a:hover,
.homepage .hp-featured-card h3 a:hover,
.homepage .hp-featured-small h3 a:hover,
.homepage .hp-small-news-content h4 a:hover,
.homepage .hp-list-content h4 a:hover,
.homepage .hp-list-content-compact h4 a:hover,
.homepage .hp-science-card h3 a:hover {
    color: var(--primary);
}

/* Consistent motion */
.hp-featured-image img,
.hp-featured-card-image img,
.hp-featured-small-image img,
.hp-list-thumb img,
.hp-small-news-thumb img,
.hp-science-link img,
.hp-overlay-card img {
    transition: transform 0.32s ease, filter 0.32s ease;
}

.hp-featured-image:hover img,
.hp-featured-card-image:hover img,
.hp-featured-small-image:hover img,
.hp-list-thumb:hover img,
.hp-small-news-thumb:hover img,
.hp-science-link:hover img,
.hp-overlay-card:hover img {
    transform: scale(1.035);
    filter: saturate(1.04);
}

@media (max-width: 1180px) {
    .hp-hero-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
    }

    .hp-hero-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .hp-multi-grid {
        grid-template-columns: minmax(480px, 1.65fr) repeat(2, minmax(210px, 1fr));
        gap: 22px;
    }

    .homepage > .container > .hp-telecom,
    .homepage > .container > .hp-offers,
    .homepage > .container > .hp-current-affairs,
    .homepage > .container > .hp-entertainment,
    .homepage > .container > .hp-security,
    .homepage > .container > .hp-web-social {
        grid-column: 1 / -1;
    }

    .hp-telecom .hp-featured-with-list,
    .hp-entertainment .hp-featured-with-list,
    .hp-security .hp-featured-with-list,
    .hp-web-social .hp-featured-with-list,
    .hp-offers .hp-featured-with-list,
    .hp-current-affairs .hp-featured-with-list {
        grid-template-columns: minmax(260px, 1fr) minmax(0, 1.3fr);
    }
}

@media (max-width: 860px) {
    .hp-hero-left .hp-small-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .homepage > .container {
        display: block;
    }

    .homepage > .container > .homepage-live-rail {
        margin-bottom: 24px;
    }

    .homepage > .container > .hp-section {
        margin: 0;
        padding: 28px 0;
    }

    .hp-hero-grid,
    .hp-multi-grid {
        grid-template-columns: 1fr;
    }

    .hp-hero-right {
        display: block;
    }

    .hp-multi-column-item {
        padding: 22px 0 0;
        border-top: 1px solid #edf0f3;
        border-left: 0;
    }

    .hp-multi-column-item:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .hp-new-release-layout {
        grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
        gap: 24px;
    }

    .hp-reviews .hp-featured-with-list,
    .hp-telecom .hp-featured-with-list,
    .hp-entertainment .hp-featured-with-list,
    .hp-security .hp-featured-with-list,
    .hp-web-social .hp-featured-with-list,
    .hp-offers .hp-featured-with-list,
    .hp-current-affairs .hp-featured-with-list {
        grid-template-columns: 1fr;
    }

    .hp-science-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .hp-new-release-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hp-new-release-column .hp-featured-small > h3 {
        font-size: 20px;
    }

    .hp-multi-column .hp-list-item {
        min-height: 82px;
    }
}

@media (max-width: 680px) {
    .homepage {
        padding-top: 10px;
    }

    .homepage > .container > .hp-section {
        padding: 23px 0;
        border-radius: 0;
    }

    .homepage > .container > .hp-hero {
        padding-top: 0;
    }

    .hp-hero .hp-hero-left,
    .hp-hero .hp-hero-middle,
    .hp-hero .hp-hero-right {
        padding: 0;
    }

    .hp-hero-left .hp-small-news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hp-section,
    .hp-hero-left,
    .hp-hero-middle,
    .hp-hero-right {
        padding: 15px;
        border-radius: 11px;
    }

    .hp-section-header {
        margin-bottom: 14px;
    }

    .homepage .hp-section-title {
        font-size: 17px;
    }

    .hp-featured-large .hp-featured-title {
        font-size: 24px;
    }

    .hp-small-news-grid,
    .hp-reviews .hp-list-items,
    .hp-telecom .hp-list-items,
    .hp-entertainment .hp-list-items,
    .hp-security .hp-list-items,
    .hp-web-social .hp-list-items {
        grid-template-columns: 1fr;
    }

    .hp-overlay-row {
        grid-template-columns: 1fr;
    }

    .hp-science-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hp-science-card h3 {
        font-size: 12px;
    }

    .hp-overlay-auto {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 430px) {
    .hp-science-grid {
        grid-template-columns: 1fr;
    }
}

/* Homepage underline policy: feature headlines only, always full width. */
.homepage :is(h2, h3, h4) a {
    background-image: none !important;
    background-size: auto !important;
    text-decoration: none;
}

.homepage .hp-whispers-rail-copy::after {
    display: none;
}

.homepage :is(
    .hp-featured-large .hp-featured-title,
    .hp-featured-card > h3,
    .hp-featured-small > h3,
    .hp-whispers-feature-copy > h3,
    .hp-review-showcase-card.is-lead .hp-review-showcase-copy > h3
) {
    position: relative;
    padding-bottom: 6px;
}

.homepage :is(
    .hp-featured-large .hp-featured-title,
    .hp-featured-card > h3,
    .hp-featured-small > h3,
    .hp-whispers-feature-copy > h3,
    .hp-review-showcase-card.is-lead .hp-review-showcase-copy > h3
)::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    content: '';
    transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.homepage .hp-featured-large:hover .hp-featured-title::after,
.homepage .hp-featured-large:focus-within .hp-featured-title::after,
.homepage .hp-featured-card:hover > h3::after,
.homepage .hp-featured-card:focus-within > h3::after,
.homepage .hp-featured-small:hover > h3::after,
.homepage .hp-featured-small:focus-within > h3::after,
.homepage .hp-whispers-feature-story:hover .hp-whispers-feature-copy > h3::after,
.homepage .hp-whispers-feature-story:focus-within .hp-whispers-feature-copy > h3::after,
.homepage .hp-review-showcase-card.is-lead:hover .hp-review-showcase-copy > h3::after,
.homepage .hp-review-showcase-card.is-lead:focus-within .hp-review-showcase-copy > h3::after {
    width: 100%;
}

/* Sequential, line-by-line featured headline underline. */
.homepage :is(
    .hp-featured-large .hp-featured-title,
    .hp-featured-card > h3,
    .hp-featured-small > h3,
    .hp-whispers-feature-copy > h3,
    .hp-review-showcase-card.is-lead .hp-review-showcase-copy > h3,
    .hp-telecom-slide-copy > h3,
    .hp-offers-feature-story > h3,
    .hp-affairs-lead > h3,
    .hp-story-mosaic-card.is-feature .hp-story-mosaic-copy > h2,
    .hp-final-review-lead > h3
)::after {
    display: none;
}

.homepage .tto-underline-word {
    display: inline;
}

.homepage .tto-underline-line {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    padding-bottom: 2px;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
    background-image: linear-gradient(var(--primary), var(--primary)) !important;
    background-position: left bottom !important;
    background-repeat: no-repeat !important;
    background-size: 0 2px !important;
    transition: background-size 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--underline-line-index) * 0.18s);
}

/* Server-rendered fallback: every editorial card title stays at two lines even
 * before the progressive underline script runs (or when it is cached late). */
.homepage article :is(h2, h3, h4):not(.hp-section-title) {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

.homepage article :is(h2, h3, h4):not(.hp-section-title) > a {
    max-width: 100%;
}

.homepage article :is(h2, h3, h4):not(.hp-section-title) > a.tto-lines-ready {
    display: block;
    overflow: hidden;
}

.homepage :is(
    .hp-featured-large,
    .hp-featured-card,
    .hp-featured-small,
    .hp-whispers-feature-story,
    .hp-review-showcase-card.is-lead,
    .hp-telecom-slide,
    .hp-offers-feature-story,
    .hp-affairs-lead,
    .hp-story-mosaic-card.is-feature,
    .hp-final-review-lead
):hover .tto-underline-line,
.homepage :is(
    .hp-featured-large,
    .hp-featured-card,
    .hp-featured-small,
    .hp-whispers-feature-story,
    .hp-review-showcase-card.is-lead,
    .hp-telecom-slide,
    .hp-offers-feature-story,
    .hp-affairs-lead,
    .hp-story-mosaic-card.is-feature,
    .hp-final-review-lead
):focus-within .tto-underline-line {
    background-size: 100% 2px !important;
}

@media (prefers-reduced-motion: reduce) {
    .homepage img,
    .homepage .hp-whispers-rail-copy::after,
    .homepage h1 a,
    .homepage h2 a,
    .homepage h3 a,
    .homepage h4 a {
        transition: none !important;
    }

    .homepage :is(
        .hp-featured-large .hp-featured-title,
        .hp-featured-card > h3,
        .hp-featured-small > h3,
        .hp-whispers-feature-copy > h3,
        .hp-review-showcase-card.is-lead .hp-review-showcase-copy > h3
    )::after {
        transition: none !important;
    }

    .homepage .tto-underline-line {
        transition: none !important;
        transition-delay: 0s !important;
    }
}

/* Keep the full-bleed Trending feature free from the generic section card. */
.homepage .hp-section.hp-trending-news {
    padding: 0 !important;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #111214;
    box-shadow: none;
}

/* Current Affairs editorial desk. */
.homepage .hp-section.hp-affairs-desk { display:grid; grid-template-columns:minmax(0,1fr) 295px; gap:30px; padding:0; border:0; border-radius:0; box-shadow:none; }
.hp-affairs-main,.hp-affairs-side { min-width:0; }
.hp-affairs-header { align-items:center; }
.hp-affairs-filters { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:20px; margin-left:auto; }
.hp-affairs-filters a { color:#31343a; font-size:12px; font-weight:500; }
.hp-affairs-filters a:hover,.hp-affairs-filters a:focus-visible { color:var(--primary); }
.hp-affairs-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
.hp-affairs-column { min-width:0; }
.hp-affairs-lead-image { position:relative; display:block; height:255px; overflow:hidden; }
.hp-affairs-lead-image img { width:100%; height:100%; object-fit:cover; }
.hp-affairs-lead > h3 { margin:12px 0 7px; font-size:20px; font-weight:800; line-height:1.3; }
.hp-affairs-lead > h3 a { color:#111318; }
.hp-affairs-lead .post-meta { font-size:11px; font-weight:600; }
.hp-affairs-lead > p { margin:12px 0 20px; color:#687080; font-size:14px; line-height:1.55; }
.hp-affairs-list { display:grid; gap:16px; }
.hp-affairs-list-item { display:grid; grid-template-columns:86px minmax(0,1fr); gap:12px; align-items:center; }
.hp-affairs-list-thumb { display:block; width:86px; height:62px; overflow:hidden; }
.hp-affairs-list-thumb img { width:100%; height:100%; object-fit:cover; }
.hp-affairs-list-item h4 { margin:0 0 5px; font-size:13px; font-weight:700; line-height:1.35; }
.hp-affairs-list-item h4 a { color:#111318; }
.hp-affairs-list-item time,.hp-affairs-brand time { color:#8a92a0; font-size:11px; }
.hp-affairs-side { display:grid; align-content:start; gap:34px; }
.hp-affairs-side .hp-section-header { margin-bottom:14px; }
.hp-affairs-side-image { position:relative; display:block; height:205px; overflow:hidden; }
.hp-affairs-side-image img { width:100%; height:100%; object-fit:cover; }
.hp-affairs-entertainment article h4 { margin:10px 0 0; font-size:14px; font-weight:700; line-height:1.4; }
.hp-affairs-entertainment article h4 a { color:#111318; }
.hp-affairs-dots { display:flex; justify-content:center; gap:6px; padding-top:22px; }
.hp-affairs-dots span { width:7px; height:7px; background:#d6d8dc; }
.hp-affairs-dots span.active { background:var(--primary); }
.hp-affairs-brand article { padding:13px 0; border-bottom:1px solid #e7e9ed; }
.hp-affairs-brand article:first-of-type { padding-top:0; }
.hp-affairs-brand h4 { margin:0 0 6px; font-size:13px; font-weight:700; line-height:1.45; }
.hp-affairs-brand h4 a { color:#111318; }
@media (max-width:1050px) { .homepage .hp-section.hp-affairs-desk { grid-template-columns:minmax(0,1fr) 245px; gap:22px; } .hp-affairs-filters { gap:12px; } }
@media (max-width:800px) { .homepage .hp-section.hp-affairs-desk { grid-template-columns:1fr; } .hp-affairs-filters { width:100%; justify-content:flex-start; overflow-x:auto; flex-wrap:nowrap; padding:5px 0; } .hp-affairs-filters a { white-space:nowrap; } .hp-affairs-side { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .hp-affairs-columns,.hp-affairs-side { grid-template-columns:1fr; } .hp-affairs-lead-image { height:220px; } }

/* Consistent vertical rhythm between every homepage editorial block. */
.homepage > .container > .hp-section,
.homepage > .container > .homepage-live-rail {
    margin-top: 0;
    margin-bottom: 44px;
}

.homepage > .container > .hp-section {
    padding-top: 0;
    padding-bottom: 0;
}

.homepage > .container > .hp-section:last-child {
    margin-bottom: 0;
}

@media (max-width: 1000px) {
    .homepage > .container > .hp-section,
    .homepage > .container > .homepage-live-rail {
        margin-bottom: 36px;
    }
}

@media (max-width: 600px) {
    .homepage > .container > .hp-section,
    .homepage > .container > .homepage-live-rail {
        margin-bottom: 30px;
    }
}

/* Final homepage desk: Reviews, Security, and Web & Social Media. */
.homepage .hp-section.hp-final-desk { display:grid; grid-template-columns:minmax(0,2fr) minmax(220px,1fr) minmax(220px,1fr); gap:34px; padding:0; border:0; border-radius:0; box-shadow:none; }
.hp-final-desk > div { min-width:0; }
.hp-final-desk .hp-section-header { align-items:center; }
.hp-final-review-filters { display:flex; gap:18px; margin-left:auto; }
.hp-final-review-filters a { color:#353a42; font-size:12px; white-space:nowrap; }
.hp-final-review-filters a:hover,.hp-final-review-filters a:focus-visible { color:var(--primary); }
.hp-final-reviews-grid { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(190px,.92fr); gap:28px; }
.hp-final-review-image { position:relative; display:block; height:172px; overflow:hidden; }
.hp-final-review-image img { width:100%; height:100%; object-fit:cover; }
.hp-final-review-lead h3 { margin:12px 0 7px; font-size:20px; font-weight:800; line-height:1.32; }
.hp-final-review-lead h3 a { color:#111318; }
.hp-final-review-lead .post-meta { font-size:11px; font-weight:600; }
.hp-final-review-lead > p { margin:12px 0 0; color:#687080; font-size:13px; line-height:1.55; }
.hp-final-list { display:grid; align-content:start; gap:17px; }
.hp-final-list-item { display:grid; grid-template-columns:86px minmax(0,1fr); gap:12px; align-items:center; }
.hp-final-list-item > a { display:block; width:86px; height:64px; overflow:hidden; }
.hp-final-list-item img { width:100%; height:100%; object-fit:cover; }
.hp-final-list-item h4 { margin:0 0 5px; font-size:13px; font-weight:700; line-height:1.38; }
.hp-final-list-item h4 a { color:#111318; }
.hp-final-list-item time { color:#8a92a0; font-size:11px; }
@media (max-width:1050px) { .homepage .hp-section.hp-final-desk { grid-template-columns:repeat(2,minmax(0,1fr)); } .hp-final-reviews { grid-column:1 / -1; } }
@media (max-width:700px) { .homepage .hp-section.hp-final-desk,.hp-final-reviews-grid { grid-template-columns:1fr; } .hp-final-reviews { grid-column:auto; } .hp-final-review-filters { width:100%; overflow-x:auto; padding-top:5px; } }

/* Unified homepage image category badge: compact horizontal label over images. */
.homepage .hp-cat-badge,
.homepage .hp-trending-category,
.homepage .hp-story-mosaic-kicker > a,
.homepage .hp-whispers-feature-category,
.homepage .hp-review-showcase-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    max-width: calc(100% - 24px);
    height: auto;
    min-height: 22px;
    max-height: none;
    padding: 6px 10px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    background: #e62b34;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: none;
    text-transform: uppercase;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    transform: none;
}

.homepage .hp-cat-badge {
    position: absolute;
    z-index: 4;
    top: 12px;
    left: 12px;
    right: auto;
    bottom: auto;
    cursor: pointer;
}

.homepage .hp-cat-badge:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #e62b34;
}

.homepage .hp-trending-category,
.homepage .hp-review-showcase-category {
    margin-bottom: 13px;
}

.homepage .hp-whispers-feature-category:hover,
.homepage .hp-whispers-feature-category:focus-visible,
.homepage .hp-story-mosaic-kicker > a:hover,
.homepage .hp-story-mosaic-kicker > a:focus-visible,
.homepage .hp-trending-category:hover,
.homepage .hp-trending-category:focus-visible {
    color: #fff;
    background: #e62b34;
}

/* Final badge-colour lock: every homepage category badge uses one red. */
.homepage :is(
    .hp-cat-badge,
    .hp-trending-category,
    .hp-whispers-feature-category,
    .hp-review-showcase-category,
    .hp-story-mosaic-kicker > a
),
.homepage :is(
    .hp-cat-badge,
    .hp-trending-category,
    .hp-whispers-feature-category,
    .hp-review-showcase-category,
    .hp-story-mosaic-kicker > a
):is(:hover, :focus, :focus-visible) {
    color: #fff !important;
    background: #e62b34 !important;
    border-color: #e62b34 !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Keep every homepage story headline to a consistent two-line rhythm. */
.homepage article h2:not(.hp-section-title),
.homepage article h3:not(.hp-section-title),
.homepage article h4:not(.hp-section-title) {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2;
    line-height: var(--tto-headline-line-height, 1.3);
}

/* Lower homepage blocks: consistent red headline hover.
 * This is deliberately colour-only, so the restored layout is not touched. */
.homepage :is(
    .hp-affairs-lead,
    .hp-affairs-list-item,
    .hp-affairs-entertainment article,
    .hp-affairs-brand article,
    .hp-science-card,
    .hp-final-review-lead,
    .hp-final-list-item,
    .hp-security article,
    .hp-web-social article,
    .hp-current-affairs article,
    .hp-entertainment article
):hover :is(h2, h3, h4) a,
.homepage :is(
    .hp-affairs-lead,
    .hp-affairs-list-item,
    .hp-affairs-entertainment article,
    .hp-affairs-brand article,
    .hp-science-card,
    .hp-final-review-lead,
    .hp-final-list-item,
    .hp-security article,
    .hp-web-social article,
    .hp-current-affairs article,
    .hp-entertainment article
):focus-within :is(h2, h3, h4) a,
.homepage :is(
    .hp-affairs-lead,
    .hp-affairs-list-item,
    .hp-affairs-entertainment article,
    .hp-affairs-brand article,
    .hp-science-card,
    .hp-final-review-lead,
    .hp-final-list-item,
    .hp-security article,
    .hp-web-social article,
    .hp-current-affairs article,
    .hp-entertainment article
) :is(h2, h3, h4) a:hover,
.homepage :is(
    .hp-affairs-lead,
    .hp-affairs-list-item,
    .hp-affairs-entertainment article,
    .hp-affairs-brand article,
    .hp-science-card,
    .hp-final-review-lead,
    .hp-final-list-item,
    .hp-security article,
    .hp-web-social article,
    .hp-current-affairs article,
    .hp-entertainment article
) :is(h2, h3, h4) a:focus-visible,
.homepage :is(
    .hp-affairs-lead,
    .hp-affairs-list-item,
    .hp-affairs-entertainment article,
    .hp-affairs-brand article,
    .hp-science-card,
    .hp-final-review-lead,
    .hp-final-list-item,
    .hp-security article,
    .hp-web-social article,
    .hp-current-affairs article,
    .hp-entertainment article
):hover .tto-underline-line,
.homepage :is(
    .hp-affairs-lead,
    .hp-affairs-list-item,
    .hp-affairs-entertainment article,
    .hp-affairs-brand article,
    .hp-science-card,
    .hp-final-review-lead,
    .hp-final-list-item,
    .hp-security article,
    .hp-web-social article,
    .hp-current-affairs article,
    .hp-entertainment article
):focus-within .tto-underline-line {
    color: #e62b34 !important;
}
