/**
 * Balance Lite Main Stylesheet
 * 
 * A lightweight, performance-optimized theme using web-safe fonts
 * and modern CSS features for layout.
 */

/* ========================================
   CSS Reset & Base Styles
   ======================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--color-primary);
    background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: calc(var(--font-size-h1) * 0.75);
}

h3 {
    font-size: calc(var(--font-size-h1) * 0.6);
}

h4 {
    font-size: calc(var(--font-size-h1) * 0.5);
}

h5 {
    font-size: calc(var(--font-size-h1) * 0.45);
}

h6 {
    font-size: calc(var(--font-size-h1) * 0.4);
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-link-hover);
}

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

textarea {
    max-width: 100%;
}

/* Form elements, interactive elements, and lists should inherit fonts */
button,
input,
select,
textarea,
optgroup,
ul,
ol,
li,
dl,
dt,
dd,
label,
span,
div,
p {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ========================================
   Layout Structure
   ======================================== */

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

.site-content {
    flex: 1;
}

/* ========================================
   Header Styles
   ======================================== */

.site-header {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 4rem;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 0.5rem;
}

.header-right {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.25rem;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: calc(var(--font-size-h1) * 0.8);
}

.site-title a {
    color: var(--color-primary);
}

.site-description {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

/* Footer Navigation */
.footer-navigation {
    display: flex;
    justify-content: center;
}

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

.footer-navigation li {
    margin: 0;
}

.footer-navigation a {
    display: block;
    padding: 0;
    color: var(--color-link);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-navigation a:hover {
    color: var(--color-link-hover);
}

.footer-navigation .current-menu-item>a,
.footer-navigation .current_page_item>a {
    color: var(--color-accent);
}

/* Category Navigation */
.category-menu-container {
    background-color: var(--color-accent);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.category-navigation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.category-navigation li {
    margin: 0;
    position: relative;
}

.category-navigation a {
    display: block;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.category-navigation a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.category-navigation .current-menu-item>a,
.category-navigation .current-menu-ancestor>a {
    background-color: rgba(0, 0, 0, 0.15);
}

/* Sub-menu (Dropdown) Styles */
.category-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 220px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

.category-navigation li:hover>.sub-menu,
.category-navigation li:focus-within>.sub-menu {
    display: block;
}

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

.category-navigation .sub-menu a {
    color: var(--color-primary);
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.category-navigation .sub-menu li:last-child a {
    border-bottom: none;
}

.category-navigation .sub-menu a:hover {
    background-color: #f8f8f8;
    color: var(--color-accent);
}

.category-navigation .sub-menu .current-menu-item>a {
    background-color: #f0f0f0;
    color: var(--color-accent);
    font-weight: 600;
}

/* Nested Sub-menu (Third Level) */
.category-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: -1px;
}

/* Menu Item Indicators */
.category-navigation .menu-item-has-children>a::after {
    content: ' ▾';
    font-size: 0.75em;
    margin-left: 0.25rem;
}

.category-navigation .sub-menu .menu-item-has-children>a::after {
    content: ' ▸';
    float: right;
    margin-left: 0.5rem;
}


/* ========================================
   Footer Styles
   ======================================== */

.site-footer {
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-info {
    text-align: center;
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.site-info a {
    color: var(--color-secondary);
}

.site-info a:hover {
    color: var(--color-accent);
}

/* ========================================
   Post Grid Layout
   ======================================== */

.home-container,
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.post-section {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: calc(var(--font-size-h1) * 0.75);
    color: var(--color-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.section-description {
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--color-secondary);
    max-width: 800px;
    line-height: 1.6;
}

.home-info-section {
    background-color: var(--color-info-bg);
    color: var(--color-info-text);
    padding: 2rem;
    margin-bottom: 4rem;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.home-info-section h1,
.home-info-section h2,
.home-info-section h3,
.home-info-section h4,
.home-info-section h5,
.home-info-section h6 {
    color: var(--color-info-text);
}

.home-info-section a {
    color: var(--color-accent);
    text-decoration: underline;
}

.home-info-section a:hover {
    color: var(--color-info-text);
    text-decoration: none;
}

.home-welcome-section {
    background-color: var(--color-welcome-bg);
    color: var(--color-welcome-text);
    padding: 2rem;
    margin-bottom: 4rem;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.home-welcome-section h1,
.home-welcome-section h2,
.home-welcome-section h3,
.home-welcome-section h4,
.home-welcome-section h5,
.home-welcome-section h6 {
    color: var(--color-welcome-text);
}

.home-welcome-section a {
    color: var(--color-accent);
    text-decoration: underline;
}

.home-welcome-section a:hover {
    color: var(--color-welcome-text);
    text-decoration: none;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-card .post-thumbnail {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

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

.post-card .post-content {
    padding: 1rem;
}

.post-card .post-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: calc(var(--font-size-h1) * 0.6);
    font-weight: 600;
}

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

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


/* ========================================
   Single Post Layout
   ======================================== */

.single-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
}

.post-content-area article {
    background: #ffffff;
}

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

.entry-title {
    margin: 0 0 1rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: var(--font-size-h1);
}

.entry-meta {
    font-size: 0.9rem;
    color: var(--color-secondary);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.entry-meta time {
    color: var(--color-secondary);
}

.post-thumbnail {
    margin-bottom: 2rem;
}

.entry-content {
    line-height: 1.8;
    color: var(--color-primary);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    margin: 2rem 0;
    border-radius: 4px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.entry-footer span {
    display: block;
    margin-bottom: 0.5rem;
}

.entry-footer a {
    color: var(--color-link);
}

/* ========================================
   Author Sidebar
   ======================================== */

.post-sidebar {
    align-self: start;
}

.author-sidebar-widget {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
}

.widget-title {
    margin: 0 0 1.5rem;
    font-family: var(--font-heading);
    font-size: calc(var(--font-size-h1) * 0.6);
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
}

.author-info {
    text-align: center;
}

.author-avatar {
    margin-bottom: 1rem;
}

.author-avatar img {
    border-radius: 50%;
    margin: 0 auto;
}

.author-name {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.author-name a {
    color: var(--color-primary);
}

.author-bio {
    font-size: 0.95rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.author-bio p {
    margin: 0 0 0.5rem;
}

.author-link {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========================================
   Comments
   ======================================== */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.comments-title {
    margin-bottom: 2rem;
}

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

.comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.comment-body {
    display: flex;
    gap: 1rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

/* ========================================
   Social Sharing
   ======================================== */

.social-sharing {
    margin: 2rem 0;
}

.pinterest-hidden-image {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Share trigger button */
.share-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.share-trigger:hover {
    background-color: var(--color-accent);
    color: #ffffff;
}

.share-trigger svg {
    width: 18px;
    height: 18px;
}

/* Share overlay */
.share-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.share-overlay.is-open {
    display: flex;
}

.share-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.share-overlay-panel {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 360px;
    width: 90%;
    z-index: 1;
}

.share-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.share-overlay-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.share-overlay-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--color-secondary);
    line-height: 0;
}

.share-overlay-close:hover {
    color: var(--color-primary);
}

.share-overlay-close svg {
    width: 20px;
    height: 20px;
}

.share-overlay-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.share-option:hover {
    opacity: 0.9;
    color: #ffffff;
}

.share-option svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.share-option.share-facebook {
    background-color: #1877f2;
}

.share-option.share-x {
    background-color: #000000;
}

.share-option.share-pinterest {
    background-color: #bd081c;
}

.share-option.share-whatsapp {
    background-color: #25d366;
}

.share-option.share-copy-link {
    background-color: #666666;
}

/* Mobile: bottom-sheet style overlay */
@media (max-width: 767px) {
    .share-overlay.is-open {
        align-items: flex-end;
    }

    .share-overlay-panel {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding-bottom: 2rem;
    }
}

/* ========================================
   Navigation & Pagination
   ======================================== */

.posts-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.nav-links a {
    color: var(--color-accent);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background-color: var(--color-accent);
    color: #ffffff;
}

/* ========================================
   Page Template
   ======================================== */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-container article {
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   Search Form
   ======================================== */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-submit {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background-color: var(--color-link-hover);
}

.search-submit svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Hamburger Menu & Mobile Navigation
   ======================================== */

.hamburger-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
}

.hamburger-toggle:focus,
.hamburger-toggle:focus-visible {
    outline: none;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger-toggle.is-open .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-toggle.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-toggle.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Search Bar Positioning */
.search-bar-desktop {
    display: flex;
    justify-content: flex-start;
    padding: 0.5rem 0;
    border-bottom: none;
}

.search-bar-mobile {
    display: none;
}

.search-bar-mobile.is-visible {
    display: block;
    padding: 1rem;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.search-toggle {
    display: none;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: var(--color-primary);
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-toggle:focus,
.search-toggle:focus-visible {
    outline: none;
}

.search-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
}

.search-toggle.is-open svg {
    stroke: var(--color-accent);
}

/* Navigation Wrapper for Desktop/Mobile Toggle */
.navigation-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.main-navigation {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Mobile Menu Container */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 999;
    flex-direction: column;
    transition: left 0.3s ease;
    overflow-y: auto;
}

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

.mobile-menu-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================
   Search Results Page
   ======================================== */

.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: calc(var(--font-size-h1) * 1.2);
    margin-bottom: 1rem;
}

.page-title span {
    color: var(--color-accent);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.no-results h2 {
    margin-bottom: 1rem;
}

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

.search-form-wrapper {
    margin: 2rem auto;
    max-width: 600px;
}

/* ========================================
   404 Error Page
   ======================================== */

.error-404-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.error-404 {
    text-align: center;
}

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

.error-404 .page-title {
    font-size: 8rem;
    margin: 0;
    color: var(--color-accent);
    line-height: 1;
}

.error-subtitle {
    font-size: 2rem;
    color: var(--color-secondary);
    margin: 1rem 0;
}

.error-404 .page-content {
    max-width: 800px;
    margin: 0 auto;
}

.error-404 .page-content>p {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-bottom: 3rem;
}

.error-actions {
    margin-bottom: 4rem;
}

.error-actions h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.helpful-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.helpful-links li {
    margin: 0;
}

.helpful-links a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: var(--color-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.helpful-links a:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.recent-posts-404 {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.recent-posts-404 h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-post-container {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 2rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    /* Hide desktop search bar */
    .search-bar-desktop {
        display: none;
    }

    /* Show hamburger menu and search toggle */
    .hamburger-toggle,
    .search-toggle {
        display: flex;
    }

    .header-container {
        flex-direction: row;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
    }

    .site-branding {
        flex: 1;
        width: 100%;
        align-items: flex-start;
    }

    .header-right {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
        flex: 0;
        width: auto;
    }

    .navigation-wrapper {
        display: flex;
        gap: 1rem;
        width: auto;
        justify-content: flex-end;
        align-items: center;
    }

    /* Hide search bar on mobile */
    .search-bar-desktop {
        display: none !important;
    }

    /* Category menu mobile styles - shows first when hamburger is open */
    .category-menu-container {
        display: none;
        position: static;
        background-color: var(--color-accent);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0;
        width: 100%;
        margin: 0;
    }

    #category-menu-container.is-open {
        display: block;
    }

    .category-navigation {
        padding: 0 1rem;
        max-width: 100%;
        margin: 0;
    }

    .category-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .category-navigation li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        width: 100%;
        margin: 0;
    }

    .category-navigation a {
        padding: 0.75rem 1rem;
        color: #ffffff;
        font-size: 1rem;
        background-color: transparent;
    }

    .category-navigation a:hover {
        background-color: rgba(0, 0, 0, 0.15);
        color: #ffffff;
    }

    .category-navigation .current-menu-item>a,
    .category-navigation .current-menu-ancestor>a {
        background-color: rgba(0, 0, 0, 0.15);
        color: #ffffff;
    }

    /* Hide dropdowns on mobile - make all items accessible */
    .category-navigation .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-left: 1rem;
        margin-top: 0;
        padding: 0;
    }

    .category-navigation .sub-menu a {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
        border-bottom: none;
        background-color: transparent;
        padding: 0.625rem 1rem;
    }

    .category-navigation .sub-menu a:hover {
        background-color: rgba(0, 0, 0, 0.15);
        color: #ffffff;
    }

    .category-navigation .sub-menu .sub-menu {
        margin-left: 2rem;
    }

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

    .single-post-container {
        grid-template-columns: minmax(0, 1fr);
        padding: 2rem 1rem;
    }

    .post-sidebar {
        position: static;
    }

    .home-container,
    .content-container,
    .page-container {
        padding: 2rem 1rem;
    }

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

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

    .search-bar-mobile .search-submit {
        width: 100%;
    }

    .search-form {
        flex-direction: column;
    }

    .search-submit {
        width: 100%;
    }

    /* 404 page */
    .error-404 .page-title {
        font-size: 5rem;
    }

    .error-subtitle {
        font-size: 1.5rem;
    }

    .helpful-links {
        flex-direction: column;
        align-items: center;
    }

    .helpful-links a {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.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 !important;
    width: 1px;
    word-wrap: normal !important;
}

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

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

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