/* Blog index – theme-aligned typography & structure */
.blog-container {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow-x: hidden;
}

.blog-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Header – gradient strip, single display title */
.blog-header {
    background: linear-gradient(135deg,
        var(--primary-purple) 0%,
        var(--secondary-purple) 50%,
        var(--accent-magenta) 100%);
    color: var(--text-white);
    padding: 4rem 0 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.blog-header .container {
    position: relative;
    z-index: 1;
}

.blog-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--text-white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.blog-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.5;
    max-width: 560px;
    margin: 0 auto;
    opacity: 0.95;
    letter-spacing: 0.3px;
}

/* Layout: main + sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 3rem 0 4rem;
    align-items: start;
}

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

/* Grid of cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Card – glass style, theme borders */
.blog-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(139, 77, 199, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-magenta));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(139, 77, 199, 0.2);
    border-color: rgba(139, 77, 199, 0.4);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.blog-card-content {
    padding: 1.75rem;
    position: relative;
}

.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-category {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-magenta));
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 0.7rem;
}

.blog-date {
    color: var(--text-accent);
    opacity: 0.9;
}

.blog-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.75rem;
    color: var(--text-white);
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

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

.blog-card-excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-accent);
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-purple);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.read-more-btn:hover {
    color: var(--accent-magenta);
    transform: translateX(4px);
}

.blog-views {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--text-accent);
    opacity: 0.8;
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(139, 77, 199, 0.2);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-magenta));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pagination-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 77, 199, 0.4);
}

.pagination-info {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-accent);
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(139, 77, 199, 0.2);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.sidebar-widget:hover {
    border-color: rgba(139, 77, 199, 0.35);
    transform: translateY(-2px);
}

.sidebar-widget::before {
    content: '';
    display: block;
    height: 3px;
    margin: -1.75rem -1.75rem 1.25rem -1.75rem;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-magenta));
    border-radius: 16px 16px 0 0;
}

.widget-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
    letter-spacing: 0.3px;
}

.widget-title::before {
    content: '\2728 ';
    opacity: 0.9;
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-filter {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.65rem 1rem;
    color: var(--text-accent);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.25s ease, color 0.25s ease;
}

.category-filter:hover,
.category-filter.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-magenta));
    color: white;
}

.cta-widget {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-magenta));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-widget::before {
    background: rgba(255, 255, 255, 0.15);
}

.cta-widget .widget-title {
    color: white;
}

.cta-widget .widget-title::before {
    content: '\1F3A8 ';
}

.cta-widget p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-purple);
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.sidebar-widget p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-accent);
    margin: 0;
}

/* No posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(139, 77, 199, 0.2);
}

.no-posts-icon {
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.no-posts h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.no-posts p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-accent);
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 0 3rem;
    }
    .blog-sidebar {
        order: -1;
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 3rem 0 2.5rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .blog-layout {
        padding: 2rem 1rem 2.5rem;
    }
    .blog-card-content {
        padding: 1.5rem;
    }
    .blog-pagination {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    .sidebar-widget {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-card-title {
        font-size: 1.2rem;
    }
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Blog post – theme typography & structure */
.blog-post-container {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

/* Hero */
.blog-hero {
    position: relative;
    height: 65vh;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-magenta) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    opacity: 0.9;
}

.hero-placeholder svg {
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.hero-placeholder p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 3rem 0;
}

.hero-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.25s ease;
}

.breadcrumb-link:hover {
    color: white;
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.65);
}

.post-breadcrumb svg {
    color: rgba(255, 255, 255, 0.5);
}

.post-meta-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-category {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-magenta));
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-reading-time {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.post-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-white);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    letter-spacing: 0.3px;
}

.post-excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 300;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.5rem;
    max-width: 640px;
}

.post-meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.post-date,
.post-views {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.post-date svg,
.post-views svg {
    opacity: 0.85;
}

/* Content section */
.blog-content-section {
    padding: 3rem 0 4rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    align-items: start;
}

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

.content-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(139, 77, 199, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* Article typography – Poppins, theme colours. Override inline styles from imported/rich content */
.content-body {
    padding: 2.5rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-accent) !important;
}

/* Force theme on all nested elements (e.g. imported HTML) */
.content-body,
.content-body div,
.content-body span,
.content-body p,
.content-body li,
.content-body td,
.content-body th,
.content-body label,
.content-body figcaption {
    color: inherit !important;
    font-family: inherit !important;
}

.content-body strong,
.content-body b {
    font-weight: 600;
    color: var(--text-white) !important;
}

.content-body em,
.content-body i {
    font-style: italic;
    color: var(--text-accent) !important;
}

/* Remove light backgrounds from nested boxes */
.content-body div[style*="background"],
.content-body span[style*="background"],
.content-body p[style*="background"],
.content-body section[style*="background"] {
    background: rgba(139, 77, 199, 0.08) !important;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(139, 77, 199, 0.2);
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-white) !important;
    line-height: 1.35;
}

.content-body h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid rgba(139, 77, 199, 0.4);
    padding-bottom: 0.5rem;
}

.content-body h3 {
    font-size: 1.35rem;
    color: var(--secondary-purple) !important;
}

.content-body h4 {
    font-size: 1.15rem;
    color: var(--text-white) !important;
    opacity: 0.95;
}

.content-body p {
    margin-bottom: 1.35rem;
    text-align: left;
    hyphens: auto;
}

.content-body p:first-child::first-letter {
    font-family: 'Dancing Script', cursive;
    font-size: 3.25rem;
    font-weight: 700;
    float: left;
    line-height: 2.5rem;
    margin: 0.15rem 0.6rem 0 0;
    color: var(--accent-magenta) !important;
}

.content-body blockquote {
    background: rgba(139, 77, 199, 0.12) !important;
    border-left: 4px solid var(--primary-purple);
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-accent) !important;
}

.content-body blockquote::before {
    content: '"';
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--primary-purple);
    opacity: 0.8;
}

.content-body ul,
.content-body ol {
    margin: 1.25rem 0;
    padding-left: 1.75rem;
}

.content-body li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

.content-body a {
    color: var(--secondary-purple) !important;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(168, 85, 247, 0.4);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.content-body a:hover {
    color: var(--accent-magenta) !important;
    border-bottom-color: var(--accent-magenta);
}

/* Images inside post content */
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(139, 77, 199, 0.25);
}

/* Tables inside post (e.g. from imported articles) */
.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-accent) !important;
}

.content-body th,
.content-body td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(139, 77, 199, 0.3);
    text-align: left;
    color: inherit !important;
}

.content-body th {
    background: rgba(139, 77, 199, 0.2) !important;
    color: var(--text-white) !important;
    font-weight: 600;
}

.content-body tr:nth-child(even) td {
    background: rgba(139, 77, 199, 0.06) !important;
}

.content-image-section {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(139, 77, 199, 0.2);
}

.image-placeholder {
    background: rgba(139, 77, 199, 0.08);
    border: 2px dashed rgba(139, 77, 199, 0.35);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    color: var(--text-accent);
    transition: border-color 0.25s ease;
}

.image-placeholder:hover {
    border-color: rgba(139, 77, 199, 0.5);
}

.image-placeholder.large {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-placeholder p,
.image-placeholder small {
    font-family: 'Poppins', sans-serif;
}

.image-placeholder p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--text-white);
    opacity: 0.9;
}

.image-placeholder small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.post-gallery {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(139, 77, 199, 0.2);
    background: rgba(0, 0, 0, 0.1);
}

.gallery-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.gallery-title svg {
    color: var(--primary-purple);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(139, 77, 199, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(139, 77, 199, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-placeholder {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(139, 77, 199, 0.2);
    text-align: center;
}

.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.placeholder-item {
    aspect-ratio: 1;
    background: rgba(139, 77, 199, 0.1);
    border: 2px dashed rgba(139, 77, 199, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-accent);
    opacity: 0.7;
}

.placeholder-text h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-white);
}

.placeholder-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-accent);
    margin: 0;
}

.gallery-cta {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-magenta) 100%);
    padding: 2.25rem 2rem;
    text-align: center;
    color: white;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    color: var(--primary-purple);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.post-tags {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(139, 77, 199, 0.2);
    background: rgba(0, 0, 0, 0.08);
}

.tags-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
}

.tags-header svg {
    color: var(--primary-purple);
    opacity: 0.9;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-accent);
    border: 1px solid rgba(139, 77, 199, 0.3);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.social-sharing {
    padding: 2rem;
    border-top: 1px solid rgba(139, 77, 199, 0.2);
    background: rgba(0, 0, 0, 0.06);
}

.sharing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.sharing-header h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-white);
}

.sharing-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-accent);
    margin: 0;
}

.sharing-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    max-width: 560px;
    margin: 0 auto;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #166fe5);
    color: white;
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #1a91da);
    color: white;
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
}

.share-btn.copy-link {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Sidebar – theme cards */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(139, 77, 199, 0.2);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.sidebar-card:hover {
    border-color: rgba(139, 77, 199, 0.35);
    transform: translateY(-2px);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-white);
}

.sidebar-title svg {
    color: var(--primary-purple);
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(139, 77, 199, 0.15);
    border-radius: 8px;
    transition: background 0.25s ease;
}

.related-post:hover {
    background: rgba(139, 77, 199, 0.08);
}

.related-post:last-child {
    border-bottom: none;
}

.related-post-image {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(139, 77, 199, 0.2);
}

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

.related-post:hover .related-post-image img {
    transform: scale(1.06);
}

.related-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(139, 77, 199, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-accent);
}

.related-post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.related-post-title a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.related-post-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
}

.related-category {
    background: rgba(139, 77, 199, 0.25);
    color: var(--text-accent);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.related-date {
    color: var(--text-accent);
    opacity: 0.8;
}

.explore-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.explore-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-accent);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.explore-link:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-magenta));
    color: white;
    transform: translateX(6px);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-magenta) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
}

.cta-card .sidebar-title {
    color: white;
}

.cta-card .sidebar-title svg {
    color: rgba(255, 255, 255, 0.9);
}

.cta-card .cta-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.cta-card .cta-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    opacity: 0.95;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cta-card .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background: white;
    color: var(--primary-purple);
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-card .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: 2rem auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .blog-sidebar {
        order: -1;
        position: static;
    }
    .sharing-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        height: 55vh;
        min-height: 360px;
    }
    .hero-content {
        padding: 2rem 0;
    }
    .hero-content .container {
        padding: 0 1rem;
    }
    .post-title {
        font-size: 1.6rem;
    }
    .post-excerpt {
        font-size: 1rem;
    }
    .post-meta-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .post-meta-info {
        gap: 1rem;
    }
    .content-layout {
        padding: 0 1rem;
        gap: 2rem;
    }
    .content-body {
        padding: 2rem 1.25rem;
        font-size: 1rem;
    }
    .content-body h2 {
        font-size: 1.4rem;
    }
    .content-body h3 {
        font-size: 1.2rem;
    }
    .post-gallery,
    .gallery-cta,
    .post-tags,
    .social-sharing,
    .content-image-section {
        padding: 1.25rem 1rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .placeholder-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 240px;
    }
    .sharing-buttons {
        grid-template-columns: 1fr;
    }
    .sidebar-card {
        padding: 1.25rem;
    }
    .related-post {
        flex-direction: column;
        gap: 0.75rem;
    }
    .related-post-image {
        width: 100%;
        height: 160px;
    }
    .post-category,
    .post-reading-time,
    .ai-badge {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.45rem;
    }
    .content-body {
        padding: 1.5rem 1rem;
    }
    .content-body p:first-child::first-letter {
        font-size: 2.5rem;
        line-height: 2rem;
        margin-right: 0.5rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .placeholder-grid {
        max-width: 180px;
    }
    .hero-content .container,
    .content-layout {
        padding: 0 0.75rem;
    }
}

@media print {
    .blog-sidebar,
    .social-sharing,
    .gallery-cta,
    .lightbox {
        display: none !important;
    }
    .content-layout {
        grid-template-columns: 1fr;
    }
    .content-body {
        padding: 1rem 0;
        color: #111;
    }
    .content-body h1,
    .content-body h2,
    .content-body h3,
    .content-body h4 {
        color: #111;
    }
    .hero-content {
        background: transparent;
    }
    .post-title {
        color: #111;
        text-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-post-container *,
    .blog-post-container *::before,
    .blog-post-container *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.share-btn:focus,
.explore-link:focus,
.cta-btn:focus,
.cta-button:focus,
.gallery-item:focus,
.lightbox-close:focus {
    outline: 3px solid var(--accent-magenta);
    outline-offset: 2px;
}