/* ==========================================================================
   Blog & Single Post Styles
   ========================================================================== */

/* =====================
   Blog Index Hero
   ===================== */
.page-hero--blog-index,
.page-hero--blog {
    background: linear-gradient(135deg, #0F172A 0%, #0E3020 60%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(14, 48, 32, 0.75) 100%);
    z-index: 1;
}

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: var(--step--1);
    color: rgba(255,255,255,0.85);
    margin-top: 1.25rem;
}

.post-hero-meta span,
.post-hero-meta time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-meta-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.post-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* =====================
   Blog Archive Layout
   ===================== */
.blog-layout {
    display: block;
}

.blog-layout--sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    gap: 2rem;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

/* Featured Post Card */
.blog-featured-post {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    margin-bottom: 3rem;
    border-radius: 20px;
}

.blog-featured-img {
    display: block;
    height: 300px;
    overflow: hidden;
}

.blog-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-featured-post:hover .blog-featured-img img {
    transform: scale(1.04);
}

.blog-featured-body {
    padding: 2rem;
}

.blog-featured-cat {
    display: inline-block;
    background: rgba(42,172,160,0.1);
    color: var(--primary-green);
    font-size: var(--step--2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.blog-featured-title {
    font-size: var(--step-2);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-featured-title a {
    color: var(--deep-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-featured-title a:hover {
    color: var(--primary-green);
}

.blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: var(--step--1);
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.blog-featured-meta time,
.blog-featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-featured-meta i {
    color: var(--primary-green);
}

.blog-featured-excerpt {
    font-size: var(--step--1);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-featured-excerpt p {
    margin: 0;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

/* Blog Card (loaded via content-card.php) */
.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

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

.blog-card-img {
    display: block;
    height: 200px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

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

.blog-card-cat {
    display: inline-block;
    background: rgba(42,172,160,0.1);
    color: var(--primary-green);
    font-size: var(--step--2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.blog-card-body h2,
.blog-card-body h3 {
    font-size: var(--step-0);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-body h2 a,
.blog-card-body h3 a {
    color: var(--deep-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-body h2 a:hover,
.blog-card-body h3 a:hover {
    color: var(--primary-green);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--step--2);
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.blog-card-meta i {
    color: var(--primary-green);
    margin-right: 3px;
}

.blog-card-excerpt {
    font-size: var(--step--1);
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.blog-card-excerpt p {
    margin: 0;
}

.blog-card-body > .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* =====================
   Single Post Layout
   ===================== */
.single-layout {
    max-width: 800px;
    margin: 0 auto;
}

.single-layout--with-sidebar {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
    max-width: none;
}

.single-content {
    min-width: 0;
}

.single-featured-media {
    width: 100%;
    margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
    overflow: hidden;
    border-radius: 20px;
    background: var(--light-bg);
}

.single-featured-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
}

.single-featured-media figcaption {
    padding: 0.7rem 1rem;
    color: var(--text-muted);
    font-size: var(--step--2);
    line-height: 1.5;
    text-align: center;
}

/* Entry Content (prose) */
.entry-content {
    font-size: var(--step-0);
    line-height: 1.8;
    color: var(--text-main);
    overflow-wrap: anywhere;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--deep-blue);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content h2 { font-size: var(--step-2); }
.entry-content h3 { font-size: var(--step-1); }
.entry-content h4 { font-size: var(--step-0); }

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1.5rem 0;
}

.entry-content figure,
.entry-content video,
.entry-content iframe,
.entry-content embed {
    max-width: 100%;
}

.entry-content iframe,
.entry-content video {
    border-radius: 16px;
}

.entry-content .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-green);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(42,172,160,0.04);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-muted);
}

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

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

.entry-content a {
    color: var(--primary-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--primary-dark);
}

.entry-content pre {
    background: var(--deep-blue);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: var(--step--1);
}

.entry-content code {
    background: rgba(42,172,160,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.entry-content pre code {
    background: transparent;
    padding: 0;
}

.entry-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

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

.entry-content th {
    font-weight: 700;
    color: var(--deep-blue);
    background: var(--light-bg);
}

/* =====================
   Post Footer (Tags & Share)
   ===================== */
.post-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.entry-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: var(--step--1);
    color: var(--text-muted);
}

.entry-tags a {
    display: inline-block;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: var(--step--2);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.entry-tags a:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(42,172,160,0.06);
}

/* Share Links */
.post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--step--1);
    color: var(--text-muted);
}

.post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.post-share a:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

/* =====================
   Author Bio
   ===================== */
.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    margin-top: 3rem;
}

.author-bio-avatar {
    flex-shrink: 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-name {
    font-size: var(--step-0);
    margin-bottom: 0.5rem;
    color: var(--deep-blue);
}

.author-bio-text {
    font-size: var(--step--1);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.author-bio-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: var(--step--1);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.author-bio-link:hover {
    gap: 10px;
}

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

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

.post-navigation .nav-previous,
.post-navigation .nav-next {
    display: flex;
    flex-direction: column;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.2s ease;
}

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

.nav-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--step--2);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.nav-next .nav-subtitle {
    justify-content: flex-end;
}

.nav-title {
    display: block;
    font-size: var(--step-0);
    font-weight: 600;
    line-height: 1.4;
}

/* =====================
   Comments
   ===================== */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: var(--step-1);
    margin-bottom: 2rem;
    color: var(--deep-blue);
}

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

.comment-list li {
    list-style: none;
}

.comment-body {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: var(--step--1);
}

.comment-meta .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-author b {
    font-weight: 700;
    color: var(--deep-blue);
}

.comment-metadata a {
    color: var(--text-muted);
    font-size: var(--step--2);
    text-decoration: none;
}

.comment-content {
    font-size: var(--step--1);
    line-height: 1.7;
    color: var(--text-main);
}

.comment-content p {
    margin-bottom: 0.75rem;
}

.reply a {
    color: var(--primary-green);
    font-weight: 600;
    font-size: var(--step--2);
    text-decoration: none;
}

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

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: var(--step-1);
    margin-bottom: 1.5rem;
    color: var(--deep-blue);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--deep-blue);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: var(--step--1);
    color: var(--text-main);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(42,172,160,0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form .submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.875rem 2rem;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--step--1);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.comment-form .submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* =====================
   Blog Sidebar
   ===================== */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.widget-title {
    font-size: var(--step-0);
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

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

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

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

.widget ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: var(--step--1);
    transition: color 0.2s ease;
}

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

/* Search Widget */
.widget_search .search-form {
    display: flex;
    gap: 0.5rem;
}

.widget_search .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: var(--step--1);
    outline: none;
    transition: border-color 0.2s ease;
}

.widget_search .search-field:focus {
    border-color: var(--primary-green);
}

.widget_search .search-submit {
    padding: 0.75rem 1.25rem;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.widget_search .search-submit:hover {
    background: var(--primary-dark);
}

/* Related Posts */
.related-posts-section {
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

/* =====================
   Blog Sidebar (Custom)
   ===================== */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 150px;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
}

.blog-sidebar > .widget,
.sidebar-widget {
    margin: 0;
    min-width: 0;
    padding: 1.15rem;
    overflow: hidden;
    border: 1px solid #dde7e8;
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
    box-shadow: none;
}

.blog-sidebar > .widget + .widget,
.sidebar-widget + .sidebar-widget {
    padding-top: 1.15rem;
}

.blog-sidebar > .widget:last-child,
.sidebar-widget:last-child {
    padding-bottom: 1.15rem;
    border-bottom: 1px solid #dde7e8;
}

.sidebar-widget--about {
    text-align: left;
}

.sidebar-about-icon {
    font-size: 1.25rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.blog-sidebar .widget-title,
.blog-sidebar .wp-block-heading,
.blog-sidebar .wp-block-search__label,
.sidebar-widget-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--deep-blue);
    margin: 0 0 0.75rem;
    padding: 0;
    border: 0;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sidebar-widget--about .sidebar-widget-title {
    margin-bottom: 0.5rem;
}

/* Core block widgets */
.blog-sidebar ul,
.blog-sidebar ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-sidebar .widget li,
.blog-sidebar .wp-block-latest-posts li,
.blog-sidebar .wp-block-latest-comments li {
    margin: 0;
    padding: 0.55rem 0;
    border-bottom: 1px solid #edf1f2;
    color: var(--text-muted);
    font-size: 0.83rem;
    line-height: 1.5;
}

.blog-sidebar .widget li:first-child {
    padding-top: 0;
}

.blog-sidebar .widget li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.blog-sidebar .widget a {
    color: #314553;
    font-size: inherit;
    font-weight: 550;
    line-height: 1.45;
    text-decoration: none;
}

.blog-sidebar .widget a:hover {
    color: var(--primary-green);
}

.blog-sidebar .widget p,
.blog-sidebar .wp-block-latest-comments__comment {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.blog-sidebar .wp-block-search__inside-wrapper,
.emc-search-form-inner {
    display: flex;
    gap: 0;
    overflow: hidden;
    border: 1px solid #d6e2e3;
    border-radius: 9px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-sidebar .wp-block-search__inside-wrapper:focus-within,
.emc-search-form-inner:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(42,172,160,0.1);
}

.blog-sidebar .wp-block-search__input,
.blog-sidebar .emc-search-input {
    min-width: 0;
    width: 100%;
    height: 40px;
    padding: 0.65rem 0.75rem;
    border: 0;
    outline: 0;
    color: var(--deep-blue);
    background: transparent;
    font: inherit;
    font-size: 0.82rem;
}

.blog-sidebar .wp-block-search__button,
.blog-sidebar .emc-search-submit {
    min-width: 42px;
    margin: 0;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-left: 1px solid #d6e2e3;
    color: var(--primary-green);
    background: #f5f9f9;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.blog-sidebar .wp-block-search__button:hover,
.blog-sidebar .emc-search-submit:hover {
    color: #fff;
    background: var(--primary-green);
}

/* Recent Posts */
.sidebar-recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-recent-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid #edf1f2;
}

.sidebar-recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-recent-item:first-child {
    padding-top: 0;
}

.sidebar-recent-thumb {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 7px;
    overflow: hidden;
}

.sidebar-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-recent-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sidebar-recent-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--deep-blue);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.sidebar-recent-title:hover {
    color: var(--primary-green);
}

.sidebar-recent-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Categories */
.sidebar-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-categories li {
    border-bottom: 1px solid var(--border-color);
}

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

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    color: var(--text-main);
    text-decoration: none;
    font-size: var(--step--1);
    transition: color 0.2s ease;
}

.sidebar-categories a:hover {
    color: var(--primary-green);
}

.sidebar-cat-count {
    background: var(--light-bg);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: var(--step--2);
    color: var(--text-muted);
    font-weight: 600;
}

/* Tags */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sidebar-tag {
    display: inline-block;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: var(--step--2);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-tag:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(42,172,160,0.06);
}

/* =====================
   Share Buttons
   ===================== */
.post-share-label {
    margin-right: 0.2rem;
    color: #647784;
    font-size: 0.75rem;
    font-weight: 750;
}

.post-share .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 36px;
    height: 36px;
    padding: 0 0.7rem;
    border: 1px solid #dce6e7;
    border-radius: 9px;
    color: #526774;
    background: #fff;
    box-shadow: none;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.post-share .share-btn i {
    font-size: 0.8rem;
}

.post-share .share-btn:hover,
.post-share .share-btn:focus-visible {
    transform: none;
    box-shadow: none;
    outline: none;
}

.post-share .share-btn--facebook:hover,
.post-share .share-btn--facebook:focus-visible {
    color: #1877f2;
    background: #f3f8ff;
    border-color: #1877F2;
}

.post-share .share-btn--twitter:hover,
.post-share .share-btn--twitter:focus-visible {
    color: #111827;
    background: #f4f5f6;
    border-color: #9ca3af;
}

.post-share .share-btn--whatsapp:hover,
.post-share .share-btn--whatsapp:focus-visible {
    color: #168c43;
    background: #f0fbf4;
    border-color: #25D366;
}

.post-share .share-btn--copy:hover,
.post-share .share-btn--copy:focus-visible,
.post-share .share-btn--copy.is-copied {
    color: #08776d;
    background: #effaf8;
    border-color: var(--primary-green);
}

.post-share .share-btn--copy.is-copied i::before {
    content: "\f00c";
}

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

.comments-section .comments-title {
    font-size: var(--step-1);
    margin-bottom: 2rem;
    color: var(--deep-blue);
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.comment-notes {
    font-size: var(--step--2);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--step--2);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 1024px) {
    .blog-layout--sidebar {
        grid-template-columns: 1fr;
    }

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

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        overflow: visible;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .blog-sidebar > .widget,
    .sidebar-widget,
    .blog-sidebar > .widget + .widget,
    .sidebar-widget + .sidebar-widget {
        padding: 1rem;
        border: 1px solid #dde7e8;
        border-radius: 12px;
        background: #fff;
    }

    .widget-area {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-featured-post {
        grid-template-columns: 1fr;
    }

    .blog-featured-img {
        height: 220px;
    }

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

    .single-featured-media {
        border-radius: 16px;
    }

    .single-featured-image {
        max-height: none;
    }

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

    .post-navigation .nav-next {
        text-align: left;
    }

    .nav-next .nav-subtitle {
        justify-content: flex-start;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .post-hero-meta {
        justify-content: center;
    }

    .post-footer-row {
        flex-direction: column;
    }

    .post-share {
        flex-wrap: wrap;
    }

    .comment-form-row {
        grid-template-columns: 1fr;
    }

    .children {
        padding-left: 1rem;
    }
}

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

    .blog-featured-body {
        padding: 1.5rem;
    }

    .blog-featured-title {
        font-size: var(--step-1);
    }

    .share-btn span {
        display: none;
    }

    .share-btn {
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
}
