/*
Theme Name: MFG Guides Theme
Theme URI: https://mfgguides.com
Author: MFG Guides
Description: Premium B2B manufacturing publication theme - child of TwentyTwentyFive
Template: twentytwentyfive
Version: 1.0.0
Text Domain: mfgguides-theme
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --mfg-primary: #0A1628;
    --mfg-steel: #2E5090;
    --mfg-accent: #F97316;
    --mfg-accent-hover: #EA580C;
    --mfg-bg: #F1F5F9;
    --mfg-card: #FFFFFF;
    --mfg-text: #1E293B;
    --mfg-muted: #64748B;
    --mfg-border: #E2E8F0;
    --mfg-accent-light: #FFF7ED;
    --mfg-steel-light: #EFF6FF;
    --mfg-font-heading: 'Montserrat', sans-serif;
    --mfg-font-body: 'Inter', sans-serif;
    --mfg-radius: 8px;
    --mfg-radius-lg: 12px;
    --mfg-shadow: 0 1px 3px rgba(10, 22, 40, 0.06), 0 1px 2px rgba(10, 22, 40, 0.04);
    --mfg-shadow-md: 0 4px 12px rgba(10, 22, 40, 0.08), 0 2px 4px rgba(10, 22, 40, 0.04);
    --mfg-shadow-lg: 0 10px 30px rgba(10, 22, 40, 0.12), 0 4px 8px rgba(10, 22, 40, 0.06);
    --mfg-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --mfg-content-width: 720px;
    --mfg-wide-width: 1200px;
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--mfg-font-body);
    color: var(--mfg-text);
    background-color: var(--mfg-bg);
    line-height: 1.75;
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mfg-font-heading);
    color: var(--mfg-primary);
    line-height: 1.2;
    margin-top: 2em;
    margin-bottom: 0.6em;
}

h1 { font-weight: 900; font-size: clamp(1.85rem, 4vw, 2.65rem); }
h2 { font-weight: 800; font-size: clamp(1.4rem, 2.8vw, 1.75rem); }
h3 { font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--mfg-steel); }
h4 { font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.2rem); }

a {
    color: var(--mfg-steel);
    text-decoration: none;
    transition: color var(--mfg-transition);
}

a:hover {
    color: var(--mfg-accent);
}

a:focus-visible {
    outline: 2px solid var(--mfg-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--mfg-radius);
}

/* ============================================================
   STICKY HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--mfg-primary);
    border-bottom: 2px solid var(--mfg-accent);
    transition: box-shadow var(--mfg-transition), background var(--mfg-transition);
}

.site-header-inner {
    max-width: var(--mfg-wide-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-header-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #FFFFFF;
    transition: opacity var(--mfg-transition);
}

.site-header-brand:hover {
    opacity: 0.9;
    color: #FFFFFF;
}

.brand-icon {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.3));
}

.brand-text {
    font-family: var(--mfg-font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.site-header-nav {
    display: flex;
    align-items: center;
}

.site-header-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.site-header-links li a {
    display: block;
    padding: 0.5rem 1rem;
    font-family: var(--mfg-font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 6px;
    transition: color var(--mfg-transition), background var(--mfg-transition);
}

.site-header-links li a:hover,
.site-header-links li a.active {
    color: #FFFFFF;
    background: rgba(249, 115, 22, 0.15);
}

/* Mobile hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: transform var(--mfg-transition), opacity var(--mfg-transition);
}

.site-header.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    background: linear-gradient(160deg, #0A1628 0%, #132240 40%, #0D1D35 100%);
    padding: 5rem 1.5rem 6rem;
    text-align: center;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-bg-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 80, 144, 0.18) 0%, rgba(249, 115, 22, 0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.4rem;
    border: 1.5px solid rgba(249, 115, 22, 0.5);
    border-radius: 50px;
    font-family: var(--mfg-font-heading);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--mfg-accent);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    background: rgba(249, 115, 22, 0.06);
}

.hero-title {
    font-family: var(--mfg-font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.12;
    color: #FFFFFF;
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--mfg-accent) 0%, #FBBF24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

.hero-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 2;
}

.hero-divider svg {
    width: 100%;
    height: 50px;
    display: block;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.wp-site-blocks {
    padding-top: 0 !important;
}

main.wp-block-group,
.wp-block-post-content,
.entry-content {
    max-width: var(--mfg-content-width);
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1.5rem 3rem;
}

/* ============================================================
   HOMEPAGE POST CARDS
   ============================================================ */
.wp-block-post-template {
    max-width: var(--mfg-wide-width);
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.wp-block-post-template .wp-block-post {
    background: var(--mfg-card);
    border-radius: var(--mfg-radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--mfg-shadow);
    border-left: 4px solid transparent;
    transition: border-color var(--mfg-transition), box-shadow var(--mfg-transition), transform var(--mfg-transition);
}

.wp-block-post-template .wp-block-post:hover {
    border-left-color: var(--mfg-accent);
    box-shadow: var(--mfg-shadow-md);
    transform: translateY(-1px);
}

.wp-block-post-template .wp-block-post-title {
    font-family: var(--mfg-font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    line-height: 1.3;
}

.wp-block-post-template .wp-block-post-title a {
    color: var(--mfg-primary);
    transition: color var(--mfg-transition);
}

.wp-block-post-template .wp-block-post-title a:hover {
    color: var(--mfg-steel);
}

.wp-block-post-template .wp-block-post-excerpt {
    color: var(--mfg-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.wp-block-post-template .wp-block-post-excerpt__more-text a,
.wp-block-post-template .wp-block-read-more {
    font-family: var(--mfg-font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mfg-accent);
    transition: color var(--mfg-transition);
}

.wp-block-post-template .wp-block-post-excerpt__more-text a:hover,
.wp-block-post-template .wp-block-read-more:hover {
    color: var(--mfg-accent-hover);
}

.wp-block-post-template .wp-block-post-date {
    font-size: 0.8rem;
    color: var(--mfg-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.wp-block-post-template .wp-block-post-terms {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.wp-block-post-template .wp-block-post-terms a {
    display: inline-block;
    padding: 0.15rem 0.65rem;
    background: var(--mfg-steel-light);
    color: var(--mfg-steel);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--mfg-font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    transition: background var(--mfg-transition), color var(--mfg-transition);
}

.wp-block-post-template .wp-block-post-terms a:hover {
    background: var(--mfg-steel);
    color: #FFFFFF;
}

/* ============================================================
   ARTICLE BREADCRUMBS
   ============================================================ */
.article-breadcrumbs {
    font-size: 0.8rem;
    color: var(--mfg-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--mfg-border);
}

.article-breadcrumbs a {
    color: var(--mfg-steel);
    font-weight: 500;
}

.article-breadcrumbs a:hover {
    color: var(--mfg-accent);
}

/* ============================================================
   ARTICLE META BAR
   ============================================================ */
.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--mfg-border);
    font-size: 0.82rem;
    color: var(--mfg-muted);
}

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--mfg-steel-light);
    color: var(--mfg-steel);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.78rem;
}

.article-date {
    font-weight: 500;
}

.article-category {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: var(--mfg-accent);
    color: #FFFFFF;
    border-radius: 50px;
    font-family: var(--mfg-font-heading);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   ARTICLE CONTENT TYPOGRAPHY
   ============================================================ */
.wp-block-post-content h2,
.entry-content h2 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--mfg-accent);
    margin-top: 2.5rem;
}

.wp-block-post-content h3,
.entry-content h3 {
    color: var(--mfg-steel);
    font-weight: 700;
    margin-top: 2rem;
}

.wp-block-post-content h4,
.entry-content h4 {
    font-weight: 700;
    color: var(--mfg-primary);
    font-size: 1.1rem;
}

.wp-block-post-content p,
.entry-content p {
    margin-bottom: 1.5rem;
    color: var(--mfg-text);
}

/* Blockquotes */
.wp-block-post-content blockquote,
.entry-content blockquote,
.wp-block-quote {
    border-left: 4px solid var(--mfg-accent) !important;
    background: var(--mfg-accent-light);
    padding: 1.5rem 1.75rem !important;
    margin: 2rem 0 !important;
    border-radius: 0 var(--mfg-radius) var(--mfg-radius) 0;
    font-style: italic;
    color: var(--mfg-text);
}

.wp-block-post-content blockquote p,
.entry-content blockquote p,
.wp-block-quote p {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.wp-block-post-content blockquote cite,
.wp-block-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--mfg-muted);
}

/* Tables */
.wp-block-post-content table,
.entry-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.92rem;
    border-radius: var(--mfg-radius);
    overflow: hidden;
    box-shadow: var(--mfg-shadow);
}

.wp-block-post-content table thead th,
.entry-content table thead th,
.wp-block-table table thead th {
    background: var(--mfg-primary);
    color: #FFFFFF;
    font-family: var(--mfg-font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    text-align: left;
}

.wp-block-post-content table tbody td,
.entry-content table tbody td,
.wp-block-table table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--mfg-border);
}

.wp-block-post-content table tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(even),
.wp-block-table table tbody tr:nth-child(even) {
    background: #F8FAFC;
}

.wp-block-post-content table tbody tr:hover,
.entry-content table tbody tr:hover,
.wp-block-table table tbody tr:hover {
    background: var(--mfg-steel-light);
}

/* Code blocks */
.wp-block-post-content code,
.entry-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.88em;
    background: #1E293B;
    color: #E2E8F0;
    padding: 0.15em 0.45em;
    border-radius: 4px;
}

.wp-block-post-content pre,
.entry-content pre,
.wp-block-code {
    background: var(--mfg-primary) !important;
    color: #E2E8F0 !important;
    padding: 1.5rem !important;
    border-radius: var(--mfg-radius-lg) !important;
    overflow-x: auto;
    margin: 2rem 0 !important;
    border-left: 4px solid var(--mfg-steel) !important;
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
    box-shadow: var(--mfg-shadow-md);
}

.wp-block-code code {
    background: transparent !important;
    padding: 0 !important;
    color: inherit !important;
}

/* Lists */
.wp-block-post-content ul,
.entry-content ul {
    list-style: none;
    padding-left: 1.5rem;
}

.wp-block-post-content ul li,
.entry-content ul li {
    position: relative;
    padding-left: 0.75rem;
    margin-bottom: 0.5rem;
}

.wp-block-post-content ul li::before,
.entry-content ul li::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 0.65em;
    width: 7px;
    height: 7px;
    background: var(--mfg-accent);
    border-radius: 50%;
}

.wp-block-post-content ol,
.entry-content ol {
    padding-left: 1.5rem;
}

.wp-block-post-content ol li,
.entry-content ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.35rem;
}

.wp-block-post-content ol li::marker,
.entry-content ol li::marker {
    color: var(--mfg-accent);
    font-weight: 700;
    font-family: var(--mfg-font-heading);
}

/* ============================================================
   TABLE OF CONTENTS (RankMath / Yoast)
   ============================================================ */
.wp-block-rank-math-toc-block,
.rank-math-toc-container,
div[class*="table-of-contents"],
.lwptoc {
    background: var(--mfg-card);
    border: 1px solid var(--mfg-border);
    border-left: 4px solid var(--mfg-steel);
    border-radius: var(--mfg-radius-lg);
    padding: 1.75rem 2rem;
    margin: 2rem 0;
    box-shadow: var(--mfg-shadow);
}

.wp-block-rank-math-toc-block h2,
.rank-math-toc-container h2,
div[class*="table-of-contents"] h2 {
    font-family: var(--mfg-font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mfg-steel);
    border-bottom: 2px solid var(--mfg-border);
    padding-bottom: 0.75rem;
    margin: 0 0 1rem;
}

.wp-block-rank-math-toc-block a,
.rank-math-toc-container a {
    color: var(--mfg-text);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color var(--mfg-transition), padding-left var(--mfg-transition);
}

.wp-block-rank-math-toc-block a:hover,
.rank-math-toc-container a:hover {
    color: var(--mfg-accent);
    padding-left: 4px;
}

.wp-block-rank-math-toc-block li,
.rank-math-toc-container li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.wp-block-rank-math-toc-block li:last-child,
.rank-math-toc-container li:last-child {
    border-bottom: none;
}

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--mfg-card);
    border-left: 4px solid var(--mfg-steel);
    border-radius: var(--mfg-radius-lg);
    padding: 1.75rem 2rem;
    margin: 3rem 0 2rem;
    box-shadow: var(--mfg-shadow);
    transition: box-shadow var(--mfg-transition);
}

.author-box:hover {
    box-shadow: var(--mfg-shadow-md);
}

.author-box-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mfg-border);
}

.author-box-label {
    display: block;
    font-family: var(--mfg-font-heading);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mfg-steel);
    margin-bottom: 0.2rem;
}

.author-box-name {
    font-family: var(--mfg-font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--mfg-primary);
    margin: 0 0 0.4rem;
}

.author-box-bio {
    font-size: 0.9rem;
    color: var(--mfg-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
    margin: 3.5rem 0 2rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--mfg-border);
}

.related-posts-heading {
    font-family: var(--mfg-font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mfg-primary);
    margin: 0 0 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--mfg-accent);
    display: inline-block;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.related-card {
    background: var(--mfg-card);
    border-radius: var(--mfg-radius-lg);
    overflow: hidden;
    box-shadow: var(--mfg-shadow);
    transition: transform var(--mfg-transition), box-shadow var(--mfg-transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mfg-shadow-lg);
}

.related-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform var(--mfg-transition);
}

.related-card:hover .related-thumb img {
    transform: scale(1.05);
}

.related-card h4 {
    font-family: var(--mfg-font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--mfg-primary);
    padding: 1rem 1.15rem;
    margin: 0;
    line-height: 1.4;
    transition: color var(--mfg-transition);
}

.related-card:hover h4 {
    color: var(--mfg-steel);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--mfg-primary);
    border-top: 3px solid var(--mfg-accent);
    padding: 3.5rem 1.5rem 2.5rem;
    margin-top: 3rem;
    text-align: center;
}

.site-footer-inner {
    max-width: var(--mfg-wide-width);
    margin: 0 auto;
}

.footer-brand {
    font-family: var(--mfg-font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: #FFFFFF;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1.75rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.75rem;
}

.footer-links a {
    font-family: var(--mfg-font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--mfg-transition);
}

.footer-links a:hover {
    color: var(--mfg-accent);
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto 1.5rem;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

/* ============================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ============================================================ */
.wp-block-button__link,
.wp-element-button {
    background: var(--mfg-accent) !important;
    color: #FFFFFF !important;
    font-family: var(--mfg-font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 6px;
    padding: 0.8rem 1.8rem;
    transition: background var(--mfg-transition), transform var(--mfg-transition), box-shadow var(--mfg-transition);
    border: none;
    cursor: pointer;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    background: var(--mfg-accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

/* ============================================================
   SEPARATOR & MEDIA
   ============================================================ */
.wp-block-separator,
hr {
    border: none;
    height: 2px;
    background: var(--mfg-border);
    margin: 2.5rem 0;
}

.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image figcaption {
    font-size: 0.82rem;
    color: var(--mfg-muted);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.wp-block-query-pagination {
    max-width: var(--mfg-wide-width);
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0.4rem 0.8rem;
    background: var(--mfg-card);
    color: var(--mfg-text);
    border: 1px solid var(--mfg-border);
    border-radius: var(--mfg-radius);
    font-family: var(--mfg-font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--mfg-transition);
}

.wp-block-query-pagination a:hover {
    background: var(--mfg-steel);
    color: #FFFFFF;
    border-color: var(--mfg-steel);
}

/* ============================================================
   RESPONSIVE - TABLET (768px)
   ============================================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .site-header-links {
        position: fixed;
        top: 64px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 64px);
        background: var(--mfg-primary);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        transition: right var(--mfg-transition);
        border-left: 2px solid rgba(249, 115, 22, 0.2);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .site-header.menu-open .site-header-links {
        right: 0;
    }

    .site-header-links li a {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 0;
    }

    .hero {
        padding: 3.5rem 1.25rem 4.5rem;
        min-height: 300px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1.5rem;
    }

    .article-meta-bar {
        gap: 0.6rem;
    }

    .wp-block-post-template .wp-block-post {
        padding: 1.25rem 1.5rem;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE (480px)
   ============================================================ */
@media (max-width: 480px) {
    .site-header-inner {
        height: 56px;
        padding: 0 1rem;
    }

    .brand-text {
        font-size: 1.05rem;
    }

    .brand-icon {
        font-size: 1.25rem;
    }

    .site-header-links {
        top: 56px;
        height: calc(100vh - 56px);
        width: 100%;
    }

    .hero {
        padding: 2.5rem 1rem 3.5rem;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 0.3rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    main.wp-block-group,
    .wp-block-post-content,
    .entry-content {
        padding: 1.5rem 1rem 2rem;
    }

    .wp-block-post-template .wp-block-post {
        padding: 1rem 1.15rem;
        border-radius: var(--mfg-radius);
    }

    .wp-block-post-template .wp-block-post-title {
        font-size: 1.15rem;
    }

    .author-box {
        padding: 1.25rem;
    }

    .footer-brand {
        font-size: 1.1rem;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .site-header,
    .site-footer,
    .hero,
    .related-posts,
    .mobile-menu-toggle,
    .article-breadcrumbs,
    .hero-divider {
        display: none !important;
    }

    body {
        background: #FFFFFF;
        color: #000000;
        font-size: 12pt;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }

    .wp-block-post-content,
    .entry-content {
        max-width: 100%;
        padding: 0;
    }

    .author-box {
        border: 1px solid #cccccc;
        box-shadow: none;
    }

    img {
        max-width: 100% !important;
    }
}

/* ============================================================
   ANIMATIONS & POLISH
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-inner {
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Selection color */
::selection {
    background: rgba(249, 115, 22, 0.15);
    color: var(--mfg-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--mfg-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--mfg-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mfg-steel);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--mfg-accent);
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* WP Admin bar spacing fix */
.admin-bar .site-header {
    top: 32px;
}

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

@media (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }
}
