/*
Theme Name: Drop-top Child Theme
Theme URI: https://drop-top.themerex.net/
Description: Drop-top is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: ThemeREX
Author URI: https://themerex.net/
Version: 1.5.0
Tested up to: 6.7
Requires at least: 5.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: drop-top
Template: drop-top
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */

/* ===== Global Color Override — Logo Blue ===== */
/* Replace parent theme orange (#FF8615) with Drive EV blue.
   Target light-background schemes only — dark/extra schemes keep their
   own palette so the footer and dark sections remain readable. */
.scheme_default,
body.scheme_default,
.scheme_light,
body.scheme_light,
.scheme_dealer,
body.scheme_dealer,
.scheme_dealer-light,
body.scheme_dealer-light,
.scheme_red,
body.scheme_red,
.scheme_red-light,
body.scheme_red-light {
    --theme-color-text_link: #00337a;
    --theme-color-text_hover: #002255;
    --theme-color-text_link2: #00337a;
    --theme-color-text_hover2: #002255;
    --theme-color-text_link3: #00337a;
    --theme-color-text_hover3: #002255;
    --theme-color-alter_link: #00337a;
    --theme-color-alter_hover: #002255;
    --theme-color-alter_link2: #00337a;
    --theme-color-alter_hover2: #002255;
    --theme-color-alter_link3: #00337a;
    --theme-color-alter_hover3: #002255;
    --theme-color-extra_link: #00337a;
    --theme-color-extra_hover: #002255;
    --theme-color-extra_link2: #00337a;
    --theme-color-extra_hover2: #002255;
    --theme-color-extra_link3: #00337a;
    --theme-color-extra_hover3: #002255;
    --theme-color-inverse_link: #ffffff;
    --theme-color-inverse_hover: #ffffff;

    /* Background & border — neutral white/grey instead of warm cream */
    --theme-color-bg_color: #ffffff;
    --theme-color-bd_color: #e8e8e8;
    --theme-color-alter_bg_color: #f5f5f3;
    --theme-color-alter_bg_hover: #ebebeb;
    --theme-color-alter_bd_color: #e8e8e8;
    --theme-color-alter_bd_hover: #d5d5d5;

    /* Text — neutral grey instead of warm grey */
    --theme-color-text: #666666;
    --theme-color-text_light: #999999;
    --theme-color-text_dark: #1d1d1d;

    /* Background rgba variants (white-based) */
    --theme-color-bg_color_0: rgba(255, 255, 255, 0);
    --theme-color-bg_color_02: rgba(255, 255, 255, 0.2);
    --theme-color-bg_color_07: rgba(255, 255, 255, 0.7);
    --theme-color-bg_color_08: rgba(255, 255, 255, 0.8);
    --theme-color-bg_color_09: rgba(255, 255, 255, 0.9);

    /* Alter background rgba variants */
    --theme-color-alter_bg_color_00: rgba(245, 245, 243, 0);
    --theme-color-alter_bg_color_02: rgba(245, 245, 243, 0.2);
    --theme-color-alter_bg_color_04: rgba(245, 245, 243, 0.4);
    --theme-color-alter_bg_color_07: rgba(245, 245, 243, 0.7);

    /* Alter border rgba */
    --theme-color-alter_bd_color_02: rgba(232, 232, 232, 0.2);

    /* Text link rgba variants — blue instead of orange */
    --theme-color-text_link_007: rgba(0, 51, 122, 0.07);
    --theme-color-text_link_02: rgba(0, 51, 122, 0.2);
    --theme-color-text_link_03: rgba(0, 51, 122, 0.3);
    --theme-color-text_link_04: rgba(0, 51, 122, 0.4);
    --theme-color-text_link_07: rgba(0, 51, 122, 0.7);

    /* Alter link rgba variants — blue instead of orange */
    --theme-color-alter_link_02: rgba(0, 51, 122, 0.2);
    --theme-color-alter_link_03: rgba(0, 51, 122, 0.3);
    --theme-color-alter_link_07: rgba(0, 51, 122, 0.7);

    /* Extra link rgba variants */
    --theme-color-extra_link_02: rgba(0, 51, 122, 0.2);
    --theme-color-extra_link_07: rgba(0, 51, 122, 0.7);

    /* Text hover rgba variants */
    --theme-color-text_hover_02: rgba(0, 34, 85, 0.2);
    --theme-color-text_hover_07: rgba(0, 34, 85, 0.7);

    /* Text dark rgba variants */
    --theme-color-text_dark_003: rgba(29, 29, 29, 0.03);
    --theme-color-text_dark_005: rgba(29, 29, 29, 0.05);
    --theme-color-text_dark_008: rgba(29, 29, 29, 0.08);
    --theme-color-text_dark_015: rgba(29, 29, 29, 0.15);
    --theme-color-text_dark_02: rgba(29, 29, 29, 0.2);
    --theme-color-text_dark_03: rgba(29, 29, 29, 0.3);
    --theme-color-text_dark_05: rgba(29, 29, 29, 0.5);
    --theme-color-text_dark_07: rgba(29, 29, 29, 0.7);
    --theme-color-text_dark_08: rgba(29, 29, 29, 0.8);

    /* Alter dark rgba variants */
    --theme-color-alter_dark_015: rgba(29, 29, 29, 0.15);
    --theme-color-alter_dark_02: rgba(29, 29, 29, 0.2);
    --theme-color-alter_dark_05: rgba(29, 29, 29, 0.5);
    --theme-color-alter_dark_08: rgba(29, 29, 29, 0.8);

    /* Blend colors — slightly shifted hue for gradients/overlays */
    --theme-color-text_link_blend: #073887;
    --theme-color-alter_link_blend: #073887;
    --theme-color-text_dark_blend: #222222;
}

body {
    --wp--preset--color--text-link: #00337a;
    --wp--preset--color--text-hover: #002255;
}

/* Services We Offer section - padding */
[data-id="1e5eecc"] {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Service cards - white background */
[data-id="1e5eecc"] .sc_icons_item {
    background-color: #ffffff !important;
}

/* Service icons - replace font icons with outline SVGs */
[data-id="1e5eecc"] .sc_icons_icon::before,
[data-id="1e5eecc"] .sc_icons_icon span::before {
    content: none;
}
[data-id="1e5eecc"] .sc_icons_icon span {
    display: none;
}
[data-id="1e5eecc"] .sc_icons_icon {
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
/* Insurance icon */
[data-id="1e5eecc"] .sc_icons_icon.icon-shield {
    background-image: url('/wp-content/themes/drop-top-child/images/insurance-icon.png');
}
/* Charging icon */
[data-id="1e5eecc"] .sc_icons_icon.icon-flash {
    background-image: url('/wp-content/themes/drop-top-child/images/charging-icon.png');
}
/* Finance icon */
[data-id="1e5eecc"] .sc_icons_icon.icon-dollar {
    background-image: url('/wp-content/themes/drop-top-child/images/finance-icon.png');
}
/* Car Service icon */
[data-id="1e5eecc"] .sc_icons_icon.icon-wrench {
    background-image: url('/wp-content/themes/drop-top-child/images/service-icon.png');
}

[data-id="1e5eecc"] a,
[data-id="1e5eecc"] a:hover,
[data-id="1e5eecc"] .sc_icons_icon,
[data-id="1e5eecc"] .sc_icons_item:hover .sc_icons_icon,
[data-id="1e5eecc"] .sc_button,
[data-id="1e5eecc"] .sc_title_subtitle,
[data-id="1e5eecc"] .sc_icons_item_title a,
[data-id="1e5eecc"] .sc_icons_item_link,
[data-id="1e5eecc"] .sc_icons_item_readmore {
    color: #00337a !important;
}
/* ===== Unified Button Style ===== */
/* All homepage CTA buttons: blue bg, white text, Barlow Condensed, uppercase */
/* Targets: View All Services, Load More, Learn More, Submit */

/* View all services button - default: blue bg, white text */
[data-id="1e5eecc"] .sc_button.sc_button_default {
    color: #ffffff !important;
    background-color: #00337a !important;
    border: 2px solid #00337a !important;
    border-radius: 4px !important;
    padding: 10px 30px !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}
[data-id="1e5eecc"] .sc_button.sc_button_default .sc_button_title,
[data-id="1e5eecc"] .sc_button.sc_button_default .sc_button_text {
    color: #ffffff !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}
/* View all services button - hover: blue bg, semi-transparent white text */
[data-id="1e5eecc"] .sc_button.sc_button_default:hover {
    background-color: #00337a !important;
    border-color: #00337a !important;
    color: rgba(255, 255, 255, 0.7) !important;
}
[data-id="1e5eecc"] .sc_button.sc_button_default:hover .sc_button_title,
[data-id="1e5eecc"] .sc_button.sc_button_default:hover .sc_button_text {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Recommendation section - padding */
[data-id="11a7d8d"] {
    padding-top: 40px;
    padding-bottom: 60px;
}

[data-id="11a7d8d"] .sc_title_subtitle,
[data-id="11a7d8d"] .post_featured .mask {
    color: #00337a !important;
}
/* Clean car cards — name grey, button white text */
[data-id="11a7d8d"] .ev-compare-card__name a,
[data-id="11a7d8d"] .ev-compare-card__name a:hover {
    color: #424242 !important;
}
[data-id="11a7d8d"] a.ev-compare-card__btn {
    color: #fff !important;
}
[data-id="11a7d8d"] a.ev-compare-card__btn:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}
/* Sale label - white text on blue bg */
[data-id="11a7d8d"] .sc_cars_item_labels a {
    color: #ffffff !important;
    background-color: #00337a !important;
}
/* Load more button - default: blue bg, white text */
[data-id="11a7d8d"] .nav-links-more .nav-links {
    color: #ffffff !important;
    background-color: #00337a !important;
    border: 2px solid #00337a !important;
    border-radius: 4px !important;
    padding: 10px 30px !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}
[data-id="11a7d8d"] .nav-links-more .nav-links span {
    color: #ffffff !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
}
/* Load more button - hover: blue bg, semi-transparent white text */
[data-id="11a7d8d"] .nav-links-more .nav-links:hover {
    background-color: #00337a !important;
    border-color: #00337a !important;
    color: rgba(255, 255, 255, 0.7) !important;
}
[data-id="11a7d8d"] .nav-links-more .nav-links:hover span {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Brand logos section - white background, minimal spacing */
[data-id="9bb9a7d"],
.elementor-element-9bb9a7d {
    background-color: #ffffff;
    padding-top: 15px;
    padding-bottom: 15px;
}
[data-id="9bb9a7d"] img {
    filter: brightness(0.5) contrast(1.1);
    opacity: 0.7;
}

/* EV Categories section - top padding */
[data-id="1dbf6ad"] {
    padding-top: 60px;
}

/* EV Category cards - padding and text logo blue */
[data-id="8808b82"] {
    padding-bottom: 60px;
}

[data-id="8870a23"]{
    padding: 10px 55px 10px 55px;
}

[data-id="8808b82"] .elementor-heading-title,
[data-id="8808b82"] a,
[data-id="8808b82"] p,
[data-id="8808b82"] span {
    color: #00337a;
}

/* Section 38aa0777 - text logo blue */
[data-id="38aa0777"] p,
[data-id="38aa0777"] span,
[data-id="38aa0777"] a,
[data-id="38aa0777"] .elementor-text-editor,
[data-id="38aa0777"] .elementor-heading-title {
    color: #00337a;
}

/* Section 4851fc13 - social names hover grey (icons locked by theme !important) */
.sc_layouts_panel_menu [data-id="4851fc13"] .sc_socials.sc_socials_icons_names .socials_wrap .social_item:hover .social_name {
    color: #424242;
}

/* Footer Services dropdown */
.footer-services-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #ffffff;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer-services-dropdown .custom_links_list_item {
    padding: 6px 20px;
}

.footer-services-dropdown {
    --theme-color-text_dark: #1d1d1d;
    --theme-color-text: #1d1d1d;
}

.widget_custom_links .footer-services-dropdown > li.custom_links_list_item .custom_links_list_item_link {
    color: #1d1d1d;
    text-decoration: none;
    border-bottom: none;
}

.widget_custom_links .footer-services-dropdown > li.custom_links_list_item .custom_links_list_item_title::after {
    display: none;
}

.widget_custom_links .footer-services-dropdown > li.custom_links_list_item .custom_links_list_item_link:hover,
.widget_custom_links .footer-services-dropdown > li.custom_links_list_item:hover .custom_links_list_item_link {
    color: #00337a;
    margin-left: 0;
}

/* Footer content row — three equal columns */
[data-id="effbad2"] {
    padding-bottom: 60px;
}
[data-id="effbad2"] > .elementor-container,
[data-id="effbad2"] > .elementor-container > .elementor-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 40px;
}
[data-id="effbad2"] .elementor-column {
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
}

/* About Us column — override JS-set fixed width */
[data-id="dde7476"] {
    width: auto !important;
    max-width: none !important;
    flex-basis: 0 !important;
    flex: 1 !important;
}

/* Footer links - two-column layout */
[data-id="d337dc3"] .custom_links_list {
    columns: 2;
    column-gap: 30px;
    width: 100% !important;
}
[data-id="d337dc3"] .custom_links_list_item {
    break-inside: avoid;
}
[data-id="d337dc3"] .custom_links_list_item_link {
    font-size: 14px;
    padding: 0.2em 0.3em;
}

/* Footer - override dark scheme orange links to match header blue */
.footer_wrap a {
    color: #00337a;
}
.footer_wrap a:hover {
    color: #002255;
}
.footer_wrap,
.footer_wrap p,
.footer_wrap .widget,
.footer_wrap .elementor-widget-container {
    text-align: left;
}

/* Footer heading - padding and no margin */
[data-id="fdfec5e"] {
    padding-top: 60px;
    padding-bottom: 60px;
    margin: 0;
    width: max-content;
}
[data-id="fdfec5e"] .sc_title {
    margin: 0;
}
[data-id="fdfec5e"] h2 {
    margin: 0;
    white-space: nowrap;
}

/* Footer title alignment fix */
.footer_wrap h2.sc_item_title_tag:not(.sc_align_center) {
    margin-left: -16px;
}

/* Slide-out panel - grey background */
#header-popup.sc_layouts_panel,
#header-popup.sc_layouts_panel .sc_layouts_panel_inner {
    --theme-color-bg_color: #d9d9d9;
    background-color: #d9d9d9;
    --theme-color-text: #232323;
    --theme-color-text_light: #555555;
    color: #232323;
}

/* Slide-out panel - social icons hover logo blue */
#header-popup .sc_socials .social_item a:hover,
#header-popup .sc_socials .social_item a:hover .social_name {
    color: #00337a;
}

/* Section 5a8e62e - padding */
[data-id="5a8e62e"] {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Homepage - Barlow Condensed and capitalize for all titles */
.home h1,
.home h2,
.home h3,
.home h4,
.home h5,
.home h6,
.home .sc_item_title_text,
.home .sc_item_subtitle,
.home .sc_icons_item_title,
.home .sc_icons_item_title a,
.home .elementor-heading-title,
.home .sc_title_subtitle,
.home .sc_button_title,
.home .drive-ev-section-title,
.home .drive-ev-section-label,
.home .drive-ev-about-title,
.home .drive-ev-about-label,
.home .drive-ev-about-author strong {
    font-family: "Barlow Condensed", sans-serif;
    text-transform: capitalize;
}
/* Exclude footer from homepage capitalize — keep footer headings uppercase */
.home footer h1,
.home footer h2,
.home footer h3,
.home footer h4,
.home footer h5,
.home footer h6,
.home footer .elementor-heading-title {
    text-transform: uppercase;
}

/* Footer About Us block */
.drive-ev-about-us {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    text-align: left;
}

.drive-ev-about-us-heading {
    color: #ffffff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 4px;
    font-weight: 600;
}

.drive-ev-about-us-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Footer Feedback Form */
.drive-ev-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
}

.drive-ev-feedback-form input[type="text"],
.drive-ev-feedback-form input[type="email"],
.drive-ev-feedback-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 8px 0;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.drive-ev-feedback-form input[type="text"]:focus,
.drive-ev-feedback-form input[type="email"]:focus,
.drive-ev-feedback-form textarea:focus {
    border-bottom-color: #ffffff;
}

.drive-ev-feedback-form input::placeholder,
.drive-ev-feedback-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.drive-ev-feedback-form textarea {
    resize: vertical;
    min-height: 50px;
}

.drive-ev-feedback-form button[type="submit"] {
    background-color: #00337a;
    color: #ffffff;
    border: 2px solid #00337a;
    border-radius: 4px;
    padding: 10px 30px;
    font-size: 14px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    align-self: flex-start;
    margin-top: 4px;
}

.drive-ev-feedback-form button[type="submit"]:hover {
    background-color: #00337a;
    border-color: #00337a;
    color: rgba(255, 255, 255, 0.7);
}

.drive-ev-feedback-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.drive-ev-feedback-msg {
    font-size: 13px;
    margin-top: 4px;
}

.drive-ev-feedback-msg.success {
    color: #4caf50;
}

.drive-ev-feedback-msg.error {
    color: #ff6b6b;
}

/* About Us page - column d5014ae uniform text size and alignment */
[data-id="d5014ae"] p,
[data-id="d5014ae"] li,
[data-id="d5014ae"] span,
[data-id="d5014ae"] b,
[data-id="d5014ae"] strong {
    font-size: 16px;
    line-height: 1.7;
    color: inherit;
    text-align: left;
}
[data-id="d5014ae"] ol {
    padding-left: 20px;
    margin: 10px 0;
}
[data-id="d5014ae"] ol li {
    margin-bottom: 6px;
    padding-left: 4px;
}
[data-id="d5014ae"] p {
    margin-bottom: 12px;
}
[data-id="d5014ae"] b,
[data-id="d5014ae"] strong {
    font-weight: 700;
}

/* About Us - Founder avatar replacing icon-turbo-1 (widget 93d117e, post 8554) */

/* Hide the font icon character — it lives on the inner span */
[data-id="93d117e"] .sc_icons_icon.icon-turbo-1 span::before {
    content: none;
}
[data-id="93d117e"] .sc_icons_icon.icon-turbo-1 span {
    display: block;
    width: 0;
    height: 0;
}

/* Style the icon wrapper div as a circular avatar */
[data-id="93d117e"] .sc_icons_icon.icon-turbo-1 {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.7)'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E");
    background-size: 55%;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 0 0;
}

/* "A Letter from the Founder" label — injected before the details block */
[data-id="93d117e"] .sc_icons_item_details::before {
    content: 'A Letter from the Founder';
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* About Us page - column cebbb1d vertical center */
[data-id="cebbb1d"].elementor-column {
    display: flex;
    align-items: stretch;
}
[data-id="cebbb1d"] > .elementor-widget-wrap {
    justify-content: center;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}



/* ===== Single Car Page — Banner (matches FYV page) ===== */
body.single-cpt_cars .page_content_wrap {
    padding-top: 0;
}
.car-single-banner {
    background-color: #00337a;
    padding: 90px 20px;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.car-single-banner-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.167em;
    font-weight: 600;
    font-style: normal;
    line-height: 1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    margin: 0;
}
.car-single-breadcrumb {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
}
.car-single-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.car-single-breadcrumb a:hover {
    color: #ffffff;
}
.car-single-breadcrumb-sep {
    margin: 0 8px;
}

@media (max-width: 767px) {
    .car-single-banner {
        padding: 16px;
    }
    .car-single-banner-title {
        font-size: 2em;
    }
}

/* ===== Single Car Page — layout: white bg, grey cards, #424242 titles ===== */
/* Override CSS variables for the car single page */
body.single-cpt_cars {
    --theme-color-bg_color: #ffffff;
    --theme-color-text_dark: #424242;
    --theme-color-alter_bg_color: #f5f5f3;
    --theme-color-alter_bg_hover: #F4EDDA;
    background-color: #ffffff;
}

/* White page content background */
body.single-cpt_cars .page_content_wrap {
    background-color: #ffffff;
}

/* Card-style background on highlighted sections */
.cars_page .cars_page_section.cars_page_details,
.cars_page .cars_page_section.cars_page_features,
.cars_page .cars_page_section.cars_page_video,
.cars_page .cars_page_section.cars_page_agent {
    background-color: #f5f5f3;
    padding: 1.5em 2em;
    border-radius: 4px;
}

/* Title color */
.cars_page .cars_page_title,
.cars_page .cars_page_section_title,
.cars_page h2,
.cars_page h3,
.cars_page h4,
.cars_page .cars_page_agent_info .cars_page_agent_info_name {
    color: #424242;
}

/* ===== Single Car Page — button hover: white bg, blue border & text ===== */
/* Agent contact form — default (sc_form) button */
.cars_page .cars_page_agent_form .sc_form_field_button button,
.cars_page .cars_page_agent_form .sc_form_form button,
.cars_page .cars_page_agent_form form button {
    color: #ffffff;
    background-color: #00337a;
    border: 2px solid #00337a;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.cars_page .cars_page_agent_form .sc_form_field_button button:hover,
.cars_page .cars_page_agent_form .sc_form_form button:hover,
.cars_page .cars_page_agent_form form button:hover {
    color: rgba(255, 255, 255, 0.7);
    background-color: #00337a;
    border-color: #00337a;
}
/* Agent contact form — Contact Form 7 submit
   The theme JS wraps .wpcf7-submit in a .wpcf7-submit-style span and renders
   the visual button via .submit-style-in (z-index:0, visible bg) while the
   actual input is transparent (z-index:1, visible text only).
   We target .submit-style-in for bg/border and .wpcf7-submit for text color.
   Higher specificity needed because CF7 CSS loads after child theme CSS. */
/* Hover — visual background: blue bg, semi-transparent text */
.cars_page .cars_page_agent_form .wpcf7 .wpcf7-submit-style:hover .wpcf7-submit + .submit-style-in {
    background-color: #00337a;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid #00337a;
    border-radius: 4px;
}
/* Hover — input text semi-transparent */
.cars_page .cars_page_agent_form .wpcf7 .wpcf7-submit-style:hover .wpcf7-submit {
    color: rgba(255, 255, 255, 0.7);
}
/* General theme buttons on car page (exclude CF7 submit — it uses .submit-style-in) */
body.single-cpt_cars .page_content_wrap form button:not(.components-button):hover,
body.single-cpt_cars .page_content_wrap input[type="submit"]:not(.wpcf7-submit):hover,
body.single-cpt_cars .page_content_wrap .sc_button_default:hover,
body.single-cpt_cars .page_content_wrap .sc_button:not(.sc_button_simple):not(.sc_button_bordered):not(.sc_button_bg_image):hover,
body.single-cpt_cars .page_content_wrap .theme_button:hover,
body.single-cpt_cars .page_content_wrap .more-link:hover {
    color: rgba(255, 255, 255, 0.7);
    background-color: #00337a;
    border-color: #00337a;
}
body.single-cpt_cars .page_content_wrap .sc_button:hover .sc_button_title,
body.single-cpt_cars .page_content_wrap form button:hover .sc_button_title {
    color: rgba(255, 255, 255, 0.7);
}
/* Status badges in car title — need nth-child to beat parent specificity */
.cars_page_title .cars_page_status > a:hover,
.cars_page_title .cars_page_status > a:nth-child(n):hover {
    color: #00337a;
    background-color: #ffffff;
    border: 1px solid #00337a;
}
/* Car listing label badges */
.sc_cars_default .sc_cars_item .sc_cars_item_thumb .sc_cars_item_labels > a:hover {
    color: #00337a;
    background-color: #ffffff;
    border: 1px solid #00337a;
}

/* ===== About Us Page — CF7 submit button hover ===== */
/* Default state — blue bg, white text */
.page-template-default .wpcf7 .wpcf7-submit-style .submit-style-in,
.page-template-default .wpcf7 .wpcf7-submit-style .wpcf7-submit + .submit-style-in {
    background-color: #00337a;
    color: #ffffff;
    border: 2px solid #00337a;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.page-template-default .wpcf7 .wpcf7-submit-style .wpcf7-submit {
    color: #ffffff;
    transition: color 0.3s ease;
}
/* Hover — blue bg, semi-transparent white text */
.page-template-default .wpcf7 .wpcf7-submit-style:hover .wpcf7-submit + .submit-style-in {
    background-color: #00337a;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid #00337a;
    border-radius: 4px;
}
.page-template-default .wpcf7 .wpcf7-submit-style:hover .wpcf7-submit {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer custom links — reduce title font size */
.widget_custom_links ul > li.custom_links_list_item .custom_links_list_item_title {
    font-size: 14px;
}

/* ===== Cars Archive Page — pagination ===== */
.post-type-archive-cpt_cars .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 20px 0 40px;
}
.post-type-archive-cpt_cars .nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    color: #00337a;
    background: transparent;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.post-type-archive-cpt_cars .nav-links .page-numbers.current {
    background-color: #00337a;
    color: #ffffff;
    border-color: #00337a;
}
.post-type-archive-cpt_cars .nav-links a.page-numbers:hover {
    border-color: #00337a;
    background-color: rgba(0, 51, 122, 0.08);
    color: #00337a;
}
.post-type-archive-cpt_cars .nav-links .page-numbers.dots {
    border: none;
    background: none;
    cursor: default;
    color: #999999;
}
/* Pagination arrows — center the icon inside the box */
.post-type-archive-cpt_cars .nav-links .page-numbers.prev,
.post-type-archive-cpt_cars .nav-links .page-numbers.next,
.post-type-archive-cpt_cars .nav-links .page-numbers.first,
.post-type-archive-cpt_cars .nav-links .page-numbers.last {
    position: relative;
}
.post-type-archive-cpt_cars .nav-links .page-numbers.prev:before,
.post-type-archive-cpt_cars .nav-links .page-numbers.next:before,
.post-type-archive-cpt_cars .nav-links .page-numbers.first:before,
.post-type-archive-cpt_cars .nav-links .page-numbers.last:before {
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

/* ===== Cars Archive Page — blue banner ===== */
body.post-type-archive-cpt_cars .page_content_wrap {
    padding-top: 0;
}
.cars-archive-banner {
    background-color: #00337a;
    padding: 90px 20px;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
}

/* Cars archive — compare bar (back button on compare page) */
.cars-archive-compare-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    clear: both;
}
.cars-archive-compare-btn {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 10px 28px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background-color: #00337a;
    border: 2px solid #00337a;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.cars-archive-compare-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    background-color: #00337a;
}

/* ===== Cars Archive — How to Compare Section ===== */
.cars-how-to-compare {
    width: 100%;
    padding: 24px 0 20px;
    clear: both;
}
.cars-how-to-compare__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 40px;
    font-weight: 550;
    text-transform: capitalize;
    line-height: 1.2;
    color: #424242;
    margin: 0 0 20px;
}
.cars-how-to-compare__steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.cars-how-to-compare__step {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cars-how-to-compare__step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #00337a;
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
.cars-how-to-compare__step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cars-how-to-compare__step-text strong {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
}
.cars-how-to-compare__step-text span {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666666;
    line-height: 1.5;
}

/* Category dropdown + Compare button row */
.cars-category-select-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}
.cars-category-select-row .select_container {
    width: max-content;
    flex-shrink: 0;
}
.cars-category-select {
    width: max-content;
    padding: 10px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    appearance: auto;
    cursor: pointer;
}
.cars-category-select:focus {
    outline: none;
    border-color: #00337a;
}

/* ===== Cars Archive Sidebar — About Compare EV ===== */
.cars-sidebar-about {
    margin-bottom: 24px;
    padding: 20px;
}
.cars-sidebar-about__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #424242;
    margin: 0 0 14px;
}
.cars-sidebar-about p {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: #666666;
    margin: 0 0 10px;
}
.cars-sidebar-about p:last-child {
    margin-bottom: 0;
}

/* Back button on compare results page */
.cars-archive-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background-color: #00337a;
    border: 2px solid #00337a;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.cars-archive-back-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    background-color: #00337a;
}
.cars-archive-banner-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.167em;
    font-weight: 600;
    font-style: normal;
    line-height: 1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    margin: 0;
}
.cars-archive-breadcrumb {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
}
.cars-archive-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.cars-archive-breadcrumb a:hover {
    color: #ffffff;
}
.cars-archive-breadcrumb-sep {
    margin: 0 8px;
}

/* Cars archive — hide Sale/Rent labels and price overlay on thumbnails */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_thumb .sc_cars_item_labels,
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_thumb .sc_cars_item_price {
    display: none;
}

/* Cars archive — make info section flex column so Compare button sits at the bottom */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info {
    display: flex;
    flex-direction: column;
}
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_footer {
    margin-top: auto;
}

/* Cars archive — compare icon → "Compare" button */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare {
    position: static;
    order: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    padding: 10px 20px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #00337a;
    border: 2px solid #00337a;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* Hide the fontello icon */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare:before {
    content: none;
}
/* Show "ADD TO COMPARE" text */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare:after {
    content: 'ADD TO COMPARE';
}
/* Hover state */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare:hover {
    background-color: #00337a;
    color: rgba(255, 255, 255, 0.7);
    border-color: #00337a;
}
/* Active/in-compare state — solid blue bg, no hover change */
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare.in_compare_list,
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare.in_compare_list:hover {
    background-color: #00337a;
    color: #ffffff;
    border-color: #00337a;
    cursor: default;
}
.post-type-archive-cpt_cars .sc_cars_default .sc_cars_item .sc_cars_item_info .sc_cars_item_compare.in_compare_list:after {
    content: 'ADDED TO COMPARE';
}

/* Cars archive — compare button inside clean card */
.post-type-archive-cpt_cars .ev-compare-card .sc_cars_item_compare {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: 10px 20px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #00337a;
    border: 2px solid #00337a;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.post-type-archive-cpt_cars .ev-compare-card .sc_cars_item_compare:before {
    content: none;
}
.post-type-archive-cpt_cars .ev-compare-card .sc_cars_item_compare:after {
    content: 'ADD TO COMPARE';
}
.post-type-archive-cpt_cars .ev-compare-card .sc_cars_item_compare:hover {
    background-color: #00337a;
    color: rgba(255, 255, 255, 0.7);
    border-color: #00337a;
}
.post-type-archive-cpt_cars .ev-compare-card .sc_cars_item_compare.in_compare_list,
.post-type-archive-cpt_cars .ev-compare-card .sc_cars_item_compare.in_compare_list:hover {
    background-color: #00337a;
    color: #ffffff;
    border-color: #00337a;
    cursor: default;
}
.post-type-archive-cpt_cars .ev-compare-card .sc_cars_item_compare.in_compare_list:after {
    content: 'ADDED TO COMPARE';
}

/* Sidebar — override parent theme 4.1em padding */
.sidebar_default[class*="scheme_"] .sidebar_inner {
    padding: 40px 0 45px;
}

/* Cars archive sidebar — hide all default widgets except banner */
.post-type-archive-cpt_cars .sidebar .widget {
    display: none;
}
.post-type-archive-cpt_cars .sidebar .widget_banner {
    display: block;
}

/* ===== Cars Archive Sidebar — EV Type List ===== */
.drive-ev-sidebar-ev-types {
    margin-bottom: 30px;
    padding: 20px;
}
.drive-ev-sidebar-ev-types-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #424242;
    margin: 0 0 16px;
}
.drive-ev-sidebar-ev-types-list {
    list-style: disc;
    margin: 0;
    padding: 0 0 0 20px;
}
.drive-ev-sidebar-ev-types-list li {
    padding: 6px 0;
    color: #424242;
}
.drive-ev-sidebar-ev-types-list a {
    text-decoration: none;
    color: #424242;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.25s ease;
}
.drive-ev-sidebar-ev-types-list a:hover {
    color: #00337a;
}
.drive-ev-sidebar-ev-types-list li.active a {
    color: #00337a;
    font-weight: 600;
}

@media (max-width: 767px) {
    .cars-archive-banner {
        padding: 16px;
    }
    .cars-archive-banner-title {
        font-size: 2em;
    }
    .cars-archive-compare-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px 15px;
    }
    .cars-how-to-compare__steps {
        gap: 12px;
    }
    .cars-category-select-row {
        flex-direction: column;
        align-items: stretch;
    }
    .cars-category-select {
        max-width: 100%;
    }
}

/* ===== Single Service Page ===== */
body.single-cpt_services .page_content_wrap {
    padding-top: 0;
    padding-bottom: 0;
}

/* ===== Services Archive Page ===== */
body.post-type-archive-cpt_services .page_content_wrap {
    padding-top: 60px;
    padding-bottom: 60px;
}
.post-type-archive-cpt_services .sc_services_item_title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-type-archive-cpt_services .sc_services_item_title a {
    color: #00337a;
}
.post-type-archive-cpt_services .sc_services_item_title a:hover {
    color: #00337a;
    opacity: 0.8;
}
.post-type-archive-cpt_services .sc_services_item_subtitle,
.post-type-archive-cpt_services .sc_services_item_subtitle a {
    font-family: 'DM Sans', sans-serif;
    color: #718096;
    font-style: normal;
    font-weight: 400;
}
.post-type-archive-cpt_services .sc_services_item_content,
.post-type-archive-cpt_services .sc_services_item_content p {
    font-family: 'DM Sans', sans-serif;
    color: #424242;
    font-weight: 400;
    line-height: 1.7;
}
.post-type-archive-cpt_services .sc_services_item {
    border-radius: 4px;
    overflow: hidden;
}
.post-type-archive-cpt_services .sc_services_item_info {
    padding: 20px;
}
.post-type-archive-cpt_services .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 20px 0 40px;
}
.post-type-archive-cpt_services .nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    color: #00337a;
    background: transparent;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.post-type-archive-cpt_services .nav-links .page-numbers.current {
    background-color: #00337a;
    color: #ffffff;
    border-color: #00337a;
}
.post-type-archive-cpt_services .nav-links a.page-numbers:hover {
    border-color: #00337a;
    background-color: rgba(0, 51, 122, 0.08);
    color: #00337a;
}
.post-type-archive-cpt_services .nav-links .page-numbers.dots {
    border: none;
    background: none;
    cursor: default;
    color: #999999;
}
.post-type-archive-cpt_services .nav-links .page-numbers.prev,
.post-type-archive-cpt_services .nav-links .page-numbers.next {
    position: relative;
}
.post-type-archive-cpt_services .nav-links .page-numbers.prev:before,
.post-type-archive-cpt_services .nav-links .page-numbers.next:before {
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

/* ===== Partner Auth Pages ===== */
body.page-partner-login .page_content_wrap,
body.page-partner-register .page_content_wrap {
    padding-top: 0;
    padding-bottom: 0;
    background-color: #ffffff;
}

.dev-banner {
    background-color: #00337a;
    padding: 80px 0;
    text-align: center;
}

.dev-banner .dev-banner__title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 70px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1;
    margin: 0 0 16px;
}

.dev-banner__breadcrumb {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.dev-banner__breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dev-banner__breadcrumb a:hover {
    color: #ffffff;
}

.dev-banner__breadcrumb .sep {
    margin: 0 6px;
}

@media (max-width: 767px) {
    .dev-banner {
        padding: 48px 20px;
    }
    .dev-banner__title {
        font-size: 28px;
    }
}

/* ===== Partner Dashboard Page — hide theme chrome ===== */
body.page-partner-dashboard header.top_panel,
body.page-partner-dashboard .top_panel_fixed_wrap,
body.page-partner-dashboard footer.footer_wrap,
body.page-partner-dashboard .footer_widgets_wrap,
body.page-partner-dashboard .vc_row.wpb_row.vc_row-fluid[class*="footer"],
body.page-partner-dashboard #footer_skip_link_anchor {
    display: none;
}

body.page-partner-dashboard .page_content_wrap {
    padding-top: 0;
    padding-bottom: 0;
}

body.page-partner-dashboard .page_wrap {
    padding-top: 0;
}

body.page-partner-dashboard .content_wrap,
body.page-partner-dashboard .page_content_wrap .content_wrap {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

body.page-partner-dashboard .content {
    width: 100%;
}

/* ===== Blog Grid (News) Page ===== */
body.page-blog-grid .page_content_wrap,
body.page-id-344 .page_content_wrap,
body.page-template-blog .page_content_wrap {
    padding-top: 60px;
    padding-bottom: 60px;
}

.dev-blog-row-heading {
    margin: 0 0 30px;
    padding: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 40px;
    font-weight: 550;
    text-transform: capitalize;
    color: #00337a;
    line-height: 1.2;
}

.dev-blog-row-heading:not(:first-of-type) {
    margin-top: 40px;
}

.dev-blog-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--theme-var-grid_gap, 30px);
}

.dev-blog-row > [class*="post_layout_"] {
    flex: 0 0 calc(33.3333% - var(--theme-var-grid_gap, 30px) * 2 / 3);
    max-width: calc(33.3333% - var(--theme-var-grid_gap, 30px) * 2 / 3);
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    .dev-blog-row > [class*="post_layout_"] {
        flex: 0 0 calc(50% - var(--theme-var-grid_gap, 30px) / 2);
        max-width: calc(50% - var(--theme-var-grid_gap, 30px) / 2);
    }
}

@media (max-width: 767px) {
    .dev-blog-row > [class*="post_layout_"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===== Single Post Page ===== */
/* Hide category badge and admin author in post banner */
.single-post .post_header_wrap .post_meta_categories,
.single-post .post_header_wrap .post_author {
    display: none;
}

/* Leave a comment button - border radius */
.single-post .comment-form .form-submit .submit {
    border-radius: 4px;
}

/* Hide "You May Also Like" related posts section */
.single-post .related_wrap {
    display: none;
}

/* Remove dot separator before date in sidebar Latest News widget */
.sidebar .post_item .post_info .post_info_item + .post_info_item:before {
    display: none;
}

/* Sidebar banner — logo on light background */
.sidebar .widget_banner .image_wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f2f5;
    min-height: 200px;
}
.sidebar .widget_banner .image_wrap > img:not(.drive-ev-banner-logo) {
    display: none;
}
.sidebar .widget_banner .drive-ev-banner-logo {
    width: 65%;
    max-width: 200px;
    z-index: 2;
}

/* ===== Single Service Page ===== */
/* Comparison table wrapper */
.service-single-compare {
    padding: 30px 0 40px;
}

/* Hide default service page header (image + title) — we use dev-banner instead */
.services_page_header {
    display: none;
}

/* Narrative section — full-width background */
.service-narrative {
    background: #f5f5f3;
    padding: 36px 40px;
    margin-top: 40px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 40px);
    padding-right: calc(50vw - 50% + 40px);
}

.service-narrative__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #00337a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
}

.service-narrative__content,
.service-narrative__placeholder {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #424242;
    margin: 0;
}

.service-narrative__content p:last-child {
    margin-bottom: 0;
}

/* Single service responsive */
@media (max-width: 768px) {
    .service-narrative {
        padding: 28px 24px;
    }
}

@media (max-width: 520px) {
    .service-single-compare {
        padding: 20px 0 30px;
    }
    .service-narrative {
        padding: 24px 18px;
        margin-top: 28px;
    }
    .service-narrative__title {
        font-size: 20px;
    }
}


/* ==========================================================================
   EV Compare — Cards + Instructions + Checkbox Table
   ========================================================================== */

.ev-compare-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 0;
    overflow-x: clip;
}

/* On service pages, match the narrative section's full width */
.service-single-compare .ev-compare-wrapper {
    max-width: none;
}

/* --- Section A: Car Cards --- */
.ev-compare-cards {
    display: grid;
    grid-template-columns: repeat(var(--ev-card-count, 3), 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.ev-compare-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
}

.ev-compare-card__image {
    position: relative;
    overflow: hidden;
}
.ev-compare-card__image a {
    position: relative;
    z-index: 1;
}

.ev-compare-card__favourite {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00337a;
    padding: 0;
    transition: background 0.3s ease, transform 0.2s ease;
}
.ev-compare-card__favourite svg,
.ev-compare-card__favourite path {
    pointer-events: none;
}
.ev-compare-card__favourite:hover {
    background: #fff;
    transform: scale(1.1);
}
.ev-compare-card__favourite.active {
    color: #00337a;
}
.ev-compare-card__favourite.active svg {
    fill: #00337a;
}

.ev-compare-card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ev-compare-card:hover .ev-compare-card__image img {
    transform: scale(1.1);
}

.ev-compare-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
    pointer-events: none;
}

.ev-compare-card:hover .ev-compare-card__image::after {
    opacity: 1;
}

.ev-compare-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ev-compare-card__name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a2e;
    margin: 0 0 4px;
    line-height: 1.25;
}

.ev-compare-card__meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #777;
    margin: 0 0 14px;
}

.ev-compare-card__btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #00337a;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    margin-top: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ev-compare-card__btn:hover {
    background: #00337a;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Section B: Instructions --- */
.ev-compare-instructions {
    text-align: center;
    background: #f5f5f3;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 32px 24px;
    margin-bottom: 32px;
}

.ev-compare-instructions__heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 40px;
    font-weight: 550;
    text-transform: capitalize;
    color: #424242;
    text-align: center;
    margin: 0 0 12px;
    line-height: 1.2;
}

.ev-compare-instructions__box p.ev-compare-instructions__subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #424242;
    margin: 0 0 14px;
    line-height: 1.5;
    width: max-content;
}

.ev-compare-instructions__box {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.ev-compare-instructions__box p {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #424242;
    margin: 0 0 8px;
    line-height: 1.6;
}

.ev-compare-step {
    font-weight: 700;
    color: #00337a;
}
.ev-compare-step-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
}
.ev-compare-step-row p {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #424242;
    margin: 0;
    line-height: 1.6;
}
.ev-compare-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #00337a;
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.ev-compare-more-btn {
    display: inline-block;
    padding: 12px 36px;
    background: #00337a;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 14px;
}

.ev-compare-more-btn:hover {
    background: #00337a;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Section C: Comparison Table --- */
.ev-compare-table-wrap {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.ev-compare-table {
    width: 100%;
    border-collapse: collapse;
}

.ev-compare-table tr:nth-child(odd) {
    background: #f5f5f3;
}

.ev-compare-table tr:nth-child(even) {
    background: #fff;
}

.ev-compare-table td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #e8e8e8;
}

.ev-compare-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #424242;
    text-align: left;
    white-space: nowrap;
    width: 130px;
    min-width: 130px;
}

.ev-compare-check {
    width: 36px;
    min-width: 36px;
    text-align: center;
}

/* Override parent theme's input[type="checkbox"] { position: absolute !important; clip: rect(1px,1px,1px,1px) } */
input[type="checkbox"].ev-compare-checkbox {
    position: static !important;
    clip: auto !important;
    width: 16px;
    height: 16px;
    margin: 0 !important;
    cursor: pointer;
    accent-color: #00337a;
}

.ev-compare-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #424242;
    text-align: center;
}

.ev-compare-car-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #00337a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ev-compare-car-link:hover {
    color: #002255;
}

.ev-compare-table tr.ev-compare-row-name td {
    background: #00337a;
    color: #fff;
}

.ev-compare-table tr.ev-compare-row-name td.ev-compare-label,
.ev-compare-table tr.ev-compare-row-name td.ev-compare-value,
.ev-compare-table tr.ev-compare-row-name td.ev-compare-value a.ev-compare-car-link {
    color: #fff;
}

.ev-compare-table tr.ev-compare-row-name td.ev-compare-value a.ev-compare-car-link:hover {
    color: #ccd9ec;
}

/* --- Test Drive Row --- */
.ev-compare-row-testdrive {
    background: #f0f4f8;
}

.ev-compare-row-testdrive .ev-compare-label {
    font-weight: 700;
    text-transform: uppercase;
}

.ev-compare-testdrive-btn {
    display: inline-block;
    background: #00337a;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.ev-compare-testdrive-btn:hover {
    background: #00337a;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Test Drive Modal --- */
.ev-testdrive-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ev-testdrive-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.ev-testdrive-modal .ev-testdrive-modal__content {
    position: relative;
    background: #fff;
    border-radius: 4px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.ev-testdrive-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.ev-testdrive-modal__close:hover {
    color: #000;
}

.ev-testdrive-modal__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 600;
    text-transform: capitalize;
    color: #1d1d1d;
    margin: 0 0 4px;
}

.ev-testdrive-modal__car {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #555;
    margin: 0 0 20px;
}

.ev-testdrive-form__field {
    margin-bottom: 14px;
}

.ev-testdrive-form__field label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ev-testdrive-form__field label span {
    color: #c00;
}

.ev-testdrive-modal .ev-testdrive-form__field input[type="text"],
.ev-testdrive-modal .ev-testdrive-form__field input[type="tel"],
.ev-testdrive-modal .ev-testdrive-form__field input[type="email"],
.ev-testdrive-modal .ev-testdrive-form__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.ev-testdrive-modal .ev-testdrive-form__field input:focus,
.ev-testdrive-modal .ev-testdrive-form__field textarea:focus {
    border-color: #00337a;
    outline: none;
}

.ev-testdrive-modal button.ev-testdrive-form__submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: #00337a;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 8px;
}

.ev-testdrive-modal button.ev-testdrive-form__submit:hover {
    background: #00337a;
    color: rgba(255, 255, 255, 0.7);
}

.ev-testdrive-modal button.ev-testdrive-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ev-testdrive-modal .ev-testdrive-form__feedback {
    padding: 10px 14px;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    margin-top: 8px;
}

.ev-testdrive-form__feedback--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.ev-testdrive-form__feedback--error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .ev-compare-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ev-compare-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ev-compare-instructions__heading {
        font-size: 20px;
    }

    .ev-compare-instructions__box {
        padding: 16px 20px;
    }

    .ev-compare-wrapper {
        padding: 20px 0;
    }

    .ev-compare-table-wrap {
        overflow-x: auto;
    }
}

/* --- Compare Limit Toast Notice --- */
.ev-compare-limit-notice {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a2e;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.ev-compare-limit-notice.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- Car Cards inside sc_cars grid (homepage + archive) --- */
.sc_cars .ev-compare-card {
    height: 100%;
}

.sc_cars .ev-compare-card__image a {
    display: block;
}

.sc_cars .ev-compare-card .ev-compare-card__name {
    color: #424242;
}

.sc_cars .ev-compare-card .ev-compare-card__name a,
.sc_cars .ev-compare-card .ev-compare-card__name a:visited {
    color: #424242;
    text-decoration: none;
}

.sc_cars .ev-compare-card .ev-compare-card__name a:hover {
    color: #00337a;
}

.sc_cars .ev-compare-card a.ev-compare-card__btn,
.sc_cars .ev-compare-card a.ev-compare-card__btn:visited,
.sc_cars .ev-compare-card a.ev-compare-card__btn:hover {
    color: #fff;
}

/* ===== ForumWP Discussion Section on News Posts ===== */

/* Discussion wrapper */
.drive-ev-post-discussion {
    margin-top: 40px;
    padding-top: 0;
}

.drive-ev-post-discussion__heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-transform: capitalize;
    color: #1a1a2e;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
}

/* Hide About Author box on single posts */
body.single-post .author_info.author.vcard {
    display: none;
}

/* Hide the initial auto-generated topic post */
.drive-ev-post-discussion .fmwp-topic-content > .fmwp-topic-base,
.drive-ev-post-discussion .fmwp.fmwp-topic-main-wrapper .fmwp-topic-base,
.drive-ev-post-discussion div.fmwp-topic-base {
    display: none;
}

/* Remove extra separator lines */
.drive-ev-post-discussion .fmwp-topic-wrapper {
    border-top: none;
}
.drive-ev-post-discussion .fmwp-reply-row .fmwp-reply-base {
    border-bottom: none;
}
.drive-ev-post-discussion .fmwp-topic-content .fmwp-topic-base {
    border-top: none;
}

/* Main wrapper */
.drive-ev-post-discussion .fmwp-topic-main-wrapper {
    padding: 0;
}

.drive-ev-post-discussion .fmwp-topic-content {
    padding: 0;
}

/* Reply cards */
.drive-ev-post-discussion .fmwp-reply-base-header {
    padding: 14px 0;
}

/* Avatar */
.drive-ev-post-discussion .fmwp-reply-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* Author name */
.drive-ev-post-discussion .fmwp-reply-data-head a {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
    text-decoration: none;
}

/* Timestamp */
.drive-ev-post-discussion .fmwp-reply-subdata {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #aaa;
}

/* Reply content text */
.drive-ev-post-discussion .fmwp-reply-data-content {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Sub-reply indicator */
.drive-ev-post-discussion .fmwp-reply-subreplies-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #00337a;
}

/* "This topic is closed" notice */
.drive-ev-post-discussion .fmwp-topic-closed-notice {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* Dropdown actions menu */
.drive-ev-post-discussion .fmwp-dropdown-menu {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
}

.drive-ev-post-discussion .fmwp-dropdown-menu a {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    padding: 6px 16px;
    color: #333;
    display: block;
    text-decoration: none;
}

.drive-ev-post-discussion .fmwp-dropdown-menu a:hover {
    background: #f5f5f5;
}

/* Hide the default REPLY button and closed notice in footer */
.drive-ev-post-discussion .fmwp-topic-footer {
    display: none;
}

/* Hide the ForumWP reply popup — replaced by inline input */
.drive-ev-post-discussion #fmwp-reply-popup-wrapper {
    display: none;
}

/* Inline comment input — replaces the REPLY button */
.drive-ev-discussion-input {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.drive-ev-discussion-input__field {
    flex: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
}

.drive-ev-discussion-input__field:focus {
    border-bottom-color: #00337a;
}

.drive-ev-discussion-input__field::placeholder {
    color: #bbb;
}

.drive-ev-discussion-input__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00337a;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.drive-ev-discussion-input__btn:hover {
    background: #002255;
}

.drive-ev-discussion-input__btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.drive-ev-discussion-input__btn.is-sending {
    opacity: 0.6;
    pointer-events: none;
}

.drive-ev-discussion-input__status {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #d32f2f;
    margin-top: 8px;
    padding: 0;
}

a.drive-ev-discussion-input__login {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

a.drive-ev-discussion-input__login:hover {
    color: #00337a;
}

/* Inline reply input shown below a specific reply */
.drive-ev-discussion-input--inline {
    margin: 8px 0 12px 48px;
    padding-top: 8px;
    border-top: none;
}

/* ===== Research Page — hide spacer empty space ===== */
.page-id-3029 .elementor-element-c702e6a {
    display: none;
}


/* ===== Research Page Banner (matches site-wide banner pattern) ===== */
.drive-ev-research-banner {
    background-color: #00337a;
    padding: 90px 20px;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
}

.drive-ev-research-banner__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.167em;
    font-weight: 600;
    font-style: normal;
    line-height: 1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    margin: 0;
}

.drive-ev-research-banner__breadcrumb {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
}

.drive-ev-research-banner__breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.drive-ev-research-banner__breadcrumb a:hover {
    color: #ffffff;
}

.drive-ev-research-banner__sep {
    margin: 0 8px;
}

/* Research page — welcome section below banner */
.drive-ev-research-welcome {
    text-align: center;
    padding: 60px 20px;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
}

.drive-ev-research-welcome .sc_item_title_text {
    letter-spacing: -0.6px;
}

.drive-ev-research-welcome__desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #666666;
    max-width: 860px;
    margin: 20px auto 0;
    text-align: center;
}

@media (max-width: 767px) {
    .drive-ev-research-banner {
        padding: 16px;
    }
    .drive-ev-research-banner__title {
        font-size: 2em;
    }
    .drive-ev-research-welcome {
        padding: 40px 15px;
    }
}

/* ===== Privacy Policy Page ===== */
body.page-id-12954 .page_content_wrap,
body.page-id-35684 .page_content_wrap {
    padding-top: 60px;
    padding-bottom: 60px;
}
body.page-id-12954 .page_title,
body.page-id-35684 .page_title {
    display: none;
}
body.page-id-12954 .post_content h5,
body.page-id-35684 .post_content h5 {
    color: #424242;
}

/* ===== Charging Info / Our Services Pages ===== */
.page-charging-info .page_content_wrap,
.page-our-services .page_content_wrap {
    padding-top: 0;
    padding-bottom: 60px;
}

/* Prevent content column overflow from CSS Grid */
.page-charging-info .content,
.page-our-services .content {
    min-width: 0;
    overflow: hidden;
}

.charging-info-page {
    padding: 24px 0 40px;
    max-width: 100%;
}

/* Cards grid — 2 columns matching Compare EVs card layout */
.charging-info-page .ev-compare-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 36px;
    max-width: 100%;
    min-width: 0;
}

.charging-info-page .ev-compare-card {
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.charging-info-page .ev-compare-card__image img {
    width: 100%;
    height: auto;
}

.charging-info-page .ev-compare-card__name a,
.page-our-services .ev-compare-card__name a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.charging-info-page .ev-compare-card__name a:hover,
.page-our-services .ev-compare-card__name a:hover {
    color: #00337a;
}

/* Topic filter links — Other page sidebar */
.os-topic-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.os-topic-links li {
    padding: 6px 0 6px 12px;
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease;
}
.os-topic-links li.active {
    border-left-color: #00337a;
}
.os-topic-links li:hover {
    border-left-color: #00337a;
}

.charging-info-empty {
    text-align: center;
    padding: 60px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #718096;
}

@media (max-width: 767px) {
    .charging-info-page .ev-compare-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ===== Single Post — Hide default comments section ===== */
.single-post .comments_wrap {
    display: none;
}

/* ===== Single Post — Contact Form Below Discussion ===== */
.drive-ev-post-contact-form {
    margin-top: 40px;
    padding: 30px;
    background: #f4f4f4;
    border-radius: 8px;
}
.drive-ev-post-contact-form__heading {
    font-size: 40px;
    font-weight: 550;
    color: #424242;
    text-transform: capitalize;
    line-height: 1.3;
    margin: 0 0 24px;
}
.drive-ev-post-contact-form .wpcf7-submit {
    background: #00337a;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 30px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.drive-ev-post-contact-form .wpcf7-submit:hover {
    background: #00337a;
    color: rgba(255, 255, 255, 0.7);
}
.drive-ev-post-contact-form .wpcf7-submit-style {
    display: inline-block;
    position: relative;
}
.drive-ev-post-contact-form .wpcf7-submit-style .submit-style-in {
    display: none;
}

/* ── Single post article page redesign ── */
body.single-post .page_content_wrap {
    padding-top: 0;
}

.drive-ev-article-header {
    margin-bottom: 30px;
}

.drive-ev-article-header__image {
    padding-top: 30px;
    margin-bottom: 24px;
}
.drive-ev-article-header__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.drive-ev-article-header__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #424242;
    line-height: 1.15;
    margin: 0 0 20px;
}

/* ── Footer car image + marquee section — prevent collapse on non-Elementor pages ── */
.elementor-element-5a926a57 > .elementor-container > .elementor-column > .elementor-widget-wrap {
    min-height: 500px;
}
.elementor-element-8daa03e {
    min-height: 80px;
}
.elementor-element-1e30c63 {
    min-height: 270px;
}
.elementor-element-280956a0 {
    min-height: 130px;
}
/* CSS fallback marquee animation for non-Elementor pages (when TweenMax is unavailable) */
.drive-ev-marquee-css .trx_addons_marquee_element {
    animation: drive-ev-marquee-scroll 20s linear infinite;
}
@keyframes drive-ev-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 767px) {
    .elementor-element-5a926a57 > .elementor-container > .elementor-column > .elementor-widget-wrap {
        min-height: 300px;
    }
    .elementor-element-8daa03e {
        min-height: 40px;
    }
    .elementor-element-1e30c63 {
        min-height: 150px;
    }
    .elementor-element-280956a0 {
        min-height: 60px;
    }
}
