@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Theme colors (--color-primary/--color-secondary/--color-button-bg/--color-button-text)
   are declared per-site in base.html's inline <style> block, via site_color() in
   app/services/theming.py (Site column, falling back to its SiteTheme column, falling
   back to a hardcoded default here of the real carsnearme.co brand palette: dark
   #1e222a, red #ea3538, yellow #ffc906). No :root block here - this file loads after
   that inline <style> in <head>, so a same-specificity :root rule here would always
   win the cascade and silently override every dynamic value, regardless of what's
   set in the DB. */

/* -------------------------------------------------------------------- */
/* Reset (ported from enginex-carsnearme.co assets/css/base/_carsnearme.scss) */
/* -------------------------------------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
    font-weight: 400;
}
body {
    line-height: 1;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
    color: #1f1f1f;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
    content: "";
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font-family: inherit;
}

.content-wrapper {
    max-width: 1472px;
    width: 100%;
    margin: auto;
    box-sizing: border-box;
}
@media (max-width: 1535px) {
    .content-wrapper { max-width: 1186px; }
}
@media (max-width: 920px) {
    .content-wrapper { width: 97%; }
}
@media (max-width: 765px) {
    .content-wrapper { width: 93%; }
}

article figure { overflow: hidden; }
article figure img { transition: all 0.2s ease; }
article:hover figure img { transform: scale(1.1); }

/* -------------------------------------------------------------------- */
/* Header */
/* -------------------------------------------------------------------- */
.header {
    position: relative;
    margin: auto;
    padding: 20px 0;
    background-color: #1e222a;
}
@media (max-width: 1535px) {
    .header { padding: 25px 0; }
}
.header .header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.header .hamburger {
    width: 30px;
    height: 22px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.header .hamburger span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    display: block;
}
.header-logo {
    width: 200px;
    margin: auto;
}
@media (max-width: 1535px) {
    .header-logo { width: 170px; }
}
@media (max-width: 765px) {
    .header-logo { margin: 0; width: 150px; }
}
.header-logo img { width: 100%; display: block; }
.header .search-icon {
    width: 30px;
    cursor: pointer;
}
@media (max-width: 1535px) {
    .header .search-icon { width: 24px; }
}
.header .search-icon img { width: 100%; }

/* inner (non-hero) pages get a plain dark header bar with the search form */
.header-inner .header-form {
    position: relative;
}
.header-inner .header-form form {
    position: relative;
    display: flex;
    align-items: center;
}
.header-inner .header-form input {
    display: none;
    width: 220px;
    max-width: 60vw;
    height: 40px;
    border: none;
    border-radius: 20px;
    padding: 0 45px 0 18px;
    font-size: 13px;
    color: #333;
    background: #fff;
}
.header-inner .header-form input.active { display: block; }
@media (max-width: 765px) {
    .header-inner .header-form input { width: 150px; }
}
.header-inner .header-form button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: var(--color-button-bg, #ea3538);
    color: #fff;
    cursor: pointer;
}

.header-content {
    color: white;
    background-color: #1b2130;
    padding: 60px 0;
    text-align: center;
}
@media (max-width: 1535px) {
    .header-content { padding: 40px 0; }
}
.header-content .purpose {
    font-size: 27px;
    display: block;
    text-align: center;
    margin-top: 10px;
}
@media (max-width: 1535px) {
    .header-content .purpose { font-size: 22px; }
}
@media (max-width: 920px) {
    .header-content .purpose { font-size: 18px; }
}
@media (max-width: 765px) {
    .header-content .purpose { font-size: 20px; width: 80%; margin: 10px auto; line-height: 1.3; }
}
.header-content .heading {
    font-weight: 700;
    margin-top: 10px;
    position: relative;
    display: block;
    font-size: 61px;
    text-align: center;
}
@media (max-width: 1535px) {
    .header-content .heading { font-size: 45px; }
}
@media (max-width: 920px) {
    .header-content .heading { font-size: 42px; }
}
@media (max-width: 765px) {
    .header-content .heading { width: 90%; margin: 10px auto; }
}

/* -------------------------------------------------------------------- */
/* Hero (full-viewport) */
/* -------------------------------------------------------------------- */
.hero-sec {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #1e222a;
    height: 100vh;
}
.hero-sec .header { background: none; }
@media (max-width: 925px) {
    .hero-sec { height: 55vh; }
}
@media (max-width: 765px) {
    .hero-sec { height: 100vh; background-position: calc(75% - 20%); }
}
.hero-sec .content-wrapper {
    height: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 765px) {
    .hero-sec .content-wrapper { width: 100%; justify-content: space-between; height: fit-content; top: 14%;
        position: relative;
    }
    .hero-sec .content-wrapper {
        padding: 0px 15px;
    }
}
.hero-sec h1 {
    text-align: center;
    font-size: 61px;
    width: 85%;
    margin: auto;
    color: white;
    font-weight: 700;
    line-height: 75px;
    text-transform: uppercase;
}
@media (max-width: 1535px) {
    .hero-sec h1 { font-size: 42px; width: 90%; line-height: 48px; }
}
@media (max-width: 765px) {
    .hero-sec h1 { font-size: 42px; width: 100%; }
}
@media (max-width: 365px) {
    .hero-sec h1 { font-size: 35px; width: 90%; line-height: 38px; }
}
.hero-sec .know-more {
    display: block;
    margin: auto;
    width: fit-content;
    border: 2px solid white;
    padding: 25px 30px;
    font-size: 29px;
    color: white;
    margin-top: 20px;
    letter-spacing: 12px;
    font-weight: 700;
    border-radius: 10px;
}
@media (max-width: 1535px) {
    .hero-sec .know-more { font-size: 18px; padding: 12px 20px; font-weight: 500; letter-spacing: 5px; }
}

/* -------------------------------------------------------------------- */
/* Spotlight */
/* -------------------------------------------------------------------- */
.spotlight-sec { background-color: #464c5a; }
@media (max-width: 412px) {
    .spotlight-sec { margin-top: 40px; }
}
@media (max-width: 765px) {
    .spotlight-sec .content-wrapper { width: 100%; }
    .spotlight-sec .header-content { width: 95%; margin: auto; }
}
.spotlight-sec .articles-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
@media (max-width: 765px) {
    .spotlight-sec .articles-list { flex-direction: column-reverse; }
}
.spotlight-sec .left-articles {
    flex: 0 0 42%;
    margin-right: 40px;
}
@media (max-width: 765px) {
    .spotlight-sec .left-articles { margin-right: 0; flex: 0 0 100%; width: 100%; padding: 0px 15px; }
}
.spotlight-sec .left-articles .right-small-content {
    margin-top: 40px;
    margin-bottom: 30px;
    display: none;
}
@media (max-width: 765px) {
    .spotlight-sec .left-articles .right-small-content { display: block; }
}
.spotlight-sec .left-articles .right-small-content h4 {
    font-size: 45px;
    font-weight: 600;
    color: white;
    text-align: center;
}
.spotlight-sec .left-articles .right-small-content .sub-heading {
    font-size: 15px;
    font-weight: 300;
    margin: 10px 0;
    color: white;
    text-align: center;
}
.spotlight-sec .left-articles a { width: 100%; display: block; }
.spotlight-sec .left-articles figure {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    height: 100%;
    display: flex;
    align-items: end;
    border-top-left-radius: 300px;
    border-bottom-right-radius: 300px;
}
@media (max-width: 1535px) {
    .spotlight-sec .left-articles figure { min-height: 90vh; border-top-left-radius: 230px; border-bottom-right-radius: 230px; }
}
@media (max-width: 920px) {
    .spotlight-sec .left-articles figure { min-height: 45vh; border-top-left-radius: 180px; border-bottom-right-radius: 180px; }
}
@media (max-width: 765px) {
    .spotlight-sec .left-articles figure { width: 100%; flex: 0 0 100%; min-height: 70vh; margin-top: 10px; }
}
.spotlight-sec .right-articles {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (max-width: 765px) {
    .spotlight-sec .right-articles { margin-top: 25px; }
}
.spotlight-sec .right-articles article { display: flex; align-items: center; height: 100%; }
@media (max-width: 765px) {
    .spotlight-sec .right-articles article { margin-bottom: 20px; }
}
.spotlight-sec .right-articles .content {
    height: fit-content;
    margin: 80px 0px;
    color: white;
}
@media (max-width: 1535px) {
    .spotlight-sec .right-articles .content { margin: 0 80px; }
}
@media (max-width: 920px) {
    .spotlight-sec .right-articles .content { margin: 30px; }
}
@media (max-width: 765px) {
    .spotlight-sec .right-articles .content { margin: 15px; }
}
.spotlight-sec .right-articles .content h4 { font-size: 61px; font-weight: 600; }
@media (max-width: 1535px) {
    .spotlight-sec .right-articles .content h4 { font-size: 48px; }
}
@media (max-width: 765px) {
    .spotlight-sec .right-articles .content h4 { display: none; }
}
.spotlight-sec .right-articles .content h5 {
    font-size: 61px;
    line-height: 64px;
    margin-top: 20px;
    font-weight: 500;
    width: 85%;
}
@media (max-width: 1535px) {
    .spotlight-sec .right-articles .content h5 { font-size: 36px; line-height: 42px; margin: 40px 0; width: 100%; }
}
@media (max-width: 920px) {
    .spotlight-sec .right-articles .content h5 { font-size: 26px; line-height: 30px; margin: 20px 0; }
}
@media (max-width: 765px) {
    .spotlight-sec .right-articles .content h5 { font-size: 50px; line-height: 55px; margin-top: 0; font-size: 36px; line-height: 46px;}
    .latest-stories-sec .slick-prev:before{
        transform: rotate(180deg);
    }
}
@media (max-width: 365px) {
    .spotlight-sec .right-articles .content h5 { font-size: 35px; line-height: 38px; }
}
.spotlight-sec .right-articles .content p {
    font-size: 27px;
    margin: 40px 0;
    font-weight: 300;
    line-height: 1.3;
    width: 90%;
}
@media (max-width: 1536px) {
    .spotlight-sec .right-articles .content p { font-size: 18px; margin: 20px 0; width: 100%; }
}
@media (max-width: 920px) {
    .spotlight-sec .right-articles .content p { margin: 10px 0; font-size: 16px; }
}
@media (max-width: 765px) {
    .spotlight-sec .right-articles .content p { font-size: 27px; margin-top: 20px; }
}
@media (max-width: 365px) {
    .spotlight-sec .right-articles .content p { font-size: 18px; }
}
.spotlight-sec .right-articles .content .sub-heading {
    font-size: 27px;
    font-weight: 300;
    margin: 10px 0;
}
@media (max-width: 1535px) {
    .spotlight-sec .right-articles .content .sub-heading { font-size: 18px; }
}
@media (max-width: 920px) {
    .spotlight-sec .right-articles .content .sub-heading { font-size: 14px; margin-top: 10px; display: block; }
}
@media (max-width: 765px) {
    .spotlight-sec .right-articles .content .sub-heading { display: none; }
}
.spotlight-sec .right-articles .content .read-more-btn {
    border: 2px solid white;
    width: fit-content;
    padding: 20px;
    margin-top: 25px;
    letter-spacing: 10px;
    text-transform: uppercase;
    font-size: 29px;
    color: white;
    font-weight: 700;
    border-radius: 15px;
    display: block;
}
@media (max-width: 1536px) {
    .spotlight-sec .right-articles .content .read-more-btn { font-size: 18px; padding: 14px 20px; letter-spacing: 3px; font-weight: 500; margin-top: 30px; }
}
@media (max-width: 920px) {
    .spotlight-sec .right-articles .content .read-more-btn { font-size: 20px; }
}
@media (max-width: 765px) {
    .spotlight-sec .right-articles .content .read-more-btn { font-size: 25px; margin: auto; margin-top: 40px; }
}
@media (max-width: 365px) {
    .spotlight-sec .right-articles .content .read-more-btn { font-size: 20px; }
}

/* -------------------------------------------------------------------- */
/* Latest stories carousel (also reused for "bottom-latest-sec" / "Read Next") */
/* -------------------------------------------------------------------- */
.latest-stories-sec {
    background-color: #252b39;
    padding: 30px 0 60px;
}
@media (max-width: 920px) {
    .latest-stories-sec { padding-bottom: 100px; }
}
.latest-stories-sec .carousel {
    width: 100%;
    margin: 80px auto 0;
    position: relative;
}
.latest-stories-sec .carousel article {
    margin: 0 35px;
}
@media (max-width: 1535px) {
    .latest-stories-sec .carousel article { margin: 0 20px; }
}
@media (max-width: 920px) {
    .latest-stories-sec .carousel article { margin: 0 10px; }
}
@media (max-width: 765px) {
    .latest-stories-sec .carousel article { width: 90%; }
}
.latest-stories-sec .carousel figure { height: 294px; }
@media (max-width: 1535px) {
    .latest-stories-sec .carousel figure { height: 240px; }
}
@media (max-width: 920px) {
    .latest-stories-sec .carousel figure { height: 200px; }
}
@media (max-width: 765px) {
    .latest-stories-sec .carousel figure { height: 270px; }
}
.latest-stories-sec .carousel figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.latest-stories-sec .carousel .content {
    min-height: 290px;
    background-color: #1b2130;
    position: relative;
    color: white;
    padding: 40px 20px;
    border: 1px solid rgba(128, 128, 128, 0.114);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
@media (max-width: 1536px) {
    .latest-stories-sec .carousel .content { min-height: 240px; }
}
@media (max-width: 920px) {
    .latest-stories-sec .carousel .content { min-height: 235px; padding: 25px 15px; }
}
.latest-stories-sec .carousel .content h4 {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
@media (max-width: 1535px) {
    .latest-stories-sec .carousel .content h4 { font-size: 24px; line-height: 26px; }
}
@media (max-width: 920px) {
    .latest-stories-sec .carousel .content h4 { font-size: 18px; }
}
@media (max-width: 765px) {
    .latest-stories-sec .carousel .content h4 { font-size: 32px; line-height: 38px; }
}
.latest-stories-sec .carousel .content p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 17px;
    line-height: 22px;
    margin: 24px 0;
}
@media (max-width: 920px) {
    .latest-stories-sec .carousel .content p { font-size: 14px; margin: 10px 0; }
}
@media (max-width: 765px) {
    .latest-stories-sec .carousel .content p { font-size: 17px; line-height: 22px; margin-top: 20px; }
}
.latest-stories-sec .carousel .content .read-more-btn {
    border: 2px solid white;
    width: fit-content;
    padding: 20px 40px;
    margin-top: 25px;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-size: 16px;
    color: white;
    font-weight: 700;
    border-radius: 15px;
    display: inline-block;
}
@media (max-width: 1536px) {
    .latest-stories-sec .carousel .content .read-more-btn { font-size: 16px; padding: 12px 20px; font-weight: 600; letter-spacing: 4px; border-radius: 10px; }
}
@media (max-width: 920px) {
    .latest-stories-sec .carousel .content .read-more-btn { font-size: 13px; }
}
.latest-stories-sec .slick-prev, .latest-stories-sec .slick-next {
    transform: none;
    margin-top: -10px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    top: 48%;
}
.latest-stories-sec .slick-prev { left: -10%; }
.latest-stories-sec .slick-next { right: -10%; }
@media (max-width: 1535px) {
    .latest-stories-sec .slick-prev { left: -7%; }
    .latest-stories-sec .slick-next { right: -7%; }
}
@media (max-width: 920px) {
    .latest-stories-sec .slick-prev { left: 20%; top: 108%; }
    .latest-stories-sec .slick-next { right: 20%; top: 108%; }
}
@media (max-width: 765px) {
    .latest-stories-sec .slick-prev { left: 38%; }
    .latest-stories-sec .slick-next { right: 38%; }
}
.latest-stories-sec .slick-next:before, .latest-stories-sec .slick-prev:before {
    content: "" !important;
    background: url('../images/nav-right-middle.png') no-repeat;
    border-radius: 50%;
    background-position: center;
    background-size: cover;
    width: 70px;
    height: 70px;
    position: absolute;
}
@media (max-width: 1535px) {
    .latest-stories-sec .slick-next:before, .latest-stories-sec .slick-prev:before { width: 38px; height: 38px; }
}
.latest-stories-sec .slick-list { padding: 0 !important; }

.bottom-latest-sec { padding-top: 0; }
.bottom-latest-sec .header-content { background-color: #3c414b; }
.bottom-latest-sec .content-wrapper .read-more-btn {
    border: 2px solid white;
    width: fit-content;
    padding: 20px 40px;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 60px auto 0;
    font-size: 16px;
    color: white;
    font-weight: 700;
    border-radius: 15px;
    display: block;
}
@media (max-width: 920px) {
    .bottom-latest-sec .content-wrapper .carousel article figure { height: 300px; }
    .bottom-latest-sec .content-wrapper .carousel .slick-next,
    .bottom-latest-sec .content-wrapper .carousel .slick-prev { display: none !important; }
}

/* -------------------------------------------------------------------- */
/* In Focus grid */
/* -------------------------------------------------------------------- */
.featured-articles-sec .header-content { background-color: #1e222a; }
.featured-articles-sec .articles-list {
    background-color: #1e222a;
    padding-bottom: 80px;
}
.featured-articles-sec .articles-list .content-wrapper {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 1536px) {
    .featured-articles-sec .articles-list .content-wrapper { padding: 20px 0; grid-gap: 20px; }
}
@media (max-width: 765px) {
    .featured-articles-sec .articles-list .content-wrapper { grid-template-columns: 1fr; }
    .featured-articles-sec > .carousel { background-color: #878787; display: block; }
}
.featured-articles-sec .articles-list article figure {
    height: 294px;
    border-radius: 25px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: end;
}
@media (max-width: 1535px) {
    .featured-articles-sec .articles-list article figure { height: 240px; }
}
@media (max-width: 920px) {
    .featured-articles-sec .articles-list article figure { height: 200px; }
}
.featured-articles-sec .articles-list article h5 {
    font-size: 32px;
    font-weight: 600;
    line-height: 38px;
    display: -webkit-box;
    overflow: hidden;
    color: white;
    width: 90%;
    margin-left: 20px;
    margin-bottom: 20px;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
@media (max-width: 1535px) {
    .featured-articles-sec .articles-list article h5 { font-size: 24px; line-height: 26px; }
}
@media (max-width: 765px) {
    .featured-articles-sec .articles-list article h5 { font-size: 18px; line-height: 22px; }
}
.featured-articles-sec > .carousel {
    width: 92%;
    margin: 40px auto 0;
    position: relative;
    display: none;
}
@media (max-width: 765px) {
    .featured-articles-sec > .carousel { display: block; }
}
.featured-articles-sec > .carousel figure { height: 294px; }
@media (max-width: 1535px) {
    .featured-articles-sec > .carousel figure { height: 240px; }
}
.featured-articles-sec > .carousel figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.featured-articles-sec > .carousel .content {
    min-height: 270px;
    background-color: #ededed;
    position: relative;
    padding: 40px 20px;
    border: 1px solid rgba(128, 128, 128, 0.114);
    box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
}
.featured-articles-sec > .carousel .content h4 {
    font-size: 41px;
    font-weight: 400;
    line-height: 46px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.featured-articles-sec > .carousel .content .read-more-btn {
    border: 2px solid #000;
    width: fit-content;
    padding: 10px 20px;
    text-transform: uppercase;
    margin-top: 25px;
    letter-spacing: 4px;
    font-size: 20px;
    display: inline-block;
}
.featured-articles-sec > .carousel .slick-next:before,
.featured-articles-sec > .carousel .slick-prev:before {
    content: "" !important;
    background: url('../images/nav-right-middle.png') no-repeat, linear-gradient(#ffc906);
    border-radius: 50%;
    background-position: center;
    background-size: cover;
    width: 45px;
    height: 45px;
    position: absolute;
}
.featured-articles-sec > .carousel .slick-prev:before {
    background: url('../images/nav-left-middle.png') no-repeat, linear-gradient(#ffc906);
    background-position: center;
    background-size: cover;
}

/* -------------------------------------------------------------------- */
/* Home form (bottom search prompt) */
/* -------------------------------------------------------------------- */
.home-form-sec {
    padding: 100px 0 50px;
    background-color: #1e222a;
    text-align: center;
}
.home-form-sec h2 {
    font-size: 31px;
    color: white;
}
@media (max-width: 1535px) {
    .home-form-sec h2 { font-size: 26px; }
}
@media (max-width: 765px) {
    .home-form-sec h2 { font-size: 19px; }
}
.home-form-sec form {
    width: 60%;
    margin: 20px auto 0;
    border: 1px solid #000;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: 10px;
}
@media (max-width: 765px) {
    .home-form-sec form { width: 90%; }
}
.home-form-sec form input {
    display: block;
    width: 95%;
    outline: none;
    border: none;
    font-size: 15px;
}
.home-form-sec form button {
    background: none;
    outline: none;
    border: none;
    display: block;
    cursor: pointer;
}
.home-form-sec form button img { width: 32px; }
@media (max-width: 1535px) {
    .home-form-sec form button img { width: 24px; }
}
.home-form-sec span {
    display: block;
    width: 65%;
    margin: 80px auto 0;
    text-align: center;
    font-size: 21px;
    line-height: 1.3;
    color: white;
}
@media (max-width: 1535px) {
    .home-form-sec span { font-size: 18px; margin-top: 40px; width: 80%; }
}
.home-form-sec span a { display: inline-block; font-weight: 700; color: white; }
.home-form-sec .line {
    width: 48%;
    margin: 30px auto 0;
    border-bottom: 2px solid white;
}

/* -------------------------------------------------------------------- */
/* Footer */
/* -------------------------------------------------------------------- */
.footer-section {
    background-color: #3c414b;
    padding: 25px 0;
    text-align: center;
}
.footer-section .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}
.footer-section .footer-links a {
    color: white;
    font-size: 14px;
    white-space: nowrap;
}
.footer-section .footer-links a:hover { color: var(--color-secondary, #ffc906); }
.footer-section .footer-logo { width: 90px; margin: 0 auto 15px; display: block; }
.footer-section .footer-copy {
    max-width: 700px;
    margin: 0 auto;
    color: #cfcfcf;
    font-size: 13px;
    line-height: 1.5;
}
.footer-section .footer-copy a { color: white; font-weight: 600; }

/* -------------------------------------------------------------------- */
/* Single article */
/* -------------------------------------------------------------------- */
.article-sec-content { margin-top: 30px; }
.article-sec-content .content-wrapper { width: 60%; margin: auto; }
@media (max-width: 765px) {
    .article-sec-content .content-wrapper { width: 95%; }
}
.article-sec-content .title-heading {
    font-size: 55px;
    margin: auto;
    font-weight: 700;
    width: 90%;
    text-align: center;
    line-height: 64px;
    color: #1f1f1f;
}
@media (max-width: 1535px) {
    .article-sec-content .title-heading { font-size: 42px; line-height: 48px; }
}
@media (max-width: 765px) {
    .article-sec-content .title-heading { font-size: 41px; width: 100%; }
}
.article-sec-content .article-author {
    text-align: center;
    color: #6b6b6b;
    font-size: 14px;
    margin-top: 15px;
}
.article-sec-content figure { margin: 30px auto 0; }
@media (max-width: 765px) {
    .article-sec-content figure { height: 422px; width: 100%; }
}
.article-sec-content figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 765px) {
    .article-sec-content figure img { border-radius: 20px; }
}
.article-sec-content .article-body {
    font-size: 15px;
    color: #666;
}
.article-sec-content .article-body p {
    font-size: 23px;
    line-height: 40px;
    margin-top: 40px;
}
@media (max-width: 1535px) {
    .article-sec-content .article-body p { font-size: 19px; margin-top: 35px; line-height: 32px; }
}
.article-sec-content .article-body h2,
.article-sec-content .article-body h3,
.article-sec-content .article-body h4 {
    font-size: 30px;
    line-height: 40px;
    margin-top: 40px;
    font-weight: 400;
    color: #000;
}
@media (max-width: 1535px) {
    .article-sec-content .article-body h2,
    .article-sec-content .article-body h3,
    .article-sec-content .article-body h4 { font-size: 28px; margin-top: 25px; }
}
.article-sec-content .article-body h3 { font-size: 24px; }
.article-sec-content .article-body h4 { font-size: 20px; }
.article-sec-content .article-body ul {
    list-style: disc;
    list-style-position: inside;
    margin: 10px 0;
}
.article-sec-content .article-body li { margin: 10px 0 10px 20px; line-height: 1.3; }
.article-sec-content .article-body ol { list-style-type: decimal; }
.article-sec-content .article-body strong { font-weight: 600; }
.article-sec-content .article-body a {
    color: var(--color-primary, #ea3538);
    text-decoration: underline;
}

/* "Read Next" / "More Categories" (article detail bottom, reasonable addition -
   the reference twig didn't ship these blocks with real markup, this reuses the
   already-flattened latest-stories-sec carousel + a themed category chip row) */
.home-categories-sec {
    background-color: #1e222a;
    padding: 50px 0;
    text-align: center;
}
.home-categories-sec h2 {
    color: white;
    font-size: 26px;
    margin-bottom: 25px;
}
.home-categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.home-categories-item {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--color-secondary, #ffc906);
    border-radius: 30px;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.home-categories-item:hover {
    background-color: var(--color-secondary, #ffc906);
    color: #1e222a;
}

/* -------------------------------------------------------------------- */
/* Articles listing page (reasonable addition - articles.html.twig in the
   reference relies on the default clicksco theme's shopping-results-list
   styling rather than carrying carsnearme-specific CSS of its own, so this
   reuses the dark/red/yellow card language from the latest-stories carousel) */
/* -------------------------------------------------------------------- */
.articles-listing-header { padding: 50px 0; }
.articles-listing-sec {
    background-color: #252b39;
    padding: 50px 0 60px;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 1100px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .articles-grid { grid-template-columns: 1fr; }
}
.article-card {
    background-color: #1b2130;
    border: 1px solid rgba(128, 128, 128, 0.114);
    box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
}
.article-card figure { height: 220px; }
.article-card figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card .content { padding: 25px 20px; color: white; }
.article-card .content h4 {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.article-card .content p {
    font-size: 15px;
    line-height: 22px;
    margin: 15px 0;
    color: #cfcfcf;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.article-card .content .read-more-btn {
    display: inline-block;
    border: 2px solid var(--color-secondary, #ffc906);
    color: white;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 10px 20px;
    border-radius: 10px;
}
.no-articles-msg { color: white; text-align: center; padding: 40px 0; }

.pagination-articles {
    text-align: center;
    margin: 40px 0 0;
}
.pagination-articles a {
    display: inline-block;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 6px;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 14px;
}
.pagination-articles a.active,
.pagination-articles a:hover {
    background-color: var(--color-button-bg, #ea3538);
    border-color: var(--color-button-bg, #ea3538);
}

/* -------------------------------------------------------------------- */
/* Search results (query stub page) */
/* -------------------------------------------------------------------- */
.search-page-sec { padding: 50px 0; min-height: 50vh; }
.no-results-msg { text-align: center; color: #666; font-size: 16px; }
.shopping-results-list .search-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e8e8e8;
    margin-bottom: 12px;
}
.shopping-results-list .search-list-item__name a { color: var(--color-primary, #ea3538); font-size: 18px; font-weight: 600; }
.shopping-results-list .search-list-item__descr { color: #666; font-size: 14px; margin-top: 6px; }
.shopping-results-list .search-list-item__retailer a { color: #3ca3fa; font-size: 13px; }
.shopping-results-list .read-more-btn {
    flex-shrink: 0;
    background-color: var(--color-button-bg, #ea3538);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* -------------------------------------------------------------------- */
/* Yahoo top5 ad feed (hotspots-ads) */
/* -------------------------------------------------------------------- */
.hotspots-ads {
    margin-top: 30px;
    min-height: 78vh;
    padding-bottom: 60px;
}
.hotspots-ads .sponsored {
    font-size: 15px;
    margin-top: 25px;
    display: block;
    color: #666;
}
@media (max-width: 765px) {
    .hotspots-ads .sponsored { margin-top: 10px; }
}
.hotspots-ads .list-ads { margin-top: 20px; }
@media (max-width: 765px) {
    .hotspots-ads .list-ads { margin-top: 10px; }
}
.hotspots-ads .list-ads article {
    background-color: #f8f8f8;
    padding: 23px 45px 20px 23px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    transition: all 0.5s ease-in-out;
}
@media (max-width: 765px) {
    .hotspots-ads .list-ads article { flex-direction: column; align-items: start; padding: 10px; }
}
.hotspots-ads .list-ads .left-content { width: 85%; }
@media (max-width: 765px) {
    .hotspots-ads .list-ads .left-content { width: 100%; }
}
.hotspots-ads .list-ads .left-content h3 { font-size: 20px; color: #010101; font-weight: 700; }
.hotspots-ads .list-ads .left-content a { margin: 10px 0; color: #999; font-weight: 300; font-size: 14px; display: block; }
.hotspots-ads .list-ads .left-content p { color: #999; font-size: 14px; font-weight: 300; line-height: 1.5; }
.hotspots-ads .list-ads .right-content { flex-shrink: 0; }
@media (max-width: 765px) {
    .hotspots-ads .list-ads .right-content { margin-top: 20px; width: 100%; }
}
.hotspots-ads .list-ads .right-content a {
    background-color: var(--color-button-bg, #ea3538);
    width: 110px;
    padding: 10px 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-button-bg, #ea3538);
    font-weight: 600;
}
@media (max-width: 765px) {
    .hotspots-ads .list-ads .right-content a { width: 100%; }
}
.hotspots-ads .list-ads .right-content span { font-size: 18px; color: white; display: block; }
.hotspots-ads .list-ads article:hover { background: none; }
.hotspots-ads .list-ads article:hover .right-content a { background: none; }
.hotspots-ads .list-ads article:hover .right-content a span { color: var(--color-button-bg, #ea3538); }
.hotspots-ads .no-ads-msg { padding: 30px 0; color: #666; }

/* -------------------------------------------------------------------- */
/* Static content pages (about / contact / terms / privacy / cookies) */
/* -------------------------------------------------------------------- */
.about-wrapper, .contact-wrapper, .terms, .privacy, .cookie {
    min-height: 60vh;
    margin-top: 20px;
    padding: 40px 0;
}
.about-wrapper .about-subheader,
.contact-wrapper .about-subheader {
    color: var(--color-primary, #ea3538);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}
.about-wrapper h1, .contact-wrapper h1, .terms h1, .privacy h1, .cookie h1 {
    font-size: 35px;
    margin: 15px 0 20px;
    font-weight: 700;
}
.contact-wrapper h2, .terms h2, .privacy h2, .cookie h2 {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 8px;
    font-weight: 600;
}
.terms h3, .privacy h3, .cookie h3 { font-size: 20px; margin: 20px 0 10px; font-weight: 600; }
.about-wrapper p, .contact-wrapper p, .terms p, .privacy p, .cookie p {
    font-size: 16px;
    margin: 15px 0;
    line-height: 1.7;
}
.about-wrapper a, .contact-wrapper a, .terms a, .privacy a, .cookie a {
    color: var(--color-primary, #ea3538);
    text-decoration: underline;
}
.about-wrapper strong, .contact-wrapper strong, .terms strong, .privacy strong, .cookie strong { font-weight: 600; }
.terms ul, .privacy ul, .cookie ul {
    line-height: 1.5;
    margin: 15px 0 15px 20px;
}
.terms ul li, .privacy ul li, .cookie ul li { list-style-type: disc; margin-top: 8px; }
.contact-subheader { line-height: 1.6; }
.contact-btn, .contact-button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 30px;
    background-color: var(--color-button-bg, #ea3538);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 30px;
    font-weight: 600;
}
.contact-btn:hover, .contact-button:hover { background-color: var(--color-secondary, #ffc906); color: #1e222a !important; }

/* -------------------------------------------------------------------- */
/* Mobile menu */
/* -------------------------------------------------------------------- */
.mobile-menu {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    z-index: 100;
    top: 0;
    left: 0;
}
.mobile-menu.active { display: block; }
.mobile-menu-wrapper {
    background: #1e222a;
    width: 100%;
    max-width: 320px;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 50px 25px 0;
}
.mobile-menu-close {
    position: absolute;
    width: 30px;
    height: 30px;
    cursor: pointer;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 22px;
}
.mobile-menu-items { display: flex; flex-direction: column; }
.mobile-menu-items a {
    font-size: 16px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0;
}
.mobile-menu-items a:hover { color: var(--color-secondary, #ffc906); }
.latest-stories-sec{
    .carousel{
        display: flex;
        flex-wrap: wrap;
        @media (max-width: 767px) {
            row-gap: 30px;  
        }
        article{
            flex: 1;
        }
    }
}