/**
 * Blog Styles — Interactive Tutors
 *
 * Mobile-first, responsive design for blog index, single posts, sidebar,
 * FAQ section, CTA blocks, and related posts.
 *
 * Pillar accent colours are applied via Tailwind utility classes in templates.
 * This file supplies layout, spacing, typography, and interactive effects.
 *
 * @package InteractiveTutors
 * @since   1.3.0
 */

/* =============================================================================
   CSS CUSTOM PROPERTIES
   ============================================================================= */

:root {
    --blog-primary: #2E8B57;
    --blog-primary-dark: #246d45;
    --blog-blue: #4A90E2;
    --blog-radius: 0.75rem;
    --blog-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --blog-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
    --blog-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================================
   BLOG HERO BANNER (Index)
   ============================================================================= */

.blog-hero {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-blue) 100%);
    padding: 7rem 0 3rem;
    color: #fff;
}

.blog-hero__title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.blog-hero__subtitle {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .blog-hero {
        padding: 8rem 0 4rem;
    }
    .blog-hero__title {
        font-size: 3rem;
    }
    .blog-hero__subtitle {
        font-size: 1.125rem;
    }
}

/* =============================================================================
   CATEGORY PILL FILTERS
   ============================================================================= */

.blog-filters {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 5rem; /* below header */
    z-index: 30;
}

body.admin-bar .blog-filters {
    top: calc(5rem + 32px);
}

@media (max-width: 782px) {
    body.admin-bar .blog-filters {
        top: calc(5rem + 46px);
    }
}

.blog-filters__pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.blog-filters__pills::-webkit-scrollbar {
    display: none;
}

.blog-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    transition: var(--blog-transition);
    border: 2px solid transparent;
}

.blog-pill:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.blog-pill--active {
    background: var(--pill-accent, var(--blog-primary));
    color: #fff;
    border-color: transparent;
}

.blog-pill--active:hover {
    background: var(--pill-accent, var(--blog-primary-dark));
    color: #fff;
}

/* =============================================================================
   BLOG LAYOUT (Index + Single)
   ============================================================================= */

.blog-layout,
.blog-single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr 320px;
    }
    .blog-single-layout {
        grid-template-columns: 1fr 340px;
    }
}

/* =============================================================================
   BLOG GRID (Index)
   ============================================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blog-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
}

/* =============================================================================
   POST CARD
   ============================================================================= */

.blog-card {
    background: #fff;
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--blog-transition), box-shadow var(--blog-transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--blog-shadow-hover);
}

/* Image */
.blog-card__image-link {
    display: block;
    width: 100%;
    flex-shrink: 0;
}

.blog-card__image {
    position: relative;
    width: 100%;
    height: 90px;
    overflow: hidden;
    background: #f3f4f6;
}

.blog-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img {
    transform: scale(1.05);
}

.blog-card__img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
    color: #d1d5db;
    background: #f9fafb;
}

.blog-card__category {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    line-height: 1.5;
    white-space: nowrap;
}

/* Body */
.blog-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.blog-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--blog-transition);
}

.blog-card__title a:hover {
    color: var(--blog-primary);
}

.blog-card__excerpt {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.blog-card__meta {
    border-top: 1px solid #f3f4f6;
    padding-top: 0.625rem;
    margin-bottom: 0.625rem;
}

.blog-card__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.blog-card__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.blog-card__author span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

.blog-card__info {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-card__dot {
    color: #d1d5db;
}

/* CTA */
.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.blog-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blog-primary);
    text-decoration: none;
    transition: gap var(--blog-transition), color var(--blog-transition);
}

.blog-card__cta:hover {
    gap: 0.75rem;
    color: var(--blog-primary-dark);
}

/* =============================================================================
   SINGLE POST HERO
   ============================================================================= */

.blog-single-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-blue) 100%);
}

@media (min-width: 640px) {
    .blog-single-hero { height: 360px; }
}

@media (min-width: 1024px) {
    .blog-single-hero { height: 420px; }
}

.blog-single-hero__bg {
    position: absolute;
    inset: 0;
}

.blog-single-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.blog-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.1) 100%);
}

.blog-single-hero__bg--fallback {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-blue) 100%);
}

/* Content absolutely anchored to the bottom of the fixed-height hero */
.blog-single-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.5rem 1.25rem;
    color: #fff;
}

@media (min-width: 640px) {
    .blog-single-hero__content {
        padding: 2rem;
    }
}

.blog-single-hero__category {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 3;
}

@media (min-width: 640px) {
    .blog-single-hero__category {
        bottom: 1.75rem;
        right: 2rem;
    }
}

.blog-single-hero__title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    max-width: 48rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .blog-single-hero__title {
        font-size: 1.9rem;
    }
}

@media (min-width: 1024px) {
    .blog-single-hero__title {
        font-size: 2.5rem;
    }
}

.blog-single-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-single-hero__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.blog-single-hero__author {
    font-weight: 600;
    font-size: 0.85rem;
}

.blog-single-hero__details {
    display: flex;
    gap: 0.4rem;
    font-size: 0.78rem;
    opacity: 0.85;
}

.blog-single-content {
    max-width: 100%;
    min-width: 0;
}

/* Last updated badge */
.blog-single__updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.blog-single__updated i {
    color: var(--blog-primary);
}

/* Featured Snippet / Answer Box */
.blog-single__answer-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left: 4px solid var(--blog-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--blog-radius) var(--blog-radius) 0;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1f2937;
}

.blog-single__answer-box p {
    margin: 0;
}

/* Prose overrides for blog posts */
.blog-single__body.prose h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.blog-single__body.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-single__body.prose p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.blog-single__body.prose ul,
.blog-single__body.prose ol {
    padding-left: 1.5rem;
    margin: 1.25rem 0;
}

.blog-single__body.prose li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.blog-single__body.prose blockquote {
    border-left: 4px solid var(--blog-primary);
    background: #f9fafb;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--blog-radius) var(--blog-radius) 0;
    font-style: italic;
    color: #374151;
}

.blog-single__body.prose blockquote p {
    margin: 0;
}

.blog-single__body.prose img {
    border-radius: var(--blog-radius);
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
}

/* Comparison Tables */
.blog-single__body.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
}

.blog-single__body.prose thead th {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-blue) 100%);
    color: #fff;
    padding: 0.875rem 1rem;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
}

.blog-single__body.prose tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.blog-single__body.prose tbody tr:nth-child(even) {
    background: #f9fafb;
}

.blog-single__body.prose tbody tr:hover {
    background: #f0fdf4;
}

/* Responsive table wrapper */
.blog-single__body.prose .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* =============================================================================
   AUTHOR BIO BLOCK
   ============================================================================= */

.blog-author-bio {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: var(--blog-radius);
    border: 1px solid #e5e7eb;
    margin: 2.5rem 0;
}

.blog-author-bio__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-bio__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.blog-author-bio__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.15rem;
}

.blog-author-bio__credential {
    font-size: 0.875rem;
    color: var(--blog-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-author-bio__desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
}

/* =============================================================================
   FAQ SECTION
   ============================================================================= */

.blog-faq {
    margin: 3rem 0;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--blog-radius);
}

.blog-faq__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-faq__title i {
    color: var(--blog-primary);
}

.blog-faq__item {
    border: 1px solid #e5e7eb;
    border-radius: var(--blog-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow var(--blog-transition);
}

.blog-faq__item[open] {
    box-shadow: var(--blog-shadow);
}

.blog-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background var(--blog-transition);
}

.blog-faq__question:hover {
    background: #f9fafb;
}

.blog-faq__question::-webkit-details-marker {
    display: none;
}

.blog-faq__icon {
    font-size: 0.75rem;
    color: #9ca3af;
    transition: transform var(--blog-transition);
    flex-shrink: 0;
    margin-left: 1rem;
}

.blog-faq__item[open] .blog-faq__icon {
    transform: rotate(180deg);
}

.blog-faq__answer {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b5563;
}

/* =============================================================================
   CTA BLOCK
   ============================================================================= */

.blog-cta-block {
    margin: 3rem 0;
}

.blog-cta-block__inner {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-blue) 100%);
    border-radius: var(--blog-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    color: #fff;
}

.blog-cta-block__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
}

.blog-cta-block__text {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 36rem;
    margin: 0 auto 1.5rem;
}

.blog-cta-block__text strong {
    color: #fff;
    opacity: 1;
}

.blog-cta-block__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.blog-cta-block__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--blog-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform var(--blog-transition), box-shadow var(--blog-transition);
}

.blog-cta-block__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.blog-cta-block__btn--primary {
    background: #fff;
    color: var(--blog-primary);
}

.blog-cta-block__btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.blog-cta-block__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.blog-cta-block__courses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
}

.blog-cta-block__courses-label {
    opacity: 0.75;
    margin-right: 0.25rem;
}

.blog-cta-block__courses a {
    color: #fff;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    opacity: 0.85;
    transition: opacity var(--blog-transition);
}

.blog-cta-block__courses a:hover {
    opacity: 1;
}

/* =============================================================================
   RELATED POSTS
   ============================================================================= */

.blog-related {
    margin: 3rem 0 0;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.blog-related__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.25rem;
}

.blog-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .blog-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .blog-related__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =============================================================================
   SIDEBAR
   ============================================================================= */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .blog-sidebar {
        position: sticky;
        top: 7rem;
        align-self: start;
    }
}

.blog-sidebar-widget {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.blog-sidebar-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2E8B57;
    border-width: 0 0 2px 0;
    border-style: solid;
}

/* Recent Posts */
.blog-sidebar__recent {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar__recent-item {
    margin-bottom: 0.75rem;
}

.blog-sidebar__recent-item:last-child {
    margin-bottom: 0;
}

.blog-sidebar__recent-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: color var(--blog-transition);
}

.blog-sidebar__recent-link:hover .blog-sidebar__recent-title {
    color: var(--blog-primary);
}

.blog-sidebar__recent-thumb {
    width: 56px;
    height: 56px;
    min-width: 56px;
    max-width: 56px;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.blog-sidebar__recent-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.blog-sidebar__recent-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--blog-transition);
}

.blog-sidebar__recent-date {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Category Filters */
.blog-sidebar__categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar__categories li {
    margin-bottom: 0.5rem;
}

.blog-sidebar__cat-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
    text-decoration: none;
    padding: 0.375rem 0;
    transition: color var(--blog-transition);
}

.blog-sidebar__cat-link:hover {
    color: #1f2937;
}

.blog-sidebar__cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* Trust Signals */
.blog-sidebar__trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.blog-sidebar__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #4b5563;
}

.blog-sidebar__trust-item i {
    font-size: 1rem;
    flex-shrink: 0;
}

.blog-sidebar__trust-item strong {
    color: #1f2937;
}

/* Newsletter */
.blog-sidebar__newsletter {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #d1fae5;
}

.blog-sidebar__newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.blog-sidebar__newsletter-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    background: #fff;
    color: #374151;
    transition: border-color var(--blog-transition);
}

.blog-sidebar__newsletter-input:focus {
    border-color: var(--blog-primary);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.15);
}

.blog-sidebar__newsletter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #2E8B57;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--blog-transition);
}

.blog-sidebar__newsletter-btn:hover {
    background: #246d45;
}

/* Course Programs */
.blog-sidebar__services {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar__services li {
    margin-bottom: 0.5rem;
}

.blog-sidebar__services a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    transition: background var(--blog-transition), color var(--blog-transition);
}

.blog-sidebar__services a:hover {
    background: #f3f4f6;
    color: var(--blog-primary);
}

.blog-sidebar__services i {
    width: 1.25rem;
    text-align: center;
    color: #2E8B57;
    flex-shrink: 0;
}

/* Sticky CTA */
.blog-sidebar__sticky-cta {
    padding: 0.25rem 0 0;
}

.blog-sidebar__trial-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--blog-primary);
    color: #fff;
    border: none;
    border-radius: var(--blog-radius);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--blog-transition), transform var(--blog-transition);
    box-shadow: 0 4px 14px rgba(46, 139, 87, 0.35);
}

.blog-sidebar__trial-btn:hover {
    background: var(--blog-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.45);
}

/* =============================================================================
   PAGINATION
   ============================================================================= */

.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.blog-pagination ul {
    display: flex;
    gap: 0.375rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-pagination li {
    margin: 0;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--blog-transition);
}

.blog-pagination a {
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.blog-pagination a:hover {
    background: var(--blog-primary);
    color: #fff;
    border-color: var(--blog-primary);
}

.blog-pagination .current {
    background: var(--blog-primary);
    color: #fff;
    border: 1px solid var(--blog-primary);
    font-weight: 700;
}

/* =============================================================================
   GUTENBERG BLOCK COMPATIBILITY
   ============================================================================= */

.blog-single__body .wp-block-group,
.blog-single__body .wp-block-columns,
.blog-single__body .wp-block-cover {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.blog-single__body .wp-block-buttons {
    margin: 1.5rem 0;
}

.blog-single__body .wp-block-button__link {
    border-radius: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    transition: transform var(--blog-transition), box-shadow var(--blog-transition);
}

.blog-single__body .wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-single__body .wp-block-separator {
    border-top: 2px solid #e5e7eb;
    margin: 2.5rem auto;
    max-width: 6rem;
}

.blog-single__body .wp-block-quote {
    border-left: 4px solid var(--blog-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f9fafb;
    border-radius: 0 var(--blog-radius) var(--blog-radius) 0;
}

.blog-single__body .wp-block-code {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.25rem;
    border-radius: var(--blog-radius);
    font-size: 0.9rem;
    overflow-x: auto;
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    .blog-sidebar,
    .blog-filters,
    .blog-cta-block,
    .blog-sidebar__sticky-cta,
    .blog-pagination {
        display: none;
    }

    .blog-single-layout {
        grid-template-columns: 1fr;
    }

    .blog-single-hero {
        min-height: auto;
        background: none;
        color: #000;
    }

    .blog-single-hero__overlay {
        display: none;
    }

    .blog-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
