:root {
    --bg: #f3f3f3;
    --card: #ffffff;
    --text: #0b0b0c;
    --muted: #6b6f76;
    --line: rgba(12, 18, 28, .08);
    --blue1: #02c3ef;
    --blue2: #015bf8;
    --radius: 18px;
    --shadow: 0 18px 60px rgba(0, 0, 0, .06);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--card);
    overflow-x: hidden;
}

/* img {
    max-width: 100%;
    display: block;
} */

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.container {
    max-width: 1170px;
    /* width: min(1240px, calc(100% - 40px)); */
    margin: 0 auto;
}

.hero-section {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--card);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}

.top {
    background-color: #F1F1F1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--blue1), var(--blue2));
    color: #fff;
    font-size: 18px;
}

.brand-name {
    font-weight: 800;
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav a {
    font-size: 13px;
    font-weight: 600;
    color: #15171b;
    opacity: .85;
}

.nav a:hover {
    opacity: 1;
}

.nav a.active {
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.link {
    font-size: 13px;
    font-weight: 600;
    opacity: .85;
}

.link:hover {
    opacity: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(90deg, var(--blue1), var(--blue2));
    color: #fff;
}

.btn-dark {
    background: #0b0b0c;
    color: #fff;
}

.btn-ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: #0b0b0c;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #111;
    margin: 4px auto;
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    padding: 10px 20px 18px;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-weight: 700;
    font-size: 14px;
    opacity: .9;
}

.mobile-actions {
    display: flex;
    gap: 10px;
    padding-top: 10px;
}

/* PAGE */
.page {
    padding: 26px 0 40px;
}

.page-title {
    font-size: 28px;
    margin: 20px 0 8px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section {
    padding: 28px 0;
}

.section-title {
    font-size: 20px;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
}

.center {
    text-align: center;
}

/* ===== MOST RECENT (Screenshot style) ===== */
.recent-section {
    padding: 70px 0 40px;
    background: #fff;
}

.recent-heading {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 42px;
}

.recent-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 44px;
    align-items: start;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

/* each row */
.recent-row {
    display: grid;
    grid-template-columns: 175px 1fr;
    gap: 22px;
    align-items: start;
}

/* image */
.recent-img {
    width: 170px;
    height: 150px;
    border-radius: 18px;
    overflow: hidden;
    background: #eee;
}

.recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* content */
.recent-pill {
    display: inline-flex;
    width: max-content;
    background: #dbe8ff;
    color: #1a4fff;
    font-weight: 700;
    font-size: 11px;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.recent-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #0b0b0c;
    max-width: 520px;
}

.recent-meta {
    font-size: 12px;
    color: #7a7f86;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 14px;
}

.recent-meta .meta-sep {
    color: black;
}

/* right subscribe card */
.subscribe-box {
    background: #f1f1f1;
    border-radius: 22px;
    padding: 44px 36px;
    text-align: center;
    height: -webkit-fill-available;
}

.subscribe-box h3 {
    margin: 60px 0 0 0;
    font-size: 32px;
    font-weight: 600;
}

.subscribe-box p {
    margin: 27px 0 60px 0;
    /* max-width: 280px; */
    color: #000000;
    font-size: 14px;
    line-height: 1.5;
}

/* input + button */
.subscribe-ui {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.subscribe-ui input {
    height: 60px;
    border-radius: 12px;
    border: 1px solid rgba(12, 18, 28, .10);
    padding: 0 14px;
    outline: none;
    font-size: 13px;
    background: #fff;
}

.subscribe-ui input:focus {
    border-color: rgba(1, 91, 248, .35);
    box-shadow: 0 0 0 4px rgba(1, 91, 248, .12);
}

.subscribe-ui button {
    height: 60px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #02c3ef, #015bf8);
}

.subscribe-ui button:hover {
    filter: brightness(.98);
}

.subscribe-hint {
    margin-top: 12px;
    min-height: 18px;
    font-size: 12px;
    color: #1a4fff;
}

/* responsive */
@media (max-width: 1024px) {
    .recent-grid {
        grid-template-columns: 1fr;
    }

    .subscribe-box {
        padding: 34px 22px;
    }
}

@media (max-width: 560px) {
    .recent-row {
        grid-template-columns: 96px 1fr;
        gap: 14px;
    }

    .recent-img {
        width: 96px;
        height: 86px;
        border-radius: 16px;
    }

    .recent-title {
        font-size: 14px;
    }
}

/* ===== Explore topics (Owner exact behavior) ===== */
.explore-topics {
    background: #f3f3f3;
    padding: 80px 0 50px;
}

.explore-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
}

.explore-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(12, 18, 28, .08);
    font-size: 14px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.explore-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

@media (max-width: 640px) {
    .explore-link {
        width: 100%;
        justify-content: center;
    }
}


/* ===== Owner Category Layout ===== */
.category-owner {
    background: #f3f3f3;
    padding: 60px 0;
}

.category-row {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 30px;
    margin-top: 60px;
}

.category-left h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-left p {
    font-size: 14px;
    color: #6c6f75;
    line-height: 1.55;
    margin-bottom: 18px;
}

.category-link {
    display: inline-block;
    padding: 12px 16px;
    background: #e7e7e7;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

/* RIGHT */
.category-right {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 18px;
}

/* BIG CARD */
.category-big {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(12, 18, 28, .08);
    text-decoration: none;
    color: inherit;
}

.category-big img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.category-big-body {
    padding: 16px;
}

.category-big-body h4 {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

/* STACK */
.category-stack {
    display: grid;
    gap: 14px;
}

.category-small {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(12, 18, 28, .08);
    text-decoration: none;
    color: inherit;
}

.category-small img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
}

.category-small h4 {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

/* shared */
.cat-pill {
    display: inline-block;
    padding: 6px 12px;
    background: #dbe8ff;
    color: #1a4fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.cat-meta {
    margin-top: 80px;
    font-size: 12px;
    color: #7a7f86;
}

@media (max-width: 1024px) {
    .category-row {
        grid-template-columns: 1fr;
    }

    .category-right {
        grid-template-columns: 1fr;
    }
}


/* CTA */
.cta {
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
    overflow: hidden;
}

.cta-left h2 {
    margin: 0 0 14px;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.cta-right {
    border-radius: 16px;
    overflow: hidden;
    height: 240px;
}

.cta-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    margin-top: 40px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.footer-grid {
    padding: 24px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 18px;
}

.footer-brand .brand-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.muted {
    color: var(--muted);
    font-size: 12px;
}

.footer-cta {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.footer-col h4 {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #17181b;
}

.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 12.5px;
    color: var(--muted);
}

.footer-col a:hover {
    color: #111;
}

.footer-bottom {
    padding: 14px 0 18px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-mini {
        grid-template-columns: 1fr;
    }

    .recent-grid {
        grid-template-columns: 1fr;
    }

    .category {
        grid-template-columns: 1fr;
    }

    .cat-right {
        grid-template-columns: 1fr;
    }

    .cta {
        grid-template-columns: 1fr;
    }

    .cta-right {
        height: 220px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .nav {
        display: none;
    }

    .burger {
        display: inline-grid;
        place-items: center;
    }

    .mobile-menu.show {
        display: block;
    }

    .page-title {
        font-size: 26px;
    }

    .trend {
        min-width: 86vw;
    }

    .slider {
        grid-template-columns: 44px 1fr 44px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* page base */
body {
    background: #fff;
}

/* TOP */
.top {
    padding: 100px 0 64px;
    background: #fff;
}

.page-title {
    font-size: 50px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    font-weight: 600;
}

.page-subtitle {
    margin: 0;
    max-width: 560px;
    color: #7a7f86;
    font-size: 14px;
    line-height: 1.55;
}

/* FULL WIDTH OUTER GREY BAND (this is what you’re missing) */
.hero-band {
    background: #efefef;
    padding: 18px 0 56px;
    border-radius: 56px;

}

.hero-band .container {
    max-width: 1400px;
    /* makes it feel wide like screenshot */
    width: min(1400px, calc(100% - 40px));
}

/* The big rounded grey area */
.hero-panel {
    background: #efefef;
    /* outer grey */
    /* border-radius: 56px; */
    max-width: 1260px;
    padding: 54px;
    margin: auto;
}

/* Featured card */
.featured-card {
    background: #fff;
    border-radius: 28px;
    /* padding: 22px; */
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 65px;
    align-items: center;
    /* border: 1px solid rgba(12, 18, 28, .08); */
    box-shadow: none;
}

/* .featured-content {
    align-items: center;
} */

.featured-media {
    /* height: 240px; */
    border-radius: 22px;
    overflow: hidden;
}

.featured-media img {
    width: 110%;
    height: 100%;
    object-fit: cover;
}

/* FIX: pill should NOT stretch */
.pill {
    display: inline-flex;
    width: max-content;
    align-items: center;
    justify-content: center;
    background: #dbe8ff;
    color: #1a4fff;
    font-weight: 800;
    font-size: 11px;
    padding: 7px 12px;
    border-radius: 999px;
}

.featured-title {
    margin: 12px 0 10px;
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #181f1f;
}

.featured-desc {
    margin: 0 0 18px;
    max-width: 650px;
    font-size: 14px;
    line-height: 1.55;
    color: #6c6f75;
}

/* Meta row like screenshot */
.featured-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #e9ebef;
    font-weight: 800;
    font-size: 12px;
}

.author-name {
    font-weight: 700;
    font-size: 13px;
}

.meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7a7f86;
    font-size: 12px;
}

.sep {
    /* opacity: .45; */
    color: #000;
}

/* Mini row */
.mini-row {
    margin-top: 5px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.mini-shot {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 23px;
    /* border: 1px solid rgba(12, 18, 28, .08); */
    box-shadow: none;
    min-height: 122px;
    overflow: hidden;
}

.mini-pill {
    display: inline-flex;
    width: max-content;
    background: #dbe8ff;
    color: #1a4fff;
    font-weight: 600;
    font-size: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.mini-title {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.25;
    max-width: calc(100% - 92px);
    font-weight: 600;
}

.mini-bottom {
    font-size: 15px;
    font-weight: 600;
    color: #7a7f86;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-thumb {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(12, 18, 28, .08);
}

.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-title {
        font-size: 42px;
    }

    .hero-panel {
        padding: 28px;
        border-radius: 40px;
    }

    .featured-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .featured-media {
        height: 220px;
    }

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

    .mini-title {
        max-width: 100%;
        padding-right: 86px;
    }
}

@media (max-width: 520px) {
    .top {
        padding: 44px 0 18px;
    }

    .page-title {
        font-size: 34px;
    }

    .hero-panel {
        padding: 18px;
        border-radius: 32px;
    }

    .featured-title {
        font-size: 22px;
    }
}

/* viewport: MUST be limited like Owner */
.trend-viewport {
    width: 100%;
    /* max-width: 1180px; */
    /* KEY FIX: stops showing 3 cards */
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
    /* remove 0 120px */
}

.trend-heading {
    text-align: center;
    font-size: 40px;
    color: #181f1f;
}

.trend-section {
    background: #fbfafa;
    padding-top: 45px;
    padding-bottom: 110px;
}

:root {
    --trend-card-w: 720px;
    /* tweak if needed */
    --trend-gap: 48px;
}

.trend-img {
    object-fit: cover;
    width: inherit;
}

.trend-track {
    display: flex;
    gap: var(--trend-gap);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;

    /* KEY: centers cards like Owner */
    padding: 0 calc((100% - var(--trend-card-w)) / 2) 18px;
    scroll-padding-left: calc((100% - var(--trend-card-w)) / 2);
    scroll-padding-right: calc((100% - var(--trend-card-w)) / 2);
}

.trend-track::-webkit-scrollbar {
    display: none;
}

.trend-card {
    flex: 0 0 auto;
    width: 590px;
    /* width: var(--trend-card-w); */
    height: 385px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;

    opacity: .35;
    filter: grayscale(.15);
    transform: scale(.96);
    transition: opacity .25s ease, transform .25s ease, filter .25s ease;
}

.trend-card.is-active {
    opacity: 1;
    filter: none;
    transform: scale(1);
}

.trend-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 22px 18px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .65) 100%);
}

.trend-pill {
    display: inline-flex;
    width: max-content;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, .20);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    margin-bottom: 12px;
}

.trend-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 560px;
}

.trend-meta {
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.trend-nav {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 18px;
}

.trend-arrow {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 44px;
    line-height: 0;
    display: grid;
    place-items: center;
}

.trend-arrow.is-left {
    color: rgba(0, 0, 0, .35);
    font-size: 60px;
}

.trend-arrow.is-right {
    color: #111;
    font-size: 60px;
}

.trend-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    :root {
        --trend-card-w: 640px;
        --trend-gap: 28px;
    }

    .trend-card {
        height: 300px;
    }
}

@media (max-width: 640px) {
    :root {
        --trend-card-w: calc(100vw - 48px);
        --trend-gap: 16px;
    }

    .trend-viewport {
        max-width: 100%;
    }

    .trend-card {
        height: 260px;
    }
}
