/* =========================================================
   Autopublix – Header & Footer Stylesheet
   ========================================================= */

/* Google Font is enqueued via functions.php */

/* --- CSS Custom Properties --- */
:root {
    --ap-primary-purple: #8E33FF;
    --ap-primary-blue: #0065CA;
    --ap-text-dark: #1F2730;
    --ap-text-muted: #64748B;
    --ap-bg-light: #F8FAFC;
    --ap-white: #ffffff;
    --ap-promo-gradient: linear-gradient(90deg, #A855F7 0%, #6366F1 50%, #A855F7 100%);
    --ap-footer-gradient: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 39.15%, #D2ADFF 123.15%);
    --ap-nav-active: #7C3AED;
    --ap-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
    font-family: 'classica';
    src: url('../fonts/Classica-Book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Body / base overrides --- */
body {
    font-family: "Public Sans", "Public Sans Fallback";
    background-color: var(--ap-white);
    color: var(--ap-text-dark);
    overflow-x: hidden;
    margin: 0;
}

/* =========================================================
   PROMO BANNER
   ========================================================= */
.ap-promo-banner {
    width: 100%;
    position: relative;
    z-index: 50;
    color: #fff;

    background: linear-gradient(to right, #a855f7, #6366f1, #9333ea);
}

/* CONTAINER */
.ap-banner-container {
    max-width: 1280px;
    margin: 0 auto;
}

.ap-banner-container .ap-banner {

    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;

    padding: 10px 32px;
}

/* TEXT */
.ap-banner-text {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    line-height: 24px;
    margin: 0;
}

/* BUTTON */
.ap-banner-btn {
    background: #fff;
    color: #2e1065;

    padding: 4px 16px;
    border-radius: 12px;

    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;

    transition: all 0.2s ease;
}

.ap-banner-btn:hover {
    background: #f3f4f6;
}

/* BACKGROUND IMAGES */
.ap-banner-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    pointer-events: none;
    background-repeat: no-repeat;
}

/* LEFT IMAGE */
.ap-banner-left {
    left: -64px;
    background-image: url('http://autopublix-blog.webtx.co/wp-content/uploads/2026/03/bg-banner-left.png');
    /* CHANGE PATH */
    background-position: left center;
}

/* RIGHT IMAGE */
.ap-banner-right {
    right: 0;
    background-image: url('http://autopublix-blog.webtx.co/wp-content/uploads/2026/03/bg-banner-right.png');
    /* CHANGE PATH */
    background-position: right center;
}

/* =========================================================
   HEADER
   ========================================================= */

.custom-logo {
    max-width: 100%;
    height: auto;
    width: 200px;
}

.ap-main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    padding: 24px 0;
    transition: var(--ap-transition);
    border-bottom: 1px solid transparent;
}

.ap-main-header.ap-scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(142, 51, 255, 0.1);
}

.ap-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.ap-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.ap-logo img {
    height: 40px;
    display: block;
    width: auto;
}

/* 
.menu-item a {
    font-weight: 500;
    color: var(--ap-text-dark);
    position: relative;
    padding: 8px 0;
    text-decoration: none;
    transition: var(--ap-transition);
} */

.menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item a:hover,
.menu-item a:focus {
    color: var(--ap-nav-active);
}

.menu-item a.current-menu-item,
.menu-item a.current_page_item,
.menu-item a.ap-active {
    color: var(--ap-nav-active);
}

.menu-item a.current-menu-item::after,
.menu-item a.current_page_item::after,
.menu-item a.ap-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ap-nav-active);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
    border-radius: 2px;
}

/* Mobile Menu Toggle */
.ap-mobile-menu-btn {
    display: block;
    background: #f8fafc;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.ap-mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ap-text-dark);
    margin: 4px auto;
    transition: var(--ap-transition);
}

/* Mobile Overlay & Drawer */
.ap-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--ap-transition);
}

.ap-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    z-index: 1001;
    padding: 8px 16px;
    transition: var(--ap-transition);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.ap-mobile-menu.ap-open {
    left: 0;
}

.ap-mobile-overlay.ap-open {
    opacity: 1;
    visibility: visible;
}

.ap-mobile-nav-links {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
}

.ap-mobile-nav-links li {
    margin-bottom: 20px;
}

.ap-mobile-nav-links a {
    font-size: 16px;
    font-weight: 400;
    color: var(--ap-text-dark);
    text-decoration: none;
    font-family: "classica", "classica Fallback";
}

/* =========================================================
   FOOTER
   ========================================================= */
.ap-main-footer {
    background: var(--ap-footer-gradient);
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.ap-footer-bg-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    opacity: 0.6;
}

.ap-footer-content {
    position: relative;
    z-index: 10;
}

/* PubliFlow animated pipes */
.ap-publi-flow-outer {
    padding-bottom: 40px;
    width: 100%;
}

.ap-publi-flow-container {
    position: relative;
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
}

.ap-publi-flow-desktop {
    display: none;
    position: relative;
    width: 100%;
    padding-top: 39.89%;
}

@media (min-width: 640px) {
    .ap-publi-flow-desktop {
        display: block;
    }
}

.ap-publi-flow-mobile {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 81.63%;
}

@media (min-width: 640px) {
    .ap-publi-flow-mobile {
        display: none;
    }
}

.ap-absolute-inset {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.ap-publi-flow-pipes {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ap-publi-flow-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

/* Pipe animations */
@keyframes ap-flowForward {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 400;
    }
}

@keyframes ap-flowReverse {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -400;
    }
}

.ap-pipe-flow-forward {
    animation: ap-flowForward 3s infinite linear;
    will-change: stroke-dashoffset;
}

.ap-pipe-flow-reverse {
    animation: ap-flowReverse 3s infinite linear;
    will-change: stroke-dashoffset;
}

/* Footer grid */

.ap-footer-col h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--ap-text-dark);
    font-family: 'classica';
    line-height: 24px;
}

.ap-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ap-footer-links li {
    margin-bottom: 0.75rem;
}

.ap-footer-links a {
    color: #1e293b;
    font-size: 16px;
    text-decoration: none;
    transition: var(--ap-transition);
    font-weight: 300;
}

.ap-footer-links a:hover {
    color: var(--ap-primary-purple);
}

/* Subscribe */
.ap-subscribe-text {
    color: #1e293b;
    font-size: 16px;
    text-decoration: none;
    transition: var(--ap-transition);
    font-weight: 300;
}

.ap-subscribe-form {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #8E33FF;
    padding: 4px;
    border-radius: 12px;
    background-color: white;

}

.ap-subscribe-form input[type="email"] {
    flex: 1;
    padding: 16px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--ap-transition);
}

.ap-subscribe-form input[type="email"]:focus {
    border-color: var(--ap-primary-purple);
    box-shadow: 0 0 0 3px rgba(142, 51, 255, 0.1);
}

.ap-subscribe-form button {
    background: var(--ap-primary-purple);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--ap-transition);
}

.ap-subscribe-form button:hover {
    background: #7C2DE0;
}

/* Social icons */
.ap-social-icons {
    display: flex;
    gap: 12px;
}

.ap-social-icon:hover {
    opacity: 0.8;
}

.ap-social-icon{
    height: 32px;
}

/* Bottom logo & copyright */
.ap-footer-bottom-logo {
    text-align: center;
    margin-bottom: 32px;
}

.ap-footer-bottom-logo img {
    max-width: 875px;
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.ap-copyright {
    text-align: center;
    color: #1d262f;
    font-size: 0.875rem;
    border-top: 1px solid #9ca3af;
    padding: 16px 0 0;
    font-size: 18px;
    line-height: 24px;
}

/* Subscribe message feedback */
.ap-subscribe-msg {
    font-size: 0.875rem;
    margin-top: 8px;
    min-height: 1.2em;
}

.ap-subscribe-msg.success {
    color: #16a34a;
}

.ap-subscribe-msg.error {
    color: #dc2626;
}

.ap-subscribe-msg {
    display: none;
}

.ap-subscribe-msg.error {
    color: #dc2626;
    display: block;
}

.menu .menu-item a {
    position: relative;
    display: inline-block;
    padding: 8px 16px;
    font-family: "classica", "classica Fallback";
    font-size: 16px;
    font-weight: 500;
    color: #030436;
    text-decoration: none;
    transition: color 0.15s ease;
    color: var(--ap-text-dark);
    line-height: 24px;
}

/* Hover text color */
.menu-item a:hover {
    color: #7c3aed;
    /* violet */
}

/* Bottom animated line */
.menu-item a::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 0;
    height: 1px;

    background: linear-gradient(to right,
            transparent 10%,
            #a78bfa,
            transparent 90%);

    transform: scaleX(0);
    opacity: 0;
    transform-origin: center;
    transition: all 0.15s ease;
}

/* Glow background */
.menu .menu-item a::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -8px;
    height: 100%;

    background: linear-gradient(to top,
            rgba(139, 92, 246, 0.2),
            transparent);

    border-radius: 999px 999px 0 0;
    filter: blur(8px);

    transform: scale(0);
    opacity: 0;
    transform-origin: bottom;
    transition: all 0.15s ease;
}

/* Hover animation trigger */
.menu .menu-item a:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.menu-item a:hover::before {
    transform: scale(1);
    opacity: 1;
}

.auth-icon {
    width: 32px;
    height: 32px;
}

.ap-mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #A855F7;
    border: none;
    cursor: pointer;
    font-size: 20px;
    width: 32px;
    height: 32px;
    color: #fff;
    padding: 0;
    border-radius: 100px;
}

.ap-auth-icon {
    line-height: 0;
}

.ap-post-blog {
    background-color: #ffffff;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .15);
}

.ap-featured-image img {
    width: 100%;
    display: block;
    height: auto;
}

.ap-entry-content {
    padding: 20px;
}

.ap-entry-content h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 500;
}

.ap-entry-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.subscribe-text {
    margin-top: 15px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    font-weight: 300;
}

.ap-footer-main {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 32px;
}

.ap-footer-grid {
    display: flex;
    width: 60%;
    gap: 32px;
}

.ap-footer-col {
    width: 50%;
}

.ap-footer-col {
    width: 40%;
}

/* === creators section === */
.ap-creators-section {
    position: relative;
    width: 100%;
    background: linear-gradient(to bottom, #ffffff, #f5f3ff, #ede9fe);
    overflow: hidden;
    padding: 80px 0;
}

.ap-creators-section .container{
    z-index: 10;
    position: relative;
}

.ap-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.9;
}

.ap-bg-pattern img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}

.ap-container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
}

.ap-header {
    text-align: center;
    margin-bottom: 48px;
}

.ap-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8e33ff;
    font-weight: bold;
    font-size: 18px;
    line-height: 20px;
}

.ap-tag-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.ap-heading {
    font-size: 42px;
    line-height: 52px;
    font-weight: 700;
    margin: 9px 0 15px;
    color: #111827;
    font-family: "classica", "classica Fallback";
    letter-spacing: -.025em;
}

.ap-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: #475569;
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
}

.ap-grid {
    display: grid;
    gap: 32px;
}

.ap-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e9d5ff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ap-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ap-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 18px;
}

.bg-red {
    background: #fee2e2;
}

.bg-purple {
    background: #ede9fe;
}

.bg-blue {
    background: #dbeafe;
}

.bg-pink {
    background: #fce7f3;
}

.bg-green {
    background: #dcfce7;
}

.bg-orange {
    background: #ffedd5;
}

/* Text */
.ap-card h3 {
    font-family: 'classica';
    font-size: 20px;
    line-height: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 0;
    color: #111827;
}

.ap-card p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 300px;
    color: #475569;
    margin: 0;
}

/* faq section */
.ap-faq-section {
    background: #ffffff;
    padding: 56px 0 64px;
}

.ap-faq-section .ap-header{
    margin-bottom: 67px;
}
/* Header */
.ap-faq-header {
    text-align: center;
    margin-bottom: 40px;
}

/* FAQ */
.ap-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
}

.ap-faq-item {
    border: 1px solid #7c3aed;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Active */
.ap-faq-item.active {
    background: #f5f3ff;
    box-shadow: 4px 4px 0px #8e33ff;
}

/* Question */
.ap-faq-question {
    font-family: "Public Sans", "Public Sans Fallback", sans-serif;
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    line-height: 100%;
}

/* Icon */
.ap-icon {
    transition: transform 0.3s ease;
    height: 20px;
    width: 20px;
}

.ap-icon svg {
    height: 20px;
    width: 20px;
}

.ap-faq-item.active .ap-icon {
    transform: rotate(180deg);
}

/* Answer */
.ap-faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 0 20px;
}

.ap-faq-item.active .ap-faq-answer {
    max-height: 500px;
    opacity: 1;
    padding: 0 24px 20px;
}

/* Text */
.ap-faq-answer p,
.ap-faq-answer li {
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.ap-faq-answer ul {
    padding-left: 18px;
}

.ap-header-wrapper {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
}

/* Underline */
.ap-underline-img {
    position: absolute;
    left: 48%;
    top: 79px;
    transform: translateX(-50%);
    width: 300px;
    z-index: 0;
    pointer-events: none;
}

/* Arrow */
.ap-arrow-img {
    position: absolute;
    right: -10px;
    top: 110px;
    width: 180px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Keep text above */
.ap-header {
    position: relative;
    z-index: 1;
}

.ap-mobile-menu-btn {
    display: none;
}

/* creators section */
.ap-grid {
    grid-template-columns: repeat(3, 1fr);
}


@media (max-width: 1024px) {

    .ap-footer-main {
        flex-direction: row;
    }

    .ap-desktop-nav {
        display: none;
    }

    .ap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ap-footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    /* faq section */
    .ap-arrow-img,
    .ap-underline-img {
        display: none;
    }

    .ap-faq-section {
        padding: 56px 20px 64px 20px !important;
    }

    .ap-mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 991px) {

    .ap-footer-grid {
        justify-content: space-between;
        width: 100%;
    }

    .ap-footer-col {
        width: 100%;
    }
}

@media (max-width : 768px) {
    .ap-header-content{
        padding: 0;
    }

    .ap-footer-main {
        flex-direction: column;
    }

    .ap-heading {
        font-size: 24px;
        line-height: 32px;
    }

    .ap-footer-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0px, 1fr));
    }

    .ap-promo-banner {
        flex-direction: column;
    }


    /* creators section */
    .ap-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .ap-creators-section {
        padding: 48px 0;
    }

    .ap-underline-img {
        width: 220px;
        top: 60px;
    }

    .ap-banner-bg {
        display: none;
    }

    .ap-banner-btn {
        font-size: 12px;
        line-height: 12px;
    }

    .ap-banner-btn {
        padding: 5px 12px;
    }

    .ap-banner-container .ap-banner {
        flex-direction: column;
        gap: 6px;
    }

}

/* RESPONSIVE */
@media (min-width: 768px) {


    .ap-banner-text {
        text-align: left;
    }

    .ap-banner-bg {
        display: block;
    }


}