/* Auto Offers Theme
   Ported from the enginex-autosoffers.co (autosoffers.co) Symfony/Twig
   reference site - assets/css/base/_autooffers.scss + settings/_colors.scss,
   flattened from SCSS nesting into plain CSS (no Sass build step in this
   Flask app). Yellow/black automotive-offers palette:
     yellow  #ffc906  (--color-primary)
     accent  #00b3e6  (--color-secondary)
     black   #000000  (--color-button-bg)

   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 the defaults set in this theme's base.html). 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. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Asap Condensed", "Poppins", sans-serif;
    color: #1f1f1f;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, a, input, button, label {
    font-family: inherit;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    font-style: normal;
}

ol, ul {
    list-style: none;
}

a {
    color: #000;
    text-decoration: none;
}

img {
    max-width: 100%;
}

p {
    font-size: 16px;
}

.full-container {
    width: 100%;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.content-wrapper {
    max-width: 1592px;
    width: 100%;
    margin: auto;
    box-sizing: border-box;
}
@media (max-width: 1535px) {
    .content-wrapper { max-width: 1126px; }
}
@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.06);
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.ao-header {
    background: #000;
    position: relative;
    z-index: 3;
}

.ao-header-top {
    padding: 22px 0;
}

.ao-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hamburger {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 5px;
    display: block;
}

.ao-header-row .logo a {
    display: block;
}
.ao-header-row .logo img {
    width: 240px;
    display: block;
}
@media (max-width: 767px) {
    .ao-header-row .logo img { width: 150px; }
}

.ao-header-search {
    background: var(--color-primary);
    padding: 22px 0;
}
.ao-header-search h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 18px;
}
@media (max-width: 767px) {
    .ao-header-search h2 { font-size: 18px; margin-bottom: 12px; }
}
.ao-header-search form {
    display: flex;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid #000;
    height: 56px;
}
@media (max-width: 767px) {
    .ao-header-search form { height: 46px; }
}
.ao-header-search form input[type="text"] {
    flex: 1;
    height: 100%;
    font-size: 16px;
    padding: 10px 20px;
    color: #1f1f1f;
    border: 0;
    background: #fff;
}
.ao-header-search form button {
    width: 70px;
    height: 100%;
    border: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}
.ao-header-search form button:hover {
    background: var(--color-secondary);
}
.ao-header-search form button img {
    width: 26px;
}

.ao-header--inner {
    padding: 16px 0;
}
.ao-header--inner .ao-header-row {
    justify-content: space-between;
}
.ao-header--inner .logo img {
    width: 190px;
}
@media (max-width: 767px) {
    .ao-header--inner .logo img { width: 130px; }
}
.ao-inner-search {
    width: 100%;
    max-width: 360px;
}
.ao-inner-search form {
    position: relative;
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    overflow: hidden;
}
.ao-inner-search input.innersearch {
    width: 100%;
    height: 42px;
    font-size: 14px;
    padding: 8px 46px 8px 18px;
    border: 0;
    background: #fff;
    color: #1f1f1f;
}
.ao-inner-search button.searchbutton {
    position: absolute;
    right: 0;
    top: 0;
    height: 42px;
    width: 42px;
    border: 0;
    background: var(--color-primary);
    color: #000;
    cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* 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: #000;
    width: 100%;
    max-width: 320px;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 60px 25px 0;
}
.mobile-menu-close {
    position: absolute;
    width: 30px;
    height: 30px;
    cursor: pointer;
    top: 15px;
    right: 15px;
    color: var(--color-primary);
    font-size: 22px;
    text-align: right;
}
.mobile-menu-items a {
    font-size: 17px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 0;
    display: block;
    transition: color 0.2s ease;
}
.mobile-menu-items a:hover {
    color: var(--color-primary);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.ao-footer {
    background-color: var(--color-primary);
    padding: 30px 0;
    margin-top: 60px;
}
.ao-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.ao-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-bottom: 20px;
}
.ao-footer-links a {
    color: #000;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.ao-footer-links a:hover {
    text-decoration: underline;
}
.ao-footer-logo {
    display: none;
}
@media (max-width: 675px) {
    .ao-footer-logo {
        display: block;
        width: 160px;
        margin-bottom: 15px;
    }
}
.ao-footer-bottom {
    max-width: 720px;
    border-top: 2px solid #000;
    padding-top: 18px;
}
.ao-footer-bottom p {
    font-size: 13px;
    color: #000;
    line-height: 1.5;
}
.ao-footer-bottom a {
    font-weight: 700;
    display: inline;
    text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Home - top strip / hero                                            */
/* ------------------------------------------------------------------ */
.ao-strip {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    position: relative;
}
@media (max-width: 1536px) { .ao-strip { max-width: 960px; } }
@media (max-width: 920px) { .ao-strip { max-width: 680px; } }
@media (max-width: 765px) { .ao-strip { width: 100%; max-width: 765px !important; } }
.ao-strip-line {
    width: 65%;
    margin: auto;
    height: 6px;
    background-color: var(--color-secondary);
}
@media (max-width: 765px) { .ao-strip-line { width: 100%; } }
.ao-strip-text {
    background-color: var(--color-primary);
    text-align: center;
    width: 100%;
    padding: 18px 0;
    font-size: 28px;
    font-weight: 600;
    color: #000;
    /* A site's primary_color drives this background but isn't guaranteed to
       be light - a white halo keeps this legible even against a dark/black
       primary_color, with no visible effect against the light colors this
       was originally designed for. */
    text-shadow: 0 0 2px #fff, 0 0 6px #fff;
}
@media (max-width: 765px) { .ao-strip-text { font-size: 20px; } }

.ao-hero-sec {
    margin-top: -6px;
    padding-bottom: 40px;
}
.ao-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}
@media (max-width: 765px) {
    .ao-hero-grid { grid-template-columns: 1fr; }
}
.ao-hero-article a {
    display: block;
    height: 100%;
}
.ao-hero-article {
    height: 380px;
}
@media (max-width: 1536px) { .ao-hero-article { height: 320px; } }
@media (max-width: 920px) { .ao-hero-article { height: 260px; } }
.ao-hero-article figure {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: end;
    background-position: center;
    background-size: cover;
    border-radius: 6px;
}
.ao-hero-article figure h2 {
    color: #fff;
    font-size: 26px;
    width: 85%;
    margin: 20px;
    line-height: 1.2;
    font-weight: 600;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.ao-hero-article1 {
    grid-column: 1/3;
}
@media (max-width: 765px) { .ao-hero-article1 { grid-column: 1/2; } }
.ao-hero-article1 figure h2 {
    font-size: 34px;
}

/* ------------------------------------------------------------------ */
/* Home - repeated section header used by latest/spotlight             */
/* ------------------------------------------------------------------ */
.header-content .purpose {
    display: inline-block;
    font-size: 20px;
    color: var(--color-secondary);
    font-weight: 600;
}
.header-content .heading {
    font-size: 40px;
    font-weight: 700;
    margin-top: 8px;
    display: flex;
    align-items: center;
    color: #000;
}
@media (max-width: 765px) { .header-content .heading { font-size: 30px; } }
.header-content .heading div {
    background-color: var(--color-primary);
    width: 60px;
    height: 6px;
    margin-left: 15px;
    border-radius: 3px;
}

/* ------------------------------------------------------------------ */
/* Home - editor's pick / latest articles / read next                  */
/* ------------------------------------------------------------------ */
.ao-latest-sec {
    margin-top: 60px;
}
.ao-latest-sec .articles-list {
    margin-top: 40px;
    display: grid;
    grid-gap: 25px;
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1023px) {
    .ao-latest-sec .articles-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ao-latest-sec .articles-list { grid-template-columns: 1fr; }
}
.ao-latest-sec .articles-list article {
    background: #f2f2f2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.ao-latest-sec .articles-list figure {
    height: 190px;
}
.ao-latest-sec .articles-list figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ao-latest-sec .articles-list .content {
    padding: 20px;
}
.ao-latest-sec .articles-list h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 78px;
}
.read-more-wrap {
    text-align: center;
    margin-top: 35px;
}

.read-more-btn {
    display: inline-block;
    border: 2px solid #000;
    padding: 9px 20px;
    text-transform: uppercase;
    margin-top: 20px;
    letter-spacing: 1.5px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.read-more-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--color-button-bg);
    color: var(--color-button-text);
    min-width: 160px;
    height: 44px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.explore-btn:hover {
    background: var(--color-secondary);
}

/* ------------------------------------------------------------------ */
/* Home - spotlight (featured article)                                 */
/* ------------------------------------------------------------------ */
.ao-spotlight-sec {
    margin-top: 60px;
}
.ao-spotlight-list {
    background-color: var(--color-primary);
    border-radius: 10px;
    display: flex;
    gap: 30px;
    overflow: hidden;
}
@media (max-width: 765px) {
    .ao-spotlight-list { flex-direction: column-reverse; }
}
.ao-spotlight-image {
    flex: 0 0 48%;
}
.ao-spotlight-image figure {
    height: 100%;
    min-height: 380px;
    background-position: center;
    background-size: cover;
}
@media (max-width: 765px) {
    .ao-spotlight-image figure { min-height: 240px; }
}
.ao-spotlight-content {
    flex: 1;
    display: flex;
    align-items: center;
}
.ao-spotlight-content .content {
    padding: 50px 50px 50px 0;
}
@media (max-width: 1023px) {
    .ao-spotlight-content .content { padding: 25px 25px 25px 0; }
}
@media (max-width: 765px) {
    .ao-spotlight-content .content { padding: 25px; }
}
.ao-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 10px;
}
.ao-spotlight-content h5 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: #000;
    margin-bottom: 18px;
}
@media (max-width: 1023px) {
    .ao-spotlight-content h5 { font-size: 26px; }
}
.ao-spotlight-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #1f1f1f;
    margin-bottom: 20px;
}

/* ------------------------------------------------------------------ */
/* Home - category sections                                            */
/* ------------------------------------------------------------------ */
.ao-category-sec {
    margin-top: 60px;
}
.ao-category-heading {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 12px;
    margin-bottom: 30px;
    text-transform: uppercase;
}
.ao-category-wrapper {
    display: flex;
    gap: 30px;
}
@media (max-width: 900px) {
    .ao-category-wrapper { flex-direction: column; }
}
.ao-category-wide {
    flex: 1 1 55%;
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    min-height: 420px;
}
.ao-category-wide-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
}
.ao-category-wide-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}
.ao-category-wide-info {
    position: relative;
    z-index: 1;
    padding: 30px;
    align-self: end;
}
.ao-category-wide {
    display: flex;
    align-items: end;
}
.ao-category-wide-info h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}
.ao-category-narrow {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ao-category-narrow-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ao-category-narrow-image {
    flex: 0 0 110px;
    height: 85px;
    border-radius: 6px;
    background-position: center;
    background-size: cover;
}
.ao-category-narrow-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #000;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.ao-category-narrow-item:hover .ao-category-narrow-name {
    color: var(--color-secondary);
}

/* ------------------------------------------------------------------ */
/* Home form / footer strapline                                       */
/* ------------------------------------------------------------------ */
.home-form-sec {
    margin-top: 70px;
    padding: 50px 0;
    background: #f7f7f7;
    text-align: center;
}
.home-form-sec h2 {
    font-size: 26px;
    color: #000;
    margin-bottom: 20px;
}
@media (max-width: 765px) { .home-form-sec h2 { font-size: 19px; } }
.home-form-sec form {
    width: 60%;
    margin: auto;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 6px 6px 20px;
    border-radius: 30px;
    background: #fff;
}
@media (max-width: 765px) { .home-form-sec form { width: 90%; } }
.home-form-sec form input {
    display: block;
    width: 100%;
    outline: none;
    border: none;
    font-size: 16px;
}
.home-form-sec form button {
    background: var(--color-primary);
    outline: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    flex: none;
}
.home-form-sec form button img {
    width: 20px;
}
.home-form-sec span {
    display: block;
    width: 65%;
    margin: auto;
    margin-top: 40px;
    font-size: 16px;
    line-height: 1.5;
}
@media (max-width: 765px) { .home-form-sec span { width: 90%; } }
.home-form-sec span a {
    display: inline;
    font-weight: 700;
    color: var(--color-secondary);
}
.home-form-sec .line {
    width: 48%;
    margin: 25px auto 0;
    border-bottom: 2px solid #000;
}
.home-form-sec small {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #666;
}

/* ------------------------------------------------------------------ */
/* All articles listing page                                          */
/* ------------------------------------------------------------------ */
.ao-articles-list-sec {
    margin: 40px 0 75px;
}
.ao-articles-list-sec h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 25px;
}
.ao-no-articles {
    padding: 30px 0;
    color: #666;
}
.article-section .articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
@media (max-width: 765px) {
    .article-section .articles { grid-template-columns: 1fr; }
}
.article-section .item {
    display: grid;
    grid-template-columns: 0.6fr 1fr;
    gap: 20px;
    align-items: center;
}
@media (max-width: 500px) {
    .article-section .item { grid-template-columns: 1fr; }
}
.article-section .item .image img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
.article-section .item .content a.title {
    display: block;
    color: #000;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}
.article-section .item .content a.title:hover {
    color: var(--color-secondary);
}
.article-section .item .content p {
    color: #4d4d4d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 5px;
    border: 2px solid #000;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}
.pagination a:hover,
.pagination a.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ------------------------------------------------------------------ */
/* Article detail                                                      */
/* ------------------------------------------------------------------ */
.ao-article-sec {
    margin-top: 40px;
}
.ao-article-sec .content-wrapper {
    width: 62%;
    margin: auto;
}
@media (max-width: 900px) {
    .ao-article-sec .content-wrapper { width: 90%; }
}
@media (max-width: 600px) {
    .ao-article-sec .content-wrapper { width: 100%; }
}
.ao-article-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    color: var(--color-secondary);
}
@media (max-width: 765px) {
    .ao-article-title { font-size: 28px; }
}
.article-author {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}
.ao-article-figure {
    margin: 30px auto 0;
    border-radius: 12px;
    overflow: hidden;
}
.ao-article-figure img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.ao-article-content {
    margin-top: 30px;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}
.ao-article-content p {
    margin-bottom: 20px;
}
.ao-article-content h2,
.ao-article-content h3,
.ao-article-content h4 {
    font-weight: 700;
    color: #000;
    margin: 30px 0 15px;
}
.ao-article-content h2 { font-size: 28px; }
.ao-article-content h3 { font-size: 22px; }
.ao-article-content h4 { font-size: 18px; }
.ao-article-content ul,
.ao-article-content ol {
    margin: 10px 0 20px 20px;
}
.ao-article-content li {
    list-style: disc;
    margin-bottom: 8px;
    line-height: 1.5;
}
.ao-article-content a {
    display: inline;
    color: var(--color-secondary);
    text-decoration: underline;
}
.ao-article-content strong {
    display: inline;
    font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Search stub + Yahoo top5 listing                                   */
/* ------------------------------------------------------------------ */
.search-section {
    background: #f7f7f7;
    min-height: 50vh;
}
.search-section .container {
    max-width: 900px;
    padding: 30px 15px 60px;
}
.ao-no-results {
    padding: 30px 0;
    color: #666;
    text-align: center;
}
.search-section .sponsored {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: block;
}
/* no Yahoo action extension -> no CTA column, so the ad fills the row */
.search-section .items .item.item--no-cta { grid-template-columns: 1fr; }
.search-section .items .item {
    display: grid;
    grid-template-columns: 1fr 140px;
    grid-gap: 20px;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 20px;
    transition: all 0.3s ease;
}
@media (max-width: 600px) {
    .search-section .items .item { grid-template-columns: 1fr; }
}
.search-section .items .item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.search-section .items .item .li-title a {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}
.search-section .items .item .li-descr {
    margin: 6px 0;
}
.search-section .items .item .li-descr a {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}
.search-section .items .item .url a {
    font-size: 13px;
}
.search-section .items .item .li-descr__callouts,
.search-section .items .item .li-descr__annotations {
    font-size: 13px;
    color: #444;
    margin-top: 4px;
}
.search-section .items .item .li-links {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}
.search-section .items .item .li-links a span {
    color: #000;
    font-size: 13px;
    font-weight: 600;
}
.search-section .items .item .rightbtn {
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-section .items .item .rightbtn a {
    width: 100%;
    height: 42px;
    border-radius: 21px;
    background: var(--color-button-bg);
    color: var(--color-button-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.search-section .items .item .rightbtn a:hover {
    background: var(--color-primary);
    color: #000;
}
@media (max-width: 600px) {
    .search-section .items .item .rightbtn a { height: 48px; }
}

/* ------------------------------------------------------------------ */
/* Static/legal pages                                                  */
/* ------------------------------------------------------------------ */
.ao-innerbanner {
    height: 220px;
    width: 100%;
    background: linear-gradient(120deg, #000 0%, #1f1f1f 60%, var(--color-primary) 100%);
}
@media (max-width: 767px) {
    .ao-innerbanner { height: 150px; }
}

.about-wrapper,
.contact-wrapper {
    min-height: 55vh;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
}
.about-subheader {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-secondary);
    letter-spacing: 1px;
}
.about-wrapper h1,
.contact-wrapper h1 {
    font-size: 34px;
    font-weight: 700;
    margin: 15px 0 20px;
}
.about-wrapper p,
.contact-wrapper p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
    color: #333;
}
.about-wrapper a,
.contact-wrapper a {
    display: inline;
    color: var(--color-secondary);
    text-decoration: underline;
}
.about-wrapper strong,
.contact-wrapper strong {
    font-weight: 700;
}
.contact-wrapper h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 25px 0 8px;
}

.ao-legal-sec {
    margin: 40px 0 75px;
    min-height: 55vh;
}
.ao-legal-sec .container {
    max-width: 900px;
}
.ao-legal-sec h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
}
.ao-legal-sec h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 25px 0 10px;
}
.ao-legal-sec h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0 8px;
}
.ao-legal-sec p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}
.ao-legal-sec ul,
.ao-legal-sec ol {
    margin: 0 0 15px 22px;
}
.ao-legal-sec li {
    list-style: disc;
    line-height: 1.6;
    margin-bottom: 6px;
}
.ao-legal-sec a {
    display: inline;
    color: var(--color-secondary);
    text-decoration: underline;
}
.ao-legal-sec table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.ao-legal-sec td,
.ao-legal-sec th {
    border: 1px solid #ccc;
    padding: 10px;
}
