/* YAU Blog Post Styles */

/* Hide default theme header — but keep .page-header (contains post title) */
.blog .site-header,
.category .site-header,
.archive .site-header,
.single-post .site-header { display: none !important; }
.blog .page-header,
.category .page-header,
.archive .page-header { display: none !important; }

/* ============================================
   GLOBAL / BASE STYLES — copied from homepage
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'DM Sans', sans-serif !important;
    color: #fff !important;
    background: #1a1a2e !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #fff;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #f7e733 !important; }
a:focus { color: #FF65BE !important; outline: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    gap: 0.5rem;
    line-height: 1.4;
}
.btn-primary {
    background: #f7e733;
    color: #1a1a2e;
    border-color: #f7e733;
}
.btn-primary:hover {
    background: #e6d62e;
    border-color: #e6d62e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 231, 51, 0.3);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}
.btn-outline:hover {
    background: #f7e733;
    border-color: #f7e733;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 231, 51, 0.2);
}
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; white-space: nowrap; }

/* HEADER / NAVIGATION — exact copy from homepage */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 45px; width: auto; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}
.nav-link {
    color: #e0e0e0;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nav-link:hover { color: #f7e733; }
.nav-link.active { color: #f7e733; }

/* MOBILE MENU */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
@media (max-width: 900px) {
    .mobile-menu-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-links.active { display: flex; }
    .nav-link { padding: 0.75rem 1rem; }
}

/* ============================================
   BLOG-SPECIFIC STYLES
   ============================================ */

/* Push content below fixed header */
.single-post .site-main,
.blog .site-main,
.category .site-main,
.archive .site-main {
    padding-top: 5rem !important;
}

/* Post title — rendered in .page-header by Hello Elementor */
.single-post .page-header {
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem 1rem !important;
}
.single-post .page-header .entry-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.2 !important;
    margin-bottom: 0.25rem !important;
}

/* YouTube embed — complementary, integrated into article */
.yau-video-embed {
    margin: 1.5rem auto 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    max-width: 560px;
}
.yau-video-embed .yau-video-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f7e733;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.yau-video-embed .yau-video-frame {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.yau-video-embed iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

/* Container */
.single-post .entry-content,
.blog .site-main {
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem 4rem !important;
    color: #e0e0e0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Blog listing */
.blog .site-main,
.category .site-main,
.archive .site-main { max-width: 800px !important; }

/* Post title */
.single-post .entry-header {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 0;
}
.single-post .entry-title,
.single-post h1.entry-title {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Post meta (date, author) */
.single-post .entry-meta,
.single-post .post-meta {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}
.single-post .entry-meta a { color: #f7e733; text-decoration: none; }

/* Headings */
.single-post .entry-content h2 {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f7e733;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.single-post .entry-content h3 {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

/* Paragraphs */
.single-post .entry-content p {
    margin-bottom: 1.25rem;
    color: #d0d0d0;
}

/* Bold text */
.single-post .entry-content strong {
    color: #fff;
    font-weight: 600;
}

/* Links */
.single-post .entry-content a {
    color: #f7e733;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.single-post .entry-content a:hover {
    color: #FF65BE;
}

/* Lists */
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 0 0 1.5rem 1.25rem;
    padding: 0;
}
.single-post .entry-content li {
    margin-bottom: 0.5rem;
    color: #d0d0d0;
    line-height: 1.7;
}
.single-post .entry-content li strong {
    color: #fff;
}

/* Tables */
.single-post .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
}
.single-post .entry-content thead th {
    background: rgba(247, 231, 51, 0.1);
    color: #f7e733;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}
.single-post .entry-content td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
}
.single-post .entry-content th {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #aaa;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}
.single-post .entry-content tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Blockquotes */
.single-post .entry-content blockquote {
    border-left: 3px solid #f7e733;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: rgba(247, 231, 51, 0.05);
    border-radius: 0 8px 8px 0;
    color: #ccc;
    font-style: normal;
}

/* Images */
.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* CTA section at bottom */
.single-post .entry-content a[href*="aussie-workplace-system"] {
    display: inline-block;
    background: #f7e733;
    color: #1a1a2e;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}
.single-post .entry-content a[href*="aussie-workplace-system"]:hover {
    background: #e6d62e;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 231, 51, 0.3);
}

/* Hide comments on posts */
.single-post .comments-area { display: none; }

/* Space before footer */
.single-post .site-main {
    padding-bottom: 4rem !important;
}

/* Blog listing — hide "Archives" heading, show custom title via mu-plugin */
.blog .page-header,
.category .page-header,
.archive .page-header { display: none !important; }

/* Blog listing cards */
.blog article,
.category article,
.archive article {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.blog article:hover,
.category article:hover,
.archive article:hover {
    border-color: rgba(247, 231, 51, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.blog article .entry-title,
.category article .entry-title,
.archive article .entry-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
}
.blog article .entry-title a,
.category article .entry-title a,
.archive article .entry-title a {
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}
.blog article .entry-title a:hover,
.category article .entry-title a:hover,
.archive article .entry-title a:hover {
    color: #f7e733 !important;
}
.blog article a,
.category article a,
.archive article a {
    pointer-events: auto !important;
    cursor: pointer !important;
}
.blog article .entry-meta,
.blog article .post-meta,
.category article .entry-meta,
.category article .post-meta,
.archive article .entry-meta,
.archive article .post-meta {
    color: #888 !important;
    font-size: 0.82rem !important;
    margin-bottom: 0.75rem !important;
}
.blog article .entry-summary,
.blog article .entry-content,
.blog article p,
.category article .entry-summary,
.category article .entry-content,
.category article p,
.archive article .entry-summary,
.archive article .entry-content,
.archive article p {
    color: #aaa !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
}
.blog article .entry-summary a,
.blog article .entry-content a,
.blog article a.more-link,
.category article .entry-summary a,
.category article .entry-content a,
.category article a.more-link,
.archive article .entry-summary a,
.archive article .entry-content a,
.archive article a.more-link {
    color: #f7e733 !important;
    text-decoration: none !important;
    font-weight: 600;
}
.blog article a.more-link:hover {
    text-decoration: underline !important;
}

/* Blog hero section */
.yau-blog-hero {
    text-align: center;
    padding: 3rem 0 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.yau-blog-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}
.yau-blog-title .text-yellow {
    color: #f7e733;
}
.yau-blog-subtitle {
    color: #9ca3af;
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* Category filter pills */
.yau-blog-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0;
}
.yau-blog-filters a {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ccc;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.2s ease;
}
.yau-blog-filters a:hover,
.yau-blog-filters a.active {
    background: rgba(247, 231, 51, 0.15);
    border-color: rgba(247, 231, 51, 0.4);
    color: #f7e733;
}

/* Post navigation */
.single-post .post-navigation a {
    color: #f7e733;
    text-decoration: none;
}

/* FOOTER — copied from homepage */
.footer {
    padding: 3rem 0 1.5rem;
    background: #16162a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.footer-logo { height: 55px; width: auto; }
.footer-tagline {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: nowrap;
}
.footer-columns-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f7e733;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
    color: #9ca3af;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: #f7e733; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-copyright {
    color: #6b7280;
    font-size: 0.8rem;
    margin: 0;
}
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    color: #9ca3af;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}
.footer-social a:hover { color: #f7e733; }

@media (max-width: 768px) {
    .footer-brand-row {
        flex-direction: column;
        text-align: center;
    }
    .footer-tagline { white-space: normal; }
    .footer-columns-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .single-post .entry-content,
    .blog .site-main {
        padding: 1.5rem 1rem 3rem !important;
    }
    .single-post .entry-header {
        padding: 2rem 1rem 0;
    }
    .single-post .entry-content h2 {
        font-size: 1.3rem;
    }
    .single-post .entry-content table {
        font-size: 0.82rem;
    }
    .single-post .entry-content td,
    .single-post .entry-content th {
        padding: 0.5rem 0.6rem;
    }
}

/* ── Blog CTA Banner Cards ── */
.yau-blog-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0 1rem;
}
.yau-blog-cta-card {
    border-radius: 12px;
    overflow: hidden;
    background: #1e1e3a;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.yau-blog-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.yau-blog-cta-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.yau-blog-cta-card img {
    width: 100%;
    height: auto;
    display: block;
}
.yau-blog-cta-text {
    padding: 1.25rem;
}
.yau-blog-cta-text strong {
    display: block;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.yau-blog-cta-text p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem;
}
.yau-blog-cta-btn {
    display: inline-block;
    background: #f7e733;
    color: #1a1a2e;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}
.yau-blog-cta-card:hover .yau-blog-cta-btn {
    background: #e6d62e;
}
@media (max-width: 768px) {
    .yau-blog-cta {
        grid-template-columns: 1fr;
    }
}

/* Mobile: full-width video embed */
@media (max-width: 768px) {
    .yau-video-embed {
        max-width: 100%;
        padding: 0.75rem;
    }
}
