/*
 * Theme Four (Emerald). Loaded after the old theme CSS when Settings > General Setting >
 * Select Theme = Theme Four (lib/themes.js).
 *   Part 1: the design of the new header, footer, home, listing and car pages (em-*).
 *   Part 2: the same look for the pages that keep the old markup (blog, about, contact, account).
 */

:root {
    --primary-color-1: #f5b301;
    --primary-color-2: #059669;
    --primary-color-3: #e11d48;
    --headline-color: #0b2a24;
    --paragraph-color: #5b6b66;
    --DMSans: "Plus Jakarta Sans", sans-serif;
    --roboto: "Plus Jakarta Sans", sans-serif;

    --em-green: #059669;
    --em-green-600: #047857;
    --em-green-50: #ecfdf5;
    --em-green-100: #d1fae5;
    --em-ink: #0b2a24;
    --em-text: #3f4f4a;
    --em-muted: #6b7c76;
    --em-line: #e3ece8;
    --em-bg: #f6faf8;
    --em-dark: #062e25;
    --em-darker: #041f19;
    --em-amber: #f5b301;
    --em-radius: 16px;
    --em-shadow: 0 6px 24px rgba(6, 46, 37, 0.07);
    --em-shadow-lg: 0 20px 48px rgba(6, 46, 37, 0.16);
}

body { font-family: "Plus Jakarta Sans", sans-serif; color: var(--em-text); background: #fff; }
::selection { background: var(--em-green); color: #fff; }

/* ======================================================================== */
/* Part 1: new design                                                         */
/* ======================================================================== */

.em-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.em-page, .em-header, .em-footer, .em-topbar, .em-drawer { font-family: "Plus Jakarta Sans", sans-serif; }
.em-page h1, .em-page h2, .em-page h3, .em-page h4,
.em-footer h2, .em-footer h3 { font-family: "Plus Jakarta Sans", sans-serif; color: var(--em-ink); margin: 0; letter-spacing: -0.02em; }
.em-page p, .em-footer p { font-family: "Plus Jakarta Sans", sans-serif; color: var(--em-text); font-size: 15px; line-height: 1.65; margin: 0; }
.em-page a { text-decoration: none; }
.em-page img { max-width: 100%; }

/* Buttons --------------------------------------------------------------- */
.em-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
    font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.em-btn--solid { background: var(--em-green); color: #fff !important; box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25); }
.em-btn--solid:hover { background: var(--em-green-600); transform: translateY(-1px); }
.em-btn--ghost { background: #fff; color: var(--em-ink) !important; border-color: var(--em-line); }
.em-btn--ghost:hover { border-color: var(--em-green); color: var(--em-green) !important; }
.em-btn--light { background: #fff; color: var(--em-ink) !important; }
.em-btn--light:hover { background: var(--em-green-50); }
.em-btn--block { width: 100%; }
.em-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--em-green) !important; }
.em-link i, .em-link svg { transition: transform .2s ease; }
.em-link:hover i, .em-link:hover svg { transform: translateX(3px); }
.em-icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--em-line); background: #fff;
    color: var(--em-ink) !important; font-size: 16px; cursor: pointer; transition: border-color .2s, color .2s;
}
.em-icon-btn:hover { border-color: var(--em-green); color: var(--em-green) !important; }
.em-count {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
    background: var(--em-amber); color: #111; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* Top bar + header ------------------------------------------------------- */
.em-topbar { background: var(--em-darker); color: #cfe9df; font-size: 13px; position: relative; z-index: 1002; }
.em-topbar-row { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.em-topbar-contact { display: flex; gap: 22px; }
.em-topbar a { color: #cfe9df; }
.em-topbar a:hover { color: #fff; }
.em-topbar-contact i, .em-topbar-contact svg { color: #34d399; margin-right: 4px; }

.em-switchers { display: flex; gap: 6px; align-items: center; }
.em-menu { position: relative; }
.em-menu summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: 13px; color: inherit; display: flex; align-items: center; gap: 6px; }
.em-menu summary::-webkit-details-marker { display: none; }
.em-menu summary::after { content: "\25BE"; font-size: 10px; opacity: .7; }
.em-menu[open] summary { background: rgba(255, 255, 255, 0.1); }
.em-menu ul {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 1000; min-width: 170px; max-height: 300px; overflow: auto;
    background: #fff; border: 1px solid var(--em-line); border-radius: 12px; padding: 6px; box-shadow: var(--em-shadow-lg);
}
.em-menu ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--em-ink) !important; font-size: 14px; }
.em-menu ul a:hover { background: var(--em-green-50); color: var(--em-green) !important; }

.em-header { position: sticky; top: 0; z-index: 1001; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--em-line); transition: box-shadow .25s ease; }
.em-header.is-scrolled { box-shadow: 0 10px 30px rgba(6, 46, 37, 0.08); }
.em-header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.em-logo img { max-height: 46px; max-width: 170px; width: auto; }
.em-nav { display: flex; gap: 4px; margin: 0 auto; }
.em-nav a { padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--em-ink); transition: background .2s, color .2s; }
.em-nav a:hover { background: var(--em-green-50); color: var(--em-green); }
.em-actions { display: flex; align-items: center; gap: 10px; }
.em-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--em-green-50); color: var(--em-green); font-size: 18px; }

/* Mobile drawer (custom.js adds .open on #offcanvas-nav) */
#offcanvas-nav.em-drawer {
    position: fixed; inset: 0; z-index: 99999; width: 100%; height: 100%; left: 0; top: 0; right: auto;
    background: rgba(4, 31, 25, 0.5); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
    padding: 0; overflow: hidden; transform: none; max-width: none;
}
#offcanvas-nav.em-drawer.open { opacity: 1; visibility: visible; }
.em-drawer-panel {
    position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw); background: #fff; padding: 20px;
    display: flex; flex-direction: column; gap: 18px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease;
}
#offcanvas-nav.em-drawer.open .em-drawer-panel { transform: none; }
.em-drawer-top { display: flex; align-items: center; justify-content: space-between; }
.em-drawer-nav { display: flex; flex-direction: column; }
.em-drawer-nav a { padding: 12px 6px; border-bottom: 1px solid var(--em-line); font-weight: 700; font-size: 16px; color: var(--em-ink); }
.em-drawer-nav a.is-small { font-weight: 500; font-size: 14px; color: var(--em-muted); padding: 9px 6px; }
.em-drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.em-drawer .em-switchers { color: var(--em-ink); }
.em-drawer .em-menu[open] summary { background: var(--em-green-50); }
.em-drawer .em-menu ul { left: 0; right: auto; bottom: calc(100% + 6px); top: auto; }

/* Section scaffolding ------------------------------------------------------- */
.em-section { padding: 80px 0; }
.em-section--tint { background: var(--em-bg); }
.em-section--top { padding-top: 36px; }
.em-section--flush { padding: 0 0 80px; }
.em-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.em-head--center { justify-content: center; text-align: center; }
.em-page .em-head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.15; }
.em-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 7px 14px; border-radius: 999px;
    background: var(--em-green-50); color: var(--em-green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.em-eyebrow--light { background: rgba(255, 255, 255, 0.14); color: #a7f3d0; }
.em-center { text-align: center; margin-top: 40px; }
.em-grid { display: grid; gap: 24px; }
.em-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.em-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Tabs ----------------------------------------------------------------- */
.em-tabs { display: inline-flex; gap: 6px; }
.em-tabs button {
    border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
    color: var(--em-muted); cursor: pointer; transition: background .2s, color .2s;
}
.em-tabs button.is-active { background: var(--em-green); color: #fff; }
.em-tabs--pill { background: #fff; border: 1px solid var(--em-line); padding: 5px; border-radius: 999px; }

/* Hero ------------------------------------------------------------------ */
.em-hero {
    position: relative; overflow: hidden; padding: 64px 0 56px;
    background: radial-gradient(900px 420px at 85% 10%, rgba(16, 185, 129, 0.20), transparent 60%),
        radial-gradient(700px 380px at 0% 100%, rgba(245, 179, 1, 0.10), transparent 60%),
        linear-gradient(180deg, #f3fbf7 0%, #ffffff 100%);
}
.em-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.em-page .em-hero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; font-weight: 800; margin: 6px 0 22px; }
.em-hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.em-hero-stats div { display: flex; flex-direction: column; }
.em-hero-stats b { font-size: 28px; font-weight: 800; color: var(--em-ink); line-height: 1.1; }
.em-hero-stats span { font-size: 13px; color: var(--em-muted); font-weight: 600; }
.em-hero-art { position: relative; }
.em-hero-blob {
    position: absolute; inset: 8% 0 8% 10%; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%;
    background: linear-gradient(135deg, #34d399, #059669); opacity: .9;
}
/* This site's hero picture is a photo: shown as a rounded card on the green shape. */
.em-hero-art img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px rgba(4, 31, 25, .28); }
.em-hero-blob { inset: -6% -4% 10% 14%; }
.em-searchcard {
    position: relative; z-index: 2; margin-top: 34px; background: #fff; border: 1px solid var(--em-line); border-radius: 22px;
    padding: 14px; box-shadow: var(--em-shadow-lg);
}
.em-searchcard .em-tabs { margin: 0 0 12px 4px; }
.em-search { display: flex; gap: 10px; align-items: stretch; }
.em-field {
    display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; height: 54px; padding: 0 14px; margin: 0;
    border: 1.5px solid var(--em-line); border-radius: 14px; background: #fbfdfc; transition: border-color .2s;
}
.em-field:focus-within { border-color: var(--em-green); background: #fff; }
.em-field--grow { flex: 1.5 1 0; }
.em-field > i, .em-field > svg { color: var(--em-green); flex: none; }
.em-field input, .em-field select {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--em-ink);
}
.em-search-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 26px; border: 0; border-radius: 14px;
    background: var(--em-green); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; transition: background .2s;
}
.em-search-btn:hover { background: var(--em-green-600); }

/* Brand grid --------------------------------------------------------------- */
.em-brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.em-brand {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; border-radius: var(--em-radius);
    background: #fff; border: 1px solid var(--em-line); text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.em-brand:hover { transform: translateY(-4px); box-shadow: var(--em-shadow-lg); border-color: #a7f3d0; }
.em-brand-logo { height: 64px; display: flex; align-items: center; justify-content: center; }
.em-brand-logo img { max-height: 64px; max-width: 120px; object-fit: contain; }
.em-brand-name { font-weight: 800; color: var(--em-ink); font-size: 15px; }
.em-brand-count { font-size: 12px; color: var(--em-muted); font-weight: 600; }

/* Car card --------------------------------------------------------------------- */
.em-card {
    position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--em-line);
    border-radius: 18px; overflow: hidden; box-shadow: var(--em-shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.em-card:hover { transform: translateY(-5px); box-shadow: var(--em-shadow-lg); border-color: #a7f3d0; }
.em-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--em-bg); }
.em-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.em-card:hover .em-card-media img { transform: scale(1.05); }
.em-badge {
    position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800;
    background: #fff; color: var(--em-ink); box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}
.em-badge--new { background: var(--em-green); color: #fff; }
.em-badge--off { left: auto; right: 12px; top: auto; bottom: 12px; background: var(--em-amber); color: #111; }
.em-card-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.em-tool {
    width: 34px; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--em-ink) !important;
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}
.em-tool:hover { background: var(--em-green); color: #fff !important; }
.em-card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.em-card-brand { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--em-green); }
.em-page .em-card-title { font-size: 17px; line-height: 1.35; font-weight: 800; margin: 0; }
.em-card-title a { color: var(--em-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.em-card-title a:hover { color: var(--em-green); }
.em-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.em-chips li {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--em-bg);
    font-size: 12px; font-weight: 600; color: var(--em-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.em-chips i, .em-chips svg { color: var(--em-green); font-size: 11px; flex: none; }
.em-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--em-line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.em-price { font-size: 18px; font-weight: 800; color: var(--em-ink); white-space: nowrap; }
.em-go {
    flex: none; width: 38px; height: 38px; border-radius: 999px; background: var(--em-green-50); color: var(--em-green) !important;
    display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .2s;
}
.em-card:hover .em-go { background: var(--em-green); color: #fff !important; transform: translateX(2px); }

/* Featured --------------------------------------------------------------------- */
.em-featured { display: grid; grid-template-columns: 1fr; gap: 24px; }
.em-featured-ad img { width: 100%; border-radius: 20px; }
.em-scroller {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto;
    scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin;
}
.em-scroller > * { scroll-snap-align: start; }

/* Loan --------------------------------------------------------------------------- */
.em-loan {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 44px; border-radius: 28px;
    background: radial-gradient(700px 300px at 0% 0%, rgba(52, 211, 153, .25), transparent 60%), linear-gradient(135deg, var(--em-dark), var(--em-darker));
}
.em-page .em-loan-intro h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.em-page .em-loan-intro p { color: #b9d9cd; margin: 10px 0 18px; }
.em-loan-intro img { max-height: 180px; border-radius: 16px; }
.em-loan-form { background: #fff; border-radius: 20px; padding: 26px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.em-loan-form label, .em-loan-mini label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--em-ink); margin: 0; }
.em-loan-form input, .em-loan-mini input, .em-dealer-form input, .em-dealer-form textarea, .em-input textarea, .em-select select {
    width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--em-line); border-radius: 12px; background: #fbfdfc;
    font: inherit; font-size: 14px; color: var(--em-ink); outline: 0; transition: border-color .2s;
}
.em-dealer-form textarea, .em-input textarea { height: auto; padding: 12px 14px; resize: vertical; }
.em-loan-form input:focus, .em-loan-mini input:focus, .em-dealer-form input:focus, .em-dealer-form textarea:focus,
.em-input textarea:focus, .em-select select:focus { border-color: var(--em-green); background: #fff; }
.em-loan-btns { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.em-loan-result { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.em-loan-result li { background: var(--em-green-50); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.em-loan-result span { font-size: 12px; font-weight: 700; color: var(--em-muted); }
.em-loan-result b { font-size: 17px; color: var(--em-ink); }

/* Video band ------------------------------------------------------------------------- */
.em-video {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 340px; padding: 50px;
    border-radius: 28px; overflow: hidden; background-size: cover !important; background-position: center !important;
}
.em-video::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 31, 25, .92), rgba(4, 31, 25, .35)); }
.em-video-copy { position: relative; max-width: 560px; }
.em-page .em-video-copy h2 { color: #fff; font-size: clamp(26px, 3vw, 40px); font-weight: 800; margin: 0 0 22px; }
.em-play {
    position: relative; flex: none; width: 86px; height: 86px; border-radius: 999px; background: #fff; color: var(--em-green) !important;
    display: inline-flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 0 0 12px rgba(255, 255, 255, .18);
    transition: transform .2s;
}
.em-play:hover { transform: scale(1.06); }

/* Testimonials / blog --------------------------------------------------------------- */
.em-quote { margin: 0; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--em-line); box-shadow: var(--em-shadow); display: flex; flex-direction: column; gap: 16px; }
.em-stars { color: var(--em-amber); font-size: 13px; display: flex; gap: 3px; }
.em-quote blockquote { margin: 0; font-size: 15px; line-height: 1.7; color: var(--em-text); flex: 1; }
.em-quote figcaption { display: flex; align-items: center; gap: 12px; }
.em-quote figcaption img { width: 46px; height: 46px; border-radius: 999px; object-fit: cover; }
.em-quote figcaption span { display: flex; flex-direction: column; font-size: 13px; color: var(--em-muted); }
.em-quote figcaption b { color: var(--em-ink); font-size: 15px; }
.em-post { background: #fff; border: 1px solid var(--em-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.em-post:hover { box-shadow: var(--em-shadow-lg); transform: translateY(-4px); }
.em-post-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.em-post-media img { width: 100%; height: 100%; object-fit: cover; }
.em-post-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.em-post-meta { font-size: 12px; color: var(--em-muted); font-weight: 600; }
.em-page .em-post h3 { font-size: 16px; line-height: 1.4; font-weight: 800; }
.em-post h3 a { color: var(--em-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.em-post .em-link { margin-top: auto; }

/* Page head / crumbs ----------------------------------------------------------------- */
.em-pagehead {
    padding: 42px 0 36px; border-bottom: 1px solid var(--em-line);
    background: radial-gradient(800px 260px at 90% 0%, rgba(16, 185, 129, .16), transparent 60%), linear-gradient(180deg, #f3fbf7, #fff);
}
.em-pagehead--slim { padding: 18px 0; }
.em-page .em-pagehead h1 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; line-height: 1.15; margin-top: 10px; }
.em-page .em-pagehead-sub { margin-top: 8px; color: var(--em-muted); }
.em-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; color: var(--em-muted); }
.em-crumbs a { color: var(--em-green); }
.em-crumbs i, .em-crumbs svg { font-size: 9px; opacity: .6; }
.em-crumbs span:last-child { color: var(--em-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

/* Listing --------------------------------------------------------------------------- */
.em-listing { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.em-filters { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.em-filters form { background: #fff; border: 1px solid var(--em-line); border-radius: 20px; padding: 18px; box-shadow: var(--em-shadow); display: flex; flex-direction: column; gap: 12px; }
.em-filters-head { font-weight: 800; font-size: 16px; color: var(--em-ink); display: flex; align-items: center; gap: 8px; }
.em-filters-head i, .em-filters-head svg { color: var(--em-green); }
.em-select { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.em-select span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--em-muted); }
.em-fgroup { border-top: 1px solid var(--em-line); padding-top: 10px; }
.em-fgroup summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 14px; color: var(--em-ink); display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.em-fgroup summary::-webkit-details-marker { display: none; }
.em-fgroup summary::after { content: "+"; font-size: 18px; color: var(--em-green); }
.em-fgroup[open] summary::after { content: "\2212"; }
.em-fbody { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.em-fbody--scroll { max-height: 220px; overflow-y: auto; padding-right: 4px; }
.em-check { display: flex; align-items: center; gap: 10px; padding: 6px 4px; margin: 0; cursor: pointer; border-radius: 8px; font-size: 14px; color: var(--em-text); }
.em-check:hover { background: var(--em-green-50); }
.em-check input { width: 17px; height: 17px; accent-color: var(--em-green); flex: none; }
.em-filters-btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 4px; }
.em-side-ad img { width: 100%; border-radius: 18px; }
.em-results { min-width: 0; }
.em-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.em-toolbar-search {
    flex: 1; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 6px 0 16px; background: #fff;
    border: 1.5px solid var(--em-line); border-radius: 999px; box-shadow: var(--em-shadow);
}
.em-toolbar-search > i, .em-toolbar-search > svg { color: var(--em-green); }
.em-toolbar-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; background: transparent; }
.em-view-switch { display: flex; gap: 4px; background: #fff; border: 1.5px solid var(--em-line); border-radius: 999px; padding: 4px; }
.em-view-switch button { width: 42px; height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--em-muted); cursor: pointer; }
.em-view-switch button.is-active { background: var(--em-green); color: #fff; }
.em-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--em-line); border-radius: 18px; }
.em-page table.em-table { width: 100% !important; line-height: 1.4; border-collapse: collapse; padding: 0; color: var(--em-text); font-size: 14px; }
.em-table th { background: var(--em-bg); text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--em-muted); }
.em-table td { padding: 12px 14px; border-top: 1px solid var(--em-line); vertical-align: middle; }
.em-table-car { display: flex; align-items: center; gap: 12px; color: var(--em-ink); font-weight: 700; }
.em-table-car img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.em-table-car:hover { color: var(--em-green); }
.em-table-price { font-weight: 800; color: var(--em-ink); white-space: nowrap; }
.em-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fff4d6; color: #8a5a00; font-size: 12px; font-weight: 800; }
.em-tag--new { background: var(--em-green-50); color: var(--em-green); }
.em-empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--em-line); border-radius: 20px; }
.em-empty > i, .em-empty > svg { font-size: 42px; color: var(--em-green); margin-bottom: 12px; }
.em-page .em-empty h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.em-pager { margin-top: 30px; }
.em-pager .next-prev-btn ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.em-pager .next-prev-btn ul li a {
    min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; border: 1.5px solid var(--em-line); background: #fff; color: var(--em-ink); font-weight: 700;
}
.em-pager .next-prev-btn ul li a.active, .em-pager .next-prev-btn ul li a:hover { background: var(--em-green); border-color: var(--em-green); color: #fff; }

/* Rich text (car descriptions, brand / SEO text) ---------------------------------------- */
.em-prose { color: var(--em-text); font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.em-prose--card { margin-top: 40px; background: #fff; border: 1px solid var(--em-line); border-radius: 20px; padding: 30px; }
.em-page .em-prose h1, .em-page .em-prose h2, .em-page .em-prose h3, .em-page .em-prose h4 { color: var(--em-ink); font-weight: 800; line-height: 1.3; margin: 1.4em 0 .6em; }
.em-page .em-prose h1 { font-size: 28px; } .em-page .em-prose h2 { font-size: 23px; } .em-page .em-prose h3 { font-size: 19px; } .em-page .em-prose h4 { font-size: 17px; }
.em-page .em-prose > :first-child { margin-top: 0; }
.em-page .em-prose p, .em-page .em-prose li { font-size: 15px; line-height: 1.75; color: var(--em-text); margin: 0 0 .8em; font-family: inherit; }
.em-prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.em-prose ol { padding-left: 1.3em; }
.em-prose a { color: var(--em-green); text-decoration: underline; }
.em-page .em-prose table { width: 100% !important; line-height: 1.5; border-collapse: separate; border-spacing: 0; margin: 0 0 1.2em; border: 1px solid var(--em-line); border-radius: 14px; overflow: hidden; padding: 0; }
.em-prose th, .em-prose td { padding: 11px 14px; border-bottom: 1px solid var(--em-line); text-align: left; font-size: 14px; line-height: 1.5; }
.em-prose th { background: var(--em-green-50); color: var(--em-ink); font-weight: 800; }
.em-prose tr:last-child td { border-bottom: 0; }
.em-prose tr:nth-child(even) td { background: #fbfdfc; }
.em-prose img { max-width: 100%; height: auto; border-radius: 12px; }

/* Car detail ---------------------------------------------------------------------------- */
.em-detail-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.em-page .em-detail-title h1 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; line-height: 1.15; margin-top: 10px; }
.em-detail-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13px; font-weight: 600; color: var(--em-muted); }
.em-detail-meta i, .em-detail-meta svg { color: var(--em-green); margin-right: 4px; }
.em-detail-actions { display: flex; gap: 8px; }
.em-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.em-detail-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.em-detail-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.em-gallery-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--em-bg); }
.em-gallery-stage img { width: 100%; height: 100%; object-fit: cover; }
.em-gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 999px; border: 0;
    background: rgba(255, 255, 255, .92); color: var(--em-ink); cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.em-gallery-nav--prev { left: 14px; } .em-gallery-nav--next { right: 14px; }
.em-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.em-gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; cursor: pointer; background: none; opacity: .7; transition: opacity .2s, border-color .2s; }
.em-gallery-thumbs button.is-active, .em-gallery-thumbs button:hover { border-color: var(--em-green); opacity: 1; }
.em-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.em-box { background: #fff; border: 1px solid var(--em-line); border-radius: 20px; padding: 24px; box-shadow: var(--em-shadow); }
.em-page .em-box-title { font-size: 19px; font-weight: 800; margin-bottom: 16px; }
.em-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.em-fact { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--em-bg); min-width: 0; }
.em-fact-ico { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--em-green); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.em-fact span { font-size: 12px; font-weight: 700; color: var(--em-muted); }
.em-fact b { font-size: 14px; color: var(--em-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; }
.em-feature-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--em-text); }
.em-feature-list i, .em-feature-list svg { color: var(--em-green); flex: none; }
.em-video-thumb { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; }
.em-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.em-video-thumb .em-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; }
.em-page .em-address { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; }
.em-address i, .em-address svg { color: var(--em-green); margin-top: 5px; flex: none; }
.em-map { width: 100%; height: 300px; border: 0; border-radius: 16px; }
.em-note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 16px; background: #fffbeb; border: 1px solid #fde68a; }
.em-note > i, .em-note > svg { color: #d97706; margin-top: 4px; flex: none; }
.em-page .em-note p { font-size: 13px; color: #78590a; }
.em-wide-ad img { width: 100%; border-radius: 16px; }
.em-pricebox { background: linear-gradient(135deg, var(--em-dark), var(--em-darker)); border-radius: 22px; padding: 24px; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.em-pricebox span { font-size: 13px; font-weight: 700; color: #9fd4c1; text-transform: uppercase; letter-spacing: .1em; }
.em-pricebox strong { font-size: 32px; font-weight: 800; color: #fff; line-height: 1.1; }
.em-pricebox del { color: #9fd4c1; font-size: 14px; }
.em-pricebox em { font-style: normal; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--em-amber); color: #111; font-size: 12px; font-weight: 800; }
.em-pricebox .em-btn { margin-top: 12px; }
.em-dealer { background: #fff; border: 1px solid var(--em-line); border-radius: 22px; padding: 22px; box-shadow: var(--em-shadow); display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 110px; }
.em-dealer-top { display: flex; gap: 14px; align-items: center; }
.em-dealer-top img { width: 62px; height: 62px; border-radius: 16px; object-fit: cover; border: 1px solid var(--em-line); }
.em-page .em-dealer h3 { font-size: 17px; font-weight: 800; }
.em-dealer h3 a { color: var(--em-ink); }
.em-page .em-dealer-top p { font-size: 13px; color: var(--em-muted); }
.em-dealer-top p i, .em-dealer-top p svg { color: var(--em-amber); }
.em-verified { color: var(--em-green); margin-left: 6px; font-size: 14px; }
.em-dealer-contact { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--em-line); border-bottom: 1px solid var(--em-line); }
.em-dealer-contact li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.em-dealer-contact i, .em-dealer-contact svg { color: var(--em-green); margin-top: 4px; width: 14px; flex: none; }
.em-dealer-contact a { color: var(--em-ink); overflow-wrap: anywhere; }
.em-dealer-form { display: flex; flex-direction: column; gap: 10px; }
.em-box--side { padding: 22px; }
.em-loan-mini { display: flex; flex-direction: column; gap: 12px; }
.em-loan-mini .em-loan-btns { display: flex; gap: 8px; }
.em-page .em-loan-out { padding: 12px 14px; border-radius: 12px; background: var(--em-green-50); font-weight: 700; color: var(--em-ink); }
.em-reviews { display: flex; flex-direction: column; gap: 14px; }
.em-review { padding: 16px; border-radius: 16px; background: var(--em-bg); }
.em-review-top { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.em-review-top img { width: 42px; height: 42px; border-radius: 999px; object-fit: cover; }
.em-review-top div { display: flex; flex-direction: column; flex: 1; font-size: 13px; color: var(--em-muted); }
.em-review-top b { color: var(--em-ink); font-size: 15px; }
.em-review-stars { color: var(--em-amber); font-size: 12px; }
.em-review-form form { display: flex; flex-direction: column; gap: 12px; }
.em-rate { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; color: var(--em-amber); font-size: 20px; }
.em-rate .car_rat { cursor: pointer; }
.em-rate span { color: var(--em-muted); font-size: 14px; margin-left: 6px; }
.em-input { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; color: var(--em-ink); }

/* Footer ------------------------------------------------------------------------------- */
.em-footer { position: relative; background: linear-gradient(180deg, var(--em-dark), var(--em-darker)); color: #b9d9cd; padding-top: 70px; }
.em-newsletter {
    display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px 34px; border-radius: 24px;
    background: linear-gradient(120deg, #10b981, #047857); margin-bottom: 56px; flex-wrap: wrap;
}
.em-footer .em-newsletter h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.em-newsletter h2 span { color: #fde68a; }
.em-footer .em-newsletter p { color: #d1fae5; font-size: 14px; margin-top: 6px; }
.em-newsletter-form { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; flex: 1; max-width: 480px; min-width: 260px; }
.em-newsletter-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; font: inherit; font-size: 15px; background: transparent; }
.em-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.em-footer h3 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.em-footer ul { display: flex; flex-direction: column; gap: 10px; }
.em-footer ul a { color: #b9d9cd; font-size: 14px; }
.em-footer ul a:hover { color: #fff; }
.em-logo--footer img { max-height: 50px; margin-bottom: 14px; }
.em-footer .em-footer-about p { color: #b9d9cd; font-size: 14px; }
.em-social { display: flex; gap: 8px; margin-top: 18px; }
.em-social a { width: 38px; height: 38px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.em-social a:hover { background: var(--em-green); }
.em-footer-contact li { display: flex; gap: 10px; font-size: 14px; }
.em-footer-contact i, .em-footer-contact svg { color: #34d399; margin-top: 4px; flex: none; }
.em-copy { border-top: 1px solid rgba(255, 255, 255, .08); }
.em-copy-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap; }
.em-footer .em-copy p { color: #8fbcae; font-size: 13px; }
.em-copy-row div { display: flex; gap: 18px; }
.em-copy a { color: #b9d9cd; font-size: 13px; }
.em-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 46px; height: 46px; border-radius: 999px; border: 0;
    background: var(--em-green); color: #fff; box-shadow: 0 10px 24px rgba(5, 150, 105, .35); display: none; cursor: pointer;
}

/* Responsive ------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .em-nav a { padding: 10px 9px; font-size: 14px; }
    .em-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .em-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .em-scroller { grid-auto-columns: calc((100% - 48px) / 3); }
    .em-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .em-nav, .em-actions .em-btn, .em-topbar { display: none; }
    .em-burger { display: inline-flex; align-items: center; justify-content: center; }
    .em-actions { margin-left: auto; }
    .em-hero { padding: 36px 0 40px; }
    .em-hero-grid { grid-template-columns: 1fr; gap: 10px; }
    .em-hero-art { max-width: 520px; margin: 0 auto; }
    .em-search { flex-wrap: wrap; }
    .em-field, .em-field--grow { flex: 1 1 calc(50% - 10px); }
    .em-search-btn { flex: 1 1 100%; justify-content: center; }
    .em-grid--3, .em-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .em-scroller { grid-auto-columns: calc((100% - 24px) / 2); }
    .em-loan { grid-template-columns: 1fr; padding: 28px; }
    .em-listing { grid-template-columns: 1fr; }
    .em-filters { position: static; }
    .em-detail { grid-template-columns: 1fr; }
    .em-detail-side { position: static; }
    .em-footer-grid { grid-template-columns: 1fr 1fr; }
    .em-section { padding: 56px 0; }
}
@media (max-width: 575px) {
    .em-wrap { padding-left: 16px; padding-right: 16px; }
    .em-field, .em-field--grow { flex: 1 1 100%; }
    .em-grid--3, .em-grid--4 { grid-template-columns: 1fr; }
    .em-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .em-scroller { grid-auto-columns: 85%; }
    .em-loan-form { grid-template-columns: 1fr; padding: 18px; }
    .em-loan-result { grid-template-columns: 1fr; }
    .em-video { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
    .em-facts, .em-feature-list { grid-template-columns: 1fr; }
    .em-detail-title { flex-direction: column; align-items: flex-start; }
    .em-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .em-newsletter { padding: 24px; }
    .em-toolbar { flex-direction: column; align-items: stretch; }
    .em-view-switch { align-self: flex-end; }
    .em-prose--card { padding: 20px; }
    .em-actions .em-icon-btn { width: 40px; height: 40px; }
}

/* ======================================================================== */
/* Part 2: pages that keep the old markup (blog, about, contact, dealers, account) */
/* ======================================================================== */

h1, h2, h3, h4, h5, h6 { font-family: "Plus Jakarta Sans", sans-serif; letter-spacing: -0.015em; }
p { font-family: "Plus Jakarta Sans", sans-serif; }

/* The header is in the page flow now, not laid over the banner. */
.inner-banner { padding: 48px 0 40px; }
.inner-banner .inner-banner-img {
    height: 100%;
    background-image: radial-gradient(900px 300px at 85% 10%, rgba(16, 185, 129, 0.22), transparent 60%),
        linear-gradient(135deg, #f3fbf7 0%, #e3f7ee 100%) !important;
    border-bottom: 1px solid var(--em-line);
}
.inner-banner .inner-banner-taitel { color: var(--em-ink); font-weight: 800; }

[fill="#405FF2" i] { fill: var(--primary-color-2); }
[stroke="#405FF2" i] { stroke: var(--primary-color-2); }
[fill="#0D274E" i] { fill: var(--headline-color); }
[stroke="#0D274E" i] { stroke: var(--headline-color); }
[fill="#B2C2FD" i] { fill: #a7f3d0; }

.thm-btn, .thm-btn-two, .thm-btn-thr,
.thm-btn:before, .thm-btn::after, .thm-btn-two:before, .thm-btn-two::after, .thm-btn-thr:before, .thm-btn-thr::after { border-radius: 999px; }
.thm-btn, .thm-btn-two { font-weight: 700; font-size: 15px; }

.taitel span, .taitel.two span {
    display: inline-block; font-size: 12px; line-height: 1; text-transform: uppercase; letter-spacing: .12em; color: var(--em-green);
    background: var(--em-green-50); padding: 8px 14px; border-radius: 999px; margin-bottom: 10px;
}
.taitel .taitel-img { display: none; }

.brand-car-item { border-radius: 18px; border: 1px solid var(--em-line); box-shadow: var(--em-shadow); background: #fff; }
.brand-car-item .brand-car-item-img, .brand-car-item .brand-car-item-img img { border-radius: 14px; }
.blog-item { border-radius: 18px; overflow: hidden; border: 1px solid var(--em-line); }

.categories-three .categories-logo { background-color: #f1faf6 !important; border-radius: 16px; }
.car-images .car-images-taitel, .car-compare .accordion-button, .dashboard .dashbord-tabel .table thead tr,
.dashboard .manage-car .manage-car-top-bar, .dashboard .manage-car .table thead tr, .dashboard .manage-car .table.two thead tr,
.dashboard .review-main .review-main-taitel { background-color: var(--em-green-100); }
.dealers-details .inventory-ber-left .shaf-filter li, .inventory-main-box .noUi-target { background: rgba(5, 150, 105, 0.2); }
.loan .loan-bg, .download .download-bg { background-color: var(--em-dark); border-radius: 18px; }

.table a { color: var(--em-green); font-weight: 600; }
.form-control:focus, .form-select:focus { border-color: var(--em-green); box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.15); }
.pagination .page-item.active .page-link, .page-item.active .page-link { background-color: var(--em-green); border-color: var(--em-green); }

/* Blog article colours (article.css) */
:root { --art-accent: #059669; --art-accent-soft: #ecfdf5; --art-ink: #0b2a24; --art-text: #3f4f4a; --art-line: #e3ece8; --art-zebra: #f6faf8; --art-font: "Plus Jakarta Sans", sans-serif; }
