/**
 * Main Stylesheet v12.0 (Final Clean)
 * Searched for acme-contact-page-wrapper
 */
:root {
    /* Fluid Spacing Scale */
    --section-padding-fluid: clamp(40px, 6vw, 100px);
    --grid-gap-fluid: clamp(16px, 2.5vw, 32px);
    --component-gap-fluid: clamp(12px, 2vw, 24px);
    --header-margin-fluid: clamp(32px, 5vw, 60px);
    --container-width-fluid: clamp(1200px, 90vw, 1400px);
    --container-padding-fluid: clamp(16px, 4vw, 32px);
}

/* --- 1. GLOBAL --- */
* {
    box-sizing: border-box;
}

/* Global Form Normalization for Cross-Browser Parity (WebKit/Blink) */
input,
button,
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
    line-height: inherit;
    margin: 0;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    padding-top: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure content flows naturally below header */
html {
    scroll-padding-top: 70px;
    /* Updated to match new header height */
}

/* Main content area should be below header */
main#content,
.site-main,
#main,
.entry-content {
    position: relative;
    z-index: 1;
    clear: both;
}

/* Page Title and Entry Header Spacing */
.entry-header,
.page-header,
.entry-title,
h1.entry-title,
h1.page-title {
    margin-top: 0;
    padding-top: var(--component-gap-fluid);
    margin-bottom: var(--component-gap-fluid);
}

/* Ensure proper spacing after header on all screen sizes */
@media (max-width: 767px) {

    .entry-header,
    .page-header,
    .entry-title,
    h1.entry-title,
    h1.page-title {
        padding-top: 20px;
        margin-bottom: 20px;
    }

    main#content,
    .site-main,
    #main {
        padding-top: 0;
        margin-top: 0;
    }
}

/* Prevent page titles from appearing too close to header */
body:not(.home) .entry-header,
body:not(.home) .page-header {
    margin-top: 0;
    padding-top: 32px;
}

@media (max-width: 767px) {

    body:not(.home) .entry-header,
    body:not(.home) .page-header {
        padding-top: 24px;
    }
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #2271b1;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* --- 2. LAYOUT --- */
.acme-container {
    max-width: var(--container-width-fluid);
    margin: 0 auto;
    padding: 0 var(--container-padding-fluid);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Desktop: Logo left, Menu right */
@media (min-width: 768px) {
    .acme-container {
        justify-content: space-between;
    }

    .acme-site-branding {
        flex-shrink: 0;
        margin-right: auto;
    }
}

/* Hide CTA on Mobile */
.header-cta {
    display: none;
}

/* Mobile Menu Overlay Backdrop */
.acme-menu-overlay {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.acme-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Admin Bar Adjustments for Overlay */
body.admin-bar .acme-menu-overlay {
    top: calc(64px + 32px);
    height: calc(100vh - 96px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .acme-menu-overlay {
        width: 20px;
        height: 20px;
        margin-left: auto;
        margin-right: 0;
        transition: transform 0.3s ease;
        flex-shrink: 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 18L15 12L9 6' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        /* Subtle grey chevron */
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .acme-main-menu>ul>li.menu-item-has-children.submenu-open>a::after {
        transform: rotate(90deg);
    }

    /* Mobile Sub Menu - Minimalist */
    .acme-main-menu .sub-menu {
        position: static;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        /* Slightly darker than main menu for contrast */
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        margin: 0;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
        border-top: none;
        /* Removed border */
    }

    /* Show submenu on click (when parent has submenu-open class) */
    .acme-main-menu li.submenu-open>.sub-menu {
        display: block;
        max-height: 1000px;
        padding: 8px 0;
    }

    .acme-main-menu .sub-menu li {
        border-bottom: none;
        /* No borders in submenu */
    }

    .acme-main-menu .sub-menu li:last-child {
        border-bottom: none;
    }

    .acme-main-menu .sub-menu a {
        padding: 12px 24px 12px 48px;
        /* Indented, smaller padding */
        min-height: 44px;
        font-size: 15px;
        color: #444;
        display: flex;
        align-items: center;
        transition: all 0.2s ease;
        position: relative;
    }

    /* Current page indicator in submenu */
    .acme-main-menu .sub-menu li.current-menu-item>a,
    .acme-main-menu .sub-menu li.current_page_item>a {
        color: #2271b1;
        font-weight: 600;
        background-color: transparent;
        border-left: none;
        padding-left: 48px;
    }

    .acme-main-menu .sub-menu a:hover {
        background-color: transparent;
        color: #2271b1;
        padding-left: 48px;
        /* No shifting */
    }

    .acme-main-menu .sub-menu a:focus {
        outline: none;
        color: #2271b1;
    }

    .acme-main-menu .sub-menu a:focus:not(:focus-visible) {
        outline: none;
        box-shadow: none;
    }

    .acme-main-menu .sub-menu a:focus-visible {
        outline: 2px solid #2271b1;
        outline-offset: 2px;
        box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
        border-radius: 4px;
    }

    /* Submenu visual indicator - subtle left line to guide eye */
    .acme-main-menu .sub-menu::before {
        display: none;
        /* Removed the vertical line for cleaner look */
    }

    /* Mobile/Tablet CTA Button - Appears after menu items */
    /* Mobile/Tablet CTA Button - Appears after menu items */
    .acme-mobile-cta {
        display: block;
        width: 100%;
        padding: 24px 24px 12px 24px;
        /* Balanced spacing */
        margin-top: 0;
        border-top: none;
        background: #f8f9fa;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .acme-mobile-cta .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        /* For icon spacing */
        width: 100%;
        background: linear-gradient(135deg, #2271b1 0%, #00a0d2 100%);
        /* Creative Gradient */
        color: #fff;
        padding: 16px 32px;
        border-radius: 50px;
        /* Pill Shape */
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(34, 113, 177, 0.35);
        /* Glow Shadow */
        border: 1px solid rgba(255, 255, 255, 0.1);
        /* Subtle inner light */
        min-height: 52px;
    }

    .acme-mobile-cta .btn:hover {
        background: linear-gradient(135deg, #1d6199 0%, #0091be 100%);
        box-shadow: 0 8px 25px rgba(34, 113, 177, 0.45);
        /* Enhanced Glow */
        transform: translateY(-2px) scale(1.02);
        /* Lift effect */
        color: #fff;
    }

    /* Arrow Icon Animation */
    .acme-mobile-cta .btn::after {
        content: '→';
        font-family: sans-serif;
        font-weight: 400;
        font-size: 18px;
        transition: transform 0.3s ease;
        line-height: 1;
    }

    .acme-mobile-cta .btn:hover::after {
        transform: translateX(4px);
    }



    .acme-mobile-cta .btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
    }



    .acme-drawer-footer {
        display: block;
        margin-top: auto;
        padding: 12px 24px 32px 24px;
        background: transparent;
        /* Allow header.css dark bg to show */
        border-top: none;
        text-align: center;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-bottom: 20px;
    }

    .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #fff;
        color: #555;
        border: 1px solid #e0e0e0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .social-link:hover {
        color: #fff;
        background: #2271b1;
        border-color: #2271b1;
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(34, 113, 177, 0.25);
    }

    .social-link svg {
        width: 20px;
        height: 20px;
        stroke-width: 2px;
    }

    .drawer-copyright {
        font-size: 13px;
        color: #888;
        font-weight: 500;
    }

    .acme-mobile-cta .btn:focus {
        outline: none;
    }

    .acme-mobile-cta .btn:focus-visible {
        outline: 2px solid #2271b1;
        outline-offset: 2px;
        box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
    }

    /* Admin Bar Adjustments */
    body.admin-bar .acme-main-menu {
        top: calc(64px + 32px);
        height: calc(100vh - 96px);
    }

    @media screen and (max-width: 782px) {
        body.admin-bar .acme-main-menu {
            top: calc(64px + 46px);
            height: calc(100vh - 110px);
        }
    }

    /* Update scroll padding for mobile */
    html {
        scroll-padding-top: 64px;
    }

    /* Ensure sticky header on mobile */
    .acme-site-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    body.admin-bar .acme-site-header {
        top: 32px;
    }

    @media screen and (max-width: 782px) {
        body.admin-bar .acme-site-header {
            top: 46px;
        }
    }
}

/* --- 8. LARGER MOBILE/TABLET (768px - 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Mobile Header Layout still applies but with better spacing */
    .acme-container {
        gap: 20px;
        padding: 0 24px;
    }

    .acme-menu-toggle,
    .acme-search-toggle {
        min-width: 48px;
        min-height: 48px;
    }
}

/* --- 9. SCROLLBAR STYLING --- */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for mobile menu */
.acme-main-menu::-webkit-scrollbar {
    width: 8px;
}

.acme-main-menu::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.acme-main-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.acme-main-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* =========================================
   FIX: Header Layout & Breakpoints
   ========================================= */

/* 2. DESKTOP MODE (Strictly Above 992px) */
@media screen and (min-width: 993px) {

    /* Show the Desktop Button */
    .header-cta {
        display: block !important;
    }

    /* Hide the Mobile/Tablet Controls */
    .acme-menu-toggle,
    .acme-search-toggle {
        display: none !important;
    }
}

/* 3. TABLET & MOBILE MODE (Strictly Below 992px) */
@media screen and (max-width: 992px) {

    /* Hide desktop menu on tablet/mobile */
    .acme-main-menu>ul {
        display: none !important;
    }

    /* HIDE the Desktop Button - This fixes your specific bug */
    .header-cta {
        display: none !important;
    }

    /* SHOW the Mobile Controls */
    .acme-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Ensure the hamburger doesn't float to the top */
    .acme-menu-toggle svg {
        display: block;
    }

    /* Show mobile CTA button on mobile and tablet */
    .acme-mobile-cta {
        display: block !important;
    }
}



/* =========================================
   SENIOR DESIGN - DESKTOP UPGRADES
   ========================================= */

@media screen and (min-width: 992px) {

    /* Premium Card Dropdown */
    .acme-main-menu .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        background: #fff;
        min-width: 260px;
        /* Spacious width */
        box-shadow:
            0 20px 50px -12px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(0, 0, 0, 0.03);
        /* Subtle border + Deep Shadow */
        padding: 8px;
        opacity: 0;
        visibility: hidden;
        transform-origin: top center;
        transform: translateY(15px) scale(0.98);
        transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        /* Apple-style easing */
        border-radius: 12px;
        display: block;
    }

    /* Reveal Animation on Hover */
    .acme-main-menu li:hover>.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    /* List Items */
    .acme-main-menu .sub-menu li {
        margin: 0;
        border: none;
        width: 100%;
    }

    /* Links - Floating Card Items */
    .acme-main-menu .sub-menu a {
        padding: 12px 16px;
        color: #4a5568;
        font-size: 15px;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.2s ease;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }

    /* Hover State */
    .acme-main-menu .sub-menu a:hover {
        background-color: #eff6ff;
        /* Very light blue */
        color: #2563eb;
        /* Vibrant blue */
        transform: translateX(4px);
    }

    /* Add a subtle arrow indicator to parent items */
    .acme-main-menu>ul>li.menu-item-has-children>a::after {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-left: 8px;
        margin-bottom: 2px;
        opacity: 0.6;
        transition: transform 0.3s ease;
    }

    .acme-main-menu>ul>li.menu-item-has-children:hover>a::after {
        transform: rotate(-135deg);
        /* Flip up */
        opacity: 1;
    }
}




/* =========================================

/* =========================================
   BREADCRUMB STYLING (NEW)
   ========================================= */

.acme-course-hero {
    background-color: #1c1d1f;
    /* Dark background like Udemy */
    color: #fff;
    padding: 32px 0;
}

.acme-breadcrumbs {
    font-size: 14px;
    font-weight: 500;
    /* Medium weight matches Udemy */
    color: #cec0fc;
    /* Light purple text */
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    /* Removing gap, using margins on elements for precise control */
}

.acme-breadcrumbs a {
    color: #cec0fc !important;
    text-decoration: none;
    font-weight: 700;
    /* Udemy uses bold for links */
    font-size: 14px;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.acme-breadcrumbs a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.acme-breadcrumb-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    /* Exact Udemy Spacing */
    color: #ffffff;
    opacity: 0.8;
}

.acme-icon-chevron {
    width: 16px;
    /* Exact Udemy Size */
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

.acme-breadcrumbs .acme-current {
    color: #cec0fc;
    font-weight: 700;
}

/* Desktop Breadcrumb Override */
@media screen and (min-width: 1025px) {

    .acme-breadcrumbs a,
    .acme-breadcrumbs .acme-current {
        color: #ffffff !important;
    }

    .acme-breadcrumbs a:hover {
        color: var(--acme-blue-light) !important;
    }
}

/* =========================================
   SIDEBAR LAYOUT (Desktop Sticky & Overlap)
   ========================================= */

@media (min-width: 1081px) {
    .acme-sidebar-wrapper {
        position: relative;
        z-index: 10;
        margin-top: -200px;
        /* Overlap Hero Header */
        width: 100%;
        max-width: 360px;
    }

    .acme-sidebar-media {
        background: #fff;
        border: 1px solid #d1d7dc;
        border-bottom: none;
    }

    .acme-sidebar-sticky-content {
        position: -webkit-sticky;
        position: sticky;
        top: 24px;
        /* Sticks to top with gap */
        background: #fff;
        border: 1px solid #d1d7dc;
        border-top: none;
        /* Exact Udemy Blue-tinted Shadow */
        box-shadow: 0 2px 4px rgba(6, 17, 118, 0.08), 0 4px 12px rgba(6, 17, 118, 0.08);
        z-index: 1;
    }

    /* Adjust borders when separated */
    .acme-sidebar-media.acme-card {
        box-shadow: 0 2px 4px rgba(6, 17, 118, 0.08), 0 4px 12px rgba(6, 17, 118, 0.08);
        /* Initial shadow */
    }

    .acme-sidebar-sticky-content.acme-card {
        border-top: 1px solid #d1d7dc;
        /* Ensure proper border if separated */
    }

    /* Internal Spacing fixes */
    .acme-course-card__content {
        padding: 20px !important;
    }

    .acme-price-group {
        margin-bottom: 24px;
        /* Gap Price -> Buttons */
    }

    .acme-card-actions {
        margin-bottom: 32px;
        /* Gap Buttons -> Includes */
    }
}

/* Ensure mobile layout remains stacked */
@media (max-width: 1080px) {
    .acme-sidebar-wrapper {
        margin-top: 24px;
        width: 100%;
        max-width: 100%;
    }
}

/* =========================================
/* =========================================
   WHAT YOU'LL LEARN (Udemy Style)
   ========================================= */

.acme-what-you-learn,
.acme-section--curriculum,
.acme-section--requirements,
.acme-section--description,
.acme-section--tools {
    border: 1px solid #d1d7dc;
    padding: 24px;
    margin-bottom: 32px;
    background-color: transparent;
    margin-top: 32px !important;
    /* Ensure gap between all sections */
}

/* Ensure Titles match exactly */
.acme-what-you-learn__title,
.acme-section__title {
    font-size: 24px;
    font-weight: 700;
    color: #2d2f31;
    margin-bottom: 16px;
    margin-top: 0;
}

.acme-learn-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.acme-learn-list li {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.4;
    color: #2d2f31;
}

.acme-icon-tick {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: #2d2f31;
    flex-shrink: 0;
}

.acme-icon-tick svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .acme-learn-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   GAP REMOVAL FIX (User Request)
   ========================================= */
.acme-grid-layout,
.acme-main-column,
.acme-course-controls,
.acme-controls-simplified,
.acme-search-wrapper,
.acme-courses-grid {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure Hero has no bottom margin either */
.acme-course-hero {
    margin-bottom: 0 !important;
    padding-bottom: 32px;
    /* Keep internal padding */
}

/* Specific fix for What You'll Learn box to be closer if needed */
/* Specific fix for What You'll Learn box to be closer */
.acme-what-you-learn {
    margin-top: 32px !important;
}

/* =========================================
   Reviews Grid (Base Desktop)
   ========================================= */
.acme-reviews-grid-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
    align-items: start;
}

/* Review Card: Avatar top-right */
.acme-review-card-preview .acme-preview-header {
    position: relative;
    padding-right: 52px;
}

.acme-review-card-preview .acme-review-avatar {
    position: absolute;
    top: 0;
    right: 0;
}

/* =========================================
   Reviews Carousel (Mobile/Tablet)
   ========================================= */
@media (max-width: 1024px) {
    .acme-section--reviews {
        border: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .acme-section--reviews .acme-section__title {
        padding: 0 16px !important;
        margin-bottom: 16px !important;
    }

    .acme-section--reviews .acme-reviews-grid-preview {
        display: grid !important;
        grid-template-columns: none !important;
        grid-auto-flow: column !important;
        grid-auto-columns: calc(100% - 32px) !important;
        gap: 16px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-snap-stop: always;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding: 0 16px 16px !important;
        scroll-padding-left: 16px;
        width: calc(100% + 32px) !important;
        align-items: stretch !important;
    }

    .acme-section--reviews .acme-reviews-grid-preview::-webkit-scrollbar {
        display: none;
    }

    .acme-section--reviews .acme-review-card-preview {
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #fff;
        padding: 16px;
        scroll-snap-align: start;
        box-shadow: none;
        height: auto;
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    .acme-section--reviews .acme-reviews-grid-preview {
        grid-auto-columns: calc(50% - 12px) !important;
    }
}

/* =========================================
   BLOG ARCHIVE PAGE STYLES
   ========================================= */

/* Archive Header (Shared with Courses) */
.acme-archive-header {
    background: linear-gradient(135deg, #1a1d29 0%, #2d2f31 100%);
    color: #fff;
    padding: 48px 0 56px;
    position: relative;
    overflow: hidden;
}

.acme-archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 L1200,0 L1200,60 Q600,120 0,60 Z" fill="rgba(255,255,255,0.03)"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.acme-archive-header .acme-container {
    position: relative;
    z-index: 1;
    display: block;
}

/* Breadcrumbs */
.acme-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.acme-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.acme-breadcrumbs a:hover {
    color: #fff;
}

.acme-breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
}

.acme-breadcrumb-separator svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.acme-breadcrumbs .acme-current {
    color: #fff;
    font-weight: 600;
}

/* Archive Title & Subtitle */
.acme-archive-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px 0;
    color: #fff;
}

.acme-archive-subtitle {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 700px;
}

/* Archive Content Area */
.acme-posts-archive,
.acme-courses-archive {
    padding: 0 0 80px;
    background: transparent;
}

.acme-archive-content {
    margin: 0 auto;
    width: 100%;
}

.acme-archive-content .acme-container {
    display: block;
    margin: 0 auto;
    max-width: 1340px;
}

/* Search/Filter Form */
/* Specific filter form styles removed in favor of unified .acme-search-form */

/* Hide Browser Default Search Icons & Backgrounds */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration,
input[type="search"]::-webkit-search-icon,
input[type="search"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    background: transparent !important;
    /* Shorthand override */
    box-shadow: none !important;
}

/* --- Search Bar Styles (Unified Premium) --- */
.acme-search-form {
    display: flex;
    width: 100%;
    max-width: 800px;
    margin: 35px auto 60px !important;
    /* Gap instead of overlap */
    position: relative;
    z-index: 10;
    justify-content: center;
    outline: none !important;
    /* Removes focus ring */
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    /* Ensures no outer shadow on the form element */
}

.acme-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 99px !important;
    overflow: hidden;
    height: 56px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    width: 100% !important;
    max-width: 800px;
    margin: 0 auto;
}

.acme-search-wrapper:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    border-color: #cbd5e0 !important;
}

.acme-search-wrapper:focus-within {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.acme-post-filter-form:focus-within {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15), 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.acme-search-field {
    flex: 1;
    height: 100%;
    padding: 0 24px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    font-size: 16px;
    color: #1a202c;
    width: 100%;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Fail-safe: Ensure no other icons appear in the wrapper except our buttons */
.acme-search-wrapper>svg,
.acme-search-wrapper>img {
    display: none !important;
}

.acme-search-field:focus {
    outline: none;
}

.acme-search-submit {
    width: 64px;
    height: 100%;
    background: #2271b1 !important;
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    transition: all 0.2s;
    padding: 0;
    margin: 0;
    position: relative !important;
    /* Fixes icon escape */
}

.acme-search-submit:hover {
    background: #135e96 !important;
}

.acme-search-submit svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff !important;
    /* Forces white icon */
    stroke-width: 2.5;
    fill: none;
    position: static !important;
    /* Forces icon to stay inside button */
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

.acme-search-wrapper.is-loading::after {
    content: "";
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: acme-spin 0.6s linear infinite;
    z-index: 10;
}

.acme-search-wrapper.is-loading .acme-search-clear {
    display: none !important;
}

@keyframes acme-spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.acme-search-clear {
    position: absolute;
    right: 80px !important;
    /* Consistent distance from right edge */
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
    color: #a0aec0 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s !important;
    z-index: 10 !important;
    width: 32px !important;
    height: 32px !important;
}

.acme-search-clear:hover {
    color: #4a5568 !important;
}

/* Pure CSS Toggle for Clear Button */
.acme-search-field:not(:placeholder-shown)~.acme-search-clear {
    display: flex !important;
}

.acme-search-field:placeholder-shown~.acme-search-clear {
    display: none !important;
}

/* Ensure input doesn't overlap with clear button */
.acme-search-wrapper .acme-search-field {
    padding-right: 24px !important;
    padding-left: 24px !important;
}

/* Responsive adjustments for Search Bar */
@media (max-width: 768px) {
    .acme-post-filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .acme-search-wrapper {
        width: 100%;
        max-width: 100%;
        flex: 0 0 48px;
        /* Force height */
        margin: 0;
    }
}

.acme-filter-wrapper {
    min-width: 200px;
}

.acme-filter-select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.acme-filter-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Posts Grid */
.acme-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

/* Blog Card Styles */
.acme-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.acme-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.acme-blog-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.acme-blog-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
    background: #f0f0f1;
}

.acme-blog-card__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.acme-blog-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.acme-blog-card:hover .acme-blog-card__image {
    transform: scale(1.05);
}

.acme-blog-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
}

.acme-blog-card__placeholder .dashicons {
    font-size: 48px;
    color: #a0aec0;
}

.acme-blog-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.acme-blog-card__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.acme-blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.acme-blog-card__title a:hover {
    color: #2271b1;
}

.acme-blog-card__excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #6a6f73;
    margin-bottom: 16px;
    flex: 1;
}

.acme-blog-card__meta {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.acme-blog-card__meta-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    font-size: 14px;
    color: #6a6f73;
    text-align: left;
}

.acme-blog-card__meta-item svg {
    flex-shrink: 0;
    color: #a0aec0;
}

.acme-blog-card__footer {
    margin-top: auto;
}

.acme-blog-card__button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.acme-blog-card__button:hover {
    background: #135e96;
    transform: translateX(4px);
}

.acme-blog-card__button svg {
    transition: transform 0.3s ease;
}

.acme-blog-card__button:hover svg {
    transform: translateX(4px);
}

/* --- UDEMY-STYLE COURSE CARD --- */
.acme-course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
    border: 1px solid #d1d7dc;
    border-radius: 8px;
    overflow: hidden;
}

.acme-course-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: lab(97 -0.06 -1.09);
    transform: none !important;
    margin-top: 0 !important;
    border-color: #d1d7dc !important;
}

.acme-course-card__link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.acme-course-card__image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    /* Image flush with card borders */
    background: #f7f9fa;
    margin-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acme-course-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    display: block;
}



.acme-course-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff2f6;
    color: #adb5bd;
}

.acme-course-card__placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.acme-course-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.acme-course-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #1c1d1f;
    margin: 0 0 6px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.acme-course-card__description {
    font-size: 15px;
    color: #4d5154;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.acme-course-card__instructor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #4d5154;
    margin-bottom: 6px;
}

.acme-instructor-name {
    font-weight: 700;
}

.acme-instructor-name a {
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.acme-instructor-name a:hover {
    text-decoration: underline;
}

.acme-course-card__stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.acme-course-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.acme-rating-value {
    font-size: 15px;
    font-weight: 700;
    color: #b4690e;
}

.acme-rating-stars {
    display: flex;
    align-items: center;
    color: #b4690e;
}

.acme-rating-stars .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acme-review-count {
    font-size: 15px;
    color: #4d5154;
}

.acme-course-card__level {
    font-size: 15px;
    color: #4d5154;
}

.acme-course-card__price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: inherit;
}

.acme-price-current {
    font-size: 18px;
    font-weight: 700;
    color: #1c1d1f !important;
}

.acme-price-old {
    font-size: 15px;
    color: #4d5154;
    text-decoration: line-through;
}

.acme-free {
    color: #1e88e5;
    font-weight: 700;
}



/* No Posts/Courses Message */
.acme-no-posts,
.acme-no-courses {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.acme-no-posts p,
.acme-no-courses p {
    font-size: 18px;
    color: #6a6f73;
    margin: 0;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 8px 12px;
    background: #fff;
    color: #1a1a1a;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: #f8f9fa;
    border-color: #2271b1;
    color: #2271b1;
}

.pagination .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    border: none;
}

.pagination .prev,
.pagination .next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* =========================================
   RESPONSIVE STYLES - TABLET
   ========================================= */
@media (max-width: 1024px) and (min-width: 768px) {

    /* 2-column grid on tablet */
    .acme-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .acme-archive-title {
        font-size: 36px;
    }

    .acme-archive-subtitle {
        font-size: 16px;
    }

    .acme-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .acme-search-wrapper,
    .acme-filter-wrapper {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================
   RESPONSIVE STYLES - MOBILE
   ========================================= */
@media (max-width: 767px) {

    /* 1-column grid on mobile */
    .acme-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .acme-archive-header {
        padding: 32px 0 40px;
    }

    .acme-archive-title {
        font-size: 28px;
    }

    .acme-archive-subtitle {
        font-size: 15px;
    }

    .acme-posts-archive,
    .acme-courses-archive {
        padding: 32px 0 60px;
    }

    .acme-post-filter-form,
    .acme-course-filter-form,
    .acme-faq-filter-form {
        padding: 20px;
        margin-bottom: 32px;
        flex-direction: column;
        align-items: stretch;
    }

    .acme-search-wrapper,
    .acme-filter-wrapper {
        width: 100%;
        min-width: 0;
    }

    .acme-search-field,
    .acme-filter-select {
        font-size: 15px;
        padding: 12px 44px 12px 16px;
    }

    .acme-blog-card__content,
    .acme-course-card__content {
        padding: 20px;
    }

    .acme-blog-card__title,
    .acme-course-card__title {
        font-size: 18px;
    }

    .acme-blog-card__excerpt,
    .acme-course-card__description {
        font-size: 14px;
    }

    .acme-course-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .acme-course-card__button,
    .acme-blog-card__button {
        width: 100%;
        justify-content: center;
    }

    .pagination {
        gap: 6px;
        margin-top: 32px;
    }

    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* =========================================
   PREMIUM MODAL STYLES (Clean Overlay & Close)
   ========================================= */

.acme-premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Dark Blue/Dark Overlay */
    backdrop-filter: blur(16px);
    /* Frost Effect */
    -webkit-backdrop-filter: blur(16px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.acme-premium-modal-overlay.is-active,
.acme-premium-modal-overlay[style*="display: block"],
.acme-premium-modal-overlay[style*="display: flex"] {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    /* Force flex to center content */
}

/* Close Button */
.acme-premium-modal-close {
    position: absolute;
    top: 21px;
    right: 20px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    line-height: 0;
    font-size: 28px;
    padding-bottom: 4px;
    /* Optical adjustment for 'times' character */
}

.acme-premium-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.acme-premium-modal-close:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* --- Contact Page Styles v3 (Split Layout) --- */
.acme-contact-page-wrapper {
    background-color: #f8fafc;
    min-height: calc(100vh - 70px - 400px);
    padding-bottom: 80px;
}

.acme-contact-layout-split {
    display: grid;
    grid-template-columns: 3fr 7fr;
    /* 30% - 70% Layout */
    gap: 40px;
    max-width: 1200px;
    margin: 80px auto 0;
}

@media (max-width: 991px) {
    .acme-contact-layout-split {
        grid-template-columns: 1fr;
        /* Full width on tablet/mobile */
        gap: 40px;
        margin-top: 40px;
    }
}

/* Widen FAQ & Category Page Content ONLY (Below Header) */
.post-type-archive-acme_faq .acme-archive-content,
.category .acme-archive-content {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.post-type-archive-acme_faq .acme-archive-content .acme-container,
.category .acme-archive-content .acme-container {
    max-width: 1340px !important;
    padding: 0 24px !important;
}

.acme-info-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
    /* Sticky sidebar */
}

@media (max-width: 991px) {
    .acme-info-stack {
        position: static;
        /* Remove sticky on mobile */
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Grid on tablet */
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .acme-info-stack {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}



.acme-info-card.mini {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    /* rounded-2xl */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    /* Soft, large diffusion */
    display: flex;
    align-items: center;
    gap: 24px;
    /* More breathing room */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Apple-like ease */
    position: relative;
    overflow: hidden;
    border: none !important;
}

.acme-info-card.mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--acme-blue-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.acme-info-card.mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
}

.acme-info-card.mini:hover::before {
    opacity: 1;
}

.acme-icon-box.medium {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: #f0f7ff;
    color: var(--acme-blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.acme-info-card.mini:hover .acme-icon-box.medium {
    background-color: var(--acme-blue-primary);
    color: #fff;
    transform: rotate(6deg);
    /* Subtle playful interaction */
}

.acme-icon-box.medium svg {
    width: 24px;
    height: 24px;
}

.acme-info-content-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.acme-info-title-mini {
    font-size: 13px;
    font-weight: 700;
    color: var(--acme-blue-dark);
    /* Using theme variable */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.acme-info-link-mini,
.acme-info-text-mini {
    font-size: 16px;
    color: var(--acme-navy-deep);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.5;
    margin: 0;
    transition: color 0.2s ease;
}

.acme-info-link-mini:hover {
    color: var(--acme-blue-primary);
}

.acme-info-sub-mini {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Main Content (70%) */
.acme-contact-main {
    width: 100%;
}

.form-card-full {
    background: #fff;
    padding: 48px;
    /* Even more spacious */
    border-radius: 24px;
    /* Softer, larger corners */
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.08), 0 12px 20px -12px rgba(0, 0, 0, 0.04);
    /* Deep, soft float */
    border: none;
    /* Completely borderless */
}

@media (max-width: 767px) {
    .form-card-full {
        padding: 32px;
    }
}

.acme-form-header-left {
    margin-bottom: 40px;
    text-align: left;
    position: relative;
}

/* Decorative dash under title */
.acme-form-header-left::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--acme-blue-primary);
    margin-top: 16px;
    border-radius: 2px;
}

.acme-card-title-left {
    font-size: 32px;
    font-weight: 800;
    color: var(--acme-navy-deep);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.acme-card-subtitle-left {
    font-size: 17px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.acme-form-footer-left {
    margin-top: 40px;
    text-align: left;
}

.acme-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    /* Increased gap */
    margin-bottom: 24px;
}

@media (max-width: 575px) {
    .acme-form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.acme-form-group {
    margin-bottom: 24px;
    position: relative;
}

.acme-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--acme-navy-deep);
    margin-bottom: 10px;
    transition: color 0.2s;
}

.acme-form-group:focus-within label {
    color: var(--acme-blue-primary);
}

.acme-form-control {
    width: 100%;
    padding: 18px 24px;
    /* Spacious internal padding */
    background-color: #f1f5f9;
    /* Soft gray background to define the area without border */
    border: 0 !important;
    /* Force No border */
    outline: none !important;
    /* Force No outline */
    border-radius: 16px;
    /* Pill-like rounded corners */
    color: var(--acme-navy-deep);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    /* Clean start */
    appearance: none;
    -webkit-appearance: none;
}

.acme-form-control:hover {
    background-color: #e2e8f0;
    /* Slightly darker on hover */
}

.acme-form-control:focus {
    background-color: #fff;
    border: 0 !important;
    outline: none !important;
    /* Ensure no border appears */
    box-shadow: 0 10px 25px -5px rgba(17, 125, 188, 0.15), 0 4px 10px -3px rgba(17, 125, 188, 0.1);
    /* Soft blue float on focus */
    transform: translateY(-2px);
    /* Subtle lift on focus */
}

.acme-form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

textarea.acme-form-control {
    min-height: 160px;
    resize: vertical;
}

/* Submit Button Enhancement */
.acme-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--acme-blue-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(17, 125, 188, 0.2);
}

.acme-submit-btn:hover {
    background: var(--acme-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(17, 125, 188, 0.3);
}

.acme-submit-btn:active {
    transform: translateY(0);
}

/* --- SINGLE POST TEMPLATE (ISOLATED) --- */
/* Hero Header */
.acme-single-hero {
    background-color: #1e1e1e;
    /* Dark background as reference */
    color: #fff;
    padding: 60px 20px;
    margin-bottom: 0;
    width: 100%;
}

.acme-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.acme-single-hero .entry-title {
    font-size: 3rem;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: #fff;
}

@media (max-width: 1024px) {
    .acme-single-hero .entry-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .acme-single-hero .entry-title {
        font-size: 2rem;
    }
}

.acme-single-hero .acme-entry-meta {
    font-size: 1rem;
    color: #ccc;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    white-space: nowrap;
}

.acme-single-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 60px;
    position: relative;
    box-sizing: border-box;
    /* Use local variables for overrides if needed */
}

/* Main Content Column */
.acme-single-post-container .acme-main-content {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

/* Post Styling */
/* Post Styling */
.acme-single-post-container article {
    margin-bottom: 40px;
}

/* Titles and Meta removed from here as they are in Hero now */
.acme-single-post-container .acme-entry-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

/* TOC Styling */
.acme-toc-container {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    display: none;
    /* Hidden by default until populated */
}

.acme-toc-container .toc-title {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    color: #333;
}

.acme-toc-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acme-toc-container li {
    margin-bottom: 8px;
}

.acme-toc-container li.h3 {
    padding-left: 20px;
}

.acme-toc-container a {
    text-decoration: none;
    color: #2271b1;
    font-weight: 500;
    display: block;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

.acme-toc-container a:hover {
    text-decoration: underline;
}

.acme-single-post-container .acme-entry-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

.acme-single-post-container .acme-entry-content h2,
.acme-single-post-container .acme-entry-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #222;
}

.acme-single-post-container .acme-entry-content p {
    margin-bottom: 1.5em;
}

/* Sidebar Column */
.acme-single-post-container .acme-single-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: relative;
}

/* Sticky Sidebar Content */
.acme-single-post-container .acme-progress-widget,
.acme-single-post-container .acme-related-posts {
    margin-bottom: 40px;
}

.acme-single-post-container .acme-single-sidebar {
    position: sticky;
    top: 100px;
    /* Offset for sticky header */
    height: fit-content;
    align-self: start;
}

/* Widget Styles */
.acme-single-post-container .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Desktop Progress Bar Widget */
.acme-single-post-container .acme-progress-container-start {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.acme-single-post-container .acme-progress-bar {
    height: 100%;
    width: 0%;
    background: #2271b1;
    transition: width 0.1s linear;
}

.acme-single-post-container .acme-progress-text {
    font-weight: 600;
    color: #2271b1;
    text-align: right;
}

/* Related Posts List */
.acme-single-post-container .acme-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acme-single-post-container .acme-related-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.acme-single-post-container .acme-related-list li:last-child {
    border-bottom: none;
}

.acme-single-post-container .acme-related-list a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    line-height: 1.4;
}

.acme-single-post-container .acme-related-list a:hover {
    color: #2271b1;
}

/* Mobile Progress Bar (Hidden on Desktop) */
#mobile-progress-bar {
    display: none;
    /* JS toggles this */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    /* Taller to hold text if needed, or stick to slim */
    background: #fff;
    z-index: 999999;
    /* ensure top */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
    border-top: 1px solid #eee;
}

#mobile-progress-fill {
    height: 4px;
    /* The bar itself is thin */
    width: 0%;
    background: #2271b1;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s linear;
}

.acme-mobile-progress-text {
    font-size: 12px;
    color: #333;
    margin-left: 10px;
    font-weight: bold;
    margin-top: 6px;
    /* Space below bar */
    display: block;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .acme-single-post-container {
        gap: 40px;
    }

    .acme-single-post-container .acme-single-sidebar {
        width: 250px;
    }
}

@media (max-width: 768px) {

    /* Stack Layout */
    .acme-single-post-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 40px;
    }

    .acme-single-post-container .acme-single-sidebar {
        width: 100%;
        position: static;
        border-top: 1px solid #eee;
        padding-top: 40px;
    }

    /* Hide Desktop Progress Widget */
    .acme-single-post-container .acme-progress-widget {
        display: none;
    }

    /* Show Mobile Sticky Progress Bar */
    #mobile-progress-bar {
        display: block;
    }

    /* Move Related Posts to bottom flow naturally */
    .acme-single-post-container .acme-related-posts {
        margin-bottom: 0;
    }
}

/* --- Hero Header for Single Post --- */
.acme-single-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1d2327;
    /* Fallback color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 60px 24px;
    margin-bottom: 40px;
    border-radius: 0 0 16px 16px;
    /* Modern rounded bottom corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.acme-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.acme-single-hero .entry-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.acme-single-hero .acme-entry-meta {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    white-space: nowrap;
    line-height: 1.3;
}

.acme-single-hero .acme-meta-icon {
    margin-right: 6px;
    opacity: 0.8;
}

@media (max-width: 1023px) {
    .acme-single-hero .acme-entry-meta {
        flex-wrap: wrap;
        white-space: normal;
    }

    .acme-single-hero .acme-updated {
        flex-basis: 100%;
        width: 100%;
        justify-content: center;
        margin-top: 2px;
    }
}

.acme-single-hero .acme-author,
.acme-single-hero .acme-date,
.acme-single-hero .acme-updated {
    display: flex;
    align-items: center;
}

/* Make sure the text is readable on mobile */
@media (max-width: 768px) {
    .acme-single-hero {
        min-height: 300px;
        padding: 40px 20px;
    }

    .acme-single-hero .entry-title {
        font-size: 2rem;
    }
}

/* Fix: Remove rounded corners from hero header */
.acme-single-hero {
    border-radius: 0 !important;
}

/* --- Share Section --- */
.acme-share-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.acme-share-title {
    font-size: 16px;
    font-weight: 700;
    color: #1c1d1f;
    margin: 0;
    margin-right: 8px;
}

.acme-share-links {
    display: flex;
    gap: 12px;
}

.acme-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #2d2f31;
    transition: all 0.2s ease;
    background: transparent;
    border-radius: 50%;
}

.acme-share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.acme-share-icon[aria-label="Share on Facebook"]:hover {
    color: #1877F2;
    background: rgba(24, 119, 242, 0.05);
}

.acme-share-icon[aria-label="Share on Instagram"]:hover {
    color: #E1306C;
    background: rgba(225, 48, 108, 0.05);
}

.acme-share-icon[aria-label="Share on WhatsApp"]:hover {
    color: #25D366;
    background: rgba(37, 211, 102, 0.05);
}

.acme-share-icon[aria-label="Share via Email"]:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

/* =========================================
   SEARCH BOX FIXES
   ========================================= */
.acme-course-controls {
    order: -1;
    position: relative;
    z-index: 10;
    width: 100%;
}

.acme-controls-simplified {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.acme-search-centered {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .acme-search-centered {
        max-width: 100%;
    }
}



/* =========================================
   INTERNAL PAGE HERO SPACING FIX
   Ensures hero sections don't hide under fixed header.
   Using padding-top ensures background extends to the top 
   while content stays below the logo/menu.
   ========================================= */
body:not(.home) .acme-archive-header,
body:not(.home) .acme-course-hero,
body:not(.home) .acme-single-hero {
    padding-top: calc(var(--acme-header-height, 72px) + 40px) !important;
}

/* Specific fix for breadcrumbs if needed */
body:not(.home) .acme-breadcrumbs {
    margin-top: 0 !important;
}

/* Search wrapper override removed to prioritize main implementation */