/*
 * MMDIY Theme Stylesheet
 * Editorial Broadsheet Design
 * Dark charcoal header, burnt orange accents, Poppins + Open Sans
 */

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
    --color-accent: #ff6b35;
    --color-accent-hover: #e55a28;
    --color-dark: #2d2d2d;
    --color-dark-hover: #3d3d3d;
    --color-body: #333333;
    --color-meta: #888888;
    --color-border: #e5e5e5;
    --color-bg: #ffffff;
    --color-bg-light: #f5f5f5;
    --color-teal: #5bc0de;
    --color-teal-hover: #46b8da;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --max-width: 1200px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-body);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-dark);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   UTILITIES
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    z-index: 100000;
    background: var(--color-accent);
    color: #fff;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-accent {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-accent:hover {
    background: var(--color-accent-hover);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    color: var(--color-body);
    transition: all var(--transition);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-small {
    padding: 0.375rem 1rem;
    font-size: 0.8rem;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg);
}

.header-accent-bar {
    height: 4px;
    background: var(--color-accent);
}

.header-main {
    background: var(--color-dark);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.site-branding a,
.site-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-branding .custom-logo {
    max-height: 40px;
    width: auto;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.main-navigation > ul > li {
    position: relative;
}

.main-navigation li a {
    display: block;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0.875rem;
    border-radius: 3px;
    transition: background var(--transition);
    white-space: nowrap;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item > a,
.main-navigation li.current-cat > a {
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown arrow */
.dropdown-arrow {
    font-size: 0.65em;
    margin-left: 2px;
    vertical-align: middle;
}

/* Submenu: hidden by default, shown on hover */
.main-navigation ul ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background: var(--color-dark);
    min-width: 200px;
    padding: 0.375rem 0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 100;
    gap: 0;
}

.main-navigation ul ul.sub-menu li {
    width: 100%;
}

.main-navigation ul ul.sub-menu li a {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 0;
}

.main-navigation ul ul.sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Show submenu on hover (desktop) */
.main-navigation > ul > li:hover > ul.sub-menu,
.main-navigation > ul > li.has-dropdown:hover > ul.sub-menu {
    display: flex;
}

/* Nested submenus (depth 2+) */
.main-navigation ul ul.sub-menu ul.sub-menu {
    top: 0;
    left: 100%;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform var(--transition);
}

/* Search toggle */
.search-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

.search-toggle:hover {
    opacity: 0.8;
}

/* Search overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-inner {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.search-form-overlay {
    display: flex;
    gap: 0.5rem;
}

.search-input-overlay {
    flex: 1;
    padding: 1rem;
    font-size: 1.125rem;
    border: none;
    border-radius: 3px;
    font-family: var(--font-body);
    outline: none;
}

.search-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* =========================================================
   SECTION TITLES
   ========================================================= */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--color-dark);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--color-border);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-accent);
}

/* =========================================================
   POST CARDS
   ========================================================= */
.posts-grid {
    display: grid;
    gap: 1.5rem;
}

.posts-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

/* Standard card */
.post-card {
    display: flex;
    flex-direction: column;
}

.post-card-image-link {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16 / 10;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.03);
}

.post-card-placeholder {
    background: var(--color-bg-light);
    width: 100%;
    height: 100%;
}

.post-card-body {
    padding-top: 0.75rem;
}

.post-card-category {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.post-card-category:hover {
    color: var(--color-accent-hover);
}

.post-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.375rem;
}

.post-card-title a:hover {
    color: var(--color-accent);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--color-meta);
}

.post-card-meta .meta-author {
    font-weight: 600;
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-body);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Hero card */
.post-card-hero .post-card-image-link {
    aspect-ratio: 4 / 3;
}

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

/* Compact card (horizontal) */
.post-card-compact {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
}

.compact-image-link {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.compact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-body {
    flex: 1;
    min-width: 0;
}

.compact-body .post-card-title {
    font-size: 0.9rem;
}

/* Trending card */
.post-card-trending .post-card-image-link {
    aspect-ratio: 3 / 2;
}

/* =========================================================
   FEATURED SECTION (Homepage)
   ========================================================= */
.section-featured {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.featured-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* =========================================================
   SOCIAL FOLLOW BAR
   ========================================================= */
.section-social {
    padding: 1.25rem 0;
}

.social-follow-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.social-follow-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    transition: opacity var(--transition), transform var(--transition);
}

.social-icon:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    color: #fff;
}

/* =========================================================
   HOMEPAGE SECTIONS
   ========================================================= */
.section-trending,
.section-category,
.section-latest {
    padding: 1.5rem 0;
}

.section-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.section-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
}

.category-block .btn-outline {
    margin-top: 1rem;
}

/* =========================================================
   NEWSLETTER SECTION
   ========================================================= */
.newsletter-section {
    background: var(--color-bg-light);
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

.newsletter-default h3 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.newsletter-default p {
    color: var(--color-meta);
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
}

.footer-nav {
    text-align: center;
    margin-bottom: 1.25rem;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li a {
    font-size: 0.875rem;
    color: var(--color-body);
    padding: 0.25rem 0.5rem;
}

.footer-menu li a:hover {
    color: var(--color-accent);
}

.footer-menu li + li::before {
    content: '|';
    color: var(--color-meta);
    margin-right: 0.25rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social .social-icon {
    width: 32px;
    height: 32px;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--color-meta);
}

.footer-newsletter-btn {
    font-size: 0.75rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

/* =========================================================
   SINGLE ARTICLE
   ========================================================= */
.single-article {
    padding-top: 1.5rem;
}

.article-content-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-meta);
    margin-bottom: 0.75rem;
}

.meta-author-link {
    color: var(--color-accent);
    font-weight: 600;
}

.meta-author-link:hover {
    color: var(--color-accent-hover);
}

.meta-category {
    color: var(--color-accent);
    font-weight: 600;
}

.meta-divider {
    color: var(--color-meta);
}

.article-divider {
    height: 1px;
    background: var(--color-border);
    margin-bottom: 1rem;
}

.affiliate-disclaimer {
    font-size: 0.875rem;
    color: var(--color-meta);
    margin-bottom: 1.25rem;
}

.affiliate-disclaimer a {
    color: var(--color-accent);
}

.article-featured-image {
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

/* Article body prose */
.article-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-body);
}

.article-body h2,
.article-body h3,
.article-body h4 {
    font-family: var(--font-heading);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body h4 { font-size: 1.125rem; }

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body img {
    border-radius: 4px;
    margin: 1.5rem 0;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--color-bg-light);
    font-style: italic;
}

.article-body a {
    color: var(--color-accent);
}

.article-body a:hover {
    text-decoration: underline;
}

/* WordPress blocks */
.article-body .wp-block-image {
    margin: 1.5rem 0;
}

.article-body .wp-block-image figcaption {
    font-size: 0.8rem;
    color: var(--color-meta);
    text-align: center;
    margin-top: 0.5rem;
}

.article-body .alignwide {
    margin-left: -2rem;
    margin-right: -2rem;
    max-width: calc(100% + 4rem);
}

.article-body .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
}

/* =========================================================
   POST PAGE-BREAK PAGINATION
   ========================================================= */
/* Post page-break pagination: NEXT / PREV buttons only */
.mmdiy-post-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    margin: 2rem 0;
}

.post-page-btn {
    display: inline-block;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background var(--transition), transform var(--transition);
}

.post-page-next {
    background: var(--color-teal);
    color: #fff;
}

.post-page-next:hover {
    background: var(--color-teal-hover);
    color: #fff;
    transform: translateY(-1px);
}

.post-page-prev {
    background: var(--color-bg-light);
    color: var(--color-body);
    border: 1px solid var(--color-border);
}

.post-page-prev:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
}

/* =========================================================
   AD SLOTS
   ========================================================= */
.ad-slot {
    margin: 1.5rem 0;
    text-align: center;
}

.ad-placeholder {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-bg-light);
    color: var(--color-meta);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 1.5rem 0;
    border: 1px dashed var(--color-border);
}

/* =========================================================
   AUTHOR BIO
   ========================================================= */
.author-bio {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
}

.author-avatar img {
    border-radius: 50%;
    width: 56px;
    height: 56px;
}

.author-label {
    font-size: 0.8rem;
    color: var(--color-meta);
}

.author-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-teal);
}

.author-name:hover {
    color: var(--color-teal-hover);
}

.author-desc {
    font-size: 0.9rem;
    color: var(--color-body);
    margin-top: 0.25rem;
}

/* =========================================================
   NEXT POST BUTTON
   ========================================================= */
.next-post-button {
    display: block;
    text-align: center;
    background: var(--color-teal);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem;
    border-radius: 50px;
    margin: 2rem 0;
    transition: background var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.next-post-button:hover {
    background: var(--color-teal-hover);
    color: #fff;
}

/* =========================================================
   ARCHIVE PAGINATION
   ========================================================= */
.mmdiy-pagination,
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.625rem;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-body);
    transition: all var(--transition);
}

.nav-links .page-numbers:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.nav-links .page-numbers.current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.nav-links .page-numbers.dots {
    border: none;
    cursor: default;
}

.nav-links .prev,
.nav-links .next {
    border: 1px solid var(--color-border);
}

/* Single post prev/next */
.single-pagination {
    padding: 1rem 0;
}

.single-pagination-inner {
    display: flex;
    justify-content: space-between;
}

.pagination-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-body);
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    transition: all var(--transition);
}

.pagination-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* =========================================================
   RELATED / MORE FROM SECTIONS
   ========================================================= */
.related-section,
.more-from-section {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
}

.bottom-pagination {
    border-top: 1px solid var(--color-border);
}

/* =========================================================
   ARCHIVE LAYOUT
   ========================================================= */
.archive-layout {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.archive-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
}

.archive-description {
    color: var(--color-meta);
    margin-top: 0.5rem;
}

.archive-hero {
    margin-bottom: 2rem;
}

/* =========================================================
   SEARCH
   ========================================================= */
.search-header {
    margin-bottom: 2rem;
}

.search-form-inline {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-meta);
}

.search-input-large {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition);
}

.search-input-large:focus {
    border-color: var(--color-accent);
}

.search-results-count {
    font-size: 0.9rem;
    color: var(--color-meta);
    margin-bottom: 1.5rem;
}

.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results p {
    color: var(--color-meta);
    margin-bottom: 1rem;
}

.no-results a {
    color: var(--color-accent);
}

/* =========================================================
   404 PAGE
   ========================================================= */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-title {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.125rem;
    color: var(--color-meta);
    margin-bottom: 2rem;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.mmdiy-breadcrumbs {
    font-size: 0.8rem;
    color: var(--color-meta);
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.mmdiy-breadcrumbs a {
    color: var(--color-accent);
}

.mmdiy-breadcrumbs a:hover {
    text-decoration: underline;
}

.mmdiy-breadcrumbs .sep {
    margin: 0 0.375rem;
}

/* =========================================================
   COMMENTS
   ========================================================= */
.comments-area {
    max-width: 720px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-list .comment-author img {
    border-radius: 50%;
    float: left;
    margin-right: 1rem;
}

.comment-list .comment-meta {
    font-size: 0.8rem;
    color: var(--color-meta);
}

.comment-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-accent);
}

.comment-form .submit {
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background var(--transition);
}

.comment-form .submit:hover {
    background: var(--color-accent-hover);
}

/* =========================================================
   WIDGETS
   ========================================================= */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--color-bg-light);
}

.widget ul li a {
    font-size: 0.9rem;
    color: var(--color-body);
}

.widget ul li a:hover {
    color: var(--color-accent);
}

/* =========================================================
   STATIC PAGE
   ========================================================= */
.static-page {
    padding: 1.5rem 0 3rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .posts-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-category-grid {
        grid-template-columns: 1fr;
    }
}

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

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-dark);
        flex-direction: column;
        padding: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation li a {
        padding: 0.75rem 1rem;
    }

    /* Mobile submenus: hidden by default, toggle on click */
    .main-navigation ul ul.sub-menu {
        position: static;
        background: rgba(0, 0, 0, 0.15);
        box-shadow: none;
        min-width: 100%;
        border-radius: 0;
        padding: 0;
    }

    .main-navigation ul ul.sub-menu li a {
        padding-left: 2rem;
        font-size: 0.75rem;
    }

    /* On mobile, show submenu when parent has .sub-open class (JS toggle) */
    .main-navigation > ul > li:hover > ul.sub-menu,
    .main-navigation > ul > li.has-dropdown:hover > ul.sub-menu {
        display: none;
    }

    .main-navigation > ul > li.sub-open > ul.sub-menu {
        display: flex;
    }

    /* Featured grid mobile */
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-stack {
        flex-direction: row;
        gap: 1rem;
    }

    .post-card-compact {
        flex-direction: column;
        flex: 1;
    }

    .compact-image-link {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    /* Grid mobile */
    .posts-grid.three-col {
        grid-template-columns: 1fr;
    }

    /* Article */
    .article-title {
        font-size: 1.5rem;
    }

    .post-card-title-hero {
        font-size: 1.25rem;
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    /* Social */
    .social-follow-bar {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Search */
    .search-form-inline {
        flex-direction: column;
    }

    .search-form-inline .btn-accent {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .featured-stack {
        flex-direction: column;
    }

    .error-title {
        font-size: 4rem;
    }
}

/* =========================================================
   PRINT STYLES
   ========================================================= */
@media print {
    .site-header,
    .site-footer,
    .newsletter-section,
    .ad-slot,
    .ad-placeholder,
    .related-section,
    .more-from-section,
    .mmdiy-pagination,
    .single-pagination,
    .next-post-button,
    .search-toggle,
    .social-icons {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .article-content-wrap {
        max-width: 100%;
    }
}
