:root {
    /* Colors - Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --accent-color: #2563eb;
    /* Blue */
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;

    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --font-family: 'Inter', system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, 'Helvetica Neue', arial, sans-serif;
    --header-height: 72px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    --transition: 0.2s ease-in-out;
}

[data-theme='dark'] {
    /* Colors - Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-light: #1e3a8a;

    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Base Reset & Global Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-family);
    font-size: 16px;
    scroll-behavior: smooth;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
    width: 100%;
}

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

a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

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

ul,
ol {
    list-style: none;
}

button,
input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-wrap: break-word;
    /* Prevents long URLs from blowing out containers globally */
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color var(--transition), border-color var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.5px;
    text-decoration: none !important;
}

.logo span {
    color: var(--text-primary);
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none !important;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background-color: transparent;
    transition: background-color var(--transition), color var(--transition);
}

.icon-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Button - Hidden on Desktop */
.menu-btn {
    display: none;
}

/* Mobile Nav Styles */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    z-index: 40;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--border-color);
}

.mobile-nav.open {
    display: block;
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    text-decoration: none !important;
}

.mobile-nav-link:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Main Content */
main {
    flex: 1;
    padding: 2.5rem 0;
}

/* Section Titles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    /* Adjust to sit exactly on the border */
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: var(--radius-sm);
}

.view-all {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none !important;
}

.view-all:hover {
    gap: 0.5rem;
    /* simple animation effect */
}

/* Featured / Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 480px;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    height: 100%;
}

.hero-side .hero-card {
    height: calc(50% - 0.75rem);
    /* Half height minus half the gap */
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Much stronger gradient to fix text legibility on busy/bright images */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.hero-category {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    align-self: flex-start;
    margin-bottom: 1rem;
}

.hero-title {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.hero-meta {
    color: #cbd5e1;
    font-size: 0.85rem;
    display: flex;
    gap: 1rem;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Article Grid Sidebar Layout */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

/* Prevent CSS Grid blowout on wide nested content */
.content-with-sidebar>* {
    min-width: 0;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Cards */
.card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card-horizontal {
    flex-direction: row;
    height: auto;
    align-items: center;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
}

.card-horizontal .card-img-wrapper {
    width: 35%;
    padding-bottom: 0;
    height: 160px;
    flex-shrink: 0;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-decoration: none !important;
}

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

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
    /* Pushes meta to bottom */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

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

.widget-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget-list-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.widget-list-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.widget-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all var(--transition);
}

.tag:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Footer */
footer {
    background-color: #0f172a;
    /* Always dark footer */
    color: #f8fafc;
    padding: 4rem 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about .logo {
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-about p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: #1e293b;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    transition: background-color var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    background-color: #020617;
    padding: 1.5rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-side {
        flex-direction: row;
    }

    .hero-side .hero-card {
        height: 240px;
        width: 50%;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .hero-side {
        flex-direction: row;
        gap: 1.5rem;
    }

    .hero-side .hero-card {
        width: calc(50% - 0.75rem);
    }

    .card-horizontal {
        flex-direction: column;
    }

    .card-horizontal .card-img-wrapper {
        width: 100%;
        height: auto;
        padding-bottom: 56.25%;
        /* Restore the 16:9 aspect ratio */
    }

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

    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-about {
        grid-column: span 1;
    }

    .hero-title {
        font-size: 1.4rem;
        /* Scaled down further so text doesn't dominate the card */
    }

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

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

    .hero-side {
        flex-direction: row;
        gap: 0.75rem;
        /* Tighter gap */
    }

    .hero-side .hero-card {
        width: calc(50% - 0.375rem);
        height: 200px;
        /* Taller height on mobile to prevent extreme cropping/vertical distortion */
    }

    .hero-overlay {
        padding: 1rem;
        /* Less padding on small cards */
    }

    .hero-side .hero-title {
        font-size: 1.1rem;
        /* Smaller sub-hero titles */
        line-height: 1.3;
    }

    .hero-meta {
        font-size: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Single Post / Reading Typography Styles */
.post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.post-header .hero-category {
    margin-bottom: 1rem;
    display: inline-block;
    align-self: center;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.post-meta-detailed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.post-meta-detailed .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 100%;
}

.post-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--bg-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-primary);
}

.post-content img,
.post-content iframe,
.post-content video,
.post-content figure,
.wp-block-image img,
.wp-block-embed iframe {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    display: block;
}

.post-content figure.wp-block-table {
    margin: 2rem 0;
    width: 100%;
    /* Wraps the table securely */
}

.post-content table,
.wp-block-table table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: table !important;
    table-layout: fixed !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-content th,
.post-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.post-content th {
    background-color: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.post-content td {
    color: var(--text-secondary);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: var(--accent-color);
    text-decoration: none;
}

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

.breadcrumbs-separator {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .post-title {
        font-size: 1.75rem;
    }
}

/* Search Modal */
.search-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    background-color: var(--bg-primary);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-modal.active .search-container {
    transform: translateY(0);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: var(--text-primary);
    padding: 0.5rem;
}

.search-input:focus {
    outline: none;
}

.search-close {
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background-color var(--transition), color var(--transition);
    background: transparent;
    border: none;
    cursor: pointer;
}

.search-close:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-top: 4rem;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.author-info a {
    color: var(--text-primary);
    text-decoration: none;
}

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

.author-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.comment-form {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--text-muted);
}

.comment-field-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 480px;
}

.comment-field-row label {
    width: 70px;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.comment-field-row label span {
    color: #ef4444;
    /* red asterisk */
}

.comment-field-row input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
}

.comment-field-row input:focus {
    outline: none;
    border-color: var(--text-muted);
}

.comment-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.comment-checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.comment-checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.4;
}

.comment-submit {
    align-self: flex-start;
    background-color: #0f172a;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition);
}

.comment-submit:hover {
    opacity: 0.8;
}

[data-theme='dark'] .comment-submit {
    background-color: var(--accent-color);
}

[data-theme='dark'] .comment-submit:hover {
    background-color: var(--accent-hover);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--border-color);
}

.comment-content {
    flex: 1;
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-top-left-radius: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .comment-item {
        flex-direction: column;
    }

    .comment-content {
        border-top-left-radius: var(--radius-lg);
    }
}