:root {
    --red: #d71920;
    --red-dark: #9f1117;
    --yellow: #ffc928;
    --ink: #131313;
    --muted: #646464;
    --line: #ece6df;
    --paper: #fffaf0;
    --white: #ffffff;
    --font-heading: 'Outfit', Arial, Helvetica, sans-serif;
    --font-body: 'Inter', Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.5;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.eyebrow,
.section-kicker,
.brand,
.desktop-nav a,
.mobile-nav a,
.primary-button,
.secondary-button,
.search-panel button,
.listing-form button,
.outline-button,
.text-link,
.feature-badge,
.feature-tile strong,
.feature-cta,
.about-cta,
.gallery-stat strong,
.article-mini-card h3,
.offer-card h3,
.testimonial-grid h3,
.site-footer h3 {
    font-family: var(--font-heading);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px clamp(18px, 4vw, 56px) 14px clamp(28px, 5vw, 82px);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 164px;
}

.brand-logo {
    display: block;
    width: auto;
    height: 58px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .72)) drop-shadow(0 0 10px rgba(255, 255, 255, .24));
}

.brand-mark,
.icon-badge {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--red);
    color: var(--yellow);
    font-weight: 800;
}

.brand small {
    display: block;
    color: var(--red);
    font-weight: 700;
}

.desktop-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.desktop-nav a,
.mobile-nav a {
    padding: 8px 10px;
    border-radius: 8px;
    color: #303030;
    font-size: 14px;
    font-weight: 700;
}

.desktop-nav a.active,
.desktop-nav a:hover,
.mobile-nav a.active {
    background: #fff1b8;
    color: var(--red-dark);
}

.primary-button,
.secondary-button,
.search-panel button,
.listing-form button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.secondary-button {
    background: var(--yellow);
    color: var(--ink);
}

.mobile-nav {
    display: none;
    grid-column: 1 / -1;
    overflow-x: auto;
    gap: 6px;
    padding-top: 8px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, .55fr);
    align-items: end;
    gap: clamp(20px, 4vw, 56px);
    padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 70px) 46px;
    color: var(--white);
    background: var(--ink);
}

.hero-slider,
.hero-slide,
.hero-video {
    position: absolute;
    inset: 0;
}

.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    z-index: 0;
}
.home-page .hero-slider {
    opacity: 0;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .58) 42%, rgba(0, 0, 0, .2) 100%);
}

.hero-slide {
    opacity: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.04);
    transition: opacity .9s ease, transform 5s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-copy,
.hero-card,
.hero-pagination {
    position: relative;
    z-index: 2;
}

.hero-text-animate .hero-copy,
.hero-text-animate .hero-card {
    animation: hero-content-fade .45s ease both;
}

@keyframes hero-content-fade {
    from {
        opacity: .35;
        transform: translateY(10px);
    }

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

.hero-pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 9px;
    align-self: end;
}

.hero-pagination button {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.hero-pagination button.active {
    width: 54px;
    background: var(--yellow);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    max-width: 790px;
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: .98;
    letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
    max-width: 720px;
    margin: 18px 0 0;
    font-size: clamp(17px, 2vw, 22px);
}

.search-panel {
    display: flex;
    max-width: 720px;
    margin-top: 28px;
    padding: 8px;
    border-radius: 8px;
    background: var(--white);
}

.search-panel input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 14px;
    font-size: 16px;
    outline: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hero-card {
    max-width: 360px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    background: rgba(19, 19, 19, .76);
}

.hero-card span {
    color: var(--yellow);
    font-weight: 800;
}

.hero-card strong {
    display: block;
    margin: 8px 0;
    font-size: 22px;
}

.quick-strip,
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(18px, 5vw, 70px);
    background: var(--yellow);
}

.quick-strip {
    overflow: hidden;
}

.quick-strip span {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--white);
    font-weight: 800;
}

.ticker {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker p {
    flex: 0 0 auto;
    min-width: 100%;
    padding-left: 48px;
    animation: ticker-scroll 34s linear infinite;
}

.ticker:hover p {
    animation-play-state: paused;
}

.quick-strip p,
.cta-band p {
    margin: 0;
    font-weight: 700;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.content-section,
.form-section {
    padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 70px);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading p {
    margin: 0 0 6px;
    color: var(--red);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
}

.section-kicker {
    display: inline-block;
    margin: 0 0 6px;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.section-title-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-title-link span {
    display: inline-block;
    color: var(--red);
    animation: arrow-nudge 1.1s ease-in-out infinite;
}

@keyframes arrow-nudge {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }
}

.section-heading h2,
.cta-band h2,
.text-block h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: 0;
}

.card-grid,
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.info-card,
.topic-card {
    display: block;
    min-height: 270px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.info-card:hover,
.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

.card-media {
    position: relative;
    min-height: 126px;
    padding: 14px;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, .72), rgba(215, 25, 32, .18)),
        var(--card-image, url("delhi-hero.png")) center / cover no-repeat;
}

.card-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 48px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .46), rgba(0, 0, 0, 0));
}

.card-media .icon-badge,
.card-media .topic-number {
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.topic-number {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 900;
}

.card-body {
    padding: 18px 20px 20px;
}

.info-card h3,
.topic-card h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.2;
}

.info-card p,
.topic-card p,
.text-block p {
    margin: 0;
    color: var(--muted);
}

.listing-note {
    display: inline-block;
    margin-top: 12px;
    color: var(--red-dark);
    font-size: 13px;
    font-weight: 900;
}

.directory-band {
    background: var(--paper);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.directory-grid a {
    position: relative;
    min-height: 118px;
    overflow: hidden;
    display: flex;
    align-items: end;
    padding: 18px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .82)),
        var(--card-image, url("delhi-hero.png")) center / cover no-repeat;
    color: var(--white);
    font-weight: 900;
}

.directory-grid span {
    position: relative;
    z-index: 1;
}

.directory-grid small {
    position: absolute;
    right: 14px;
    top: 12px;
    z-index: 1;
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--yellow);
    color: var(--ink);
}

.img-news {
    background-position: 44% 38%;
}

.img-food {
    background-position: 100% 74%;
}

.img-market {
    background-position: 92% 50%;
}

.img-event {
    background-position: 62% 26%;
}

.img-offer {
    background-position: 82% 68%;
}

.img-place {
    background-position: 58% 33%;
}

.img-education {
    background-position: 38% 42%;
}

.img-service {
    background-position: 72% 80%;
}

.img-directory {
    background-position: center;
}

.card-view-1 {
    background-position: 44% 38%;
}

.card-view-2 {
    background-position: 68% 46%;
}

.card-view-3 {
    background-position: 52% 68%;
}

.card-view-4 {
    background-position: 90% 58%;
}

.page-hero {
    padding: clamp(48px, 8vw, 86px) clamp(18px, 5vw, 70px);
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(159, 17, 23, .76)),
        url("delhi-hero.png") center / cover no-repeat;
}

.page-hero.compact {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.topic-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    padding: clamp(48px, 8vw, 86px) clamp(18px, 5vw, 70px);
    background: var(--ink);
    color: var(--white);
}

.topic-detail-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
    letter-spacing: 0;
}

.topic-detail-copy p:not(.eyebrow) {
    max-width: 680px;
    margin: 18px 0 0;
    font-size: clamp(17px, 2vw, 22px);
}

.topic-visual {
    min-height: 300px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, .28), rgba(215, 25, 32, .08)),
        var(--card-image, url("delhi-hero.png")) center / cover no-repeat;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.detail-grid article {
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .06);
}

.detail-grid h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.detail-grid p {
    margin: 0;
    color: var(--muted);
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    max-width: 980px;
}

.listing-card,
.article-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .06);
}

.listing-card img,
.article-card img,
.listing-card-image {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, .38), rgba(215, 25, 32, .1)),
        var(--card-image, url("delhi-hero.png")) center / cover no-repeat;
}

.listing-card > div:not(.listing-card-image),
.article-card > div:not(.listing-card-image) {
    padding: 18px;
}

.listing-card span,
.article-card span {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.listing-badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--ink);
}

.badge-premium {
    background: var(--yellow);
}

.badge-featured {
    background: #ffe8e8;
    color: var(--red-dark);
}

.badge-free {
    background: #efefef;
}

.listing-card h3,
.article-card h3 {
    margin: 6px 0 8px;
    font-size: 22px;
}

.listing-card p,
.article-card p {
    margin: 0 0 8px;
    color: var(--muted);
}

.article-card {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    color: inherit;
}

.article-card img,
.article-card .listing-card-image {
    height: 100%;
    min-height: 260px;
}

.article-card h3 {
    font-size: clamp(26px, 3vw, 38px);
}

.article-card p {
    font-size: 16px;
}

.article-meta {
    color: var(--red);
}

.entry-detail {
    padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 70px);
    background: var(--paper);
}

.entry-back {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--red);
    font-weight: 900;
}

.entry-detail-card {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    max-width: 1100px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .08);
}

.entry-image img,
.entry-image .listing-card-image {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.entry-content {
    padding: clamp(22px, 4vw, 42px);
}

.entry-meta {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.entry-content h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
}

.entry-description {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 18px;
}

.entry-facts p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 17px;
}

.entry-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 1100px;
    margin-top: 18px;
}

.entry-gallery img {
    width: 100%;
    height: 170px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.listing-actions a {
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
}

.empty-state,
.form-alert {
    max-width: 980px;
    margin: 0 auto 18px;
    padding: 16px;
    border-radius: 8px;
    background: #fff1b8;
    color: var(--ink);
    font-weight: 800;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-overview {
    padding-bottom: 0;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-stat-grid article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .06);
}

.admin-stat-grid span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-stat-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 42px;
    line-height: 1;
}

.admin-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.admin-filter label {
    display: grid;
    gap: 7px;
    min-width: min(100%, 320px);
    font-weight: 800;
}

.admin-filter select {
    border: 1px solid #d8d0c7;
    border-radius: 8px;
    padding: 12px;
    font: inherit;
}

.admin-filter button,
.admin-filter a {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
}

.admin-filter a {
    display: inline-flex;
    align-items: center;
    background: var(--ink);
}

.topic-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.topic-type-grid article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .06);
}

.topic-type-grid h3 {
    margin: 0 0 4px;
}

.topic-type-grid p {
    margin: 0 0 12px;
    color: var(--red);
    font-weight: 900;
}

.topic-type-grid div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-type-grid a {
    padding: 6px 8px;
    border-radius: 6px;
    background: #fff1b8;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .06);
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-table td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.admin-table th {
    background: var(--ink);
    color: var(--white);
}

.admin-thumb {
    width: 74px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
}

.admin-no-image {
    color: var(--muted);
    font-size: 13px;
}

.admin-delete {
    color: var(--red);
    font-weight: 900;
}

.admin-view-link {
    display: block;
    width: fit-content;
    margin-top: 4px;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
}

.admin-header-actions {
    display: flex;
    gap: 10px;
    justify-content: end;
}

.topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-card span {
    color: var(--red);
    font-weight: 900;
}

.cta-band {
    padding-top: 36px;
    padding-bottom: 36px;
}

.form-section {
    background: var(--paper);
}

.listing-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .08);
}

.listing-form label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.listing-form input,
.listing-form select,
.listing-form textarea {
    width: 100%;
    border: 1px solid #d8d0c7;
    border-radius: 8px;
    padding: 12px;
    font: inherit;
}

.listing-form textarea,
.listing-form button {
    grid-column: 1 / -1;
}

.text-block {
    max-width: 920px;
}

.text-block h2 {
    margin-top: 26px;
    font-size: 28px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 32px clamp(18px, 5vw, 70px);
    background: var(--ink);
    color: var(--white);
}

.footer-image-band {
    overflow: hidden;
    line-height: 0;
    background: #fffaf3;
}

.footer-image-band img {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer p {
    margin: 4px 0 0;
    color: #dedede;
}

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

.footer-links a {
    color: var(--yellow);
    font-weight: 800;
}

@media (max-width: 1040px) {
    .site-header {
        grid-template-columns: auto auto;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .header-cta {
        justify-self: end;
    }

    .card-grid,
    .directory-grid,
    .detail-grid,
    .listing-grid,
    .article-card,
    .entry-gallery,
    .admin-stat-grid,
    .topic-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {
    .hero {
        min-height: 720px;
        grid-template-columns: 1fr;
        align-items: end;
        padding-top: 58px;
    }

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

    .hero h1,
    .page-hero h1 {
        font-size: 42px;
    }

    .hero-card {
        max-width: none;
    }

    .search-panel {
        flex-direction: column;
        gap: 8px;
    }

    .search-panel input {
        min-height: 44px;
    }

    .quick-strip,
    .cta-band,
    .section-heading,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-grid,
    .topic-grid,
    .directory-grid,
    .detail-grid,
    .listing-grid,
    .article-card,
    .entry-detail-card,
    .entry-gallery,
    .admin-stat-grid,
    .topic-type-grid,
    .listing-form {
        grid-template-columns: 1fr;
    }

    .content-section,
    .form-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .listing-form {
        padding: 16px;
    }
}

/* Home redesign */
.home-page {
    background: #ffffff;
}

.home-page .site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .56), rgba(0, 0, 0, 0));
    color: var(--white);
}

.home-page .brand {
    color: var(--white);
}

.home-page .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.home-page .brand small {
    color: var(--white);
}

.home-page .desktop-nav a,
.home-page .mobile-nav a {
    color: var(--white);
}

.home-page .desktop-nav a.active,
.home-page .desktop-nav a:hover,
.home-page .mobile-nav a.active {
    background: transparent;
    color: var(--white);
    box-shadow: inset 0 -2px 0 var(--red);
}

.home-page .hero {
    min-height: clamp(560px, 42.85vw, 821px);
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding: 126px clamp(24px, 8vw, 150px) 70px;
    border-bottom: 8px solid var(--yellow);
}

.home-page .hero-slider {
    opacity: 0;
}

.home-page .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .06) 48%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.home-page .hero-slider::after {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .04) 48%, rgba(0, 0, 0, 0) 100%);
}

.home-page .hero-slide {
    background-position: center;
    filter: saturate(1.05) contrast(1.03);
}

.home-page .hero-copy {
    align-self: center;
    max-width: 1020px;
}

.home-page .hero h1 {
    max-width: 760px;
    font-size: clamp(48px, 6.8vw, 86px);
    line-height: 1;
    text-shadow: none;
}

.home-page .hero-copy > p:not(.eyebrow) {
    max-width: 650px;
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 700;
}

.home-page .search-panel {
    max-width: 1000px;
    min-height: 68px;
    margin-top: 34px;
    padding: 8px;
    border-radius: 9px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .32);
}

.home-page .search-panel input {
    padding-left: 20px;
}

.home-page .search-panel select {
    min-width: 170px;
    border: 0;
    border-left: 1px solid #ececec;
    padding: 0 16px;
    color: #555;
    font: inherit;
    font-weight: 700;
    outline: 0;
}

.home-page .search-panel button {
    min-width: 132px;
}

.home-page .hero-actions {
    justify-content: center;
    max-width: 1000px;
    margin-top: 28px;
}

.home-page .primary-button,
.home-page .secondary-button {
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
}

.home-page .secondary-button {
    background: rgba(0, 0, 0, .34);
    color: var(--white);
}

.home-page .hero-card {
    position: absolute;
    right: clamp(28px, 8vw, 150px);
    bottom: 112px;
    max-width: 430px;
    border-color: rgba(255, 255, 255, .32);
    background: rgba(0, 0, 0, .42);
    backdrop-filter: blur(10px);
}

.home-page .hero-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
}

.home-feature-strip,
.home-about,
.home-gallery,
.home-updates,
.home-offers,
.home-testimonials {
    padding: clamp(44px, 6vw, 72px) clamp(22px, 8vw, 150px);
}

.home-feature-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    padding-top: 34px;
    padding-bottom: 34px;
}

.feature-tile {
    position: relative;
    min-height: 235px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 8px;
    padding: 20px;
    border-radius: 8px;
    color: var(--white);
    text-align: center;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .78)),
        var(--tile-image) center / cover no-repeat;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, .24);
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 3px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
}

.feature-tile strong {
    font-size: 18px;
}

.feature-tile small {
    padding: 5px 16px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 5px;
    font-weight: 800;
}

.home-about {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(360px, 1fr);
    gap: clamp(34px, 8vw, 90px);
    align-items: center;
}

.about-copy h2,
.center-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.about-copy h2 span {
    color: var(--red);
}

.about-copy > p:not(.section-kicker) {
    max-width: 560px;
    margin: 24px 0;
    color: #535353;
}

.about-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.about-points span {
    min-height: 78px;
    display: grid;
    place-items: center;
    border-right: 1px solid var(--line);
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.about-collage {
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr .75fr .85fr;
    grid-template-rows: 190px 154px;
    gap: 10px;
}

.about-collage img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.about-collage img:first-child {
    grid-row: span 2;
}

.about-collage strong {
    position: absolute;
    left: 47%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 22px 34px;
    border: 4px solid rgba(255, 255, 255, .9);
    border-radius: 8px;
    background: var(--red);
    color: var(--white);
    font-size: 34px;
    letter-spacing: 0;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
}

.center-heading {
    max-width: 740px;
    margin: 0 auto 26px;
    text-align: center;
}

.center-heading .section-kicker {
    margin-bottom: 4px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    max-width: 1080px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: 112px;
    border-radius: 6px;
    object-fit: cover;
    background: #f5f1eb;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.outline-button,
.text-link {
    display: flex;
    width: fit-content;
    margin: 24px auto 0;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 28px;
    border: 1px solid var(--red);
    border-radius: 6px;
    color: var(--red);
    font-weight: 900;
}

.text-link {
    border: 0;
    min-height: auto;
}

.home-updates,
.home-testimonials {
    background: linear-gradient(180deg, #ffffff, #fffaf3);
}

.article-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.article-mini-card,
.offer-card,
.testimonial-grid article {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.article-mini-card img,
.offer-card img {
    width: 100%;
    height: 165px;
    display: block;
    object-fit: cover;
    background: #f5f1eb;
}

.article-mini-card span {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    border-radius: 5px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.article-mini-card h3,
.offer-card h3 {
    margin: 14px 14px 6px;
    font-size: 20px;
    line-height: 1.18;
}

.article-mini-card p,
.offer-card p {
    margin: 0 14px 16px;
    color: var(--muted);
    font-size: 13px;
}

.offer-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    max-width: 1160px;
    margin: 0 auto;
}

.offer-card > span {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 5px 8px;
    border-radius: 5px;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.offer-card small {
    display: block;
    margin: 0 14px 16px;
    color: #e5a400;
    font-weight: 900;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    max-width: 1040px;
    margin: 0 auto;
}

.testimonial-grid article {
    padding: 24px;
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffe5e6;
    color: var(--red);
    font-weight: 900;
}

.testimonial-grid h3 {
    margin: 12px 0 0;
}

.testimonial-grid .role {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.testimonial-grid small {
    color: #e5a400;
    letter-spacing: 0;
}

.site-footer {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 78px clamp(22px, 8vw, 150px) 0;
    background: linear-gradient(180deg, #1f2529, #101417);
    color: var(--white);
}

.footer-skyline {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 56px;
    opacity: .55;
    background:
        linear-gradient(90deg, transparent 0 3%, #0d1114 3% 6%, transparent 6% 10%, #0d1114 10% 13%, transparent 13% 17%, #0d1114 17% 21%, transparent 21% 25%, #0d1114 25% 29%, transparent 29% 33%, #0d1114 33% 37%, transparent 37% 43%, #0d1114 43% 46%, transparent 46% 52%, #0d1114 52% 56%, transparent 56% 62%, #0d1114 62% 67%, transparent 67% 74%, #0d1114 74% 79%, transparent 79% 84%, #0d1114 84% 88%, transparent 88% 92%, #0d1114 92% 96%, transparent 96% 100%),
        linear-gradient(180deg, transparent 0 42%, #0d1114 42% 100%);
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    gap: 42px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--yellow);
    font-size: 14px;
    text-transform: uppercase;
}

.site-footer a {
    display: block;
    margin-bottom: 7px;
    color: #e8ecef;
}

.site-footer p {
    color: #cbd2d8;
}

.site-footer .footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 18px 0 0;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
}

.footer-brand .brand {
    margin-bottom: 14px;
    color: var(--white);
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-row a {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-bottom: 0;
    border-radius: 50%;
    background: #26313a;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.social-row img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.footer-form {
    display: grid;
    gap: 10px;
}

.footer-form input {
    min-height: 42px;
    border: 1px solid #48515a;
    border-radius: 6px;
    padding: 0 12px;
    background: transparent;
    color: var(--white);
}

.footer-form button {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px calc(clamp(22px, 8vw, 150px) * -1) 0;
    padding: 18px clamp(22px, 8vw, 150px);
    background: #0d1114;
    color: #c7cbd0;
    font-size: 13px;
}

.footer-bottom a {
    display: inline;
    color: #c7cbd0;
}

@media (max-width: 1180px) {
    .home-page .hero-card {
        display: none;
    }

    .article-mini-grid,
    .offer-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 820px) {
    .home-page .site-header {
        position: relative;
        background: #101417;
    }

    .home-page .hero {
        min-height: 680px;
        padding-top: 70px;
    }

    .home-page .search-panel select {
        min-height: 44px;
        border-left: 0;
        border-top: 1px solid #ececec;
    }

    .home-feature-strip,
    .home-about,
    .home-gallery,
    .home-updates,
    .home-offers,
    .home-testimonials {
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-about,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .about-collage {
        grid-template-rows: 150px 128px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .home-page .hero {
        min-height: auto;
        align-items: start;
        padding-top: calc(42.85vw + 28px);
        padding-left: 18px;
        padding-right: 18px;
        background: #101417;
    }

    .home-page .hero-video {
        bottom: auto;
        height: 42.85vw;
        object-fit: contain;
        object-position: top center;
    }

    .home-page .hero-copy {
        width: 100%;
        min-width: 0;
    }

    .home-page .hero h1 {
        max-width: 330px;
        font-size: 36px;
        line-height: 1.05;
    }

    .home-page .hero-copy > p:not(.eyebrow) {
        max-width: 310px;
        font-size: 16px;
    }

    .home-page .hero-actions {
        justify-content: flex-start;
    }

    .home-feature-strip,
    .article-mini-grid,
    .offer-row,
    .about-points {
        grid-template-columns: 1fr;
    }

    .feature-tile {
        min-height: 190px;
    }

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

/* Mobile header drawer and responsive banner fixes. */
.menu-toggle,
.menu-close {
    display: none;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 98;
    display: none;
    background: rgba(6, 10, 18, .56);
    backdrop-filter: blur(2px);
}

.mobile-brand {
    display: none;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 1040px) {
    .site-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 14px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        justify-self: end;
        width: 46px;
        height: 46px;
        border: 1px solid rgba(255, 255, 255, .28);
        border-radius: 8px;
        background: rgba(255, 255, 255, .11);
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    }

    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 99px;
        background: currentColor;
        color: #fff;
    }

    body:not(.home-page) .menu-toggle {
        border-color: rgba(215, 25, 32, .18);
        background: #fff7f7;
        color: var(--red);
    }

    body:not(.home-page) .menu-toggle span {
        color: var(--red);
    }

    .mobile-menu-backdrop {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 99;
        display: flex;
        width: min(330px, 86vw);
        height: 100dvh;
        grid-column: auto;
        flex-direction: column;
        gap: 8px;
        padding: 24px 22px;
        overflow-y: auto;
        background: linear-gradient(180deg, #101417, #171d22);
        color: #fff;
        box-shadow: -26px 0 55px rgba(0, 0, 0, .35);
        transform: translateX(106%);
        transition: transform .28s ease;
    }

    .mobile-nav a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0 14px;
        border-radius: 8px;
        color: #fff;
        font-size: 16px;
        font-weight: 900;
    }

    .mobile-nav a.active,
    .mobile-nav a:hover {
        background: rgba(255, 201, 40, .16);
        color: var(--yellow);
        box-shadow: none;
    }

    .mobile-brand {
        display: inline-flex;
        width: fit-content;
        margin-bottom: 18px;
        padding: 0;
        min-height: auto;
    }

    .mobile-brand .brand-logo {
        height: 60px;
    }

    .menu-close {
        position: absolute;
        top: 18px;
        right: 18px;
        display: inline-grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255, 255, 255, .22);
        border-radius: 50%;
        background: rgba(255, 255, 255, .08);
        color: #fff;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    body.menu-open .mobile-menu-backdrop {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open .mobile-nav {
        transform: translateX(0);
    }
}

@media (max-width: 560px) {
    .site-header,
    .home-page .site-header {
        position: sticky;
        top: 0;
        min-height: 78px;
        padding: 10px 18px;
        background: rgba(255, 255, 255, .98);
        border-bottom: 1px solid rgba(0, 0, 0, .08);
        box-shadow: 0 8px 24px rgba(13, 18, 28, .08);
    }

    .brand {
        min-width: 0;
    }

    .brand-logo {
        height: 58px;
    }

    .home-page .menu-toggle,
    .menu-toggle {
        border-color: rgba(15, 23, 42, .16);
        background: #fff;
        color: #101417;
        box-shadow: 0 8px 20px rgba(13, 18, 28, .10);
    }

    .home-page .menu-toggle span,
    .menu-toggle span {
        color: #101417;
    }

    .home-page .hero {
        display: grid;
        min-height: auto;
        padding: calc(min(56.5vw, 242px) + 18px) 18px 44px;
        align-items: start;
        border-bottom-width: 6px;
        background: #fff;
    }

    .home-page .hero-video {
        top: 0;
        bottom: auto;
        width: 100%;
        height: min(56.5vw, 242px);
        object-fit: contain;
        object-position: top center;
        background: #fff;
    }

    .home-page .hero::after {
        inset: 0;
        background: none;
    }

    .home-page .hero-copy {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 18px;
        border-left: 4px solid var(--yellow);
        border-radius: 8px;
        background: linear-gradient(135deg, rgba(12, 18, 29, .92), rgba(12, 18, 29, .78));
        box-shadow: 0 18px 38px rgba(0, 0, 0, .34);
    }

    .home-page .hero .eyebrow {
        max-width: 100%;
        margin-bottom: 12px;
        padding: 7px 10px;
        font-size: 11px;
        line-height: 1.2;
        white-space: normal;
    }

    .home-page .hero .eyebrow::before {
        width: 18px;
        flex: 0 0 auto;
    }

    .home-page .hero h1 {
        max-width: none;
        font-size: clamp(34px, 11vw, 46px);
        line-height: 1.02;
        color: #101417;
        text-shadow: 0 2px 0 rgba(255, 255, 255, .95), 0 8px 24px rgba(0, 0, 0, .20);
    }

    .home-page .hero-copy > p:not(.eyebrow) {
        max-width: none;
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.55;
        color: #243142;
        text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 6px 18px rgba(0, 0, 0, .12);
    }

    .home-page .hero-pagination {
        position: relative;
        bottom: auto;
        margin-top: 36px;
    }
}

/* Responsive feature cards: final priority. */
.feature-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.feature-tile {
    min-width: 0;
    min-height: clamp(390px, 31vw, 520px);
}

.feature-content {
    min-width: 0;
}

.feature-tile strong,
.feature-text,
.feature-cta span {
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .home-feature-strip {
        padding-left: clamp(22px, 5vw, 72px);
        padding-right: clamp(22px, 5vw, 72px);
    }

    .feature-card-grid {
        max-width: 1040px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-tile {
        min-height: 430px;
    }
}

@media (max-width: 760px) {
    .home-feature-strip {
        padding-top: 34px;
        padding-left: 18px;
        padding-right: 18px;
    }

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

    .feature-tile {
        min-height: 420px;
        padding: 24px;
    }

    .feature-tile strong {
        font-size: clamp(30px, 8vw, 40px);
    }

    .feature-text {
        max-width: none;
        font-size: 16px;
    }

    .feature-benefits {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 10px 16px;
    }

    .benefit-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 14px 6px;
    }

    .benefit-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 420px) {
    .feature-tile {
        min-height: 380px;
        padding: 20px;
    }

    .feature-badge {
        min-height: 30px;
        padding: 0 14px;
        font-size: 12px;
    }

    .feature-content {
        gap: 11px;
    }

    .feature-tile strong {
        font-size: 29px;
        line-height: 1.04;
    }

    .feature-rule {
        width: 54px;
    }

    .feature-cta {
        min-height: 50px;
        padding-left: 20px;
        font-size: 14px;
    }

    .feature-arrow {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}

/* Final responsive card layout. */
.feature-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.feature-tile {
    min-width: 0;
    min-height: clamp(390px, 31vw, 520px);
}

.feature-content {
    min-width: 0;
}

.feature-tile strong,
.feature-text,
.feature-cta span {
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .home-feature-strip {
        padding-left: clamp(22px, 5vw, 72px);
        padding-right: clamp(22px, 5vw, 72px);
    }

    .feature-card-grid {
        max-width: 1040px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-tile {
        min-height: 430px;
    }
}

@media (max-width: 760px) {
    .home-feature-strip {
        padding-top: 34px;
        padding-left: 18px;
        padding-right: 18px;
    }

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

    .feature-tile {
        min-height: 420px;
        padding: 24px;
    }

    .feature-tile strong {
        font-size: clamp(30px, 8vw, 40px);
    }

    .feature-text {
        max-width: none;
        font-size: 16px;
    }

    .feature-benefits {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 10px 16px;
    }

    .benefit-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 14px 6px;
    }

    .benefit-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 420px) {
    .feature-tile {
        min-height: 380px;
        padding: 20px;
    }

    .feature-badge {
        min-height: 30px;
        padding: 0 14px;
        font-size: 12px;
    }

    .feature-content {
        gap: 11px;
    }

    .feature-tile strong {
        font-size: 29px;
        line-height: 1.04;
    }

    .feature-rule {
        width: 54px;
    }

    .feature-cta {
        min-height: 50px;
        padding-left: 20px;
        font-size: 14px;
    }

    .feature-arrow {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}

/* Typography system: Outfit headings + Inter body. */
.hero h1,
.page-hero h1,
.topic-detail-copy h1,
.home-page .hero h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0;
}

.about-copy h2,
.center-heading h2,
.section-heading h2,
.cta-band h2,
.text-block h2,
.gallery-heading h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0;
}

.article-mini-card h3,
.offer-card h3,
.feature-tile strong,
.testimonial-grid h3,
.topic-card h3,
.directory-card h3,
.entry-content h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0;
}

p,
li,
small,
input,
select,
textarea,
.feature-text,
.about-copy > p,
.gallery-heading > p,
.article-mini-card p,
.offer-card p,
.testimonial-grid p,
.site-footer p {
    font-family: var(--font-body);
}

button,
.primary-button,
.secondary-button,
.outline-button,
.text-link,
.about-cta,
.feature-cta,
.desktop-nav a,
.mobile-nav a {
    font-family: var(--font-body);
    font-weight: 700;
}

.hero-copy > p:not(.eyebrow),
.page-hero p:not(.eyebrow),
.center-heading p,
.about-copy > p:not(.section-kicker) {
    font-weight: 400;
}

/* Home page polish overrides for the current home markup. */
.home-page .hero::after {
    background:
        linear-gradient(90deg, rgba(4, 9, 18, .72) 0%, rgba(4, 9, 18, .48) 34%, rgba(4, 9, 18, .12) 72%, rgba(4, 9, 18, 0) 100%),
        radial-gradient(circle at 27% 52%, rgba(0, 0, 0, .52), rgba(0, 0, 0, 0) 42%);
}

.home-page .hero-copy {
    width: min(720px, 100%);
    max-width: 720px;
    padding: clamp(10px, 2vw, 18px) 0 clamp(10px, 2vw, 18px) clamp(20px, 2.4vw, 28px);
    border-left: 6px solid var(--yellow);
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.home-page .hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 6px;
    background: rgba(255, 201, 40, .16);
    color: #ffe37b;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .42);
}

.home-page .hero .eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: currentColor;
}

.home-page .hero h1 {
    max-width: 680px;
    font-size: clamp(46px, 6vw, 78px);
    line-height: .98;
    text-shadow:
        0 4px 0 rgba(0, 0, 0, .18),
        0 8px 28px rgba(0, 0, 0, .88),
        0 0 42px rgba(0, 0, 0, .58);
}

.home-page .hero-copy > p:not(.eyebrow) {
    max-width: 650px;
    color: rgba(255, 255, 255, .95);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, .92),
        0 6px 24px rgba(0, 0, 0, .82);
}

.home-feature-strip {
    display: block;
    padding-top: clamp(42px, 6vw, 76px);
    padding-bottom: clamp(38px, 5vw, 58px);
    background: linear-gradient(180deg, #fff, #fff7f7 68%, #fff);
}

.feature-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    max-width: 1480px;
    margin: 0 auto;
}

.feature-tile {
    min-height: clamp(360px, 32vw, 520px);
    align-items: stretch;
    justify-content: space-between;
    padding: clamp(22px, 2.6vw, 34px);
    border: 1px solid rgba(255, 255, 255, .22);
    background:
        linear-gradient(180deg, #d9d9d9, #2d2d2d);
    box-shadow: 0 22px 44px rgba(13, 18, 28, .20);
}

.feature-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .12) 35%, rgba(0, 0, 0, .88) 100%),
        radial-gradient(circle at 50% 55%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .42) 78%);
    pointer-events: none;
}

.feature-tile-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    transition: transform .3s ease;
}

.feature-tile:hover .feature-tile-image {
    transform: scale(1.06);
}

.feature-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .20);
}

.theme-red .feature-badge,
.theme-red .feature-arrow {
    background: #ff3e4e;
}

.theme-orange .feature-badge,
.theme-orange .feature-arrow {
    background: #ff970f;
}

.theme-purple .feature-badge,
.theme-purple .feature-arrow {
    background: #8f3bd5;
}

.theme-blue .feature-badge,
.theme-blue .feature-arrow {
    background: #1685df;
}

.feature-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    text-align: left;
}

.feature-tile strong {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.02;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .55);
}

.feature-rule {
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
}

.feature-text {
    max-width: 330px;
    color: rgba(255, 255, 255, .92);
    font-size: 17px;
    line-height: 1.55;
}

.feature-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    margin-top: 4px;
    padding: 7px 8px 7px 28px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(0, 0, 0, .22);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.feature-arrow {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
}

.feature-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    max-width: 980px;
    margin: clamp(28px, 4vw, 46px) auto 0;
    padding: 18px 24px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 44px rgba(13, 18, 28, .10);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 4px 18px;
    border-right: 1px solid var(--line);
}

.benefit-item:last-child {
    border-right: 0;
}

.benefit-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fff0f0;
    color: var(--red);
    font-weight: 900;
}

.benefit-item strong,
.benefit-item small {
    display: block;
}

.benefit-item strong {
    line-height: 1.2;
}

.benefit-item small {
    margin-top: 2px;
    color: #6d7280;
    line-height: 1.3;
}

.home-about {
    position: relative;
    grid-template-columns: minmax(320px, .78fr) minmax(420px, 1.05fr);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 247, 247, .78)),
        radial-gradient(circle at 85% 25%, rgba(215, 25, 32, .08), transparent 34%);
}

.about-copy h2 {
    font-size: clamp(40px, 4.5vw, 62px);
}

.about-copy > p:not(.section-kicker) {
    color: #4b5565;
    font-size: 18px;
    line-height: 1.65;
}

.about-points span {
    min-height: 142px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 34px rgba(13, 18, 28, .07);
}

.about-points i {
    font-style: normal;
    font-size: 30px;
    line-height: 1;
}

.about-points strong,
.about-points small {
    color: #111827;
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 54px;
    margin-top: 28px;
    padding: 0 22px 0 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--red), #ff3b4a);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(215, 25, 32, .28);
}

.about-cta b {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 50%;
}

.about-collage {
    display: block;
    min-height: 0;
}

.about-collage img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 30px 70px rgba(13, 18, 28, .14);
}

.about-trust-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    max-width: 1040px;
    width: 82%;
    margin: 8px auto 0;
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 18px 48px rgba(13, 18, 28, .10);
}

.about-trust-strip div {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 4px 18px;
    border-right: 1px solid var(--line);
}

.about-trust-strip div:last-child {
    border-right: 0;
}

.about-trust-strip span {
    grid-row: span 2;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffe4e6;
    color: var(--red);
    font-weight: 900;
}

.about-trust-strip strong,
.about-trust-strip small {
    display: block;
}

.about-trust-strip small {
    color: #6d7280;
}

.metro-marquee {
    position: relative;
    overflow: hidden;
    height: clamp(78px, 8vw, 128px);
    margin: -18px 0 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 26%, #fff 74%, rgba(255, 255, 255, 0)),
        linear-gradient(90deg, transparent, rgba(215, 25, 32, .14), transparent);
}

.metro-track {
    position: absolute;
    top: 50%;
    left: 0;
    display: flex;
    width: max-content;
    transform: translate3d(-50%, -50%, 0);
    animation: metro-slide 34s linear infinite;
}

.metro-track img {
    display: block;
    width: min(720px, 58vw);
    height: auto;
    flex: 0 0 auto;
    margin-right: 12px;
    filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .14));
}

@keyframes metro-slide {
    from {
        transform: translate3d(-50%, -50%, 0);
    }

    to {
        transform: translate3d(0, -50%, 0);
    }
}

.home-gallery {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 12%, rgba(215, 25, 32, .06), transparent 24%),
        radial-gradient(circle at 86% 86%, rgba(255, 201, 40, .10), transparent 28%),
        #fff;
}

.gallery-heading h2 {
    font-size: clamp(42px, 5vw, 68px);
}

.gallery-heading h2 span {
    color: var(--red);
}

.gallery-heading > p:last-child {
    color: #5b6472;
    font-size: 18px;
}

.gallery-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 28px;
    max-width: 720px;
    margin: 0 auto 24px;
}

.gallery-stat {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    min-height: 58px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 24px rgba(13, 18, 28, .08);
}

.gallery-stat span {
    grid-row: span 2;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffe7e8;
}

.gallery-stat span::before {
    content: "";
    width: 11px;
    height: 11px;
    border: 3px solid var(--red);
    border-radius: 50%;
}

.gallery-stat strong {
    font-size: 20px;
    line-height: 1;
}

.gallery-stat small {
    color: #4b5565;
    line-height: 1.1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 112px;
    grid-auto-flow: dense;
    gap: 14px;
    max-width: 1480px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 26px rgba(13, 18, 28, .16);
}

.gallery-grid img:nth-child(1) {
    grid-column: span 3;
    grid-row: span 3;
}

.gallery-grid img:nth-child(2) {
    grid-column: span 5;
    grid-row: span 2;
}

.gallery-grid img:nth-child(3) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-grid img:nth-child(4) {
    grid-column: span 2;
    grid-row: span 3;
}

.gallery-grid img:nth-child(5) {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-grid img:nth-child(6) {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery-grid img:nth-child(7),
.gallery-grid img:nth-child(11) {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-grid img:nth-child(8) {
    grid-column: span 3;
    grid-row: span 3;
}

.gallery-grid img:nth-child(9) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-grid img:nth-child(10) {
    grid-column: span 4;
    grid-row: span 3;
}

.gallery-grid img:nth-child(12) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-more {
    min-height: 56px;
    margin-top: 28px;
    padding: 0 34px;
    gap: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 14px 34px rgba(13, 18, 28, .10);
}

@media (max-width: 1180px) {
    .feature-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-tile {
        min-height: 420px;
    }

    .feature-benefits,
    .about-trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefit-item:nth-child(2),
    .about-trust-strip div:nth-child(2) {
        border-right: 0;
    }

    .gallery-grid {
        grid-auto-rows: 96px;
    }
}

@media (max-width: 820px) {
    .home-page .hero-copy {
        padding: 22px;
    }

    .home-about {
        grid-template-columns: 1fr;
    }

    .about-trust-strip {
        width: 100%;
    }

    .gallery-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: 92px;
    }

    .gallery-grid img:nth-child(n) {
        grid-column: span 3;
        grid-row: span 2;
    }

    .gallery-grid img:nth-child(1),
    .gallery-grid img:nth-child(4),
    .gallery-grid img:nth-child(12) {
        grid-row: span 3;
    }

    .gallery-grid img:nth-child(2),
    .gallery-grid img:nth-child(6),
    .gallery-grid img:nth-child(10) {
        grid-column: span 6;
    }
}

@media (max-width: 560px) {
    .home-page .hero {
        padding-top: calc(42.85vw + 22px);
        padding-bottom: 34px;
    }

    .home-page .hero-copy {
        border-left-width: 4px;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .home-page .hero h1 {
        max-width: none;
        font-size: 34px;
    }

    .feature-card-grid,
    .feature-benefits,
    .about-points,
    .about-trust-strip,
    .gallery-stats {
        grid-template-columns: 1fr;
    }

    .feature-tile {
        min-height: 360px;
    }

    .benefit-item,
    .about-trust-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .benefit-item:last-child,
    .about-trust-strip div:last-child {
        border-bottom: 0;
    }

    .metro-track img {
        width: 620px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 118px;
        gap: 10px;
    }

    .gallery-grid img:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-grid img:nth-child(1),
    .gallery-grid img:nth-child(4),
    .gallery-grid img:nth-child(12) {
        grid-row: span 2;
    }

    .gallery-grid img:nth-child(2),
    .gallery-grid img:nth-child(6),
    .gallery-grid img:nth-child(10) {
        grid-column: span 2;
    }
}

/* Final mobile overrides: keep drawer and banner above older responsive rules. */
@media (max-width: 1040px) {
    .site-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 99;
        display: flex;
        width: min(330px, 86vw);
        height: 100dvh;
        grid-column: auto;
        flex-direction: column;
        gap: 8px;
        padding: 24px 22px;
        overflow-y: auto;
        background: linear-gradient(180deg, #101417, #171d22);
        color: #fff;
        box-shadow: -26px 0 55px rgba(0, 0, 0, .35);
        transform: translateX(106%);
        transition: transform .28s ease;
    }

    body.menu-open .mobile-nav {
        transform: translateX(0);
    }

    body.menu-open .mobile-menu-backdrop {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 560px) {
    .site-header,
    .home-page .site-header {
        min-height: 78px;
        padding: 10px 18px;
    }

    .home-page .hero {
        min-height: auto;
        padding-top: calc(min(56.5vw, 242px) + 18px);
        padding-bottom: 44px;
        background: #fff;
    }

    .home-page .hero-video {
        top: 0;
        bottom: auto;
        height: min(56.5vw, 242px);
        object-fit: contain;
        object-position: top center;
        background: #fff;
    }

    .home-page .hero::after {
        background: none;
    }

    .home-page .hero-copy {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 18px;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .home-page .hero h1 {
        font-size: clamp(34px, 11vw, 46px);
        line-height: 1.02;
        color: #101417;
        text-shadow: 0 2px 0 rgba(255, 255, 255, .95), 0 8px 24px rgba(0, 0, 0, .20);
    }

    .home-page .hero-copy > p:not(.eyebrow) {
        color: #243142;
        text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 6px 18px rgba(0, 0, 0, .12);
    }

    .home-page .hero-pagination {
        position: relative;
        bottom: auto;
        margin-top: 36px;
    }
}
/* Responsive feature cards: final priority. */
.feature-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.feature-tile {
    min-width: 0;
    min-height: clamp(390px, 31vw, 520px);
}

.feature-content {
    min-width: 0;
}

.feature-tile strong,
.feature-text,
.feature-cta span {
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .home-feature-strip {
        padding-left: clamp(22px, 5vw, 72px);
        padding-right: clamp(22px, 5vw, 72px);
    }

    .feature-card-grid {
        max-width: 1040px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-tile {
        min-height: 430px;
    }
}

@media (max-width: 760px) {
    .home-feature-strip {
        padding-top: 34px;
        padding-left: 18px;
        padding-right: 18px;
    }

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

    .feature-tile {
        min-height: 420px;
        padding: 24px;
    }

    .feature-tile strong {
        font-size: clamp(30px, 8vw, 40px);
    }

    .feature-text {
        max-width: none;
        font-size: 16px;
    }

    .feature-benefits {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 10px 16px;
    }

    .benefit-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 14px 6px;
    }

    .benefit-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 420px) {
    .feature-tile {
        min-height: 380px;
        padding: 20px;
    }

    .feature-badge {
        min-height: 30px;
        padding: 0 14px;
        font-size: 12px;
    }

    .feature-content {
        gap: 11px;
    }

    .feature-tile strong {
        font-size: 29px;
        line-height: 1.04;
    }

    .feature-rule {
        width: 54px;
    }

    .feature-cta {
        min-height: 50px;
        padding-left: 20px;
        font-size: 14px;
    }

    .feature-arrow {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}
