&lt;?php
/**
 * gucherry-blog functions and definitions
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 *
 * @package gucherry-blog
 */

if ( ! function_exists( &#039;gucherry_blog_setup&#039; ) ) :
	/**
	 * Sets up theme defaults and registers support for various WordPress features.
	 *
	 * Note that this function is hooked into the after_setup_theme hook, which
	 * runs before the init hook. The init hook is too late for some features, such
	 * as indicating support for post thumbnails.
	 */
	function gucherry_blog_setup() {
		/*
		 * Make theme available for translation.
		 * Translations can be filed in the /languages/ directory.
		 * If you&#039;re building a theme based on gucherry-blog, use a find and replace
		 * to change &#039;gucherry-blog&#039; to the name of your theme in all the template files.
		 */
		load_theme_textdomain( &#039;gucherry-blog&#039;, get_template_directory() . &#039;/languages&#039; );

		// Add default posts and comments RSS feed links to head.
		add_theme_support( &#039;automatic-feed-links&#039; );

		/*
		 * Let WordPress manage the document title.
		 * By adding theme support, we declare that this theme does not use a
		 * hard-coded &lt;title&gt; tag in the document head, and expect WordPress to
		 * provide it for us.
		 */
		add_theme_support( &#039;title-tag&#039; );

		/*
		 * Enable support for Post Thumbnails on posts and pages.
		 *
		 * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
		 */
		add_theme_support( &#039;post-thumbnails&#039; );

		add_image_size( &#039;gucherry-blog-thumbnail-one&#039;, 800, 450, true ); // Blog Thumbnail
		add_image_size( &#039;gucherry-blog-thumbnail-two&#039;, 300, 300, true ); // Author Widget Thumbnail

		// This theme uses wp_nav_menu() in one location.
		register_nav_menus(
			array(
				&#039;menu-1&#039; =&gt; esc_html__( &#039;Primary&#039;, &#039;gucherry-blog&#039; ),
			)
		);

		/*
		 * Switch default core markup for search form, comment form, and comments
		 * to output valid HTML5.
		 */
		add_theme_support(
			&#039;html5&#039;,
			array(
				&#039;comment-form&#039;,
				&#039;comment-list&#039;,
				&#039;gallery&#039;,
				&#039;caption&#039;,
			)
		);

		// Set up the WordPress core custom background feature.
		add_theme_support(
			&#039;custom-background&#039;,
			apply_filters(
				&#039;gucherry_blog_custom_background_args&#039;,
				array(
					&#039;default-color&#039; =&gt; &#039;ffffff&#039;,
					&#039;default-image&#039; =&gt; &#039;&#039;,
				)
			)
		);

		// Add theme support for selective refresh for widgets.
		add_theme_support( &#039;customize-selective-refresh-widgets&#039; );

		/**
		 * Add support for core custom logo.
		 *
		 * @link https://codex.wordpress.org/Theme_Logo
		 */
		add_theme_support(
			&#039;custom-logo&#039;,
			array(
				&#039;height&#039;      =&gt; 250,
				&#039;width&#039;       =&gt; 250,
				&#039;flex-width&#039;  =&gt; true,
				&#039;flex-height&#039; =&gt; true,
			)
		);

		// Add post-formats for theme
		add_theme_support(
			&#039;post-formats&#039;,
			array(
				&#039;audio&#039;,
				&#039;video&#039;,
				&#039;quote&#039;,
				&#039;gallery&#039;,
				&#039;link&#039;,
			)
		);

		add_editor_style();

		// Add support for gutenberg
		add_theme_support( &#039;align-wide&#039; );
		add_theme_support( &#039;wp-block-styles&#039; );
		add_theme_support( &#039;responsive-embeds&#039; );

		// WooCommerce support
		add_theme_support( &#039;woocommerce&#039; );
		add_theme_support( &#039;wc-product-gallery-zoom&#039; );
		add_theme_support( &#039;wc-product-gallery-lightbox&#039; );
		add_theme_support( &#039;wc-product-gallery-slider&#039; );

		remove_theme_support( &#039;widgets-block-editor&#039; );
	}
endif;
add_action( &#039;after_setup_theme&#039;, &#039;gucherry_blog_setup&#039; );

/**
 * Set the content width in pixels, based on the theme&#039;s design and stylesheet.
 *
 * Priority 0 to make it available to lower priority callbacks.
 *
 * @global int $content_width
 */
function gucherry_blog_content_width() {
	// This variable is intended to be overruled from themes.
	// Open WPCS issue: {@link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1043}.
	// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
	$GLOBALS[&#039;content_width&#039;] = apply_filters( &#039;gucherry_blog_content_width&#039;, 640 );
}
add_action( &#039;after_setup_theme&#039;, &#039;gucherry_blog_content_width&#039;, 0 );

/**
 * Register widget area.
 *
 * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
 */
function gucherry_blog_widgets_init() {

	register_sidebar(
		array(
			&#039;name&#039;          =&gt; esc_html__( &#039;Sidebar&#039;, &#039;gucherry-blog&#039; ),
			&#039;id&#039;            =&gt; &#039;gucherry-blog-sidebar&#039;,
			&#039;description&#039;   =&gt; esc_html__( &#039;Add widgets here.&#039;, &#039;gucherry-blog&#039; ),
			&#039;before_widget&#039; =&gt; &#039;&lt;div id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#039;,
			&#039;after_widget&#039;  =&gt; &#039;&lt;/div&gt;&#039;,
			&#039;before_title&#039;  =&gt; &#039;&lt;div class=&quot;widget-title&quot;&gt;&lt;h3&gt;&#039;,
			&#039;after_title&#039;   =&gt; &#039;&lt;/h3&gt;&lt;/div&gt;&#039;,
		)
	);

	register_sidebar(
		array(
			&#039;name&#039;          =&gt; esc_html__( &#039;Shop Sidebar&#039;, &#039;gucherry-blog&#039; ),
			&#039;id&#039;            =&gt; &#039;gucherry-blog-sidebar-shop&#039;,
			&#039;description&#039;   =&gt; esc_html__( &#039;Add widgets here.&#039;, &#039;gucherry-blog&#039; ),
			&#039;before_widget&#039; =&gt; &#039;&lt;div id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#039;,
			&#039;after_widget&#039;  =&gt; &#039;&lt;/div&gt;&#039;,
			&#039;before_title&#039;  =&gt; &#039;&lt;div class=&quot;widget-title&quot;&gt;&lt;h3&gt;&#039;,
			&#039;after_title&#039;   =&gt; &#039;&lt;/h3&gt;&lt;/div&gt;&#039;,
		)
	);

	$display_canvas_sidebar = get_theme_mod( &#039;gucherry_blog_header_display_canvas_sidebar&#039;, true );
	if ( $display_canvas_sidebar == true ) {

		register_sidebar(
			array(
				&#039;name&#039;          =&gt; esc_html__( &#039;Canvas Sidebar&#039;, &#039;gucherry-blog&#039; ),
				&#039;id&#039;            =&gt; &#039;gucherry-blog-canvas-sidebar&#039;,
				&#039;description&#039;   =&gt; esc_html__( &#039;Add widgets here.&#039;, &#039;gucherry-blog&#039; ),
				&#039;before_widget&#039; =&gt; &#039;&lt;div id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#039;,
				&#039;after_widget&#039;  =&gt; &#039;&lt;/div&gt;&#039;,
				&#039;before_title&#039;  =&gt; &#039;&lt;div class=&quot;widget-title&quot;&gt;&lt;h3&gt;&#039;,
				&#039;after_title&#039;   =&gt; &#039;&lt;/h3&gt;&lt;/div&gt;&#039;,
			)
		);

	}

	register_sidebar(
		array(
			&#039;name&#039;          =&gt; esc_html__( &#039;Top Widget Area&#039;, &#039;gucherry-blog&#039; ),
			&#039;id&#039;            =&gt; &#039;gucherry-blog-top-widget&#039;,
			&#039;description&#039;   =&gt; esc_html__( &#039;Widgets here are shown below site banner and above blog page.&#039;, &#039;gucherry-blog&#039; ),
			&#039;before_widget&#039; =&gt; &#039;&lt;div class=&quot;widget text_widget&quot;&gt;&#039;,
			&#039;after_widget&#039;  =&gt; &#039;&lt;/div&gt;&#039;,
			&#039;before_title&#039;  =&gt; &#039;&lt;div class=&quot;widget-title&quot;&gt;&lt;h3&gt;&#039;,
			&#039;after_title&#039;   =&gt; &#039;&lt;/h3&gt;&lt;/div&gt;&#039;,
		)
	);

	register_sidebar(
		array(
			&#039;name&#039;          =&gt; esc_html__( &#039;Bottom Widget Area&#039;, &#039;gucherry-blog&#039; ),
			&#039;id&#039;            =&gt; &#039;gucherry-blog-bottom-widget&#039;,
			&#039;description&#039;   =&gt; esc_html__( &#039;Widgets here are shown below blog page and above site footer.&#039;, &#039;gucherry-blog&#039; ),
			&#039;before_widget&#039; =&gt; &#039;&lt;div class=&quot;widget text_widget&quot;&gt;&#039;,
			&#039;after_widget&#039;  =&gt; &#039;&lt;/div&gt;&#039;,
			&#039;before_title&#039;  =&gt; &#039;&lt;div class=&quot;widget-title&quot;&gt;&lt;h3&gt;&#039;,
			&#039;after_title&#039;   =&gt; &#039;&lt;/h3&gt;&lt;/div&gt;&#039;,
		)
	);

	register_sidebar(
		array(
			&#039;name&#039;          =&gt; esc_html__( &#039;Footer Left&#039;, &#039;gucherry-blog&#039; ),
			&#039;id&#039;            =&gt; &#039;gucherry-blog-footer-left&#039;,
			&#039;description&#039;   =&gt; esc_html__( &#039;Add widgets here.&#039;, &#039;gucherry-blog&#039; ),
			&#039;before_widget&#039; =&gt; &#039;&lt;div id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#039;,
			&#039;after_widget&#039;  =&gt; &#039;&lt;/div&gt;&#039;,
			&#039;before_title&#039;  =&gt; &#039;&lt;div class=&quot;widget-title&quot;&gt;&lt;h3&gt;&#039;,
			&#039;after_title&#039;   =&gt; &#039;&lt;/h3&gt;&lt;/div&gt;&#039;,
		)
	);

	register_sidebar(
		array(
			&#039;name&#039;          =&gt; esc_html__( &#039;Footer Middle&#039;, &#039;gucherry-blog&#039; ),
			&#039;id&#039;            =&gt; &#039;gucherry-blog-footer-middle&#039;,
			&#039;description&#039;   =&gt; esc_html__( &#039;Add widgets here.&#039;, &#039;gucherry-blog&#039; ),
			&#039;before_widget&#039; =&gt; &#039;&lt;div id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#039;,
			&#039;after_widget&#039;  =&gt; &#039;&lt;/div&gt;&#039;,
			&#039;before_title&#039;  =&gt; &#039;&lt;div class=&quot;widget-title&quot;&gt;&lt;h3&gt;&#039;,
			&#039;after_title&#039;   =&gt; &#039;&lt;/h3&gt;&lt;/div&gt;&#039;,
		)
	);

	register_sidebar(
		array(
			&#039;name&#039;          =&gt; esc_html__( &#039;Footer Right&#039;, &#039;gucherry-blog&#039; ),
			&#039;id&#039;            =&gt; &#039;gucherry-blog-footer-right&#039;,
			&#039;description&#039;   =&gt; esc_html__( &#039;Add widgets here.&#039;, &#039;gucherry-blog&#039; ),
			&#039;before_widget&#039; =&gt; &#039;&lt;div id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#039;,
			&#039;after_widget&#039;  =&gt; &#039;&lt;/div&gt;&#039;,
			&#039;before_title&#039;  =&gt; &#039;&lt;div class=&quot;widget-title&quot;&gt;&lt;h3&gt;&#039;,
			&#039;after_title&#039;   =&gt; &#039;&lt;/h3&gt;&lt;/div&gt;&#039;,
		)
	);

	register_widget( &#039;GuCherry_Blog_Author_Widget&#039; );

	register_widget( &#039;GuCherry_Blog_Social_Widget&#039; );

	register_widget( &#039;GuCherry_Blog_Post_Widget&#039; );

}
add_action( &#039;widgets_init&#039;, &#039;gucherry_blog_widgets_init&#039; );

/**
 * Enqueue scripts and styles.
 */

function gucherry_blog_admin_styles() {

	wp_enqueue_style( &#039;gucherry-blog-gc-admin-style&#039;, get_template_directory_uri() . &#039;/everestthemes/admin/css/gc-admin-style.css&#039; );
}
add_action( &#039;admin_enqueue_scripts&#039;, &#039;gucherry_blog_admin_styles&#039; );


function gucherry_blog_scripts() {

	wp_enqueue_style( &#039;gucherry-blog-style&#039;, get_stylesheet_uri() );

	wp_enqueue_style( &#039;gucherry-blog-google-fonts&#039;, gucherry_blog_fonts_url() );

	wp_enqueue_style( &#039;gucherry-blog-main&#039;, get_template_directory_uri() . &#039;/everestthemes/assets/dist/css/main-style.css&#039; );

	wp_enqueue_style( &#039;gucherry-blog-woocommerce-style&#039;, get_template_directory_uri() . &#039;/everestthemes/woocommerce/woocommerce.css&#039; );

	if ( ! is_singular() ) {

		global $wp_query;

		wp_register_script( &#039;gucherry-blog-ajax-script&#039;, get_template_directory_uri() . &#039;/everestthemes/assets/dist/js/ajax-script.js&#039;, array( &#039;jquery&#039; ), wp_get_theme()-&gt;get( &#039;Version&#039; ), true );

		wp_localize_script(
			&#039;gucherry-blog-ajax-script&#039;,
			&#039;gucherry_blog_obj&#039;,
			array(

				&#039;ajaxurl&#039;      =&gt; site_url() . &#039;/wp-admin/admin-ajax.php&#039;,
				&#039;posts&#039;        =&gt; json_encode( $wp_query-&gt;query_vars ),
				&#039;current_page&#039; =&gt; $wp_query-&gt;query_vars[&#039;paged&#039;] ? $wp_query-&gt;query_vars[&#039;paged&#039;] : 1,
				&#039;max_page&#039;     =&gt; $wp_query-&gt;max_num_pages,
				&#039;first_page&#039;   =&gt; get_pagenum_link( 1 ),
			)
		);

		wp_enqueue_script( &#039;gucherry-blog-ajax-script&#039; );
	}

	wp_enqueue_script( &#039;gucherry-blog-bundle&#039;, get_template_directory_uri() . &#039;/everestthemes/assets/dist/js/bundle.min.js&#039;, array( &#039;jquery&#039; ), wp_get_theme()-&gt;get( &#039;Version&#039; ), true );

	wp_enqueue_script( &#039;gucherry-blog-navigation&#039;, get_template_directory_uri() . &#039;/everestthemes/assets/src/js/libraries/navigation.js&#039;, array(), wp_get_theme()-&gt;get( &#039;Version&#039; ), true );

	wp_enqueue_script( &#039;gucherry-blog-skip-link-focus-fix&#039;, get_template_directory_uri() . &#039;/everestthemes/assets/src/js/libraries/skip-link-focus-fix.js&#039;, array(), wp_get_theme()-&gt;get( &#039;Version&#039; ), true );

	if ( is_singular() &amp;&amp; comments_open() &amp;&amp; get_option( &#039;thread_comments&#039; ) ) {
		wp_enqueue_script( &#039;comment-reply&#039; );
	}
}
add_action( &#039;wp_enqueue_scripts&#039;, &#039;gucherry_blog_scripts&#039; );

/**
 * Implement the Custom Header feature.
 */
require get_template_directory() . &#039;/inc/custom-header.php&#039;;

/**
 * Custom template tags for this theme.
 */
require get_template_directory() . &#039;/inc/template-tags.php&#039;;

/**
 * Functions which enhance the theme by hooking into WordPress.
 */
require get_template_directory() . &#039;/inc/template-functions.php&#039;;

/**
 * Functions which enhance the theme by hooking into WordPress.
 */
require get_template_directory() . &#039;/inc/theme-functions.php&#039;;

/**
 * Extras function for this theme.
 */
require get_template_directory() . &#039;/inc/extras.php&#039;;

/**
 * Post Meta Sidebar Position for this theme.
 */
require get_template_directory() . &#039;/inc/custom-fields/sidebar-position.php&#039;;

/**
 * Load breadcrumbs.
 */
require get_template_directory() . &#039;/third-party/breadcrumbs.php&#039;;
require get_template_directory() . &#039;/inc/notice/ebwp-notice.php&#039;;

/**
 * Load TGM plugin activation.
 */
require get_template_directory() . &#039;/third-party/class-tgm-plugin-activation.php&#039;;

/**
 * Customizer additions.
 */
require get_template_directory() . &#039;/inc/customizer/customizer.php&#039;;

/**
 * Load Jetpack compatibility file.
 */
if ( defined( &#039;JETPACK__VERSION&#039; ) ) {
	require get_template_directory() . &#039;/inc/jetpack.php&#039;;
}

/**
 * Load Author Widget.
 */
require get_template_directory() . &#039;/widgets/author-widget.php&#039;;

/**
 * Load Social Widget One.
 */
require get_template_directory() . &#039;/widgets/social-widget.php&#039;;

/**
 * Load Post Widget.
 */
require get_template_directory() . &#039;/widgets/post-widget.php&#039;;

if ( class_exists( &#039;WooCommerce&#039; ) ) {
	/**
	 * WooCommerce functions.
	 */
	require get_template_directory() . &#039;/inc/woocommerce-functions.php&#039;;
}


/**
 * AllMotoReviews - Complete Custom Homepage Design
 * Inspired by Skyvilla premium design with automotive theme
 */
function allmoto_serve_custom_homepage() {
    if ( ! ( is_front_page() || is_home() ) ) return;
    
    // Get recent posts
    $recent_posts = get_posts(array(
        &quot;numberposts&quot; =&gt; 6,
        &quot;post_status&quot; =&gt; &quot;publish&quot;
    ));
    
    // Get all categories
    $categories = get_categories(array(&quot;hide_empty&quot; =&gt; false, &quot;number&quot; =&gt; 8));
    
    ob_start();
    ?&gt;
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
    &lt;title&gt;AllMoto Reviews - Premier Automotive Information &amp; Remodeling Hub&lt;/title&gt;
    &lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.googleapis.com&quot;&gt;
    &lt;link href=&quot;https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&amp;family=Bebas+Neue&amp;display=swap&quot; rel=&quot;stylesheet&quot;&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css&quot;&gt;
    &lt;?php wp_head(); ?&gt;
    &lt;style&gt;
        :root {
            --primary: #c8f23a;
            --primary-dark: #a8d020;
            --dark: #0d0d0d;
            --dark2: #141414;
            --dark3: #1a1a1a;
            --dark4: #222222;
            --gray: #888888;
            --light: #f5f5f5;
            --white: #ffffff;
            --accent: #c8f23a;
            --red: #e63946;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --shadow: 0 20px 60px rgba(0,0,0,0.4);
            --radius: 50px;
            --radius-sm: 16px;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body { font-family: &quot;Inter&quot;, sans-serif; background: var(--dark); color: var(--white); overflow-x: hidden; }
        img { max-width: 100%; height: auto; }
        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }

        /* SCROLLBAR */
        ::-webkit-scrollbar { width: 4px; }
        ::-webkit-scrollbar-track { background: var(--dark2); }
        ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

        /* NAVBAR */
        .amr-nav {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 80px);
            max-width: 1400px;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 60px;
            padding: 12px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 9999;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            transition: var(--transition);
        }
        .amr-nav.scrolled {
            top: 10px;
            background: rgba(255,255,255,0.98);
            box-shadow: 0 20px 60px rgba(0,0,0,0.25);
        }
        .amr-logo { display: flex; align-items: center; gap: 12px; }
        .amr-logo-icon {
            width: 48px; height: 48px;
            background: var(--dark);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px; color: var(--primary);
        }
        .amr-logo-text { font-size: 18px; font-weight: 800; color: var(--dark); white-space: nowrap; }
        .amr-logo-text span { color: var(--red); }
        .amr-nav-links { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
        .amr-nav-links a {
            font-size: 13px; font-weight: 500;
            color: var(--dark); transition: var(--transition); white-space: nowrap;
            position: relative;
        }
        .amr-nav-links a::after {
            content: &quot;&quot;; position: absolute; bottom: -4px; left: 0;
            width: 0; height: 2px; background: var(--primary);
            transition: var(--transition);
        }
        .amr-nav-links a:hover::after { width: 100%; }
        .amr-nav-links a:hover { color: var(--dark); }
        .nav-dropdown { position: relative; }
        .nav-dropdown-menu {
            position: absolute; top: 140%; left: 50%; transform: translateX(-50%);
            background: var(--white); border-radius: 16px;
            padding: 12px; min-width: 180px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
            opacity: 0; visibility: hidden;
            transition: var(--transition);
            pointer-events: none;
        }
        .nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: all; }
        .nav-dropdown-menu a {
            display: block; padding: 10px 16px;
            border-radius: 8px; font-size: 14px;
            transition: var(--transition);
        }
        .nav-dropdown-menu a:hover { background: var(--light); }
        .amr-nav-cta {
            display: flex; align-items: center; gap: 16px;
        }
        .amr-btn-primary {
            background: var(--dark);
            color: var(--white);
            padding: 12px 24px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            display: flex; align-items: center; gap: 8px;
            transition: var(--transition);
            border: none; cursor: pointer;
        }
        .amr-btn-primary:hover { background: var(--primary); color: var(--dark); transform: translateY(-2px); }
        .amr-btn-primary i { font-size: 12px; transform: rotate(-45deg); }
        .amr-search-btn {
            width: 44px; height: 44px;
            border-radius: 50%;
            background: var(--light);
            border: none; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            color: var(--dark); font-size: 16px;
            transition: var(--transition);
        }
        .amr-search-btn:hover { background: var(--primary); }
        .amr-hamburger {
            display: none;
            flex-direction: column; gap: 5px;
            cursor: pointer; background: none; border: none;
            padding: 8px;
        }
        .amr-hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

        /* HERO SLIDER */
        .amr-hero {
            height: 100vh; min-height: 700px;
            position: relative;
            overflow: hidden;
        }
        .hero-slide {
            position: absolute; inset: 0;
            background-size: cover; background-position: center;
            opacity: 0; transition: opacity 1s ease;
            display: flex; align-items: flex-end;
        }
        .hero-slide.active { opacity: 1; }
        .hero-slide::before {
            content: &quot;&quot;; position: absolute; inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.15) 100%);
        }
        .hero-slide-1 { background-image: url(&quot;https://images.unsplash.com/photo-1544636331-e26879cd4d9b?w=1920&amp;q=80&quot;); }
        .hero-slide-2 { background-image: url(&quot;https://images.unsplash.com/photo-1494976388531-d1058494cdd8?w=1920&amp;q=80&quot;); }
        .hero-slide-3 { background-image: url(&quot;https://images.unsplash.com/photo-1583121274602-3e2820c69888?w=1920&amp;q=80&quot;); }
        .hero-slide-4 { background-image: url(&quot;https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1920&amp;q=80&quot;); }
        .hero-content {
            position: relative; z-index: 2;
            padding: 0 80px 80px;
            width: 100%;
        }
        .hero-category {
            display: inline-flex; align-items: center; gap: 8px;
            background: rgba(200,242,58,0.15);
            border: 1px solid var(--primary);
            color: var(--primary);
            padding: 6px 16px;
            border-radius: 50px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 24px;
        }
        .hero-title {
            font-size: clamp(48px, 7vw, 100px);
            font-weight: 900;
            line-height: 0.95;
            text-transform: uppercase;
            color: var(--white);
            max-width: 900px;
            margin-bottom: 24px;
        }
        .hero-title .highlight { color: var(--primary); }
        .hero-desc {
            font-size: 16px;
            color: rgba(255,255,255,0.7);
            max-width: 500px;
            line-height: 1.7;
            margin-bottom: 40px;
        }
        .hero-actions { display: flex; align-items: center; gap: 20px; }
        .hero-btn-main {
            display: flex; align-items: center; gap: 12px;
            background: var(--white);
            color: var(--dark);
            padding: 16px 32px;
            border-radius: 50px;
            font-size: 15px;
            font-weight: 700;
            transition: var(--transition);
            border: none; cursor: pointer;
        }
        .hero-btn-main:hover { background: var(--primary); transform: translateY(-3px); box-shadow: 0 20px 40px rgba(200,242,58,0.3); }
        .hero-btn-main .btn-icon {
            width: 36px; height: 36px;
            background: var(--dark);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: var(--white);
            transition: var(--transition);
        }
        .hero-btn-main:hover .btn-icon { background: var(--white); color: var(--dark); }
        .hero-btn-video {
            display: flex; align-items: center; gap: 12px;
            color: var(--white);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer; border: none; background: none;
            transition: var(--transition);
        }
        .hero-btn-video:hover { color: var(--primary); }
        .hero-play-ring {
            position: relative; width: 80px; height: 80px;
        }
        .hero-play-ring svg {
            position: absolute; inset: 0;
            animation: spin 10s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .hero-play-center {
            position: absolute; inset: 12px;
            background: var(--white);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: var(--dark);
            font-size: 18px;
            transition: var(--transition);
        }
        .hero-btn-video:hover .hero-play-center { background: var(--primary); }
        .hero-slider-controls {
            position: absolute;
            right: 80px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .hero-slider-btn {
            width: 52px; height: 52px;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,0.4);
            background: rgba(255,255,255,0.1);
            color: var(--white);
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 16px;
            transition: var(--transition);
            backdrop-filter: blur(10px);
        }
        .hero-slider-btn:hover {
            background: var(--primary);
            border-color: var(--primary);
            color: var(--dark);
            transform: scale(1.1);
        }
        .hero-dots {
            position: absolute; bottom: 40px; right: 80px;
            display: flex; gap: 8px; z-index: 10;
        }
        .hero-dot {
            width: 8px; height: 8px;
            border-radius: 50%;
            background: rgba(255,255,255,0.4);
            cursor: pointer;
            transition: var(--transition);
            border: none;
        }
        .hero-dot.active {
            width: 32px; border-radius: 4px;
            background: var(--primary);
        }
        .hero-stats {
            position: absolute;
            right: 0; top: 50%;
            transform: translateY(-50%);
            writing-mode: vertical-rl;
            z-index: 10;
            display: flex;
            gap: 0;
        }
        .scroll-indicator {
            position: absolute;
            bottom: 40px;
            left: 80px;
            display: flex;
            align-items: center;
            gap: 12px;
            color: rgba(255,255,255,0.6);
            font-size: 12px;
            letter-spacing: 2px;
            text-transform: uppercase;
            z-index: 10;
        }
        .scroll-line {
            width: 60px; height: 1px;
            background: rgba(255,255,255,0.4);
            position: relative;
            overflow: hidden;
        }
        .scroll-line::after {
            content: &quot;&quot;; position: absolute;
            height: 100%; width: 30%;
            background: var(--primary);
            animation: scrollLine 2s ease infinite;
        }
        @keyframes scrollLine {
            0% { left: -30%; }
            100% { left: 130%; }
        }

        /* TICKER */
        .amr-ticker {
            background: var(--primary);
            padding: 14px 0;
            overflow: hidden;
            position: relative;
        }
        .ticker-track {
            display: flex;
            animation: ticker 30s linear infinite;
            white-space: nowrap;
        }
        .ticker-item {
            display: inline-flex;
            align-items: center;
            gap: 16px;
            padding: 0 40px;
            font-size: 14px;
            font-weight: 700;
            color: var(--dark);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .ticker-dot { width: 6px; height: 6px; background: var(--dark); border-radius: 50%; }
        @keyframes ticker {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* SECTIONS */
        .amr-section { padding: 100px 80px; }
        .amr-section-header {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            margin-bottom: 60px;
        }
        .amr-eyebrow {
            display: inline-flex; align-items: center; gap: 8px;
            color: var(--primary);
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 16px;
        }
        .amr-eyebrow::before {
            content: &quot;&quot;; width: 30px; height: 2px;
            background: var(--primary);
        }
        .amr-section-title {
            font-size: clamp(36px, 4vw, 60px);
            font-weight: 900;
            line-height: 1;
            text-transform: uppercase;
            color: var(--white);
        }
        .amr-section-title .line2 { color: var(--primary); }
        .amr-view-all {
            display: flex; align-items: center; gap: 12px;
            color: var(--white);
            font-size: 14px;
            font-weight: 600;
            transition: var(--transition);
            text-decoration: none;
            white-space: nowrap;
        }
        .amr-view-all .arr-icon {
            width: 44px; height: 44px;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,0.3);
            display: flex; align-items: center; justify-content: center;
            font-size: 14px;
            transition: var(--transition);
        }
        .amr-view-all:hover .arr-icon { background: var(--primary); border-color: var(--primary); color: var(--dark); }
        .amr-view-all:hover { color: var(--primary); }

        /* BLOG GRID */
        .blog-featured { background: var(--dark2); }
        .blog-grid-main {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }
        .blog-card-featured {
            grid-column: span 1;
            background: var(--dark3);
            border-radius: var(--radius-sm);
            overflow: hidden;
            position: relative;
            cursor: pointer;
            transition: var(--transition);
        }
        .blog-card-featured:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
        .blog-card-featured:first-child { grid-column: span 2; }
        .blog-card-img {
            position: relative;
            aspect-ratio: 16/9;
            overflow: hidden;
        }
        .blog-card-featured:first-child .blog-card-img { aspect-ratio: 21/9; }
        .blog-card-img img {
            width: 100%; height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }
        .blog-card-featured:hover .blog-card-img img { transform: scale(1.08); }
        .blog-card-overlay {
            position: absolute; inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
        }
        .blog-card-cat {
            position: absolute; top: 16px; left: 16px;
            background: var(--primary);
            color: var(--dark);
            padding: 4px 14px;
            border-radius: 50px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .blog-card-content { padding: 24px; }
        .blog-card-meta {
            display: flex; align-items: center; gap: 16px;
            margin-bottom: 12px;
        }
        .blog-meta-item {
            display: flex; align-items: center; gap: 6px;
            font-size: 12px; color: var(--gray);
        }
        .blog-meta-item i { color: var(--primary); font-size: 11px; }
        .blog-card-title {
            font-size: 20px; font-weight: 700;
            line-height: 1.3;
            color: var(--white);
            margin-bottom: 12px;
            transition: var(--transition);
        }
        .blog-card-featured:first-child .blog-card-title { font-size: 28px; }
        .blog-card-title:hover { color: var(--primary); }
        .blog-card-excerpt {
            font-size: 14px;
            color: var(--gray);
            line-height: 1.6;
            margin-bottom: 20px;
        }
        .blog-card-footer {
            display: flex; align-items: center;
            justify-content: space-between;
        }
        .blog-card-author {
            display: flex; align-items: center; gap: 10px;
        }
        .blog-author-avatar {
            width: 36px; height: 36px; border-radius: 50%;
            background: var(--primary);
            display: flex; align-items: center; justify-content: center;
            font-size: 14px; font-weight: 700; color: var(--dark);
            overflow: hidden;
        }
        .blog-author-name { font-size: 13px; font-weight: 600; color: var(--white); }
        .blog-read-btn {
            display: flex; align-items: center; gap: 8px;
            background: var(--dark4);
            color: var(--white);
            padding: 8px 16px;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 600;
            transition: var(--transition);
            border: none; cursor: pointer;
        }
        .blog-read-btn:hover { background: var(--primary); color: var(--dark); }
        .blog-read-btn i { font-size: 11px; transform: rotate(-45deg); }

        /* CATEGORIES */
        .amr-categories { background: var(--dark); }
        .cat-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }
        .cat-card {
            background: var(--dark3);
            border-radius: var(--radius-sm);
            padding: 32px 24px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.05);
        }
        .cat-card::before {
            content: &quot;&quot;; position: absolute;
            inset: 0; background: var(--primary);
            opacity: 0; transition: var(--transition);
        }
        .cat-card:hover::before { opacity: 0.08; }
        .cat-card:hover { transform: translateY(-6px); border-color: var(--primary); }
        .cat-icon {
            width: 64px; height: 64px;
            background: rgba(200,242,58,0.1);
            border-radius: 16px;
            display: flex; align-items: center; justify-content: center;
            font-size: 28px;
            color: var(--primary);
            margin: 0 auto 16px;
            transition: var(--transition);
        }
        .cat-card:hover .cat-icon { background: var(--primary); color: var(--dark); }
        .cat-name { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
        .cat-count { font-size: 13px; color: var(--gray); }

        /* LATEST POSTS SLIDER */
        .amr-latest { background: var(--dark2); overflow: hidden; }
        .posts-slider-wrap { position: relative; }
        .posts-slider {
            display: flex;
            gap: 24px;
            overflow: hidden;
            padding-bottom: 8px;
        }
        .post-slide {
            min-width: calc(33.333% - 16px);
            background: var(--dark3);
            border-radius: var(--radius-sm);
            overflow: hidden;
            transition: var(--transition);
            flex-shrink: 0;
        }
        .post-slide:hover { transform: translateY(-8px); }
        .post-slide-img {
            aspect-ratio: 4/3;
            overflow: hidden;
            position: relative;
        }
        .post-slide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
        .post-slide:hover .post-slide-img img { transform: scale(1.06); }
        .post-slide-img .blog-card-cat { z-index: 2; }
        .post-slide-body { padding: 24px; }
        .post-slide-title {
            font-size: 18px; font-weight: 700;
            color: var(--white); line-height: 1.3;
            margin-bottom: 12px; margin-top: 12px;
            transition: var(--transition);
        }
        .post-slide:hover .post-slide-title { color: var(--primary); }
        .post-slide-excerpt { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 20px; }
        .posts-slider-controls {
            display: flex;
            gap: 12px;
            margin-top: 40px;
        }
        .slider-arrow-btn {
            width: 52px; height: 52px;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,0.2);
            background: transparent;
            color: var(--white);
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 16px;
            transition: var(--transition);
        }
        .slider-arrow-btn:hover {
            background: var(--primary);
            border-color: var(--primary);
            color: var(--dark);
            transform: scale(1.1);
        }

        /* PROJECTS / SHARE YOUR BUILD */
        .amr-projects { background: var(--dark); }
        .project-cta-box {
            background: linear-gradient(135deg, var(--dark3) 0%, var(--dark4) 100%);
            border: 1px solid rgba(200,242,58,0.2);
            border-radius: var(--radius-sm);
            padding: 60px;
            text-align: center;
            margin-bottom: 60px;
            position: relative;
            overflow: hidden;
        }
        .project-cta-box::before {
            content: &quot;&quot;; position: absolute;
            top: -50%; right: -20%;
            width: 400px; height: 400px;
            background: radial-gradient(circle, rgba(200,242,58,0.12) 0%, transparent 70%);
            pointer-events: none;
        }
        .project-cta-box h3 { font-size: 40px; font-weight: 900; text-transform: uppercase; margin-bottom: 16px; }
        .project-cta-box p { font-size: 16px; color: var(--gray); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
        .project-upload-area {
            border: 2px dashed rgba(200,242,58,0.4);
            border-radius: var(--radius-sm);
            padding: 40px;
            margin-bottom: 24px;
            transition: var(--transition);
            cursor: pointer;
        }
        .project-upload-area:hover { border-color: var(--primary); background: rgba(200,242,58,0.04); }
        .project-upload-area i { font-size: 36px; color: var(--primary); margin-bottom: 12px; display: block; }
        .project-upload-area p { font-size: 14px; color: var(--gray); margin: 0; }
        .project-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
        .project-card {
            border-radius: var(--radius-sm);
            overflow: hidden;
            position: relative;
            aspect-ratio: 4/3;
            cursor: pointer;
            transition: var(--transition);
        }
        .project-card:hover { transform: scale(1.02); }
        .project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
        .project-card:hover img { transform: scale(1.08); }
        .project-card-overlay {
            position: absolute; inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
            opacity: 0; transition: var(--transition);
            display: flex; align-items: flex-end; padding: 20px;
        }
        .project-card:hover .project-card-overlay { opacity: 1; }
        .project-card-info h4 { font-size: 16px; font-weight: 700; color: var(--white); }
        .project-card-info span { font-size: 12px; color: var(--primary); }
        .project-share-actions {
            position: absolute; top: 12px; right: 12px;
            display: flex; gap: 8px;
            opacity: 0; transition: var(--transition);
        }
        .project-card:hover .project-share-actions { opacity: 1; }
        .project-share-btn {
            width: 36px; height: 36px;
            background: rgba(255,255,255,0.9);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 14px; color: var(--dark);
            transition: var(--transition);
            cursor: pointer; border: none;
        }
        .project-share-btn:hover { background: var(--primary); }

        /* STATS COUNTER */
        .amr-stats { background: var(--primary); padding: 60px 80px; }
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
        .stat-item { text-align: center; }
        .stat-number { font-size: 64px; font-weight: 900; color: var(--dark); line-height: 1; }
        .stat-label { font-size: 14px; font-weight: 700; color: rgba(0,0,0,0.6); text-transform: uppercase; letter-spacing: 2px; margin-top: 8px; }

        /* NEWSLETTER */
        .amr-newsletter { background: var(--dark2); padding: 80px; }
        .newsletter-inner {
            background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: var(--radius-sm);
            padding: 60px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }
        .newsletter-left h3 { font-size: 40px; font-weight: 900; text-transform: uppercase; line-height: 1; margin-bottom: 16px; }
        .newsletter-left h3 span { color: var(--primary); }
        .newsletter-left p { color: var(--gray); font-size: 15px; line-height: 1.6; }
        .newsletter-form {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .newsletter-input-wrap { position: relative; }
        .newsletter-input-wrap input {
            width: 100%;
            background: var(--dark4);
            border: 2px solid rgba(255,255,255,0.1);
            border-radius: 50px;
            padding: 16px 24px;
            color: var(--white);
            font-size: 15px;
            font-family: &quot;Inter&quot;, sans-serif;
            outline: none;
            transition: var(--transition);
        }
        .newsletter-input-wrap input:focus { border-color: var(--primary); }
        .newsletter-input-wrap input::placeholder { color: var(--gray); }
        .newsletter-submit {
            background: var(--primary);
            color: var(--dark);
            padding: 16px 32px;
            border-radius: 50px;
            border: none;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            display: flex; align-items: center; justify-content: center; gap: 10px;
        }
        .newsletter-submit:hover { background: var(--white); transform: translateY(-2px); }

        /* FOOTER */
        .amr-footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.06); padding: 80px; }
        .footer-top {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 60px;
            margin-bottom: 60px;
        }
        .footer-brand .amr-logo-text { font-size: 28px; margin-bottom: 16px; display: block; }
        .footer-desc { font-size: 14px; color: var(--gray); line-height: 1.8; margin-bottom: 24px; }
        .footer-social { display: flex; gap: 12px; }
        .footer-social-btn {
            width: 44px; height: 44px; border-radius: 50%;
            background: var(--dark3); border: 1px solid rgba(255,255,255,0.1);
            display: flex; align-items: center; justify-content: center;
            color: var(--gray); font-size: 16px;
            transition: var(--transition); cursor: pointer;
        }
        .footer-social-btn:hover { background: var(--primary); color: var(--dark); border-color: var(--primary); }
        .footer-col h4 {
            font-size: 16px; font-weight: 700;
            color: var(--white);
            margin-bottom: 24px;
            position: relative; padding-bottom: 12px;
        }
        .footer-col h4::after {
            content: &quot;&quot;; position: absolute;
            bottom: 0; left: 0;
            width: 30px; height: 2px;
            background: var(--primary);
        }
        .footer-links { display: flex; flex-direction: column; gap: 12px; }
        .footer-links a {
            font-size: 14px; color: var(--gray);
            transition: var(--transition);
            display: flex; align-items: center; gap: 8px;
        }
        .footer-links a:hover { color: var(--primary); padding-left: 6px; }
        .footer-links a::before { content: &quot;→&quot;; font-size: 12px; }
        .footer-bottom {
            border-top: 1px solid rgba(255,255,255,0.06);
            padding-top: 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .footer-copy { font-size: 14px; color: var(--gray); }
        .footer-legal { display: flex; gap: 24px; }
        .footer-legal a { font-size: 13px; color: var(--gray); transition: var(--transition); }
        .footer-legal a:hover { color: var(--primary); }

        /* MOBILE NAV */
        .mobile-menu {
            position: fixed; inset: 0;
            background: var(--dark);
            z-index: 99998;
            display: flex; align-items: center; justify-content: center;
            flex-direction: column; gap: 32px;
            transform: translateX(100%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .mobile-menu.open { transform: translateX(0); }
        .mobile-menu a { font-size: 32px; font-weight: 800; color: var(--white); text-transform: uppercase; transition: var(--transition); }
        .mobile-menu a:hover { color: var(--primary); }
        .mobile-close {
            position: absolute; top: 24px; right: 24px;
            width: 48px; height: 48px; border-radius: 50%;
            background: var(--dark3);
            border: none; cursor: pointer;
            color: var(--white); font-size: 20px;
            display: flex; align-items: center; justify-content: center;
            transition: var(--transition);
        }
        .mobile-close:hover { background: var(--primary); color: var(--dark); }

        /* SEARCH OVERLAY */
        .search-overlay {
            position: fixed; inset: 0;
            background: rgba(0,0,0,0.95);
            z-index: 99999;
            display: flex; align-items: center; justify-content: center;
            opacity: 0; visibility: hidden;
            transition: var(--transition);
        }
        .search-overlay.open { opacity: 1; visibility: visible; }
        .search-box {
            width: 90%; max-width: 700px;
            position: relative;
        }
        .search-box input {
            width: 100%;
            background: transparent;
            border: none; border-bottom: 2px solid var(--primary);
            padding: 20px 0;
            font-size: 32px; font-weight: 700;
            color: var(--white); font-family: &quot;Inter&quot;, sans-serif;
            outline: none;
        }
        .search-box input::placeholder { color: rgba(255,255,255,0.3); }
        .search-close {
            position: absolute; top: -60px; right: 0;
            width: 48px; height: 48px; border-radius: 50%;
            background: var(--dark3);
            border: none; cursor: pointer;
            color: var(--white); font-size: 20px;
            display: flex; align-items: center; justify-content: center;
        }

        /* READING PROGRESS */
        .reading-progress {
            position: fixed; top: 0; left: 0;
            width: 0; height: 3px;
            background: var(--primary);
            z-index: 99999;
            transition: width 0.1s linear;
        }

        /* BACK TO TOP */
        .back-to-top {
            position: fixed; bottom: 40px; right: 40px;
            width: 52px; height: 52px;
            background: var(--primary);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: var(--dark); font-size: 18px;
            cursor: pointer; border: none;
            opacity: 0; visibility: hidden;
            transform: translateY(20px);
            transition: var(--transition);
            z-index: 9998;
            box-shadow: 0 8px 30px rgba(200,242,58,0.4);
        }
        .back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
        .back-to-top:hover { transform: translateY(-4px); }

        /* FEATURED CAROUSEL */
        .amr-featured-carousel { background: var(--dark3); }
        .carousel-track-wrap { overflow: hidden; border-radius: var(--radius-sm); }
        .carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
        .carousel-slide { min-width: 100%; position: relative; }
        .carousel-slide-inner {
            display: grid; grid-template-columns: 1fr 1fr;
            min-height: 500px;
        }
        .carousel-img {
            overflow: hidden;
        }
        .carousel-img img { width: 100%; height: 100%; object-fit: cover; }
        .carousel-body {
            padding: 60px;
            display: flex; flex-direction: column; justify-content: center;
            background: var(--dark4);
        }
        .carousel-controls {
            display: flex; align-items: center; gap: 16px;
            margin-top: 40px;
        }
        .carousel-progress {
            flex: 1; height: 2px;
            background: rgba(255,255,255,0.1);
            border-radius: 1px;
            overflow: hidden;
        }
        .carousel-progress-bar {
            height: 100%;
            background: var(--primary);
            transition: width 0.3s ease;
        }
        .carousel-counter { font-size: 14px; color: var(--gray); font-weight: 600; }

        /* VIDEO MODAL */
        .video-modal {
            position: fixed; inset: 0;
            background: rgba(0,0,0,0.9);
            z-index: 99999;
            display: flex; align-items: center; justify-content: center;
            opacity: 0; visibility: hidden;
            transition: var(--transition);
        }
        .video-modal.open { opacity: 1; visibility: visible; }
        .video-modal iframe { width: min(90vw, 1000px); height: min(90vw * 9/16, 562px); border-radius: var(--radius-sm); }
        .video-modal-close {
            position: absolute; top: 24px; right: 24px;
            width: 48px; height: 48px; border-radius: 50%;
            background: rgba(255,255,255,0.1);
            border: none; cursor: pointer;
            color: var(--white); font-size: 20px;
            display: flex; align-items: center; justify-content: center;
            transition: var(--transition);
        }
        .video-modal-close:hover { background: var(--primary); color: var(--dark); }

        /* RESPONSIVE */
        @media (max-width: 1024px) {
            .amr-section { padding: 80px 40px; }
            .amr-hero .hero-content { padding: 0 40px 60px; }
            .blog-grid-main { grid-template-columns: 1fr; }
            .blog-card-featured:first-child { grid-column: span 1; }
            .cat-grid { grid-template-columns: repeat(2, 1fr); }
            .post-slide { min-width: calc(50% - 12px); }
            .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .project-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 768px) {
            .amr-nav { width: calc(100% - 32px); padding: 12px 16px; }
            .amr-nav-links { display: none; }
            .amr-hamburger { display: flex; }
            .amr-section { padding: 60px 20px; }
            .amr-hero .hero-content { padding: 0 20px 40px; }
            .hero-slider-controls { right: 20px; }
            .hero-dots { right: 20px; }
            .scroll-indicator { left: 20px; }
            .cat-grid { grid-template-columns: repeat(2, 1fr); }
            .post-slide { min-width: 100%; }
            .amr-stats { padding: 40px 20px; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .newsletter-inner { grid-template-columns: 1fr; gap: 40px; }
            .amr-newsletter { padding: 40px 20px; }
            .amr-footer { padding: 40px 20px; }
            .footer-top { grid-template-columns: 1fr; gap: 32px; }
            .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
            .carousel-slide-inner { grid-template-columns: 1fr; }
            .project-grid { grid-template-columns: 1fr; }
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body class=&quot;amr-body&quot;&gt;

&lt;!-- Reading Progress --&gt;
&lt;div class=&quot;reading-progress&quot; id=&quot;readingProgress&quot;&gt;&lt;/div&gt;

&lt;!-- Search Overlay --&gt;
&lt;div class=&quot;search-overlay&quot; id=&quot;searchOverlay&quot;&gt;
    &lt;div class=&quot;search-box&quot;&gt;
        &lt;button class=&quot;search-close&quot; onclick=&quot;document.getElementById(&#039;searchOverlay&#039;).classList.remove(&#039;open&#039;)&quot;&gt;&lt;i class=&quot;fas fa-times&quot;&gt;&lt;/i&gt;&lt;/button&gt;
        &lt;input type=&quot;text&quot; placeholder=&quot;Search automotive topics...&quot; autofocus&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;!-- Mobile Menu --&gt;
&lt;div class=&quot;mobile-menu&quot; id=&quot;mobileMenu&quot;&gt;
    &lt;button class=&quot;mobile-close&quot; onclick=&quot;document.getElementById(&#039;mobileMenu&#039;).classList.remove(&#039;open&#039;)&quot;&gt;&lt;i class=&quot;fas fa-times&quot;&gt;&lt;/i&gt;&lt;/button&gt;
    &lt;a href=&quot;&lt;?php echo home_url(); ?&gt;&quot;&gt;Home&lt;/a&gt;
    &lt;a href=&quot;&lt;?php echo home_url(&#039;/category/reviews&#039;); ?&gt;&quot;&gt;Reviews&lt;/a&gt;
    &lt;a href=&quot;&lt;?php echo home_url(&#039;/category/builds&#039;); ?&gt;&quot;&gt;Builds&lt;/a&gt;
    &lt;a href=&quot;&lt;?php echo home_url(&#039;/category/tips&#039;); ?&gt;&quot;&gt;Tips &amp;amp; Guides&lt;/a&gt;
    &lt;a href=&quot;&lt;?php echo home_url(&#039;/category/mods&#039;); ?&gt;&quot;&gt;Mods&lt;/a&gt;
    &lt;?php wp_logout_url() ? &#039;&#039; : &#039;&#039;; ?&gt;
&lt;/div&gt;

&lt;!-- Video Modal --&gt;
&lt;div class=&quot;video-modal&quot; id=&quot;videoModal&quot;&gt;
    &lt;button class=&quot;video-modal-close&quot; onclick=&quot;document.getElementById(&#039;videoModal&#039;).classList.remove(&#039;open&#039;)&quot;&gt;&lt;i class=&quot;fas fa-times&quot;&gt;&lt;/i&gt;&lt;/button&gt;
    &lt;div style=&quot;position:relative;width:min(90vw,1000px);height:auto&quot;&gt;
        &lt;div style=&quot;padding-top:56.25%;position:relative;background:#000;border-radius:16px;overflow:hidden&quot;&gt;
            &lt;iframe id=&quot;videoFrame&quot; src=&quot;&quot; allowfullscreen style=&quot;position:absolute;inset:0;width:100%;height:100%;border:none;&quot;&gt;&lt;/iframe&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;!-- NAVBAR --&gt;
&lt;nav class=&quot;amr-nav&quot; id=&quot;amrNav&quot;&gt;
    &lt;div class=&quot;amr-logo&quot;&gt;
        &lt;img src=&quot;https://allmotoreviews.com/wp-content/uploads/2026/05/allmotoreviews-logo-v2.png&quot; alt=&quot;AllMoto Reviews&quot; style=&quot;height:63px;width:auto;display:block;&quot;&gt;

    &lt;/div&gt;
    &lt;ul class=&quot;amr-nav-links&quot;&gt;
&lt;li&gt;&lt;a href=&quot;https://allmotoreviews.com/&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;nav-dropdown&quot;&gt;&lt;a href=&quot;https://allmotoreviews.com/reviews/&quot;&gt;Reviews &lt;i class=&quot;fas fa-chevron-down&quot; style=&quot;font-size:10px;margin-left:4px;&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;div class=&quot;nav-dropdown-menu&quot;&gt;&lt;a href=&quot;https://allmotoreviews.com/sports-car-reviews/&quot;&gt;Sports Car Reviews&lt;/a&gt;&lt;a href=&quot;https://allmotoreviews.com/suv-truck-reviews/&quot;&gt;SUV &amp; Truck Reviews&lt;/a&gt;&lt;a href=&quot;https://allmotoreviews.com/electric-vehicle-reviews/&quot;&gt;EV Reviews&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class=&quot;nav-dropdown&quot;&gt;&lt;a href=&quot;https://allmotoreviews.com/builds/&quot;&gt;Builds &lt;i class=&quot;fas fa-chevron-down&quot; style=&quot;font-size:10px;margin-left:4px;&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;div class=&quot;nav-dropdown-menu&quot;&gt;&lt;a href=&quot;https://allmotoreviews.com/track-day-guide/&quot;&gt;Track Day Guide&lt;/a&gt;&lt;a href=&quot;https://allmotoreviews.com/car-detailing-guide/&quot;&gt;Car Detailing&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li class=&quot;nav-dropdown&quot;&gt;&lt;a href=&quot;https://allmotoreviews.com/tips-guides/&quot;&gt;Tips &amp; Guides &lt;i class=&quot;fas fa-chevron-down&quot; style=&quot;font-size:10px;margin-left:4px;&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;div class=&quot;nav-dropdown-menu&quot;&gt;&lt;a href=&quot;https://allmotoreviews.com/mods/&quot;&gt;Car Mods&lt;/a&gt;&lt;a href=&quot;https://allmotoreviews.com/blog/&quot;&gt;Blog&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://allmotoreviews.com/mods/&quot;&gt;Mods&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://allmotoreviews.com/about/&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://allmotoreviews.com/contact/&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
    &lt;div class=&quot;amr-nav-cta&quot;&gt;
        &lt;button class=&quot;amr-search-btn&quot; onclick=&quot;document.getElementById(&#039;searchOverlay&#039;).classList.add(&#039;open&#039;)&quot; title=&quot;Search&quot;&gt;&lt;i class=&quot;fas fa-search&quot;&gt;&lt;/i&gt;&lt;/button&gt;
        &lt;a href=&quot;&lt;?php echo home_url(&#039;/submit-build&#039;); ?&gt;&quot; class=&quot;amr-btn-primary&quot;&gt;Submit Build &lt;i class=&quot;fas fa-arrow-up&quot;&gt;&lt;/i&gt;&lt;/a&gt;
        &lt;button class=&quot;amr-hamburger&quot; id=&quot;hamburger&quot; onclick=&quot;document.getElementById(&#039;mobileMenu&#039;).classList.add(&#039;open&#039;)&quot;&gt;
            &lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;
        &lt;/button&gt;
    &lt;/div&gt;
&lt;/nav&gt;

&lt;!-- HERO SLIDER --&gt;
&lt;section class=&quot;amr-hero&quot; id=&quot;hero&quot;&gt;
    &lt;div class=&quot;hero-slide hero-slide-1 active&quot;&gt;
        &lt;div class=&quot;hero-content&quot;&gt;
            &lt;div class=&quot;hero-category&quot;&gt;&lt;i class=&quot;fas fa-circle&quot; style=&quot;font-size:6px;&quot;&gt;&lt;/i&gt; Featured Review&lt;/div&gt;
            &lt;h1 class=&quot;hero-title&quot;&gt;The Art of&lt;br&gt;&lt;span class=&quot;highlight&quot;&gt;Automotive&lt;/span&gt;&lt;br&gt;Excellence&lt;/h1&gt;
            &lt;p class=&quot;hero-desc&quot;&gt;Your ultimate destination for car reviews, builds, modifications, and everything automotive. Discover the passion behind every machine.&lt;/p&gt;
            &lt;div class=&quot;hero-actions&quot;&gt;
                &lt;a href=&quot;&lt;?php echo get_permalink(get_option(&quot;page_for_posts&quot;)); ?&gt;&quot; class=&quot;hero-btn-main&quot;&gt;
                    Explore Reviews
                    &lt;span class=&quot;btn-icon&quot;&gt;&lt;i class=&quot;fas fa-arrow-right&quot;&gt;&lt;/i&gt;&lt;/span&gt;
                &lt;/a&gt;
                &lt;button class=&quot;hero-btn-video&quot; onclick=&quot;document.getElementById(&#039;videoModal&#039;).classList.add(&#039;open&#039;)&quot;&gt;
                    &lt;div class=&quot;hero-play-ring&quot;&gt;
                        &lt;svg viewBox=&quot;0 0 100 100&quot; width=&quot;80&quot; height=&quot;80&quot;&gt;&lt;path id=&quot;circlePath&quot; d=&quot;M 50,50 m -30,0 a 30,30 0 1,1 60,0 a 30,30 0 1,1 -60,0&quot; fill=&quot;none&quot;/&gt;&lt;text font-size=&quot;9.5&quot; font-weight=&quot;600&quot; fill=&quot;rgba(255,255,255,0.7)&quot; font-family=&quot;Inter,sans-serif&quot; letter-spacing=&quot;4&quot;&gt;&lt;textPath href=&quot;#circlePath&quot;&gt;WATCH VIDEO • WATCH VIDEO • &lt;/textPath&gt;&lt;/text&gt;&lt;/svg&gt;
                        &lt;div class=&quot;hero-play-center&quot;&gt;&lt;i class=&quot;fas fa-play&quot;&gt;&lt;/i&gt;&lt;/div&gt;
                    &lt;/div&gt;
                &lt;/button&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;hero-slide hero-slide-2&quot;&gt;
        &lt;div class=&quot;hero-content&quot;&gt;
            &lt;div class=&quot;hero-category&quot;&gt;&lt;i class=&quot;fas fa-circle&quot; style=&quot;font-size:6px;&quot;&gt;&lt;/i&gt; Build Spotlight&lt;/div&gt;
            &lt;h1 class=&quot;hero-title&quot;&gt;Share Your&lt;br&gt;&lt;span class=&quot;highlight&quot;&gt;Dream&lt;/span&gt;&lt;br&gt;Build&lt;/h1&gt;
            &lt;p class=&quot;hero-desc&quot;&gt;Show the world your automotive masterpiece. Share images, project details, and connect with thousands of car enthusiasts.&lt;/p&gt;
            &lt;div class=&quot;hero-actions&quot;&gt;
                &lt;a href=&quot;&lt;?php echo home_url(&#039;/submit-build&#039;); ?&gt;&quot; class=&quot;hero-btn-main&quot;&gt;
                    Submit Your Build
                    &lt;span class=&quot;btn-icon&quot;&gt;&lt;i class=&quot;fas fa-arrow-right&quot;&gt;&lt;/i&gt;&lt;/span&gt;
                &lt;/a&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;hero-slide hero-slide-3&quot;&gt;
        &lt;div class=&quot;hero-content&quot;&gt;
            &lt;div class=&quot;hero-category&quot;&gt;&lt;i class=&quot;fas fa-circle&quot; style=&quot;font-size:6px;&quot;&gt;&lt;/i&gt; Modification Guide&lt;/div&gt;
            &lt;h1 class=&quot;hero-title&quot;&gt;Upgrade&lt;br&gt;&lt;span class=&quot;highlight&quot;&gt;Transform&lt;/span&gt;&lt;br&gt;Dominate&lt;/h1&gt;
            &lt;p class=&quot;hero-desc&quot;&gt;From bolt-on mods to full custom builds — find expert guides and tutorials for every level of automotive modification.&lt;/p&gt;
            &lt;div class=&quot;hero-actions&quot;&gt;
                &lt;a href=&quot;&lt;?php echo home_url(&#039;/category/mods&#039;); ?&gt;&quot; class=&quot;hero-btn-main&quot;&gt;
                    Browse Mods
                    &lt;span class=&quot;btn-icon&quot;&gt;&lt;i class=&quot;fas fa-arrow-right&quot;&gt;&lt;/i&gt;&lt;/span&gt;
                &lt;/a&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;hero-slide hero-slide-4&quot;&gt;
        &lt;div class=&quot;hero-content&quot;&gt;
            &lt;div class=&quot;hero-category&quot;&gt;&lt;i class=&quot;fas fa-circle&quot; style=&quot;font-size:6px;&quot;&gt;&lt;/i&gt; Community&lt;/div&gt;
            &lt;h1 class=&quot;hero-title&quot;&gt;Join The&lt;br&gt;&lt;span class=&quot;highlight&quot;&gt;Moto&lt;/span&gt;&lt;br&gt;Community&lt;/h1&gt;
            &lt;p class=&quot;hero-desc&quot;&gt;Connect with over 50,000 automotive enthusiasts. Share knowledge, ask questions, and fuel your passion for cars.&lt;/p&gt;
            &lt;div class=&quot;hero-actions&quot;&gt;
                &lt;a href=&quot;&lt;?php echo home_url(); ?&gt;&quot; class=&quot;hero-btn-main&quot;&gt;
                    Join Community
                    &lt;span class=&quot;btn-icon&quot;&gt;&lt;i class=&quot;fas fa-arrow-right&quot;&gt;&lt;/i&gt;&lt;/span&gt;
                &lt;/a&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;!-- Slider Controls --&gt;
    &lt;div class=&quot;hero-slider-controls&quot;&gt;
        &lt;button class=&quot;hero-slider-btn&quot; id=&quot;heroPrev&quot; title=&quot;Previous&quot;&gt;&lt;i class=&quot;fas fa-chevron-up&quot;&gt;&lt;/i&gt;&lt;/button&gt;
        &lt;button class=&quot;hero-slider-btn&quot; id=&quot;heroNext&quot; title=&quot;Next&quot;&gt;&lt;i class=&quot;fas fa-chevron-down&quot;&gt;&lt;/i&gt;&lt;/button&gt;
    &lt;/div&gt;
    &lt;!-- Dots --&gt;
    &lt;div class=&quot;hero-dots&quot;&gt;
        &lt;button class=&quot;hero-dot active&quot; data-slide=&quot;0&quot;&gt;&lt;/button&gt;
        &lt;button class=&quot;hero-dot&quot; data-slide=&quot;1&quot;&gt;&lt;/button&gt;
        &lt;button class=&quot;hero-dot&quot; data-slide=&quot;2&quot;&gt;&lt;/button&gt;
        &lt;button class=&quot;hero-dot&quot; data-slide=&quot;3&quot;&gt;&lt;/button&gt;
    &lt;/div&gt;
    &lt;!-- Scroll Indicator --&gt;
    &lt;div class=&quot;scroll-indicator&quot;&gt;
        &lt;div class=&quot;scroll-line&quot;&gt;&lt;/div&gt;
        Scroll Down
    &lt;/div&gt;
&lt;/section&gt;

&lt;!-- TICKER --&gt;
&lt;div class=&quot;amr-ticker&quot;&gt;
    &lt;div class=&quot;ticker-track&quot; id=&quot;tickerTrack&quot;&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Car Reviews&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Engine Builds&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Performance Mods&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Restoration Projects&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Track Days&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Detailing Tips&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; EV Reviews&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Tuning Guides&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Car Culture&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Community Builds&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Car Reviews&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Engine Builds&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Performance Mods&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Restoration Projects&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Track Days&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Detailing Tips&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; EV Reviews&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Tuning Guides&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Car Culture&lt;/div&gt;
        &lt;div class=&quot;ticker-item&quot;&gt;&lt;span class=&quot;ticker-dot&quot;&gt;&lt;/span&gt; Community Builds&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;!-- FEATURED POSTS --&gt;
&lt;section class=&quot;amr-section blog-featured&quot; id=&quot;featured&quot;&gt;
    &lt;div class=&quot;amr-section-header&quot;&gt;
        &lt;div&gt;
            &lt;div class=&quot;amr-eyebrow&quot;&gt;Latest Stories&lt;/div&gt;
            &lt;h2 class=&quot;amr-section-title&quot;&gt;FEATURED&lt;br&gt;&lt;span class=&quot;line2&quot;&gt;ARTICLES&lt;/span&gt;&lt;/h2&gt;
        &lt;/div&gt;
        &lt;a href=&quot;&lt;?php echo get_permalink(get_option(&quot;page_for_posts&quot;)); ?&gt;&quot; class=&quot;amr-view-all&quot;&gt;View All Posts &lt;span class=&quot;arr-icon&quot;&gt;&lt;i class=&quot;fas fa-arrow-right&quot;&gt;&lt;/i&gt;&lt;/span&gt;&lt;/a&gt;
    &lt;/div&gt;
    &lt;div class=&quot;blog-grid-main&quot;&gt;
        &lt;?php
        $featured = get_posts(array(&quot;numberposts&quot; =&gt; 3, &quot;post_status&quot; =&gt; &quot;publish&quot;));
        $icons = array(&quot;fas fa-car&quot;, &quot;fas fa-wrench&quot;, &quot;fas fa-tachometer-alt&quot;, &quot;fas fa-road&quot;);
        $placeholder_imgs = array(
            &quot;https://images.unsplash.com/photo-1544636331-e26879cd4d9b?w=800&amp;q=80&quot;,
            &quot;https://images.unsplash.com/photo-1494976388531-d1058494cdd8?w=800&amp;q=80&quot;,
            &quot;https://images.unsplash.com/photo-1583121274602-3e2820c69888?w=800&amp;q=80&quot;,
            &quot;https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=800&amp;q=80&quot;,
            &quot;https://images.unsplash.com/photo-1552519507-da3b142c6e3d?w=800&amp;q=80&quot;,
            &quot;https://images.unsplash.com/photo-1549399542-7e3f8b79c341?w=800&amp;q=80&quot;
        );
        $cats_list = array(&quot;Car Review&quot;, &quot;Build Guide&quot;, &quot;Mods&quot;, &quot;Tips&quot;, &quot;EV&quot;, &quot;Restoration&quot;);
        foreach ($featured as $idx =&gt; $post) :
            $thumb = get_the_post_thumbnail_url($post-&gt;ID, &quot;large&quot;);
            if (!$thumb) $thumb = $placeholder_imgs[$idx % count($placeholder_imgs)];
            $cat = get_the_category($post-&gt;ID);
            $cat_name = !empty($cat) ? $cat[0]-&gt;name : $cats_list[$idx % count($cats_list)];
            $excerpt = wp_trim_words(get_the_excerpt($post-&gt;ID), 20, &quot;...&quot;);
            if (!$excerpt) $excerpt = wp_trim_words($post-&gt;post_content, 20, &quot;...&quot;);
        ?&gt;
        &lt;div class=&quot;blog-card-featured&quot; onclick=&quot;window.location=&#039;&lt;?php echo get_permalink($post-&gt;ID); ?&gt;&#039;&quot;&gt;
            &lt;div class=&quot;blog-card-img&quot;&gt;
                &lt;img src=&quot;&lt;?php echo esc_url($thumb); ?&gt;&quot; alt=&quot;&lt;?php echo esc_attr($post-&gt;post_title); ?&gt;&quot; loading=&quot;lazy&quot;&gt;
                &lt;div class=&quot;blog-card-overlay&quot;&gt;&lt;/div&gt;
                &lt;span class=&quot;blog-card-cat&quot;&gt;&lt;?php echo esc_html($cat_name); ?&gt;&lt;/span&gt;
            &lt;/div&gt;
            &lt;div class=&quot;blog-card-content&quot;&gt;
                &lt;div class=&quot;blog-card-meta&quot;&gt;
                    &lt;span class=&quot;blog-meta-item&quot;&gt;&lt;i class=&quot;fas fa-calendar&quot;&gt;&lt;/i&gt;&lt;?php echo get_the_date(&quot;M j, Y&quot;, $post-&gt;ID); ?&gt;&lt;/span&gt;
                    &lt;span class=&quot;blog-meta-item&quot;&gt;&lt;i class=&quot;fas fa-clock&quot;&gt;&lt;/i&gt;&lt;?php echo ceil(str_word_count(strip_tags($post-&gt;post_content)) / 200); ?&gt; min read&lt;/span&gt;
                    &lt;span class=&quot;blog-meta-item&quot;&gt;&lt;i class=&quot;fas fa-user&quot;&gt;&lt;/i&gt;&lt;?php echo get_the_author_meta(&quot;display_name&quot;, $post-&gt;post_author); ?&gt;&lt;/span&gt;
                &lt;/div&gt;
                &lt;h3 class=&quot;blog-card-title&quot;&gt;&lt;?php echo esc_html($post-&gt;post_title); ?&gt;&lt;/h3&gt;
                &lt;p class=&quot;blog-card-excerpt&quot;&gt;&lt;?php echo esc_html($excerpt); ?&gt;&lt;/p&gt;
                &lt;div class=&quot;blog-card-footer&quot;&gt;
                    &lt;div class=&quot;blog-card-author&quot;&gt;
                        &lt;div class=&quot;blog-author-avatar&quot;&gt;&lt;?php echo strtoupper(substr(get_the_author_meta(&quot;display_name&quot;, $post-&gt;post_author), 0, 1)); ?&gt;&lt;/div&gt;
                        &lt;span class=&quot;blog-author-name&quot;&gt;&lt;?php echo get_the_author_meta(&quot;display_name&quot;, $post-&gt;post_author); ?&gt;&lt;/span&gt;
                    &lt;/div&gt;
                    &lt;a href=&quot;&lt;?php echo get_permalink($post-&gt;ID); ?&gt;&quot; class=&quot;blog-read-btn&quot;&gt;Read More &lt;i class=&quot;fas fa-arrow-right&quot;&gt;&lt;/i&gt;&lt;/a&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;?php endforeach; ?&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;!-- CATEGORIES --&gt;
&lt;section class=&quot;amr-section amr-categories&quot;&gt;
    &lt;div class=&quot;amr-section-header&quot;&gt;
        &lt;div&gt;
            &lt;div class=&quot;amr-eyebrow&quot;&gt;Browse By Type&lt;/div&gt;
            &lt;h2 class=&quot;amr-section-title&quot;&gt;EXPLORE&lt;br&gt;&lt;span class=&quot;line2&quot;&gt;CATEGORIES&lt;/span&gt;&lt;/h2&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;cat-grid&quot;&gt;
        &lt;div class=&quot;cat-card&quot; onclick=&quot;window.location=&#039;&lt;?php echo home_url(&#039;/category/reviews&#039;); ?&gt;&#039;&quot;&gt;
            &lt;div class=&quot;cat-icon&quot;&gt;&lt;i class=&quot;fas fa-star&quot;&gt;&lt;/i&gt;&lt;/div&gt;
            &lt;div class=&quot;cat-name&quot;&gt;Car Reviews&lt;/div&gt;
            &lt;div class=&quot;cat-count&quot;&gt;Expert opinions &amp;amp; ratings&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;cat-card&quot; onclick=&quot;window.location=&#039;&lt;?php echo home_url(&#039;/category/builds&#039;); ?&gt;&#039;&quot;&gt;
            &lt;div class=&quot;cat-icon&quot;&gt;&lt;i class=&quot;fas fa-tools&quot;&gt;&lt;/i&gt;&lt;/div&gt;
            &lt;div class=&quot;cat-name&quot;&gt;Project Builds&lt;/div&gt;
            &lt;div class=&quot;cat-count&quot;&gt;Full build documentation&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;cat-card&quot; onclick=&quot;window.location=&#039;&lt;?php echo home_url(&#039;/category/mods&#039;); ?&gt;&#039;&quot;&gt;
            &lt;div class=&quot;cat-icon&quot;&gt;&lt;i class=&quot;fas fa-cog&quot;&gt;&lt;/i&gt;&lt;/div&gt;
            &lt;div class=&quot;cat-name&quot;&gt;Modifications&lt;/div&gt;
            &lt;div class=&quot;cat-count&quot;&gt;Performance &amp;amp; style upgrades&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;cat-card&quot; onclick=&quot;window.location=&#039;&lt;?php echo home_url(&#039;/category/tips&#039;); ?&gt;&#039;&quot;&gt;
            &lt;div class=&quot;cat-icon&quot;&gt;&lt;i class=&quot;fas fa-lightbulb&quot;&gt;&lt;/i&gt;&lt;/div&gt;
            &lt;div class=&quot;cat-name&quot;&gt;Tips &amp;amp; Guides&lt;/div&gt;
            &lt;div class=&quot;cat-count&quot;&gt;Expert how-to guides&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;cat-card&quot; onclick=&quot;window.location=&#039;&lt;?php echo home_url(&#039;/category/ev&#039;); ?&gt;&#039;&quot;&gt;
            &lt;div class=&quot;cat-icon&quot;&gt;&lt;i class=&quot;fas fa-bolt&quot;&gt;&lt;/i&gt;&lt;/div&gt;
            &lt;div class=&quot;cat-name&quot;&gt;Electric Vehicles&lt;/div&gt;
            &lt;div class=&quot;cat-count&quot;&gt;EV news &amp;amp; reviews&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;cat-card&quot; onclick=&quot;window.location=&#039;&lt;?php echo home_url(&#039;/category/restoration&#039;); ?&gt;&#039;&quot;&gt;
            &lt;div class=&quot;cat-icon&quot;&gt;&lt;i class=&quot;fas fa-history&quot;&gt;&lt;/i&gt;&lt;/div&gt;
            &lt;div class=&quot;cat-name&quot;&gt;Restoration&lt;/div&gt;
            &lt;div class=&quot;cat-count&quot;&gt;Classic car restorations&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;cat-card&quot; onclick=&quot;window.location=&#039;&lt;?php echo home_url(&#039;/category/track&#039;); ?&gt;&#039;&quot;&gt;
            &lt;div class=&quot;cat-icon&quot;&gt;&lt;i class=&quot;fas fa-flag-checkered&quot;&gt;&lt;/i&gt;&lt;/div&gt;
            &lt;div class=&quot;cat-name&quot;&gt;Track &amp;amp; Racing&lt;/div&gt;
            &lt;div class=&quot;cat-count&quot;&gt;Race car builds &amp;amp; events&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;cat-card&quot; onclick=&quot;window.location=&#039;&lt;?php echo home_url(&#039;/category/culture&#039;); ?&gt;&#039;&quot;&gt;
            &lt;div class=&quot;cat-icon&quot;&gt;&lt;i class=&quot;fas fa-camera&quot;&gt;&lt;/i&gt;&lt;/div&gt;
            &lt;div class=&quot;cat-name&quot;&gt;Car Culture&lt;/div&gt;
            &lt;div class=&quot;cat-count&quot;&gt;Shows, meets &amp;amp; events&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;!-- STATS --&gt;
&lt;section class=&quot;amr-stats&quot;&gt;
    &lt;div class=&quot;stats-grid&quot;&gt;
        &lt;div class=&quot;stat-item&quot;&gt;
            &lt;div class=&quot;stat-number&quot; data-count=&quot;50000&quot;&gt;0&lt;/div&gt;
            &lt;div class=&quot;stat-label&quot;&gt;Community Members&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;stat-item&quot;&gt;
            &lt;div class=&quot;stat-number&quot; data-count=&quot;2500&quot;&gt;0&lt;/div&gt;
            &lt;div class=&quot;stat-label&quot;&gt;Articles Published&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;stat-item&quot;&gt;
            &lt;div class=&quot;stat-number&quot; data-count=&quot;800&quot;&gt;0&lt;/div&gt;
            &lt;div class=&quot;stat-label&quot;&gt;Build Projects Shared&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;stat-item&quot;&gt;
            &lt;div class=&quot;stat-number&quot; data-count=&quot;150&quot;&gt;0&lt;/div&gt;
            &lt;div class=&quot;stat-label&quot;&gt;Expert Contributors&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;!-- LATEST POSTS SLIDER --&gt;
&lt;section class=&quot;amr-section amr-latest&quot;&gt;
    &lt;div class=&quot;amr-section-header&quot;&gt;
        &lt;div&gt;
            &lt;div class=&quot;amr-eyebrow&quot;&gt;Fresh Content&lt;/div&gt;
            &lt;h2 class=&quot;amr-section-title&quot;&gt;LATEST&lt;br&gt;&lt;span class=&quot;line2&quot;&gt;POSTS&lt;/span&gt;&lt;/h2&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;posts-slider-wrap&quot;&gt;
        &lt;div class=&quot;posts-slider&quot; id=&quot;postsSlider&quot;&gt;
            &lt;?php
            $all_posts = get_posts(array(&quot;numberposts&quot; =&gt; 9, &quot;post_status&quot; =&gt; &quot;publish&quot;));
            $placeholder_imgs2 = array(
                &quot;https://images.unsplash.com/photo-1544636331-e26879cd4d9b?w=600&amp;q=80&quot;,
                &quot;https://images.unsplash.com/photo-1494976388531-d1058494cdd8?w=600&amp;q=80&quot;,
                &quot;https://images.unsplash.com/photo-1583121274602-3e2820c69888?w=600&amp;q=80&quot;,
                &quot;https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=600&amp;q=80&quot;,
                &quot;https://images.unsplash.com/photo-1552519507-da3b142c6e3d?w=600&amp;q=80&quot;,
                &quot;https://images.unsplash.com/photo-1549399542-7e3f8b79c341?w=600&amp;q=80&quot;,
                &quot;https://images.unsplash.com/photo-1558981359-219d6364c9c8?w=600&amp;q=80&quot;,
                &quot;https://images.unsplash.com/photo-1517153054-15ee7af2e284?w=600&amp;q=80&quot;,
                &quot;https://images.unsplash.com/photo-1605559424843-9e4c228bf1c2?w=600&amp;q=80&quot;
            );
            $cats_arr = array(&quot;Review&quot;, &quot;Build&quot;, &quot;Mods&quot;, &quot;Tips&quot;, &quot;EV&quot;, &quot;Restoration&quot;, &quot;Track&quot;, &quot;Culture&quot;, &quot;Guide&quot;);
            foreach ($all_posts as $pidx =&gt; $post) :
                $thumb = get_the_post_thumbnail_url($post-&gt;ID, &quot;medium_large&quot;);
                if (!$thumb) $thumb = $placeholder_imgs2[$pidx % count($placeholder_imgs2)];
                $cat = get_the_category($post-&gt;ID);
                $cat_name = !empty($cat) ? $cat[0]-&gt;name : $cats_arr[$pidx % count($cats_arr)];
                $excerpt = wp_trim_words(get_the_excerpt($post-&gt;ID), 15, &quot;...&quot;);
                if (!$excerpt) $excerpt = wp_trim_words($post-&gt;post_content, 15, &quot;...&quot;);
            ?&gt;
            &lt;div class=&quot;post-slide&quot;&gt;
                &lt;div class=&quot;post-slide-img&quot;&gt;
                    &lt;img src=&quot;&lt;?php echo esc_url($thumb); ?&gt;&quot; alt=&quot;&lt;?php echo esc_attr($post-&gt;post_title); ?&gt;&quot; loading=&quot;lazy&quot;&gt;
                    &lt;span class=&quot;blog-card-cat&quot;&gt;&lt;?php echo esc_html($cat_name); ?&gt;&lt;/span&gt;
                &lt;/div&gt;
                &lt;div class=&quot;post-slide-body&quot;&gt;
                    &lt;div class=&quot;blog-card-meta&quot;&gt;
                        &lt;span class=&quot;blog-meta-item&quot;&gt;&lt;i class=&quot;fas fa-calendar&quot;&gt;&lt;/i&gt;&lt;?php echo get_the_date(&quot;M j, Y&quot;, $post-&gt;ID); ?&gt;&lt;/span&gt;
                        &lt;span class=&quot;blog-meta-item&quot;&gt;&lt;i class=&quot;fas fa-clock&quot;&gt;&lt;/i&gt;&lt;?php echo ceil(str_word_count(strip_tags($post-&gt;post_content)) / 200); ?&gt; min&lt;/span&gt;
                    &lt;/div&gt;
                    &lt;h3 class=&quot;post-slide-title&quot;&gt;&lt;?php echo esc_html($post-&gt;post_title); ?&gt;&lt;/h3&gt;
                    &lt;p class=&quot;post-slide-excerpt&quot;&gt;&lt;?php echo esc_html($excerpt); ?&gt;&lt;/p&gt;
                    &lt;a href=&quot;&lt;?php echo get_permalink($post-&gt;ID); ?&gt;&quot; class=&quot;blog-read-btn&quot;&gt;Read Article &lt;i class=&quot;fas fa-arrow-right&quot;&gt;&lt;/i&gt;&lt;/a&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;?php endforeach; ?&gt;
        &lt;/div&gt;
        &lt;div class=&quot;posts-slider-controls&quot;&gt;
            &lt;button class=&quot;slider-arrow-btn&quot; id=&quot;postsPrev&quot; title=&quot;Previous&quot;&gt;&lt;i class=&quot;fas fa-arrow-left&quot;&gt;&lt;/i&gt;&lt;/button&gt;
            &lt;button class=&quot;slider-arrow-btn&quot; id=&quot;postsNext&quot; title=&quot;Next&quot;&gt;&lt;i class=&quot;fas fa-arrow-right&quot;&gt;&lt;/i&gt;&lt;/button&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;!-- FEATURED CAROUSEL --&gt;
&lt;section class=&quot;amr-section amr-featured-carousel&quot;&gt;
    &lt;div class=&quot;amr-section-header&quot;&gt;
        &lt;div&gt;
            &lt;div class=&quot;amr-eyebrow&quot;&gt;In The Spotlight&lt;/div&gt;
            &lt;h2 class=&quot;amr-section-title&quot;&gt;EDITOR&#039;S&lt;br&gt;&lt;span class=&quot;line2&quot;&gt;PICKS&lt;/span&gt;&lt;/h2&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;carousel-track-wrap&quot;&gt;
        &lt;div class=&quot;carousel-track&quot; id=&quot;carouselTrack&quot;&gt;
            &lt;?php
            $editor_posts = get_posts(array(&quot;numberposts&quot; =&gt; 4, &quot;post_status&quot; =&gt; &quot;publish&quot;));
            $car_imgs = array(
                &quot;https://images.unsplash.com/photo-1544636331-e26879cd4d9b?w=800&amp;q=80&quot;,
                &quot;https://images.unsplash.com/photo-1494976388531-d1058494cdd8?w=800&amp;q=80&quot;,
                &quot;https://images.unsplash.com/photo-1583121274602-3e2820c69888?w=800&amp;q=80&quot;,
                &quot;https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=800&amp;q=80&quot;
            );
            foreach ($editor_posts as $eidx =&gt; $post) :
                $thumb = get_the_post_thumbnail_url($post-&gt;ID, &quot;large&quot;);
                if (!$thumb) $thumb = $car_imgs[$eidx % count($car_imgs)];
                $excerpt = wp_trim_words(get_the_excerpt($post-&gt;ID), 25, &quot;...&quot;);
                if (!$excerpt) $excerpt = wp_trim_words($post-&gt;post_content, 25, &quot;...&quot;);
            ?&gt;
            &lt;div class=&quot;carousel-slide&quot;&gt;
                &lt;div class=&quot;carousel-slide-inner&quot;&gt;
                    &lt;div class=&quot;carousel-img&quot;&gt;&lt;img src=&quot;&lt;?php echo esc_url($thumb); ?&gt;&quot; alt=&quot;&lt;?php echo esc_attr($post-&gt;post_title); ?&gt;&quot; loading=&quot;lazy&quot;&gt;&lt;/div&gt;
                    &lt;div class=&quot;carousel-body&quot;&gt;
                        &lt;div class=&quot;amr-eyebrow&quot;&gt;Editor&#039;s Pick #&lt;?php echo ($eidx + 1); ?&gt;&lt;/div&gt;
                        &lt;h3 style=&quot;font-size:32px;font-weight:900;text-transform:uppercase;line-height:1;margin:16px 0 20px;color:var(--white)&quot;&gt;&lt;?php echo esc_html($post-&gt;post_title); ?&gt;&lt;/h3&gt;
                        &lt;p style=&quot;font-size:15px;color:var(--gray);line-height:1.7;margin-bottom:32px&quot;&gt;&lt;?php echo esc_html($excerpt); ?&gt;&lt;/p&gt;
                        &lt;div class=&quot;blog-card-meta&quot; style=&quot;margin-bottom:24px&quot;&gt;
                            &lt;span class=&quot;blog-meta-item&quot;&gt;&lt;i class=&quot;fas fa-calendar&quot;&gt;&lt;/i&gt;&lt;?php echo get_the_date(&quot;M j, Y&quot;, $post-&gt;ID); ?&gt;&lt;/span&gt;
                            &lt;span class=&quot;blog-meta-item&quot;&gt;&lt;i class=&quot;fas fa-user&quot;&gt;&lt;/i&gt;&lt;?php echo get_the_author_meta(&quot;display_name&quot;, $post-&gt;post_author); ?&gt;&lt;/span&gt;
                        &lt;/div&gt;
                        &lt;a href=&quot;&lt;?php echo get_permalink($post-&gt;ID); ?&gt;&quot; class=&quot;hero-btn-main&quot; style=&quot;display:inline-flex&quot;&gt;
                            Read Full Article
                            &lt;span class=&quot;btn-icon&quot;&gt;&lt;i class=&quot;fas fa-arrow-right&quot;&gt;&lt;/i&gt;&lt;/span&gt;
                        &lt;/a&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;?php endforeach; ?&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;carousel-controls&quot;&gt;
        &lt;button class=&quot;slider-arrow-btn&quot; id=&quot;carouselPrev&quot;&gt;&lt;i class=&quot;fas fa-arrow-left&quot;&gt;&lt;/i&gt;&lt;/button&gt;
        &lt;div class=&quot;carousel-progress&quot;&gt;&lt;div class=&quot;carousel-progress-bar&quot; id=&quot;carouselProgress&quot; style=&quot;width:25%&quot;&gt;&lt;/div&gt;&lt;/div&gt;
        &lt;div class=&quot;carousel-counter&quot; id=&quot;carouselCounter&quot;&gt;01 / 04&lt;/div&gt;
        &lt;button class=&quot;slider-arrow-btn&quot; id=&quot;carouselNext&quot;&gt;&lt;i class=&quot;fas fa-arrow-right&quot;&gt;&lt;/i&gt;&lt;/button&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;!-- SHARE YOUR PROJECT --&gt;
&lt;section class=&quot;amr-section amr-projects&quot;&gt;
    &lt;div class=&quot;amr-section-header&quot;&gt;
        &lt;div&gt;
            &lt;div class=&quot;amr-eyebrow&quot;&gt;Community Showcase&lt;/div&gt;
            &lt;h2 class=&quot;amr-section-title&quot;&gt;SHARE YOUR&lt;br&gt;&lt;span class=&quot;line2&quot;&gt;BUILD&lt;/span&gt;&lt;/h2&gt;
        &lt;/div&gt;
        &lt;a href=&quot;&lt;?php echo home_url(&#039;/projects&#039;); ?&gt;&quot; class=&quot;amr-view-all&quot;&gt;All Projects &lt;span class=&quot;arr-icon&quot;&gt;&lt;i class=&quot;fas fa-arrow-right&quot;&gt;&lt;/i&gt;&lt;/span&gt;&lt;/a&gt;
    &lt;/div&gt;
    &lt;div class=&quot;project-cta-box&quot;&gt;
        &lt;h3&gt;Got a &lt;span style=&quot;color:var(--primary)&quot;&gt;Project Car?&lt;/span&gt;&lt;/h3&gt;
        &lt;p&gt;Share your automotive build journey with our community. Upload photos, document your mods, and inspire thousands of fellow enthusiasts.&lt;/p&gt;
        &lt;div class=&quot;project-upload-area&quot; onclick=&quot;document.getElementById(&#039;uploadInput&#039;).click()&quot; id=&quot;uploadDropZone&quot;&gt;
            &lt;i class=&quot;fas fa-cloud-upload-alt&quot;&gt;&lt;/i&gt;
            &lt;p&gt;&lt;strong style=&quot;color:var(--white)&quot;&gt;Drop your photos here&lt;/strong&gt; or click to upload&lt;br&gt;&lt;span style=&quot;font-size:12px&quot;&gt;Supports: JPG, PNG, MP4 — Max 50MB&lt;/span&gt;&lt;/p&gt;
            &lt;input type=&quot;file&quot; id=&quot;uploadInput&quot; accept=&quot;image/*,video/*&quot; multiple style=&quot;display:none&quot;&gt;
        &lt;/div&gt;
        &lt;a href=&quot;&lt;?php echo home_url(&#039;/submit-build&#039;); ?&gt;&quot; class=&quot;amr-btn-primary&quot; style=&quot;font-size:15px;padding:16px 40px;display:inline-flex&quot;&gt;
            Submit Your Full Build &lt;i class=&quot;fas fa-arrow-up&quot; style=&quot;transform:rotate(-45deg)&quot;&gt;&lt;/i&gt;
        &lt;/a&gt;
    &lt;/div&gt;
    &lt;!-- Community project gallery --&gt;
    &lt;div class=&quot;project-grid&quot;&gt;
        &lt;div class=&quot;project-card&quot;&gt;
            &lt;img src=&quot;https://images.unsplash.com/photo-1619405399517-d7fce0f13302?w=600&amp;q=80&quot; alt=&quot;BMW M3 Build&quot; loading=&quot;lazy&quot;&gt;
            &lt;div class=&quot;project-card-overlay&quot;&gt;
                &lt;div class=&quot;project-card-info&quot;&gt;
                    &lt;h4&gt;BMW M3 Full Aero Build&lt;/h4&gt;
                    &lt;span&gt;by @JohnD &amp;#183; 234 likes&lt;/span&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;project-share-actions&quot;&gt;
                &lt;button class=&quot;project-share-btn&quot; title=&quot;Share&quot;&gt;&lt;i class=&quot;fas fa-share-alt&quot;&gt;&lt;/i&gt;&lt;/button&gt;
                &lt;button class=&quot;project-share-btn&quot; title=&quot;Like&quot;&gt;&lt;i class=&quot;fas fa-heart&quot;&gt;&lt;/i&gt;&lt;/button&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;project-card&quot;&gt;
            &lt;img src=&quot;https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=600&amp;q=80&quot; alt=&quot;Mustang GT Build&quot; loading=&quot;lazy&quot;&gt;
            &lt;div class=&quot;project-card-overlay&quot;&gt;
                &lt;div class=&quot;project-card-info&quot;&gt;
                    &lt;h4&gt;Mustang GT Street Build&lt;/h4&gt;
                    &lt;span&gt;by @SarahM &amp;#183; 189 likes&lt;/span&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;project-share-actions&quot;&gt;
                &lt;button class=&quot;project-share-btn&quot; title=&quot;Share&quot;&gt;&lt;i class=&quot;fas fa-share-alt&quot;&gt;&lt;/i&gt;&lt;/button&gt;
                &lt;button class=&quot;project-share-btn&quot; title=&quot;Like&quot;&gt;&lt;i class=&quot;fas fa-heart&quot;&gt;&lt;/i&gt;&lt;/button&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;project-card&quot;&gt;
            &lt;img src=&quot;https://images.unsplash.com/photo-1552519507-da3b142c6e3d?w=600&amp;q=80&quot; alt=&quot;Lambo Build&quot; loading=&quot;lazy&quot;&gt;
            &lt;div class=&quot;project-card-overlay&quot;&gt;
                &lt;div class=&quot;project-card-info&quot;&gt;
                    &lt;h4&gt;Lamborghini Track Setup&lt;/h4&gt;
                    &lt;span&gt;by @RaceKing &amp;#183; 412 likes&lt;/span&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;project-share-actions&quot;&gt;
                &lt;button class=&quot;project-share-btn&quot; title=&quot;Share&quot;&gt;&lt;i class=&quot;fas fa-share-alt&quot;&gt;&lt;/i&gt;&lt;/button&gt;
                &lt;button class=&quot;project-share-btn&quot; title=&quot;Like&quot;&gt;&lt;i class=&quot;fas fa-heart&quot;&gt;&lt;/i&gt;&lt;/button&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;project-card&quot;&gt;
            &lt;img src=&quot;https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?w=600&amp;q=80&quot; alt=&quot;Classic Build&quot; loading=&quot;lazy&quot;&gt;
            &lt;div class=&quot;project-card-overlay&quot;&gt;
                &lt;div class=&quot;project-card-info&quot;&gt;
                    &lt;h4&gt;Classic 1967 Mustang Restore&lt;/h4&gt;
                    &lt;span&gt;by @ClassicCarl &amp;#183; 567 likes&lt;/span&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;project-share-actions&quot;&gt;
                &lt;button class=&quot;project-share-btn&quot; title=&quot;Share&quot;&gt;&lt;i class=&quot;fas fa-share-alt&quot;&gt;&lt;/i&gt;&lt;/button&gt;
                &lt;button class=&quot;project-share-btn&quot; title=&quot;Like&quot;&gt;&lt;i class=&quot;fas fa-heart&quot;&gt;&lt;/i&gt;&lt;/button&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;project-card&quot;&gt;
            &lt;img src=&quot;https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=600&amp;q=80&quot; alt=&quot;JDM Build&quot; loading=&quot;lazy&quot;&gt;
            &lt;div class=&quot;project-card-overlay&quot;&gt;
                &lt;div class=&quot;project-card-info&quot;&gt;
                    &lt;h4&gt;JDM R34 GTR Full Build&lt;/h4&gt;
                    &lt;span&gt;by @JDMFan &amp;#183; 823 likes&lt;/span&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;project-share-actions&quot;&gt;
                &lt;button class=&quot;project-share-btn&quot; title=&quot;Share&quot;&gt;&lt;i class=&quot;fas fa-share-alt&quot;&gt;&lt;/i&gt;&lt;/button&gt;
                &lt;button class=&quot;project-share-btn&quot; title=&quot;Like&quot;&gt;&lt;i class=&quot;fas fa-heart&quot;&gt;&lt;/i&gt;&lt;/button&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;project-card&quot;&gt;
            &lt;img src=&quot;https://images.unsplash.com/photo-1549399542-7e3f8b79c341?w=600&amp;q=80&quot; alt=&quot;Custom Build&quot; loading=&quot;lazy&quot;&gt;
            &lt;div class=&quot;project-card-overlay&quot;&gt;
                &lt;div class=&quot;project-card-info&quot;&gt;
                    &lt;h4&gt;Custom Widebody Tesla Build&lt;/h4&gt;
                    &lt;span&gt;by @EVModder &amp;#183; 301 likes&lt;/span&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;project-share-actions&quot;&gt;
                &lt;button class=&quot;project-share-btn&quot; title=&quot;Share&quot;&gt;&lt;i class=&quot;fas fa-share-alt&quot;&gt;&lt;/i&gt;&lt;/button&gt;
                &lt;button class=&quot;project-share-btn&quot; title=&quot;Like&quot;&gt;&lt;i class=&quot;fas fa-heart&quot;&gt;&lt;/i&gt;&lt;/button&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;!-- NEWSLETTER --&gt;
&lt;section class=&quot;amr-newsletter&quot;&gt;
    &lt;div class=&quot;newsletter-inner&quot;&gt;
        &lt;div class=&quot;newsletter-left&quot;&gt;
            &lt;div class=&quot;amr-eyebrow&quot;&gt;Stay Updated&lt;/div&gt;
            &lt;h3&gt;Never Miss A&lt;br&gt;&lt;span&gt;Great Article&lt;/span&gt;&lt;/h3&gt;
            &lt;p&gt;Join 50,000+ automotive enthusiasts who get our weekly digest of reviews, builds, and insider tips delivered to their inbox.&lt;/p&gt;
        &lt;/div&gt;
        &lt;div class=&quot;newsletter-form&quot;&gt;
            &lt;div class=&quot;newsletter-input-wrap&quot;&gt;
                &lt;input type=&quot;text&quot; placeholder=&quot;Your Name&quot;&gt;
            &lt;/div&gt;
            &lt;div class=&quot;newsletter-input-wrap&quot;&gt;
                &lt;input type=&quot;email&quot; placeholder=&quot;Your Email Address&quot;&gt;
            &lt;/div&gt;
            &lt;button class=&quot;newsletter-submit&quot;&gt;
                &lt;i class=&quot;fas fa-paper-plane&quot;&gt;&lt;/i&gt; Subscribe Now
            &lt;/button&gt;
            &lt;p style=&quot;font-size:12px;color:var(--gray);text-align:center&quot;&gt;No spam. Unsubscribe anytime. We respect your privacy.&lt;/p&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;!-- FOOTER --&gt;
&lt;footer class=&quot;amr-footer&quot;&gt;
    &lt;div class=&quot;footer-top&quot;&gt;
        &lt;div class=&quot;footer-brand&quot;&gt;
            &lt;div class=&quot;amr-logo&quot; style=&quot;margin-bottom:20px&quot;&gt;
                &lt;img src=&quot;https://allmotoreviews.com/wp-content/uploads/2026/05/allmotoreviews-logo-v2.png&quot; alt=&quot;AllMoto Reviews&quot; style=&quot;height:63px;width:auto;display:block;&quot;&gt;
        
            &lt;/div&gt;
            &lt;p class=&quot;footer-desc&quot;&gt;Your premier destination for automotive information, expert reviews, build guides, and a thriving community of car enthusiasts.&lt;/p&gt;
            &lt;div class=&quot;footer-social&quot;&gt;
                &lt;a href=&quot;#&quot; class=&quot;footer-social-btn&quot; title=&quot;Facebook&quot;&gt;&lt;i class=&quot;fab fa-facebook-f&quot;&gt;&lt;/i&gt;&lt;/a&gt;
                &lt;a href=&quot;#&quot; class=&quot;footer-social-btn&quot; title=&quot;Twitter/X&quot;&gt;&lt;i class=&quot;fab fa-x-twitter&quot;&gt;&lt;/i&gt;&lt;/a&gt;
                &lt;a href=&quot;#&quot; class=&quot;footer-social-btn&quot; title=&quot;Instagram&quot;&gt;&lt;i class=&quot;fab fa-instagram&quot;&gt;&lt;/i&gt;&lt;/a&gt;
                &lt;a href=&quot;#&quot; class=&quot;footer-social-btn&quot; title=&quot;YouTube&quot;&gt;&lt;i class=&quot;fab fa-youtube&quot;&gt;&lt;/i&gt;&lt;/a&gt;
                &lt;a href=&quot;#&quot; class=&quot;footer-social-btn&quot; title=&quot;TikTok&quot;&gt;&lt;i class=&quot;fab fa-tiktok&quot;&gt;&lt;/i&gt;&lt;/a&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class=&quot;footer-col&quot;&gt;
            &lt;h4&gt;Content&lt;/h4&gt;
            &lt;ul class=&quot;footer-links&quot;&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Car Reviews&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Build Guides&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Mod Tutorials&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Buyer&#039;s Guides&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Top Lists&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class=&quot;footer-col&quot;&gt;
            &lt;h4&gt;Community&lt;/h4&gt;
            &lt;ul class=&quot;footer-links&quot;&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submit Build&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Share Images&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Forums&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Events&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Newsletter&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class=&quot;footer-col&quot;&gt;
            &lt;h4&gt;Company&lt;/h4&gt;
            &lt;ul class=&quot;footer-links&quot;&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;About Us&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Write For Us&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Advertise&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Privacy Policy&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;footer-bottom&quot;&gt;
        &lt;p class=&quot;footer-copy&quot;&gt;&amp;copy; &lt;?php echo date(&quot;Y&quot;); ?&gt; AllMotoReviews. All rights reserved. Built with passion for car lovers.&lt;/p&gt;
        &lt;div class=&quot;footer-legal&quot;&gt;
            &lt;a href=&quot;#&quot;&gt;Terms of Use&lt;/a&gt;
            &lt;a href=&quot;#&quot;&gt;Privacy Policy&lt;/a&gt;
            &lt;a href=&quot;#&quot;&gt;Cookie Policy&lt;/a&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/footer&gt;

&lt;!-- Back to top --&gt;
&lt;button class=&quot;back-to-top&quot; id=&quot;backToTop&quot; title=&quot;Back to top&quot;&gt;&lt;i class=&quot;fas fa-chevron-up&quot;&gt;&lt;/i&gt;&lt;/button&gt;

&lt;script&gt;
(function() {
    // HERO SLIDER
    var slides = document.querySelectorAll(&quot;.hero-slide&quot;);
    var dots = document.querySelectorAll(&quot;.hero-dot&quot;);
    var current = 0;
    var autoTimer;

    function goToSlide(n) {
        slides[current].classList.remove(&quot;active&quot;);
        dots[current].classList.remove(&quot;active&quot;);
        current = (n + slides.length) % slides.length;
        slides[current].classList.add(&quot;active&quot;);
        dots[current].classList.add(&quot;active&quot;);
    }
    function startAuto() {
        autoTimer = setInterval(function() { goToSlide(current + 1); }, 5000);
    }
    function resetAuto() { clearInterval(autoTimer); startAuto(); }

    document.getElementById(&quot;heroPrev&quot;) &amp;&amp; document.getElementById(&quot;heroPrev&quot;).addEventListener(&quot;click&quot;, function() { goToSlide(current - 1); resetAuto(); });
    document.getElementById(&quot;heroNext&quot;) &amp;&amp; document.getElementById(&quot;heroNext&quot;).addEventListener(&quot;click&quot;, function() { goToSlide(current + 1); resetAuto(); });
    dots.forEach(function(d, i) { d.addEventListener(&quot;click&quot;, function() { goToSlide(i); resetAuto(); }); });
    startAuto();

    // POSTS SLIDER
    var postsSlider = document.getElementById(&quot;postsSlider&quot;);
    var postsOffset = 0;
    var postsVisible = window.innerWidth &lt; 768 ? 1 : window.innerWidth &lt; 1024 ? 2 : 3;
    var totalPosts = postsSlider ? postsSlider.children.length : 0;

    function slidePosts(dir) {
        if (!postsSlider) return;
        var cardW = postsSlider.children[0].offsetWidth + 24;
        var maxOffset = (totalPosts - postsVisible) * cardW;
        postsOffset = Math.max(0, Math.min(postsOffset + dir * cardW, maxOffset));
        postsSlider.style.transform = &quot;translateX(-&quot; + postsOffset + &quot;px)&quot;;
        postsSlider.style.transition = &quot;transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)&quot;;
    }
    document.getElementById(&quot;postsPrev&quot;) &amp;&amp; document.getElementById(&quot;postsPrev&quot;).addEventListener(&quot;click&quot;, function() { slidePosts(-1); });
    document.getElementById(&quot;postsNext&quot;) &amp;&amp; document.getElementById(&quot;postsNext&quot;).addEventListener(&quot;click&quot;, function() { slidePosts(1); });

    // CAROUSEL
    var carouselTrack = document.getElementById(&quot;carouselTrack&quot;);
    var carouselCurrent = 0;
    var carouselTotal = carouselTrack ? carouselTrack.children.length : 4;

    function updateCarousel() {
        if (!carouselTrack) return;
        carouselTrack.style.transform = &quot;translateX(-&quot; + (carouselCurrent * 100) + &quot;%)&quot;;
        var progress = ((carouselCurrent + 1) / carouselTotal * 100);
        var pb = document.getElementById(&quot;carouselProgress&quot;);
        var cc = document.getElementById(&quot;carouselCounter&quot;);
        if (pb) pb.style.width = progress + &quot;%&quot;;
        if (cc) cc.textContent = String(carouselCurrent + 1).padStart(2, &quot;0&quot;) + &quot; / &quot; + String(carouselTotal).padStart(2, &quot;0&quot;);
    }
    document.getElementById(&quot;carouselPrev&quot;) &amp;&amp; document.getElementById(&quot;carouselPrev&quot;).addEventListener(&quot;click&quot;, function() {
        carouselCurrent = (carouselCurrent - 1 + carouselTotal) % carouselTotal;
        updateCarousel();
    });
    document.getElementById(&quot;carouselNext&quot;) &amp;&amp; document.getElementById(&quot;carouselNext&quot;).addEventListener(&quot;click&quot;, function() {
        carouselCurrent = (carouselCurrent + 1) % carouselTotal;
        updateCarousel();
    });
    setInterval(function() {
        carouselCurrent = (carouselCurrent + 1) % carouselTotal;
        updateCarousel();
    }, 7000);

    // NAVBAR SCROLL
    var nav = document.getElementById(&quot;amrNav&quot;);
    var backTop = document.getElementById(&quot;backToTop&quot;);
    var progress = document.getElementById(&quot;readingProgress&quot;);
    window.addEventListener(&quot;scroll&quot;, function() {
        var scrolled = window.scrollY;
        if (nav) nav.classList.toggle(&quot;scrolled&quot;, scrolled &gt; 50);
        if (backTop) backTop.classList.toggle(&quot;visible&quot;, scrolled &gt; 400);
        if (progress) {
            var total = document.documentElement.scrollHeight - window.innerHeight;
            progress.style.width = (scrolled / total * 100) + &quot;%&quot;;
        }
    });
    if (backTop) backTop.addEventListener(&quot;click&quot;, function() { window.scrollTo({top: 0, behavior: &quot;smooth&quot;}); });

    // COUNTER ANIMATION
    function animateCounter(el) {
        var target = parseInt(el.getAttribute(&quot;data-count&quot;));
        var duration = 2000;
        var start = null;
        function step(ts) {
            if (!start) start = ts;
            var progress = ts - start;
            var val = Math.min(Math.round(progress / duration * target), target);
            el.textContent = val.toLocaleString();
            if (progress &lt; duration) requestAnimationFrame(step);
        }
        requestAnimationFrame(step);
    }
    var counters = document.querySelectorAll(&quot;[data-count]&quot;);
    var counterObserver = new IntersectionObserver(function(entries) {
        entries.forEach(function(e) {
            if (e.isIntersecting) {
                animateCounter(e.target);
                counterObserver.unobserve(e.target);
            }
        });
    });
    counters.forEach(function(c) { counterObserver.observe(c); });

    // UPLOAD DRAG &amp; DROP
    var dropZone = document.getElementById(&quot;uploadDropZone&quot;);
    if (dropZone) {
        [&quot;dragover&quot;, &quot;dragenter&quot;].forEach(function(e) {
            dropZone.addEventListener(e, function(ev) {
                ev.preventDefault();
                dropZone.style.borderColor = &quot;var(--primary)&quot;;
                dropZone.style.background = &quot;rgba(200,242,58,0.06)&quot;;
            });
        });
        [&quot;dragleave&quot;, &quot;drop&quot;].forEach(function(e) {
            dropZone.addEventListener(e, function(ev) {
                ev.preventDefault();
                dropZone.style.borderColor = &quot;&quot;;
                dropZone.style.background = &quot;&quot;;
            });
        });
    }
    var uploadInput = document.getElementById(&quot;uploadInput&quot;);
    if (uploadInput) {
        uploadInput.addEventListener(&quot;change&quot;, function() {
            if (this.files.length &gt; 0) {
                alert(&quot;Photos selected: &quot; + this.files.length + &quot;\nSubmit your full build to share with the community!&quot;);
            }
        });
    }

    // PROJECT SHARE BUTTONS
    document.querySelectorAll(&quot;.project-share-btn&quot;).forEach(function(btn) {
        btn.addEventListener(&quot;click&quot;, function(e) {
            e.stopPropagation();
            if (navigator.share) {
                navigator.share({ title: &quot;Check out this build on AllMotoReviews!&quot;, url: window.location.href });
            } else {
                var url = encodeURIComponent(window.location.href);
                window.open(&quot;https://twitter.com/intent/tweet?url=&quot; + url + &quot;&amp;text=Check+out+this+awesome+build+on+AllMotoReviews!&quot;, &quot;_blank&quot;);
            }
        });
    });

    // NEWSLETTER
    document.querySelector(&quot;.newsletter-submit&quot;) &amp;&amp; document.querySelector(&quot;.newsletter-submit&quot;).addEventListener(&quot;click&quot;, function() {
        var email = document.querySelector(&#039;.newsletter-input-wrap input[type=&quot;email&quot;]&#039;);
        if (email &amp;&amp; email.value) {
            alert(&quot;Thanks for subscribing! Welcome to the AllMotoReviews community!&quot;);
            email.value = &quot;&quot;;
        } else {
            alert(&quot;Please enter your email address.&quot;);
        }
    });

    // VIDEO MODAL - default to an embed demo
    document.getElementById(&quot;videoModal&quot;) &amp;&amp; document.getElementById(&quot;videoModal&quot;).addEventListener(&quot;click&quot;, function(e) {
        if (e.target === this) this.classList.remove(&quot;open&quot;);
    });

    // SMOOTH SCROLL for anchor links
    document.querySelectorAll(&#039;a[href^=&quot;#&quot;]&#039;).forEach(function(anchor) {
        anchor.addEventListener(&quot;click&quot;, function(e) {
            var target = document.querySelector(this.getAttribute(&quot;href&quot;));
            if (target) { e.preventDefault(); target.scrollIntoView({behavior: &quot;smooth&quot;}); }
        });
    });

    // TOUCH SWIPE for hero
    var touchStartX = 0;
    var heroEl = document.getElementById(&quot;hero&quot;);
    if (heroEl) {
        heroEl.addEventListener(&quot;touchstart&quot;, function(e) { touchStartX = e.touches[0].clientX; }, {passive: true});
        heroEl.addEventListener(&quot;touchend&quot;, function(e) {
            var diff = touchStartX - e.changedTouches[0].clientX;
            if (Math.abs(diff) &gt; 50) { goToSlide(current + (diff &gt; 0 ? 1 : -1)); resetAuto(); }
        }, {passive: true});
    }
})();
&lt;/script&gt;
&lt;?php wp_footer(); ?&gt;
&lt;/body&gt;
&lt;/html&gt;
    &lt;?php
    echo ob_get_clean();
    exit;
}
add_action( &quot;template_redirect&quot;, &quot;allmoto_serve_custom_homepage&quot;, 1 );
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//allmotoreviews.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd http://www.google.com/schemas/sitemap-image/1.1 http://www.google.com/schemas/sitemap-image/1.1/sitemap-image.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<url>
		<loc>https://allmotoreviews.com/</loc>
	</url>
	<url>
		<loc>https://allmotoreviews.com/reviews/</loc>
		<lastmod>2026-05-14T02:45:54+00:00</lastmod>
	</url>
	<url>
		<loc>https://allmotoreviews.com/builds/</loc>
		<lastmod>2026-05-14T02:45:55+00:00</lastmod>
	</url>
	<url>
		<loc>https://allmotoreviews.com/tips-guides/</loc>
		<lastmod>2026-05-14T02:45:56+00:00</lastmod>
	</url>
	<url>
		<loc>https://allmotoreviews.com/mods/</loc>
		<lastmod>2026-05-14T02:45:56+00:00</lastmod>
	</url>
	<url>
		<loc>https://allmotoreviews.com/blog/</loc>
		<lastmod>2026-05-14T02:45:57+00:00</lastmod>
	</url>
	<url>
		<loc>https://allmotoreviews.com/sports-car-reviews/</loc>
		<lastmod>2026-05-14T02:45:57+00:00</lastmod>
	</url>
	<url>
		<loc>https://allmotoreviews.com/suv-truck-reviews/</loc>
		<lastmod>2026-05-14T02:45:57+00:00</lastmod>
	</url>
	<url>
		<loc>https://allmotoreviews.com/electric-vehicle-reviews/</loc>
		<lastmod>2026-05-14T02:45:58+00:00</lastmod>
	</url>
	<url>
		<loc>https://allmotoreviews.com/track-day-guide/</loc>
		<lastmod>2026-05-14T02:45:59+00:00</lastmod>
	</url>
	<url>
		<loc>https://allmotoreviews.com/car-detailing-guide/</loc>
		<lastmod>2026-05-14T02:45:59+00:00</lastmod>
	</url>
	<url>
		<loc>https://allmotoreviews.com/about/</loc>
		<lastmod>2026-05-14T02:45:59+00:00</lastmod>
	</url>
	<url>
		<loc>https://allmotoreviews.com/contact/</loc>
		<lastmod>2026-05-14T02:46:00+00:00</lastmod>
	</url>
</urlset>
<!-- XML Sitemap generated by Yoast SEO -->