/* ===========================================
   BLOG STYLES - Chart AI
   =========================================== */

/* Logo Tagline for Blog Pages */
.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--gray-600);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

/* Blog Hero Section */
.blog-hero {
    padding: 100px 0 24px;
    text-align: center;
    position: relative;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.blog-hero .tagline {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* ===========================================
   BLOG FILTER SECTION
   =========================================== */

.blog-filter-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* Category Filters */
.blog-category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.category-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-600);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.category-filter-btn:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.category-filter-btn.active {
    background: linear-gradient(135deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
    transform: translateY(-2px);
}

/* No Results */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.no-results svg {
    width: 64px;
    height: 64px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.no-results p {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.reset-filters-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.reset-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Grid */
.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Blog Card */
.blog-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(139, 92, 246, 0.2),
                0 0 30px rgba(139, 92, 246, 0.1);
    border-color: transparent;
}

.blog-card-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(255, 27, 141, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.05) 0%,
        rgba(139, 92, 246, 0.08) 50%,
        rgba(255, 27, 141, 0.05) 100%);
    z-index: 1;
}

/* When thumbnail has actual image */
.blog-card-thumbnail.has-image {
    background: var(--gray-900);
}

.blog-card-thumbnail.has-image::before {
    display: none;
}

.blog-card-thumbnail svg {
    width: 64px;
    height: 64px;
    opacity: 0.3;
    color: var(--gray-500);
    z-index: 2;
}

.blog-card-thumbnail picture {
    width: 100%;
    height: 100%;
    display: block;
}

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

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

.blog-card-content {
    padding: 24px;
}

.blog-card-category {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    margin-bottom: 16px;
}

.blog-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.blog-card-excerpt {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-meta svg {
    width: 16px;
    height: 16px;
}

/* ===========================================
   BLOG POST STYLES - Clean, Readable Layout
   =========================================== */

.blog-post-header {
    max-width: 850px;
    margin: 0 auto;
    padding: 100px 24px 36px;
}

/* When breadcrumbs are present, reduce header padding */
.breadcrumbs + .blog-post-header {
    padding-top: 24px;
}

/* Meta line: Category + Date + Read time */
.blog-post-meta-line {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.blog-post-meta-line .category-badge {
    display: inline-block;
    padding: 7px 16px;
    background: linear-gradient(135deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 10px;
}

.blog-post-meta-line .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--gray-500);
    font-weight: 400;
}

.blog-post-meta-line .meta-item svg {
    width: 17px;
    height: 17px;
    opacity: 0.6;
}

/* Title */
.blog-post-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

/* Subtitle / Description */
.blog-post-header .subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--gray-500);
    font-weight: 400;
    margin-bottom: 0;
}

/* Article Content */
.blog-article {
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 32px 60px;
}

/* Lead paragraph - first paragraph style */
.blog-article .lead,
.blog-article > p:first-of-type {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-600);
    font-weight: 550;
    font-style: italic;
    margin-bottom: 32px;
    padding-left: 20px;
    position: relative;
}

.blog-article .lead::before,
.blog-article > p:first-of-type::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%);
    border-radius: 2px;
}

.blog-article h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 52px 0 22px;
    letter-spacing: -0.02em;
    line-height: 1.25;
    padding-left: 18px;
    position: relative;
}

.blog-article h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%);
    border-radius: 2px;
}

.blog-article h3 {
    font-size: 1.85rem;
    font-weight: 650;
    color: var(--gray-900);
    margin: 44px 0 18px;
}

.blog-article p {
    font-size: 1.35rem;
    line-height: 1.85;
    color: var(--gray-900);
    margin-bottom: 26px;
    font-weight: 450;
}

.blog-article ul,
.blog-article ol {
    margin: 24px 0;
    padding-left: 26px;
}

.blog-article li {
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--gray-900);
    margin-bottom: 14px;
    padding-left: 8px;
    font-weight: 450;
}

.blog-article li::marker {
    color: var(--primary-blue);
}

.blog-article strong {
    color: var(--gray-900);
    font-weight: 650;
}

/* Highlighted text - for key insights */
.blog-article mark.highlight {
    background: transparent;
    color: var(--gray-900);
    font-weight: 700;
}

.blog-article a {
    color: var(--gray-900);
    text-decoration: underline;
    text-decoration-color: var(--gray-300);
    text-underline-offset: 2px;
    font-weight: 500;
    transition: text-decoration-color 0.2s ease;
}

.blog-article a:hover {
    text-decoration-color: var(--gray-900);
}

/* Blockquote - with gradient border */
.blog-article blockquote {
    margin: 36px 0;
    padding: 0 0 0 24px;
    border-left: 4px solid;
    border-image: linear-gradient(135deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%) 1;
}

.blog-article blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.8;
    font-weight: 450;
}

/* Code Blocks */
.blog-article pre {
    background: #1e1e2e;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    overflow-x: auto;
}

.blog-article pre code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cdd6f4;
}

.blog-article code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-blue);
}

/* Images */
.blog-article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.blog-article figure {
    margin: 32px 0;
}

.blog-article figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 12px;
    font-style: italic;
}

/* ===========================================
   INFO BOXES & SPECIAL ELEMENTS
   =========================================== */

/* Info Box (Blue) */
.info-box {
    margin: 28px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.info-box .icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--primary-blue);
    margin-top: 2px;
}

.info-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
}

/* Tip Box (Green) */
.tip-box {
    margin: 28px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tip-box .icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #10b981;
    margin-top: 2px;
}

.tip-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
}

/* Warning Box (Amber) */
.warning-box {
    margin: 28px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.02) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.warning-box .icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #f59e0b;
    margin-top: 2px;
}

.warning-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
}

/* Key Points Box */
.key-points {
    margin: 32px 0;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.key-points h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-purple);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-points h4 svg {
    width: 20px;
    height: 20px;
}

.key-points ul {
    margin: 0;
    padding-left: 0;
}

.key-points li {
    margin-bottom: 10px;
    font-size: 1rem;
    padding-left: 24px;
}

.key-points li:last-child {
    margin-bottom: 0;
}

/* Definition Card */
.definition-card {
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(255, 27, 141, 0.04) 100%);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 12px;
}

.definition-card .term {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.definition-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* ===========================================
   CTA BOX
   =========================================== */

.blog-cta-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 44px;
    text-align: center;
    margin: 52px 0;
}

.blog-cta-box h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.blog-cta-box p {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 24px;
    font-style: normal;
}

.blog-cta-box .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.blog-cta-box .cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}

/* ===========================================
   RELATED POSTS
   =========================================== */

.related-posts {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 24px 52px;
    border-top: 1px solid var(--gray-200);
    padding-top: 44px;
}

.related-posts h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 22px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-post-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.related-post-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15);
    transform: translateY(-4px);
}

.related-post-card .card-thumbnail {
    height: 120px;
    background: linear-gradient(135deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.related-post-card .card-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

.related-post-card .card-thumbnail svg {
    width: 44px;
    height: 44px;
    color: rgba(255, 255, 255, 0.95);
    stroke-width: 1.5;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.related-post-card .card-content {
    padding: 18px 20px;
}

.related-post-card .category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #FF1B8D;
    background: rgba(255, 27, 141, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.related-post-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-post-card .excerpt {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 0;
}

.related-post-card .meta {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===========================================
   FAQ SECTION
   =========================================== */

.faq-section {
    margin: 48px 0;
    background: transparent;
    padding: 0;
}

.faq-section h2 {
    margin-bottom: 24px;
    text-align: center;
    padding-left: 0;
    display: inline-block;
    width: 100%;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%) 1;
    padding-bottom: 12px;
}

.faq-section h2::before {
    display: none;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gray-900);
    transition: background 0.2s;
    user-select: none;
    gap: 16px;
}

.faq-question:hover {
    background: rgba(139, 92, 246, 0.03);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--primary-purple);
}

.faq-item.active .faq-question {
    color: var(--primary-purple);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--gray-600);
    line-height: 1.75;
    font-size: 1rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ===========================================
   AUTHOR BOX
   =========================================== */

.author-box {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 24px 44px;
}

.author-box-inner {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar svg {
    width: 28px;
    height: 28px;
    color: var(--gray-500);
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.author-info p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ===========================================
   SOCIAL SHARE
   =========================================== */

.social-share {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.social-share h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--gray-700);
}

.share-btn:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.share-btn.twitter,
.share-btn.linkedin,
.share-btn.copy {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.share-btn.twitter:hover,
.share-btn.linkedin:hover,
.share-btn.copy:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.share-btn svg {
    width: 14px;
    height: 14px;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    .blog-hero {
        padding: 85px 0 16px;
    }

    .blog-hero h1 {
        font-size: 2.2rem;
    }

    .blog-hero .tagline {
        font-size: 1rem;
    }

    .blog-filter-section {
        padding: 12px 16px;
    }

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

    /* Blog Filter Responsive */
    .blog-category-filters {
        gap: 8px;
    }

    .category-filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .no-results {
        padding: 40px 20px;
    }

    .no-results svg {
        width: 48px;
        height: 48px;
    }

    .blog-post-header {
        padding: 90px 20px 28px;
    }

    .blog-post-header h1 {
        font-size: 2.1rem;
    }

    .blog-post-header .subtitle {
        font-size: 1.1rem;
    }

    .blog-post-meta-line {
        gap: 12px;
    }

    .blog-article {
        padding: 24px 20px 44px;
    }

    .blog-article h2 {
        font-size: 1.8rem;
        margin: 44px 0 18px;
    }

    .blog-article h3 {
        font-size: 1.5rem;
    }

    .blog-article p {
        font-size: 1.15rem;
    }

    .blog-article li {
        font-size: 1.1rem;
    }

    .blog-cta-box {
        padding: 32px 20px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .author-box-inner {
        flex-direction: column;
        text-align: center;
    }

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

    /* FAQ responsive */
    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
        gap: 12px;
    }

    .faq-answer-inner {
        padding: 0 18px 16px;
        font-size: 0.95rem;
    }

    /* Info boxes responsive */
    .info-box,
    .tip-box,
    .warning-box {
        padding: 16px 18px;
        gap: 12px;
    }

    .info-box .icon,
    .tip-box .icon,
    .warning-box .icon {
        width: 20px;
        height: 20px;
    }

    .key-points {
        padding: 20px;
    }

    .key-points h4 {
        font-size: 0.8rem;
    }

    .definition-card {
        padding: 16px 20px;
    }

    .definition-card .term {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-card-title {
        font-size: 1.15rem;
    }

    .blog-post-header h1 {
        font-size: 1.8rem;
    }

    .blog-article p,
    .blog-article li {
        font-size: 1rem;
    }

    .blog-article > p:first-of-type {
        font-size: 1.05rem;
    }
}

/* ===========================================
   SLIDE-IN DEMO CTA (Desktop/Tablet)
   =========================================== */

.demo-slide-cta {
    position: fixed;
    left: 50px;
    top: 50%;
    transform: translateX(-470px) translateY(-50%) !important;
    width: 380px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(139, 92, 246, 0.15);
    z-index: 1000;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s ease,
                visibility 0.4s ease,
                box-shadow 0.3s ease !important;
    will-change: transform, opacity;
}

/* Hide on mobile */
@media (max-width: 767px) {
    .demo-slide-cta {
        display: none !important;
    }
}

.demo-slide-cta.visible {
    transform: translateX(0) translateY(-50%) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.demo-slide-cta:hover {
    box-shadow: 6px 0 32px rgba(139, 92, 246, 0.25), 0 0 0 1px rgba(139, 92, 246, 0.2);
}

/* Mini Demo Preview - looks like actual demo panel */
.demo-slide-cta .demo-preview {
    background: white;
    border: none;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
}

/* Window header with traffic lights */
.demo-slide-cta .demo-preview .window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fafafa;
    border-bottom: 1px solid #e2e8f0;
}

.demo-slide-cta .demo-preview .traffic-lights {
    display: flex;
    gap: 8px;
}

.demo-slide-cta .demo-preview .traffic-lights span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-slide-cta .demo-preview .traffic-lights .red { background: #ff5f57; }
.demo-slide-cta .demo-preview .traffic-lights .yellow { background: #ffbd2e; }
.demo-slide-cta .demo-preview .traffic-lights .green { background: #28c840; }

.demo-slide-cta .demo-preview .demo-badge-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
}

.demo-slide-cta .demo-preview .demo-badge-mini .dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

/* Demo content area */
.demo-slide-cta .demo-preview .demo-body {
    padding: 32px 24px 48px;
    text-align: center;
}

.demo-slide-cta .demo-preview .upload-icon {
    width: 52px;
    height: 52px;
    color: #94a3b8;
    margin: 0 auto 16px;
}

.demo-slide-cta .demo-preview .demo-title-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.demo-slide-cta .demo-preview .demo-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
}

.demo-slide-cta .demo-preview .choose-file-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 44px;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    animation: pulse-button-blog 1.5s ease-in-out infinite !important;
    will-change: transform;
}

@keyframes pulse-button-blog {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 6px 24px rgba(168, 85, 247, 0.55);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
    }
}

.demo-slide-cta .demo-preview .choose-file-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: btn-shimmer 2s infinite;
}

@keyframes btn-shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.demo-slide-cta:hover .demo-preview .choose-file-btn {
    animation: pulse-button-blog 1.5s ease-in-out infinite !important;
}

.demo-slide-cta .demo-preview .or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.demo-slide-cta .demo-preview .or-divider::before,
.demo-slide-cta .demo-preview .or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.demo-slide-cta .demo-preview .try-demo-btn {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #818cf8;
    border: 1.5px solid #818cf8;
    padding: 9px 22px;
    border-radius: 9px;
    background: white;
    transition: all 0.2s ease;
    text-decoration: none;
}

.demo-slide-cta:hover .demo-preview .try-demo-btn {
    background: rgba(129, 140, 248, 0.05);
}

/* Preview State Styles */
.demo-slide-cta .demo-preview .preview-state {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.demo-slide-cta .demo-preview .preview-state img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.demo-slide-cta .demo-preview .analyze-btn {
    margin-bottom: 8px;
}

.demo-slide-cta .demo-preview .change-image-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 6px 12px;
    transition: color 0.2s ease;
}

.demo-slide-cta .demo-preview .change-image-btn:hover {
    color: #8B5CF6;
}

/* Drag over state */
.demo-slide-cta.drag-over {
    box-shadow: 0 0 0 3px #8B5CF6, 6px 0 32px rgba(139, 92, 246, 0.3) !important;
}

.demo-slide-cta.drag-over .demo-body {
    background: rgba(139, 92, 246, 0.05);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Close button - hidden */
.demo-slide-cta .close-btn {
    display: none;
}

/* ===========================================
   FREE AI ANALYSER CTA BOX
   =========================================== */

.blog-ai-analyser {
    max-width: 900px;
    margin: -20px auto 40px;
    padding: 0 24px;
}

.ai-analyser-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: all 0.3s ease;
}

.ai-analyser-container:hover {
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12),
                0 0 0 1px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.ai-analyser-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.ai-analyser-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 27, 141, 0.1) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-analyser-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    background: linear-gradient(135deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-analyser-text p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

.ai-analyser-upload {
    flex-shrink: 0;
    width: 280px;
}

.upload-dropzone {
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.05);
    transform: scale(1.02);
}

.upload-dropzone svg {
    color: var(--primary-purple);
    opacity: 0.7;
}

.dropzone-text {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.dropzone-btn {
    background: linear-gradient(135deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.dropzone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}

/* Upload Preview State */
.upload-preview {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-preview img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-analyze-btn {
    background: linear-gradient(135deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.preview-analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}

.preview-change-btn {
    background: transparent;
    color: var(--gray-500);
    border: none;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}

.preview-change-btn:hover {
    color: var(--primary-purple);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-ai-analyser {
        margin: -10px auto 30px;
        padding: 0 16px;
    }

    .ai-analyser-container {
        flex-direction: column;
        padding: 24px 20px;
        gap: 20px;
    }

    .ai-analyser-content {
        flex-direction: column;
        text-align: center;
    }

    .ai-analyser-upload {
        width: 100%;
    }

    .ai-analyser-text h3 {
        font-size: 1.15rem;
    }

    .ai-analyser-text p {
        font-size: 0.9rem;
    }
}

/* ===========================================
   ACCESSIBILITY & SEO ENHANCEMENTS
   =========================================== */

/* Breadcrumbs - Visually hidden but present for SEO */
.breadcrumbs {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: var(--gray-300);
    margin-left: 0;
}

.breadcrumbs a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-purple);
}

.breadcrumbs li:last-child {
    color: var(--gray-400);
    font-weight: 500;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .blog-card {
        border-width: 2px;
    }

    .category-filter-btn {
        border-width: 2px;
    }

    .blog-article a {
        text-decoration-thickness: 2px;
    }
}

/* Print Styles for SEO (Google can crawl) */
@media print {
    .nav-glass,
    .demo-slide-cta,
    .mobile-menu-btn,
    .share-buttons,
    .blog-cta-box {
        display: none !important;
    }

    .blog-article {
        max-width: 100%;
        padding: 0;
    }

    .blog-post-header {
        padding-top: 20px;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Breadcrumbs Responsive */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 85px 16px 0;
    }

    .breadcrumbs ol {
        font-size: 0.8rem;
        gap: 6px;
    }

    .breadcrumbs li:not(:last-child)::after {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .breadcrumbs ol {
        font-size: 0.75rem;
    }

    /* Hide middle breadcrumb items on very small screens */
    .breadcrumbs li:nth-child(3) {
        display: none;
    }
}

/* ===========================================
   CALLOUT BOXES - Pro Tips, Insights, Examples
   =========================================== */

/* ===========================================
   KEY TAKEAWAYS - Normal Section Style
   =========================================== */

/* Key Takeaways uses normal article h2/ul/li styling - no special box */
.key-takeaways-box {
    margin-top: -20px;
    margin-bottom: 32px;
}

.key-takeaways-box h2 {
    margin-top: 0;
}

/* Short/Long Answer Hook */
.short-answer {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.long-answer {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .short-answer {
        font-size: 1.1rem;
    }

    .long-answer {
        font-size: 1.05rem;
        margin-bottom: 28px;
    }
}

/* ===========================================
   CALLOUT BOXES - Visual Elements
   =========================================== */

.callout-box {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
    border-left: 4px solid;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.callout-box .callout-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.callout-box .callout-icon svg {
    width: 100%;
    height: 100%;
}

.callout-box .callout-content {
    flex: 1;
}

.callout-box .callout-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.callout-box .callout-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Pro Tip - Purple/Pink gradient accent */
.callout-box.pro-tip {
    border-left-color: #8B5CF6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.callout-box.pro-tip .callout-icon {
    color: #8B5CF6;
}

.callout-box.pro-tip .callout-label {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Key Insight - Blue accent */
.callout-box.key-insight {
    border-left-color: #3B82F6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(14, 165, 233, 0.05) 100%);
}

.callout-box.key-insight .callout-icon {
    color: #3B82F6;
}

.callout-box.key-insight .callout-label {
    color: #3B82F6;
}

/* Example - Green accent */
.callout-box.example {
    border-left-color: #10B981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.05) 100%);
}

.callout-box.example .callout-icon {
    color: #10B981;
}

.callout-box.example .callout-label {
    color: #10B981;
}

/* Warning - Orange/Amber accent */
.callout-box.warning {
    border-left-color: #F59E0B;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.05) 100%);
}

.callout-box.warning .callout-icon {
    color: #F59E0B;
}

.callout-box.warning .callout-label {
    color: #F59E0B;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .callout-box {
        padding: 16px 18px;
        gap: 12px;
        margin: 20px 0;
    }

    .callout-box .callout-icon {
        width: 20px;
        height: 20px;
    }

    .callout-box .callout-label {
        font-size: 0.8rem;
    }

    .callout-box .callout-content p {
        font-size: 0.9rem;
    }
}

/* ===========================================
   BLOG POST HERO - Compact Image + Title Layout
   =========================================== */

.blog-post-hero {
    display: flex;
    gap: 52px;
    align-items: center;
    max-width: 1200px;
    margin: 100px auto 56px;
    margin-left: calc(50% - 540px);
    padding: 44px;
    background: var(--glass-bg);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.blog-hero-image {
    flex-shrink: 0;
    width: 420px;
    height: 310px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.blog-hero-image picture {
    width: 100%;
    height: 100%;
    display: block;
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-content {
    flex: 1;
    min-width: 0;
}

.blog-hero-content .blog-post-meta-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.blog-hero-content .category-badge {
    padding: 7px 16px;
    background: linear-gradient(135deg, #FF1B8D 0%, #8B5CF6 50%, #3B82F6 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.blog-hero-content .meta-divider {
    color: var(--gray-500);
    font-weight: 300;
    font-size: 1rem;
}

.blog-hero-content .meta-item {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.blog-hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.blog-hero-content .subtitle {
    color: var(--gray-600);
    font-size: 1.25rem;
    line-height: 1.55;
    margin: 0;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .blog-post-hero {
        flex-direction: column;
        gap: 24px;
        padding: 20px;
        text-align: center;
        margin-top: 90px;
    }

    .blog-hero-image {
        width: 100%;
        max-width: 400px;
        height: 220px;
    }

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

    .blog-hero-content h1 {
        font-size: 1.9rem;
    }
}
