/*
Theme Name: Base47 Nexus
Theme URI: https://base47.art/nexus-theme/
Author: Base47
Author URI: https://base47.art
Description: A lightweight creative WordPress theme for landing pages, portfolios, startups, and modern business websites. Features a clean design with styled header, footer, blog layouts, and an optional blank canvas page template for custom layouts.
Version: 4.0.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: base47-nexus
Tags: blog, one-column, two-columns, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, threaded-comments, translation-ready
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
*/

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    --nexus-primary: #2563eb;
    --nexus-primary-hover: #1d4ed8;
    --nexus-secondary: #1e293b;
    --nexus-accent: #f59e0b;
    --nexus-text: #334155;
    --nexus-text-light: #64748b;
    --nexus-heading: #0f172a;
    --nexus-bg: #ffffff;
    --nexus-bg-alt: #f8fafc;
    --nexus-border: #e2e8f0;
    --nexus-success: #10b981;
    --nexus-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --nexus-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --nexus-container: 1200px;
    --nexus-radius: 8px;
    --nexus-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --nexus-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --nexus-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --nexus-transition: 0.2s ease;
}

/* ==========================================================================
   2. RESET AND BASE
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--nexus-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--nexus-text);
    background: var(--nexus-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, picture, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover, a:focus {
    color: var(--nexus-primary-hover);
    text-decoration: underline;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nexus-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--nexus-heading);
    margin: 0 0 0.75em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin: 0 0 1.5em; }

blockquote {
    margin: 1.5em 0;
    padding: 1.25em 1.5em;
    border-left: 4px solid var(--nexus-primary);
    background: var(--nexus-bg-alt);
    border-radius: 0 var(--nexus-radius) var(--nexus-radius) 0;
    font-style: italic;
    color: var(--nexus-text-light);
}

blockquote p:last-child { margin-bottom: 0; }

pre {
    background: var(--nexus-secondary);
    color: #e2e8f0;
    padding: 1.25em;
    border-radius: var(--nexus-radius);
    overflow-x: auto;
    font-size: 0.875em;
    line-height: 1.6;
}

code {
    background: var(--nexus-bg-alt);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.875em;
}

pre code {
    background: none;
    padding: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--nexus-border);
    margin: 2em 0;
}

/* ==========================================================================
   4. ACCESSIBILITY
   ========================================================================== */

.skip-link,
.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    z-index: 100000;
    padding: 12px 20px;
    background: var(--nexus-primary);
    color: #fff;
    border-radius: var(--nexus-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--nexus-shadow-lg);
}

:focus-visible {
    outline: 2px solid var(--nexus-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   5. LAYOUT
   ========================================================================== */

.nexus-container {
    max-width: var(--nexus-container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.nexus-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.nexus-main {
    flex: 1;
    padding: 3rem 0;
}

.nexus-content-area {
    max-width: var(--nexus-container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Two-column layout for blog */
.nexus-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    max-width: var(--nexus-container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ==========================================================================
   6. HEADER
   ========================================================================== */

.nexus-header {
    background: var(--nexus-bg);
    border-bottom: 1px solid var(--nexus-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
}

.nexus-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.nexus-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nexus-branding .custom-logo {
    max-height: 48px;
    width: auto;
}

.nexus-site-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--nexus-heading);
    text-decoration: none;
    line-height: 1.2;
}

.nexus-site-title:hover {
    color: var(--nexus-primary);
    text-decoration: none;
}

.nexus-site-description {
    font-size: 0.8125rem;
    color: var(--nexus-text-light);
    margin: 0;
    line-height: 1.3;
}

/* ==========================================================================
   7. NAVIGATION
   ========================================================================== */

.nexus-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nexus-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--nexus-text);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--nexus-radius);
    text-decoration: none;
    transition: all var(--nexus-transition);
}

.nexus-nav a:hover,
.nexus-nav .current-menu-item > a,
.nexus-nav .current_page_item > a {
    color: var(--nexus-primary);
    background: rgba(37, 99, 235, 0.06);
    text-decoration: none;
}

/* Dropdown menus */
.nexus-nav .menu-item-has-children {
    position: relative;
}

.nexus-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--nexus-bg);
    border: 1px solid var(--nexus-border);
    border-radius: var(--nexus-radius);
    box-shadow: var(--nexus-shadow-lg);
    min-width: 200px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--nexus-transition);
    z-index: 100;
}

.nexus-nav .menu-item-has-children:hover > .sub-menu,
.nexus-nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nexus-nav .sub-menu li { width: 100%; }

.nexus-nav .sub-menu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: calc(var(--nexus-radius) * 0.5);
}

/* Mobile menu toggle */
.nexus-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--nexus-border);
    border-radius: var(--nexus-radius);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--nexus-text);
    line-height: 1;
}

.nexus-menu-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}


/* ==========================================================================
   8. BUTTONS
   ========================================================================== */

.nexus-btn,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--nexus-primary);
    color: #fff;
    border: none;
    border-radius: var(--nexus-radius);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--nexus-transition);
}

.nexus-btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
    background: var(--nexus-primary-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--nexus-shadow-md);
}

.nexus-btn-outline {
    background: transparent;
    color: var(--nexus-primary);
    border: 2px solid var(--nexus-primary);
}

.nexus-btn-outline:hover {
    background: var(--nexus-primary);
    color: #fff;
}

/* ==========================================================================
   9. FORMS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--nexus-border);
    border-radius: var(--nexus-radius);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--nexus-text);
    background: var(--nexus-bg);
    transition: border-color var(--nexus-transition), box-shadow var(--nexus-transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--nexus-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--nexus-heading);
}

/* ==========================================================================
   10. CARDS
   ========================================================================== */

.nexus-card {
    background: var(--nexus-bg);
    border: 1px solid var(--nexus-border);
    border-radius: var(--nexus-radius);
    padding: 1.5rem;
    transition: all var(--nexus-transition);
}

.nexus-card:hover {
    box-shadow: var(--nexus-shadow-md);
    transform: translateY(-2px);
}

/* ==========================================================================
   11. BLOG / POST LISTINGS
   ========================================================================== */

.nexus-posts {
    display: grid;
    gap: 2rem;
}

.nexus-post-card {
    background: var(--nexus-bg);
    border: 1px solid var(--nexus-border);
    border-radius: var(--nexus-radius);
    overflow: hidden;
    transition: all var(--nexus-transition);
}

.nexus-post-card:hover {
    box-shadow: var(--nexus-shadow-md);
    transform: translateY(-2px);
}

.nexus-post-card .post-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.nexus-post-card:hover .post-thumbnail img {
    transform: scale(1.03);
}

.nexus-post-card-content {
    padding: 1.5rem;
}

.nexus-post-card .entry-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.nexus-post-card .entry-title a {
    color: var(--nexus-heading);
    text-decoration: none;
}

.nexus-post-card .entry-title a:hover {
    color: var(--nexus-primary);
}

.nexus-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--nexus-text-light);
    margin-bottom: 0.75rem;
}

.nexus-post-meta a {
    color: var(--nexus-text-light);
}

.nexus-post-meta a:hover {
    color: var(--nexus-primary);
}

.nexus-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nexus-primary);
    text-decoration: none;
    margin-top: 0.75rem;
}

.nexus-read-more:hover {
    text-decoration: none;
    gap: 0.5rem;
}

/* ==========================================================================
   12. SINGLE POST
   ========================================================================== */

.nexus-single-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.nexus-single-header .entry-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.nexus-single-featured {
    margin-bottom: 2rem;
    border-radius: var(--nexus-radius);
    overflow: hidden;
}

.nexus-single-featured img {
    width: 100%;
    height: auto;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.entry-content > *:first-child { margin-top: 0; }

.entry-content img {
    border-radius: var(--nexus-radius);
}

.entry-content ul, .entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.entry-content li { margin-bottom: 0.5em; }

.post-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--nexus-border);
    font-size: 0.875rem;
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--nexus-bg-alt);
    border-radius: 999px;
    font-size: 0.8125rem;
    color: var(--nexus-text-light);
    margin: 0.25rem;
}

.post-tags a:hover {
    background: var(--nexus-primary);
    color: #fff;
    text-decoration: none;
}

/* Post navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--nexus-border);
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nexus-text-light);
    margin-bottom: 0.25rem;
}

.post-navigation a {
    font-weight: 600;
    color: var(--nexus-heading);
}

.post-navigation a:hover {
    color: var(--nexus-primary);
}

/* ==========================================================================
   13. PAGE TEMPLATE
   ========================================================================== */

.nexus-page .entry-content {
    max-width: 100%;
}

.nexus-page-header {
    margin-bottom: 2rem;
}

.nexus-page-header .entry-title {
    font-size: 2rem;
}

/* ==========================================================================
   14. ARCHIVE / SEARCH HEADERS
   ========================================================================== */

.nexus-archive-header {
    text-align: center;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    background: var(--nexus-bg-alt);
    border-bottom: 1px solid var(--nexus-border);
}

.nexus-archive-header .page-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.nexus-archive-header .archive-description,
.nexus-archive-header .page-description {
    color: var(--nexus-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   15. 404 PAGE
   ========================================================================== */

.nexus-404 {
    text-align: center;
    padding: 4rem 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.nexus-404-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--nexus-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.nexus-404 .page-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.nexus-404 p {
    color: var(--nexus-text-light);
    margin-bottom: 2rem;
}

.nexus-404 .search-form {
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   16. COMMENTS
   ========================================================================== */

.comments-area {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--nexus-border);
}

.comments-title {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
}

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

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

.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin: 0;
}

.comment-author {
    font-weight: 600;
    color: var(--nexus-heading);
}

.comment-metadata {
    font-size: 0.8125rem;
    color: var(--nexus-text-light);
    margin-bottom: 0.75rem;
}

.comment-body p { margin-bottom: 0.75em; }

.comment-respond { margin-top: 2rem; }

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.comment-form label {
    font-size: 0.875rem;
}

.comment-form .form-submit {
    margin-top: 1rem;
}

/* ==========================================================================
   17. SIDEBAR / WIDGETS
   ========================================================================== */

.widget-area .widget {
    background: var(--nexus-bg);
    border: 1px solid var(--nexus-border);
    border-radius: var(--nexus-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--nexus-primary);
}

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--nexus-border);
    font-size: 0.9375rem;
}

.widget li:last-child { border-bottom: none; }

.widget a {
    color: var(--nexus-text);
}

.widget a:hover {
    color: var(--nexus-primary);
}

/* ==========================================================================
   18. FOOTER
   ========================================================================== */

.nexus-footer {
    background: var(--nexus-secondary);
    color: #cbd5e1;
    padding: 3rem 0 0;
    margin-top: auto;
}

.nexus-footer a {
    color: #e2e8f0;
    text-decoration: none;
}

.nexus-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.nexus-footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.nexus-footer-widgets .widget {
    background: none;
    border: none;
    padding: 0;
}

.nexus-footer-widgets .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.2);
    font-size: 0.9375rem;
}

.nexus-footer-widgets .widget li {
    border-bottom-color: rgba(255,255,255,0.1);
}

.nexus-footer-widgets .widget a {
    color: #94a3b8;
}

.nexus-footer-widgets .widget a:hover {
    color: #fff;
}

.nexus-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
}

.nexus-footer-copy {
    margin: 0;
    color: #94a3b8;
}

.nexus-footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.nexus-footer-nav a {
    color: #94a3b8;
    font-size: 0.875rem;
}

.nexus-footer-nav a:hover {
    color: #fff;
}

/* ==========================================================================
   19. FRONT PAGE / HOMEPAGE
   ========================================================================== */

.nexus-hero-section {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--nexus-bg-alt) 0%, var(--nexus-bg) 100%);
}

.nexus-hero-section h1 {
    font-size: 2.75rem;
    max-width: 700px;
    margin: 0 auto 1rem;
}

.nexus-hero-section p {
    font-size: 1.125rem;
    color: var(--nexus-text-light);
    max-width: 560px;
    margin: 0 auto 2rem;
}

.nexus-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nexus-features-section {
    padding: 4rem 0;
}

.nexus-features-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.nexus-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.nexus-feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid var(--nexus-border);
    border-radius: var(--nexus-radius);
    transition: all var(--nexus-transition);
}

.nexus-feature-card:hover {
    box-shadow: var(--nexus-shadow-md);
    transform: translateY(-2px);
}

.nexus-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.nexus-feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.nexus-feature-card p {
    color: var(--nexus-text-light);
    font-size: 0.9375rem;
    margin: 0;
}

.nexus-latest-posts-section {
    padding: 4rem 0;
    background: var(--nexus-bg-alt);
}

.nexus-latest-posts-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.nexus-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.nexus-cta-section {
    padding: 4rem 0;
    text-align: center;
}

.nexus-cta-section h2 {
    margin-bottom: 1rem;
}

.nexus-cta-section p {
    color: var(--nexus-text-light);
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   20. PAGINATION
   ========================================================================== */

.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--nexus-border);
    border-radius: var(--nexus-radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nexus-text);
    text-decoration: none;
    transition: all var(--nexus-transition);
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
    background: var(--nexus-primary);
    color: #fff;
    border-color: var(--nexus-primary);
    text-decoration: none;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: var(--nexus-primary);
    color: #fff;
    border-color: var(--nexus-primary);
}

/* ==========================================================================
   21. SEARCH FORM
   ========================================================================== */

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

.search-form .search-field {
    flex: 1;
}

.search-form .search-submit {
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
}

/* ==========================================================================
   22. WORDPRESS ALIGNMENT CLASSES
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: calc(var(--nexus-container) + 200px);
    margin-left: auto;
    margin-right: auto;
}

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

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--nexus-text-light);
    text-align: center;
    margin-top: 0.5rem;
}

.gallery-caption {
    font-size: 0.8125rem;
}

.bypostauthor {
    border-left: 3px solid var(--nexus-primary);
    padding-left: 1rem;
}

.page-links {
    clear: both;
    margin: 1.5em 0;
    font-size: 0.9em;
}

.sticky .nexus-post-card {
    border-color: var(--nexus-primary);
    border-width: 2px;
}

/* ==========================================================================
   23. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .nexus-header-inner {
        flex-wrap: wrap;
    }

    .nexus-menu-toggle {
        display: block;
    }

    .nexus-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .nexus-nav.active {
        display: block;
    }

    .nexus-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0;
    }

    .nexus-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: var(--nexus-bg-alt);
    }

    .nexus-layout-sidebar {
        grid-template-columns: 1fr;
    }

    .nexus-hero-section h1 {
        font-size: 2rem;
    }

    .nexus-hero-section {
        padding: 3rem 0;
    }

    .nexus-features-grid {
        grid-template-columns: 1fr;
    }

    .nexus-posts-grid {
        grid-template-columns: 1fr;
    }

    .nexus-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .nexus-footer-nav ul {
        justify-content: center;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .nexus-single-header .entry-title {
        font-size: 1.75rem;
    }

    .nexus-404-code {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .nexus-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .nexus-hero-actions .nexus-btn {
        width: 100%;
        text-align: center;
    }
}
