/* Global Input Focus Stability */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus {
    background-color: var(--bg-card) !important;
    color: var(--text-hero) !important;
    border-color: var(--accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px var(--accent-glow) !important;
}

/* Layout Stability & Structure */
.site-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.site-content .content-area,
#primary,
#main {
    width: 100%;
}

.content-sidebar-wrapper {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-start;
}

.main-content-area {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.sidebar {
    width: 350px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .sidebar {
        /* width: 100%; Handled in responsive.css */
    }
}

/* Post Card Shades */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 15px 35px rgba(254, 154, 0, 0.05);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(254, 154, 0, 0.1);
    border-color: var(--accent-subtle);
    background: var(--bg-card-hover);
}

.post-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
}

.post-card-title a {
    color: var(--text-hero);
    border: none !important;
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-card-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.post-card-meta i {
    color: var(--accent);
    margin-right: 5px;
}

.post-card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Container Width Override */
.grid-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .grid-container {
        padding: 0 1.5rem;
    }
}

/* Buttons */
.button, 
button, 
input[type="submit"], 
input[type="button"], 
input[type="reset"],
.post-card-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    background: var(--accent) !important;
    background-image: none !important;
    color: #fff !important;
    border: none;
    border-radius: 6px; /* Slightly cleaner slightly rounded */
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none !important;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(254, 154, 0, 0.3);
}

.button:hover, 
button:hover, 
input[type="submit"]:hover,
.post-card-read-more:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 154, 0, 0.4);
    color: #fff !important;
}

.button:focus,
button:focus,
input[type="submit"]:focus,
.post-card-read-more:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    transform: translateY(-1px);
}

/* Post Card Category & Tags */
.post-card-categories {
    margin-bottom: 0.75rem;
}

.post-card-categories a {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: var(--accent);
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none !important;
    border: none !important;
    display: inline-block;
}

.post-card-categories a:hover {
    background: var(--accent-hover);
    color: #fff !important;
}

.post-card-tags {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-card-tags a {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--border);
    padding: 2px 10px;
    border-radius: 4px;
    border-bottom: none !important;
}

.post-card-tags a:hover {
    background: var(--accent-subtle);
    color: var(--accent);
}

/* Sidebar & Custom Widgets */
#right-sidebar {
    width: 320px;
    padding-left: 2rem;
}

/* Logo Width Fix */
/* Custom Header Styling */
.custom-header .inside-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.custom-navigation {
    background: transparent !important;
}

.custom-navigation .inside-navigation {
    display: flex;
    align-items: center;
}

.custom-navigation .main-nav ul {
    display: flex;
}

/* Ensure mobile menu works with our custom structure */
@media (max-width: 768px) {
    .custom-header .inside-header {
        flex-wrap: wrap;
    }
    
    .custom-navigation {
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    
    .custom-navigation .main-nav {
        display: none; /* Toggle handled by GP JS */
        width: 100%;
    }
    
    .custom-navigation .main-nav.toggled-on {
        display: block;
    }
    
    .custom-navigation .menu-toggle {
        display: block !important;
    }
}

.site-logo img {
    width: 200px !important;
    height: auto !important;
}

/* Search Popup Trigger Button in Nav */
.search-modal-trigger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
    padding: 0 !important;
    text-align: center;
    line-height: 40px !important;
    outline: none !important;
}

.search-modal-trigger:focus {
    box-shadow: 0 0 0 2px var(--accent-glow) !important;
}

.search-modal-trigger:hover {
    background: var(--bg-card);
}

.search-modal-trigger i {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 24, 0.8);
    backdrop-filter: blur(10px);
}

.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(254, 154, 0, 0.1);
    z-index: 10;
    overflow: hidden;
}

/* Search Modal Header Improvements */
.search-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
}

.search-field-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: #ffffff !important;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 0 1.5rem;
}

.search-field-wrapper i {
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-field-wrapper input {
    width: 100%;
    background: #ffffff !important;
    border: none;
    color: #0f172a !important;
    padding: 0.8rem 0.75rem;
    font-size: 1.1rem;
    font-family: var(--font-body) !important;
}

.search-field-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-field-wrapper input:focus {
    outline: none !important;
    background: #ffffff !important;
    color: var(--text-hero) !important;
    border-color: var(--accent) !important;
    box-shadow: none !important;
}

.search-field-wrapper:focus-within {
    border-color: var(--accent) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 2px var(--accent-glow) !important;
}

.search-modal-close {
    width: 40px;
    height: 40px;
    background: var(--accent) !important;
    border: none;
    color: #fff !important;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    box-shadow: 0 4px 14px rgba(254, 154, 0, 0.3);
}

.search-modal-close:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 154, 0, 0.4);
    color: #fff !important;
}

.search-modal-close:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

.modal-search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.modal-search-results::-webkit-scrollbar {
    width: 6px;
}

.modal-search-results::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.modal-search-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
    opacity: 1 !important;
}

.modal-search-item:last-child {
    border-bottom: none;
}

.modal-search-item:hover {
    background: var(--bg-card-hover);
}

.msi-thumb img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.msi-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.msi-title {
    font-weight: 600;
    color: var(--text-hero);
    font-size: 1rem;
    margin-bottom: 2px;
}

.msi-title:hover {
    color: var(--accent);
}

.msi-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

body.modal-open {
    overflow: hidden;
}

.live-search-widget input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.live-search-widget input:focus {
    outline: none !important;
    background: var(--bg-card) !important;
    color: var(--text-hero) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--accent-glow) !important;
}

.widget {
    background: var(--bg-card) !important;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(254, 154, 0, 0.05);
}

.sidebar .widget {
    background-color: var(--bg-card) !important;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 1px;
    background: var(--accent);
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rp-thumb img {
    width: 65px;
    height: 65px;
    max-width: 65px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
    max-height: 65px;
}

.recent-posts-list li:hover .rp-thumb img {
    transform: scale(1.05);
}

.rp-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rp-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-hero);
    line-height: 1.4;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    border: none !important;
}

.rp-title:hover {
    color: var(--accent);
}

.rp-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.custom-categories ul {
    list-style: none;
    padding: 0;
}

.custom-categories li {
    margin-bottom: 0.75rem;
}

.custom-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.8rem 0;
    min-height: 3rem;
    border-bottom: 1px solid var(--border) !important;
}

.custom-categories li:last-child a {
    border-bottom: none !important;
}

.custom-categories li a:hover,
.custom-categories li.current-cat a {
    color: var(--accent);
    padding-left: 5px;
}

.custom-categories li.current-cat a .cat-count {
    background: var(--accent-hover);
}

.cat-count {
    background: var(--accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* --- Archive Header --- */
.archive-header-card {
    background: var(--bg-card) !important;
    border-radius: var(--border-radius) !important;
    padding: 3rem !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 10px 30px rgba(254, 154, 0, 0.05) !important;
}

.archive-header-card .page-title {
    font-family: var(--font-editorial);
    font-size: 2.5rem;
    color: var(--text-hero);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.archive-header-card .archive-description {
    max-width: 800px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- Comments Section --- */
#comments {
    margin-top: 4rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(254, 154, 0, 0.05);
}

.comment-reply-title {
    font-size: 1.75rem;
    color: var(--text-hero);
    margin-bottom: 2rem;
    font-weight: 700;
}

.comment-form p {
    margin-bottom: 1.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background-color: var(--bg-deep) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-hero) !important;
    padding: 1rem 1.5rem !important;
    border-radius: 8px !important;
    font-family: var(--font-body);
    transition: var(--transition);
}

.comment-form textarea {
    min-height: 150px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    background-color: var(--bg-card) !important;
    border-color: var(--accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px var(--accent-glow) !important;
}

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.comment-form .comment-form-cookies-consent input {
    margin-top: 5px;
}

.comment-form .form-submit .submit {
    padding: 1rem 2.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.comment-list .comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-body {
    display: flex;
    gap: 1.5rem;
}

.comment-meta {
    flex-shrink: 0;
}

.comment-meta img {
    border-radius: 50%;
}

.comment-content {
    flex-grow: 1;
}

.comment-author {
    font-weight: 700;
    color: var(--text-hero);
    margin-bottom: 0.25rem;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.comment-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    #comments {
        padding: 2rem;
    }
    
    .comment-body {
        flex-direction: column;
        gap: 1rem;
    }
}
.blog-pagination {
    margin: 4rem 0;
    display: flex;
    justify-content: center;
}

.custom-pagination-wrapper {
    display: block;
}

.custom-pagination-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-pagination-list li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-pagination-list li::before,
.custom-pagination-list li::after {
    display: none !important;
}

.custom-pagination-list li a,
.custom-pagination-list li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

.custom-pagination-list li.active span,
.custom-pagination-list li a:hover {
    background: var(--accent);
    color: #ffffff !important;
    border-color: var(--accent);
    box-shadow: 0 4px 15px var(--accent-glow);
    transform: translateY(-2px);
}

.custom-pagination-list li span.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.custom-pagination-list li span.dots:hover {
    transform: none;
    box-shadow: none;
}

.custom-pagination-list li a.prev,
.custom-pagination-list li a.next {
    width: 45px; /* Circular icons for prev/next now */
}

/* Button & Conflict Fixes */
.button, 
button, 
input[type="submit"], 
input[type="button"], 
input[type="reset"],
.wp-block-button__link {
    all: unset; /* Reset all inherited styles to avoid parent conflicts */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    background: var(--accent) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    font-family: var(--font-body) !important;
    cursor: pointer;
    transition: var(--transition) !important;
    text-decoration: none !important;
    gap: 0.5rem;
    box-shadow: 0 4px 15px var(--accent-glow) !important;
    box-sizing: border-box;
}

.button:hover, 
button:hover, 
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px var(--accent-glow) !important;
    color: #ffffff !important;
}

/* Footer Fixes */
.site-footer {
    background: var(--bg-surface);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border);
}

.footer-widgets-container {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.footer-column .widget-title {
    font-size: 1.25rem;
    color: var(--text-hero);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

@media (max-width: 1024px) {
    #right-sidebar {
        width: 100%;
        padding-left: 0;
        margin-top: 4rem;
    }
}

/* Blog Archive Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: calc(var(--spacing-unit) * 1.5);
    margin: calc(var(--spacing-unit) * 2) 0;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.post-card-image {
    position: relative;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-card:hover .post-card-image img {
    transform: scale(1.08);
}

.post-card-content {
    padding: calc(var(--spacing-unit) * 1.5);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-size: 1.6rem;
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

.post-card-title a {
    text-decoration: none;
    color: var(--text-hero);
    transition: var(--transition);
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    display: flex;
    gap: 1rem;
}

.post-card-excerpt {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.post-card-read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.post-card-read-more i {
    transition: transform 0.2s;
}

.post-card-read-more:hover i {
    transform: translateX(4px);
}

.single .entry-header,
.single .entry-content,
.single .author-box,
.single .entry-footer,
.single .post-navigation,
.single .comments-area {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.single .featured-image {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin: 4rem 0;
    border: 1px solid var(--border);
}

.author-box-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    border: 3px solid var(--accent);
}

.author-box-content h4 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.author-box-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.author-box-links a {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Header & Navigation */
.site-header {
    background: var(--bg-deep);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Dropdown Menu Styling */
.main-navigation ul ul {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 10px 0;
}

.main-navigation ul ul li a {
    color: var(--text-primary) !important;
    line-height: normal !important;
    padding: 12px 20px !important;
}

.main-navigation ul ul li:hover > a {
    background-color: var(--accent-subtle) !important;
    color: var(--accent) !important;
}

/* Theme Switcher Styles */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: var(--bg-card);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider:before {
    background-color: var(--accent);
    bottom: 3px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    z-index: 2;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--bg-card);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider .sun, .slider .moon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

input:checked + .slider .sun {
    color: var(--accent);
}

input:not(:checked) + .slider .moon {
    color: var(--accent);
}

.main-navigation {
    background: transparent;
}

.main-navigation .main-nav ul li a {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 60px;
    transition: var(--transition);
    font-family: var(--font-body);
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--accent);
    background-color: var(--accent-subtle);
}

.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Sticky Header */
.sticky-enabled .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: rgba(var(--header-bg-rgb, 12, 18, 32), 0.85);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .sticky-enabled .site-header {
    background: rgba(255, 255, 255, 0.85);
}

/* Footer */
.site-footer {
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.site-footer a {
    color: var(--text-secondary);
}

.site-footer a:hover {
    color: var(--accent);
}

.site-footer .footer-widgets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-social-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.footer-social-links a {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.footer-social-links a:hover {
    background: var(--accent);
    color: var(--bg-deep);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Buttons */
.button, 
button, 
input[type="submit"] {
    background-color: var(--accent);
    color: var(--bg-deep);
    padding: 14px 30px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-glow);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button:hover, 
button:hover, 
input[type="submit"]:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
    color: var(--bg-deep);
}

/* Single Post */
.single .entry-header {
    margin-bottom: 3rem;
    text-align: left;
}

.single .entry-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.single .featured-image {
    margin-bottom: 4rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.single .entry-content {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.single .entry-content p {
    margin-bottom: 2rem;
}

.single .entry-meta {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.social-sharing {
    display: flex;
    gap: 1.5rem;
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    justify-content: flex-start;
}

.share-btn {
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-hero);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--accent);
    color: var(--bg-deep);
    border-color: var(--accent);
}

/* Filter Bar */
.filter-section {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.filter-section select,
.filter-section input {
    padding: 12px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.filter-section select:focus,
.filter-section input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.filter-section input {
    flex-grow: 1;
}

