/*
Theme Name: Autoev
Theme URI: https://autoev.com
Author: Designesia
Author URI: https://designesia.com
Description: Electric Vehicle & EV Dealer WordPress Theme - fully converted from HTML with Gutenberg block support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autoev
Tags: electric-vehicle, automotive, gutenberg, custom-post-types, mega-menu, swiper, dark
*/

/* =========================================================
   Autoev Theme — base overrides & WordPress-specific styles
   The bulk of styling comes from assets/css/ (enqueued).
   ========================================================= */

/* --- Gutenberg block editor alignment --- */
.wp-block-image img { max-width: 100%; height: auto; }

/* --- Remove default WordPress margins on full-width pages --- */
.page-template-template-fullwidth #content,
.page-template-template-fullwidth .entry-content {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

/* --- Navigation menu active state --- */
#mainmenu li.current-menu-item > a,
#mainmenu li.current-menu-parent > a,
#mainmenu li.current-menu-ancestor > a {
    color: var(--color-1, #e5381b) !important;
}

/* --- WordPress alignment classes compatibility --- */
.aligncenter { display: block; margin: 0 auto; }
.alignleft   { float: left; margin-right: 1.5em; }
.alignright  { float: right; margin-left: 1.5em; }

/* --- Screen reader text --- */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute !important;
    white-space: nowrap;
    height: 1px; width: 1px;
    overflow: hidden;
}

/* --- Comment form & WP pagination --- */
.wp-pagenavi,
.navigation.pagination { text-align: center; margin: 40px 0; }
.wp-pagenavi a,
.wp-pagenavi span,
.page-numbers { padding: 6px 14px; border: 1px solid #ddd; margin: 2px; display: inline-block; }
.page-numbers.current { background: var(--color-1, #e5381b); color: #fff; border-color: var(--color-1, #e5381b); }

/* --- Vehicle CPT archive card hover --- */
.vehicle-card .hover-bg-color { opacity: 0; transition: opacity .3s; }
.vehicle-card:hover .hover-bg-color { opacity: .1; }

/* --- Hero slider navigation buttons — perfectly left/right aligned --- */
.v-center .swiper-button-prev,
.v-center .swiper-button-next {
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    color: #ffffff;
}
.v-center .swiper-button-prev { left: 30px; }
.v-center .swiper-button-next { right: 30px; }
