@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #0070C0;
    --primary-hover: #005999;
    --text-primary: #000000;
    --text-secondary: #475569;
    --text-light: #525252;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-grey: #E5E5E5;
    --border-color: #E5E5E5;
    --font-primary: 'Roboto', sans-serif;
}

/* ===== BLOG HERO BANNER ===== */
.blog-hero-wrapper {
    width: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4fc 100%);
}

.blog-hero-banner {
    display: grid;
    grid-template-columns: 1fr 500px;
    min-height: 420px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-hero-content {
    padding: 2.5rem 2rem 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-hero-content .breadcrumb-nav {
    margin-bottom: 1.25rem;
}

.blog-hero-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-hero-label {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 20px;
    color: #0070C0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.blog-hero-title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 600;
    line-height: 45px;
    color: #000000;
    margin: 0 0 1rem 0;
}

.blog-hero-description {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    margin: 0 0 1.5rem 0;
    max-width: 480px;
}

.blog-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.blog-hero-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 192, 0.35);
    color: white;
    text-decoration: none;
}

.blog-hero-image {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.blog-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Hero Banner Responsive */
@media (max-width: 1200px) {
    .blog-hero-banner {
        max-width: 100%;
        grid-template-columns: 1fr 450px;
    }
    
    .blog-hero-content {
        padding: 2rem 1.5rem 2rem 0;
    }
    
    .blog-hero-title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .blog-hero-label {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .blog-hero-banner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 0;
    }
    
    .blog-hero-content {
        padding: 2rem;
        order: 2;
        max-width: 100%;
    }
    
    .blog-hero-image {
        order: 1;
        min-height: 280px;
    }
    
    .blog-hero-title {
        font-size: 28px;
    }
    
    }

@media (max-width: 768px) {
    .blog-hero-content {
        padding: 1.5rem;
    }
    
    .blog-hero-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .blog-hero-label {
        font-size: 16px;
        line-height: 18px;
    }
    
    .blog-hero-description {
        font-size: 15px;
        line-height: 22px;
    }
    
    .blog-hero-image {
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .blog-hero-label {
        font-size: 14px;
        line-height: 16px;
    }
    
    .blog-hero-description {
        font-size: 14px;
        line-height: 20px;
    }
    
    .blog-hero-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ===== BLOG POST CONTAINER ===== */
.blog-post-container {
    padding: 2rem 0 4rem;
    background-color: var(--bg-primary);
    min-height: calc(100vh - 160px);
}

/* Blog post with hero - adjust padding */
.blog-post-container.has-hero {
    padding-top: 2rem;
}

.blog-post-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 14px;
    font-family: var(--font-primary);
}

.breadcrumb-item {
    color: var(--text-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 0.5rem;
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

/* ===== BLOG TAGS ===== */
.blog-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-primary);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-leadership {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.tag-read-time {
    background-color: var(--bg-grey);
    color: var(--text-primary);
    border: none;
}

/* ===== BLOG TITLE ===== */
.blog-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    max-width: 900px;
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 28px;
    }
}

/* ===== BLOG DESCRIPTION ===== */
.blog-description {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 800px;
}

@media (max-width: 768px) {
    .blog-description {
        font-size: 16px;
    }
}

/* ===== BLOG META (AUTHOR & SHARE) ===== */
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* ===== AUTHOR INFO ===== */
.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar img,
.author-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fix blurry SVGs on iOS devices - crisp rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.publish-date {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.4;
}

/* ===== SOCIAL SHARE ===== */
.social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-share:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.3);
}

.btn-share i {
    font-size: 14px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
}

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

/* ===== BLOG DIVIDER ===== */
.blog-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
    width: 100%;
}

/* ===== LISTEN TO BLOG SECTION ===== */
.listen-section {
    margin: 2rem 0 3rem;
    max-width: 800px;
}

.listen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.listen-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.ai-narrated-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background-color: #E6F3FF;
    color: var(--primary-color);
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-narrated-tag i {
    font-size: 12px;
    color: var(--text-primary);
}

/* ===== AUDIO PLAYER ===== */
.audio-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #F5F5F5;
    border-radius: 5rem;
    width: 100%;
}

.audio-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: var(--text-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.audio-play-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

.audio-play-btn i {
    font-size: 12px;
    margin-left: 2px; /* Slight offset for play icon */
}

.audio-play-btn.playing i.fa-play::before {
    content: "\f04c"; /* Pause icon */
}

.audio-time {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    white-space: nowrap;
    min-width: 70px;
}

.audio-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.audio-progress-bar {
    width: 100%;
    height: 3px;
    background-color: #D9D9D9;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.audio-progress {
    height: 100%;
    background-color: var(--text-light);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-control-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    flex-shrink: 0;
}

.audio-control-btn:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.05);
}

.audio-control-btn i {
    font-size: 14px;
}

.audio-speed-btn {
    min-width: 40px;
}

.audio-speed-text {
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-primary);
    color: var(--text-light);
    transition: color 0.3s ease;
}

.audio-speed-btn:hover .audio-speed-text {
    color: var(--text-primary);
}

/* ===== THREE COLUMN LAYOUT ===== */
.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: start;
    position: relative;
}

@media (max-width: 1200px) {
    .blog-layout {
        grid-template-columns: 240px 1fr 240px;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .toc-sidebar,
    .cta-sidebar {
        order: 3;
    }
    
    .blog-content-main {
        order: 1;
    }
}

/* ===== LEFT SIDEBAR - TABLE OF CONTENTS ===== */
.toc-sidebar {
    position: sticky;
    top: 80px;
    margin-left: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2rem;
    align-self: start;
    height: fit-content;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    background-color: var(--bg-primary);
    z-index: 10;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
    margin-top: 0;
}

.toc-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.toc-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.toc-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toc-nav {
    margin-bottom: 2rem;
    flex: 1;
    overflow-y: auto;
}

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

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 6px;
    transition: all 0.3s ease;
    gap: 0.75rem;
}

.toc-link span {
    flex: 1;
}

.toc-link i {
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toc-item.active .toc-link {
    background-color: #E6F3FF;
    color: var(--primary-color);
    font-weight: 500;
}

.toc-item.active .toc-link i {
    opacity: 1;
    color: var(--primary-color);
}

.toc-link:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.toc-link:hover i {
    opacity: 1;
}

.toc-social {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.toc-social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
}

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

/* ===== MAIN CONTENT AREA ===== */
.blog-content-main {
    max-width: 100%;
}

.blog-content {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    width: 616px;
    max-width: 100%;
    margin: 0 auto;
}

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

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

.blog-content li {
    font-size: 16px;
    line-height: 23px;
    letter-spacing: 0%;
    color: #525252;
    margin-bottom: 0.75rem;
}

.blog-intro {
    font-size: 16px;
    line-height: 23px;
    letter-spacing: 0%;
    margin-bottom: 2rem;
    color: #525252;
}

.highlight-quote {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-section-title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 51px;
    letter-spacing: 0;
}

.blog-section-title:first-of-type {
    margin-top: 0;
}

.blog-subsection-heading {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-subsection-heading:first-of-type {
    margin-top: 1.5rem;
}

/* ===== BLOG CHART ===== */
.blog-chart-container {
    margin: 2rem 0;
}

.blog-chart-image {
    width: 377px;
    height: 285px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
    border-radius: 8px;
    /* Fix blurry SVGs on iOS devices - crisp rendering without transforms */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure integer pixel values */
    transform: translate3d(0, 0, 0);
    /* Prevent subpixel rendering */
    -webkit-transform: translate3d(0, 0, 0);
}

.blog-chart-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.blog-chart-source {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
    font-style: italic;
}

.blog-real-impact {
    margin-top: 2rem;
}

/* ===== BLOG IMAGES GRID ===== */
.blog-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    align-items: start;
    justify-items: center;
}

.blog-image-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.blog-image-item .blog-chart-image {
    width: 100%;
    height: 160px;
    max-width: 220px;
    object-fit: contain;
    /* Fix blurry SVGs on iOS devices - crisp rendering without transforms */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure integer pixel values */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

/* Move middle image up to align with others */
.blog-image-item:nth-child(2) {
    align-items: flex-start;
    margin-top: -20px;
}

.blog-image-item:nth-child(2) .blog-chart-image {
    margin-top: -10px;
}

/* Responsive styles for images grid */
@media (max-width: 1200px) {
    .blog-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        align-items: start;
    }
    
    .blog-image-item {
        align-items: flex-start;
        justify-content: center;
    }
    
    .blog-image-item .blog-chart-image {
        height: 180px;
        max-width: 100%;
    }
    
    /* Reset middle image adjustments on responsive */
    .blog-image-item:nth-child(2) {
        margin-top: 0;
        padding-top: 0;
    }
    
    .blog-image-item:nth-child(2) .blog-chart-image {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .blog-images-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: start;
    }
    
    .blog-image-item {
        align-items: flex-start;
        justify-content: center;
    }
    
    .blog-image-item .blog-chart-image {
        height: 200px;
        max-width: 100%;
    }
    
    /* Reset middle image adjustments on mobile */
    .blog-image-item:nth-child(2) {
        margin-top: 0;
        padding-top: 0;
    }
    
    .blog-image-item:nth-child(2) .blog-chart-image {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .blog-image-item .blog-chart-image {
        height: 160px;
    }
    
    /* Reset middle image adjustments on small mobile */
    .blog-image-item:nth-child(2) {
        margin-top: 0;
        padding-top: 0;
    }
    
    .blog-image-item:nth-child(2) .blog-chart-image {
        margin-top: 0;
    }
}

/* ===== BLOG COLLABORATION ITEMS ===== */
.blog-collaboration-item {
    margin: 2.5rem 0;
    padding-left: 0;
    border-left: none;
    display: grid;
    grid-template-columns: 322px 1fr;
    gap: 2rem;
    align-items: center;
}

.blog-collaboration-visual {
    text-align: left;
    position: relative;
    display: inline-block;
}

.blog-collaboration-image {
    width: 322px;
    height: 207px;
    object-fit: contain;
    display: block;
    /* Fix blurry SVGs on iOS devices - crisp rendering without transforms */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure integer pixel values */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

/* Clickable right section overlay for collaboration images */
.blog-collaboration-clickable-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
    background: transparent;
    text-decoration: none;
}

.blog-collaboration-item p {
    max-width: 254px;
    text-align: left;
    margin: 0;
}

/* ===== BLOG CTA LINK ===== */
.blog-cta-link {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.blog-cta-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.blog-cta-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.blog-cta-link:hover i {
    transform: translateX(4px);
}

/* ===== LATEST BLOGS SECTION ===== */
.latest-blogs-section {
    background-color: #E6E6E6;
    padding: 4rem 0;
    margin-top: 4rem;
}

.latest-blogs-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.latest-blogs-title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.blog-card-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: var(--bg-grey);
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    /* Fix blurry SVGs on iOS devices - crisp rendering without transforms */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure integer pixel values */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

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

.blog-card-tag {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0 0 1.25rem 0;
    flex: 1;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.blog-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card-avatar img,
.blog-card-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fix blurry SVGs on iOS devices - crisp rendering without transforms */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.blog-card-author-info {
    flex: 1;
}

.blog-card-author-name {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.blog-card-date {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .latest-blogs-section {
        padding: 3rem 0;
    }

    .latest-blogs-title {
        font-size: 28px;
        margin-bottom: 2rem;
    }

    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ===== RIGHT SIDEBAR - CTA BOXES ===== */
.cta-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: start;
    height: fit-content;
}

.cta-box {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.cta-text {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.cta-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.3);
}

/* Newsletter email section in CTA box */
.newsletter-email-section {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

.newsletter-email-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.2s ease;
}

.newsletter-email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

.newsletter-email-input::placeholder {
    color: var(--text-light);
}

.btn-submit-newsletter {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit-newsletter:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 112, 192, 0.2);
}

.btn-submit-newsletter:active {
    transform: translateY(0);
}

.btn-submit-newsletter:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success message for newsletter subscription */
.newsletter-email-success {
    text-align: center;
    padding: 1.5rem 1rem;
    animation: slideDown 0.3s ease;
}

.newsletter-email-success i {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 1rem;
    display: block;
}

.newsletter-email-success p {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .toc-sidebar,
    .cta-sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }
    
    .toc-sidebar {
        order: 3;
    }
    
    .cta-sidebar {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .cta-box {
        min-width: 280px;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .blog-post-container .container {
        padding: 0 1.5rem;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-share {
        width: 100%;
        justify-content: space-between;
    }

    .author-info {
        width: 100%;
    }
    
    .blog-layout {
        gap: 1.5rem;
    }
    
    .cta-sidebar {
        flex-direction: column;
    }
    
    .cta-box {
        min-width: 100%;
    }
    
    .toc-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toc-author-img {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .blog-post-container {
        padding: 1.5rem 0 3rem;
    }

    .blog-post-container .container {
        padding: 0 1rem;
    }

    .blog-title {
        margin-bottom: 1rem;
    }

    .blog-description {
        margin-bottom: 2rem;
    }

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

    .audio-player {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .audio-play-btn {
        width: 36px;
        height: 36px;
    }

    .audio-time {
        font-size: 12px;
        min-width: 70px;
    }

    .audio-control-btn {
        width: 28px;
        height: 28px;
    }

    .listen-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Collaboration items responsive */
    .blog-collaboration-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .blog-collaboration-visual {
        margin-bottom: 1rem;
    }

    .blog-collaboration-image {
        width: 100%;
        max-width: 322px;
        height: auto;
    }

    .blog-collaboration-item p {
        max-width: 100%;
        text-align: center;
    }

    /* Chart images responsive */
    .blog-chart-image {
        width: 100%;
        max-width: 377px;
        height: auto;
    }

    /* Images grid responsive - already handled above */

    /* Section titles responsive */
    .blog-section-title {
        font-size: 28px;
        line-height: 38px;
    }

    .blog-subsection-heading {
        font-size: 16px;
    }

    /* TOC sidebar mobile */
    .toc-sidebar {
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
        padding-top: 1.5rem;
    }
}

/* Additional responsive breakpoints */
@media (max-width: 1200px) {
    .blog-layout {
        grid-template-columns: 240px 1fr 240px;
        gap: 1.5rem;
    }

    .blog-content {
        width: 100%;
        max-width: 616px;
    }
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toc-sidebar {
        order: 3;
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
        padding-top: 1.5rem;
    }

    .blog-content-main {
        order: 1;
    }

    .cta-sidebar {
        order: 2;
    }

    .blog-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .blog-collaboration-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .blog-collaboration-image {
        width: 100%;
        max-width: 322px;
        height: auto;
    }

    .blog-collaboration-item p {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .blog-layout {
        gap: 1.5rem;
    }

    .latest-blogs-section .container {
        padding: 0 1.5rem;
    }

    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .blog-chart-image {
        width: 100%;
        max-width: 377px;
        height: auto;
    }

    /* Images grid responsive - already handled above */
}

/* ===== SHARE MODAL ===== */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.share-modal-content {
    position: relative;
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #E5E5E5;
}

.share-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.share-modal-title i {
    font-size: 18px;
    color: var(--text-primary);
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.share-modal-close:hover {
    background-color: #f5f5f5;
    color: var(--text-primary);
}

.share-modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.share-section {
    margin-bottom: 1.5rem;
}

.share-section:last-child {
    margin-bottom: 0;
}

.share-section-title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.share-section-description {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.share-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.share-action-btn:hover {
    background-color: #f8f9fa;
    color: var(--text-primary);
}

.share-action-btn i {
    font-size: 16px;
    color: var(--text-primary);
}

.share-action-btn:hover i {
    color: var(--text-primary);
}

.copy-link-btn {
    margin-top: 0.5rem;
}

.more-options-btn {
    margin-bottom: 0.5rem;
}

.share-divider {
    height: 1px;
    background-color: #E5E5E5;
    margin: 1.5rem 0;
}

.share-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #E5E5E5;
}

.btn-subscribe {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-subscribe:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.3);
}

.btn-login {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    text-align: center;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none !important;
}

/* Responsive styles for share modal */
@media (max-width: 576px) {
    .share-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .share-modal-header {
        padding: 1.25rem 1.25rem 0.875rem;
    }

    .share-modal-body {
        padding: 1.25rem;
    }

    .share-modal-footer {
        padding: 0.875rem 1.25rem 1.25rem;
        flex-direction: column;
    }

    .btn-subscribe,
    .btn-login {
        width: 100%;
    }
    
    .share-email-form {
        flex-direction: column;
    }
    
    .btn-submit-email {
        width: 100%;
    }
}

/* Email subscription section */
.share-modal-email-section {
    padding: 1.5rem;
    border-top: 1px solid #E5E5E5;
    animation: slideDown 0.3s ease;
}

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

.share-email-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.share-email-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.2s ease;
}

.share-email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

.share-email-input::placeholder {
    color: var(--text-light);
}

.btn-submit-email {
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-submit-email:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 112, 192, 0.2);
}

.btn-submit-email:active {
    transform: translateY(0);
}

.btn-submit-email:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success message for email subscription */
.share-email-success {
    text-align: center;
    padding: 1.5rem 1rem;
    animation: slideDown 0.3s ease;
}

.share-email-success i {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 1rem;
    display: block;
}

.share-email-success p {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

/* ===== FIX BLURRY SVGs ON iOS DEVICES ===== */
/* This fixes the common issue where SVGs appear blurry on iPhone/iPad Safari */
img[src$=".svg"],
img[src*=".svg"],
.blog-content img[src$=".svg"],
.blog-content img[src*=".svg"] {
    /* Optimize image rendering for SVGs - no transforms that cause blur */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Prevent subpixel rendering issues */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure integer pixel positioning */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    /* Prevent rasterization */
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}

/* Additional iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    img[src$=".svg"],
    img[src*=".svg"] {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        /* Use translate3d instead of translateZ to avoid blur */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        /* Ensure no fractional pixels */
        -webkit-font-smoothing: antialiased;
    }
}

/* ===== BLOG LIST MENU ===== */
.blog-list-container {
    max-width: 900px;
    margin: 0 auto;
}

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

.blog-list-item {
    margin-bottom: 1rem;
}

.blog-list-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    gap: 1rem;
}

.blog-list-link:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.1);
}

.blog-list-number {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
    min-width: 2rem;
}

.blog-list-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    flex: 1;
}

.blog-list-link i {
    font-size: 16px;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.blog-list-link:hover i {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .blog-list-link {
        padding: 1.25rem;
    }
    
    .blog-list-title {
        font-size: 16px;
    }
}

/* ===== IMAGE ZOOM / MAGNIFIER ===== */
/* Direct zoom on click - in-place zoom with directional zoom and panning */
.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.3s ease !important;
    transform-origin: center center;
    position: relative;
    z-index: 1;
    user-select: none;
    -webkit-user-drag: none;
    display: block;
    margin: 0 auto;
    will-change: transform;
    /* Override any translate3d transforms from other rules - only when not zoomed */
}

.zoomable-image:not(.zoomed) {
    transform: scale(1) !important;
}

.zoomable-image:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Zoomed state - transform is controlled by JavaScript for directional zoom and panning */
.zoomable-image.zoomed {
    cursor: grab;
    z-index: 9999 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    /* Transform is applied via JavaScript with translate() and scale() */
    transition: transform 0.3s ease !important;
}

/* When actively dragging, show grabbing cursor and disable transition */
.zoomable-image.zoomed.dragging {
    cursor: grabbing !important;
    transition: none !important;
    user-select: none;
}

/* When panning (mouse move), disable transition for smooth movement */
.zoomable-image.zoomed.panning:not(.dragging) {
    transition: transform 0.1s ease-out !important;
}

/* Ensure parent containers use overflow: hidden to contain zoomed images */
.blog-content {
    overflow: visible;
}

.blog-chart-container {
    overflow: hidden;
    position: relative;
}

.blog-image-item {
    overflow: hidden;
    position: relative;
}

.blog-collaboration-item {
    overflow: hidden;
    position: relative;
}

/* Prevent link navigation when clicking zoomable images */
a .zoomable-image,
a > .zoomable-image {
    pointer-events: auto;
}

/* Override translate3d transforms for zoomable images - only when not zoomed */
.blog-chart-image.zoomable-image:not(.zoomed),
.blog-image-item .blog-chart-image.zoomable-image:not(.zoomed),
.blog-collaboration-image.zoomable-image:not(.zoomed),
.blog-content img.zoomable-image:not(.zoomed) {
    transform: scale(1) !important;
}

/* Transform is controlled by JavaScript for zoomed images (allows translate + scale) */
/* No CSS transform rule here - JavaScript sets it via inline style */

/* ===== PERSONAS LAYOUT IN BLOG ===== */
.blog-custom-html {
    margin: 2rem 0;
    overflow: hidden;
}

.blog-custom-html .personas-layout {
    width: 100%;
    max-width: 600px;
    height: auto;
    min-height: 250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    gap: 0.75rem;
    padding: 1rem 0;
}

.blog-custom-html .personas-left-column,
.blog-custom-html .personas-right-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.blog-custom-html .personas-left-column a,
.blog-custom-html .personas-right-column a {
    width: 150px;
    height: 65px;
    background-size: cover;
    background-position: center;
    display: block;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.blog-custom-html .personas-center-image {
    width: 220px;
    height: 160px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #005DE9;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .blog-custom-html .personas-layout {
        max-width: 550px;
        gap: 0.5rem;
    }
    
    .blog-custom-html .personas-left-column a,
    .blog-custom-html .personas-right-column a {
        width: 140px;
        height: 60px;
    }
    
    .blog-custom-html .personas-center-image {
        width: 200px;
        height: 145px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .blog-custom-html .personas-layout {
        flex-direction: column;
        max-width: 100%;
        min-height: auto;
        gap: 0.75rem;
    }
    
    .blog-custom-html .personas-left-column,
    .blog-custom-html .personas-right-column {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .blog-custom-html .personas-left-column a,
    .blog-custom-html .personas-right-column a {
        width: 30%;
        max-width: 130px;
        height: 55px;
    }
    
    .blog-custom-html .personas-center-image {
        width: 100%;
        max-width: 250px;
        height: 130px;
        font-size: 15px;
        order: -1;
    }
}

@media (max-width: 480px) {
    .blog-custom-html .personas-layout {
        gap: 0.5rem;
    }
    
    .blog-custom-html .personas-left-column a,
    .blog-custom-html .personas-right-column a {
        width: 28%;
        max-width: 100px;
        height: 45px;
    }
    
    .blog-custom-html .personas-center-image {
        max-width: 200px;
        height: 110px;
        font-size: 13px;
    }
}


/* ===================================================================
   NEW STYLES FOR CITATIONS AND REFERENCES
   Added: February 2026
   Purpose: Support factual citations and References section
   =================================================================== */

/* Citation Links (superscript numbered) */
.citation-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.citation-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

sup .citation-link {
    font-size: 0.8em;
}

/* References & Further Reading Section */
.blog-references {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 2px solid #dee2e6;
}

.blog-references .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.references-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.references-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.references-list {
    list-style: decimal;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.references-list li {
    padding: 0.75rem 0;
    font-size: 16px;
    line-height: 23px;
    color: #525252;
    scroll-margin-top: 100px; /* For smooth scroll to anchors */
    margin-bottom: 1rem;
}

.citation-context {
    display: block;
    font-size: 0.9em;
    color: #525252;
    font-style: italic;
    margin-top: 0.5rem;
}

.references-list a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
}

.references-list a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.references-list em {
    font-style: italic;
}

.methodology-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6c757d;
    padding: 1.5rem;
    background-color: #ffffff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.methodology-description a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.methodology-description a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-references {
        padding: 2rem 0;
        margin-top: 3rem;
    }

    .blog-references .container {
        padding: 0 1rem;
    }

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

    .references-subtitle {
        font-size: 1.1rem;
    }

    .methodology-description {
        padding: 1rem;
        font-size: 0.9rem;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #0070C0;
    --primary-hover: #005999;
    --text-primary: #000000;
    --text-secondary: #475569;
    --text-light: #525252;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-grey: #E5E5E5;
    --border-color: #E5E5E5;
    --font-primary: 'Roboto', sans-serif;
}

/* ===== BLOG HERO BANNER ===== */
.blog-hero-wrapper {
    width: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4fc 100%);
}

.blog-hero-banner {
    display: grid;
    grid-template-columns: 1fr 500px;
    min-height: 420px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-hero-content {
    padding: 2.5rem 2rem 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-hero-content .breadcrumb-nav {
    margin-bottom: 1.25rem;
}

.blog-hero-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-hero-label {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 20px;
    color: #0070C0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.blog-hero-title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 600;
    line-height: 45px;
    color: #000000;
    margin: 0 0 1rem 0;
}

.blog-hero-description {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    margin: 0 0 1.5rem 0;
    max-width: 480px;
}

.blog-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.blog-hero-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 192, 0.35);
    color: white;
    text-decoration: none;
}

.blog-hero-image {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.blog-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Hero Banner Responsive */
@media (max-width: 1200px) {
    .blog-hero-banner {
        max-width: 100%;
        grid-template-columns: 1fr 450px;
    }
    
    .blog-hero-content {
        padding: 2rem 1.5rem 2rem 0;
    }
    
    .blog-hero-title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .blog-hero-label {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .blog-hero-banner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 0;
    }
    
    .blog-hero-content {
        padding: 2rem;
        order: 2;
        max-width: 100%;
    }
    
    .blog-hero-image {
        order: 1;
        min-height: 280px;
    }
    
    .blog-hero-title {
        font-size: 28px;
    }
    
    }

@media (max-width: 768px) {
    .blog-hero-content {
        padding: 1.5rem;
    }
    
    .blog-hero-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .blog-hero-label {
        font-size: 16px;
        line-height: 18px;
    }
    
    .blog-hero-description {
        font-size: 15px;
        line-height: 22px;
    }
    
    .blog-hero-image {
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .blog-hero-label {
        font-size: 14px;
        line-height: 16px;
    }
    
    .blog-hero-description {
        font-size: 14px;
        line-height: 20px;
    }
    
    .blog-hero-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ===== BLOG POST CONTAINER ===== */
.blog-post-container {
    padding: 2rem 0 4rem;
    background-color: var(--bg-primary);
    min-height: calc(100vh - 160px);
}

/* Blog post with hero - adjust padding */
.blog-post-container.has-hero {
    padding-top: 2rem;
}

.blog-post-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 14px;
    font-family: var(--font-primary);
}

.breadcrumb-item {
    color: var(--text-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 0.5rem;
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

/* ===== BLOG TAGS ===== */
.blog-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-primary);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-leadership {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.tag-read-time {
    background-color: var(--bg-grey);
    color: var(--text-primary);
    border: none;
}

/* ===== BLOG TITLE ===== */
.blog-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    max-width: 900px;
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 28px;
    }
}

/* ===== BLOG DESCRIPTION ===== */
.blog-description {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 800px;
}

@media (max-width: 768px) {
    .blog-description {
        font-size: 16px;
    }
}

/* ===== BLOG META (AUTHOR & SHARE) ===== */
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* ===== AUTHOR INFO ===== */
.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar img,
.author-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fix blurry SVGs on iOS devices - crisp rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.publish-date {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.4;
}

/* ===== SOCIAL SHARE ===== */
.social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-share:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.3);
}

.btn-share i {
    font-size: 14px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
}

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

/* ===== BLOG DIVIDER ===== */
.blog-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
    width: 100%;
}

/* ===== LISTEN TO BLOG SECTION ===== */
.listen-section {
    margin: 2rem 0 3rem;
    max-width: 800px;
}

.listen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.listen-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.ai-narrated-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background-color: #E6F3FF;
    color: var(--primary-color);
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-narrated-tag i {
    font-size: 12px;
    color: var(--text-primary);
}

/* ===== AUDIO PLAYER ===== */
.audio-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #F5F5F5;
    border-radius: 5rem;
    width: 100%;
}

.audio-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: var(--text-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.audio-play-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

.audio-play-btn i {
    font-size: 12px;
    margin-left: 2px; /* Slight offset for play icon */
}

.audio-play-btn.playing i.fa-play::before {
    content: "\f04c"; /* Pause icon */
}

.audio-time {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    white-space: nowrap;
    min-width: 70px;
}

.audio-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.audio-progress-bar {
    width: 100%;
    height: 3px;
    background-color: #D9D9D9;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.audio-progress {
    height: 100%;
    background-color: var(--text-light);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-control-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    flex-shrink: 0;
}

.audio-control-btn:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.05);
}

.audio-control-btn i {
    font-size: 14px;
}

.audio-speed-btn {
    min-width: 40px;
}

.audio-speed-text {
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-primary);
    color: var(--text-light);
    transition: color 0.3s ease;
}

.audio-speed-btn:hover .audio-speed-text {
    color: var(--text-primary);
}

/* ===== THREE COLUMN LAYOUT ===== */
.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: start;
    position: relative;
}

@media (max-width: 1200px) {
    .blog-layout {
        grid-template-columns: 240px 1fr 240px;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .toc-sidebar,
    .cta-sidebar {
        order: 3;
    }
    
    .blog-content-main {
        order: 1;
    }
}

/* ===== LEFT SIDEBAR - TABLE OF CONTENTS ===== */
.toc-sidebar {
    position: sticky;
    top: 80px;
    margin-left: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2rem;
    align-self: start;
    height: fit-content;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    background-color: var(--bg-primary);
    z-index: 10;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
    margin-top: 0;
}

.toc-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.toc-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.toc-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toc-nav {
    margin-bottom: 2rem;
    flex: 1;
    overflow-y: auto;
}

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

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 6px;
    transition: all 0.3s ease;
    gap: 0.75rem;
}

.toc-link span {
    flex: 1;
}

.toc-link i {
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toc-item.active .toc-link {
    background-color: #E6F3FF;
    color: var(--primary-color);
    font-weight: 500;
}

.toc-item.active .toc-link i {
    opacity: 1;
    color: var(--primary-color);
}

.toc-link:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.toc-link:hover i {
    opacity: 1;
}

.toc-social {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.toc-social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
}

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

/* ===== MAIN CONTENT AREA ===== */
.blog-content-main {
    max-width: 100%;
}

.blog-content {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    width: 616px;
    max-width: 100%;
    margin: 0 auto;
}

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

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

.blog-content li {
    font-size: 16px;
    line-height: 23px;
    letter-spacing: 0%;
    color: #525252;
    margin-bottom: 0.75rem;
}

.blog-intro {
    font-size: 16px;
    line-height: 23px;
    letter-spacing: 0%;
    margin-bottom: 2rem;
    color: #525252;
}

.highlight-quote {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-section-title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 51px;
    letter-spacing: 0;
}

.blog-section-title:first-of-type {
    margin-top: 0;
}

.blog-subsection-heading {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-subsection-heading:first-of-type {
    margin-top: 1.5rem;
}

/* ===== BLOG CHART ===== */
.blog-chart-container {
    margin: 2rem 0;
}

.blog-chart-image {
    width: 377px;
    height: 285px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
    border-radius: 8px;
    /* Fix blurry SVGs on iOS devices - crisp rendering without transforms */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure integer pixel values */
    transform: translate3d(0, 0, 0);
    /* Prevent subpixel rendering */
    -webkit-transform: translate3d(0, 0, 0);
}

.blog-chart-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.blog-chart-source {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
    font-style: italic;
}

.blog-real-impact {
    margin-top: 2rem;
}

/* ===== BLOG IMAGES GRID ===== */
.blog-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    align-items: start;
    justify-items: center;
}

.blog-image-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.blog-image-item .blog-chart-image {
    width: 100%;
    height: 160px;
    max-width: 220px;
    object-fit: contain;
    /* Fix blurry SVGs on iOS devices - crisp rendering without transforms */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure integer pixel values */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

/* Move middle image up to align with others */
.blog-image-item:nth-child(2) {
    align-items: flex-start;
    margin-top: -20px;
}

.blog-image-item:nth-child(2) .blog-chart-image {
    margin-top: -10px;
}

/* Responsive styles for images grid */
@media (max-width: 1200px) {
    .blog-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        align-items: start;
    }
    
    .blog-image-item {
        align-items: flex-start;
        justify-content: center;
    }
    
    .blog-image-item .blog-chart-image {
        height: 180px;
        max-width: 100%;
    }
    
    /* Reset middle image adjustments on responsive */
    .blog-image-item:nth-child(2) {
        margin-top: 0;
        padding-top: 0;
    }
    
    .blog-image-item:nth-child(2) .blog-chart-image {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .blog-images-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: start;
    }
    
    .blog-image-item {
        align-items: flex-start;
        justify-content: center;
    }
    
    .blog-image-item .blog-chart-image {
        height: 200px;
        max-width: 100%;
    }
    
    /* Reset middle image adjustments on mobile */
    .blog-image-item:nth-child(2) {
        margin-top: 0;
        padding-top: 0;
    }
    
    .blog-image-item:nth-child(2) .blog-chart-image {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .blog-image-item .blog-chart-image {
        height: 160px;
    }
    
    /* Reset middle image adjustments on small mobile */
    .blog-image-item:nth-child(2) {
        margin-top: 0;
        padding-top: 0;
    }
    
    .blog-image-item:nth-child(2) .blog-chart-image {
        margin-top: 0;
    }
}

/* ===== BLOG COLLABORATION ITEMS ===== */
.blog-collaboration-item {
    margin: 2.5rem 0;
    padding-left: 0;
    border-left: none;
    display: grid;
    grid-template-columns: 322px 1fr;
    gap: 2rem;
    align-items: center;
}

.blog-collaboration-visual {
    text-align: left;
    position: relative;
    display: inline-block;
}

.blog-collaboration-image {
    width: 322px;
    height: 207px;
    object-fit: contain;
    display: block;
    /* Fix blurry SVGs on iOS devices - crisp rendering without transforms */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure integer pixel values */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

/* Clickable right section overlay for collaboration images */
.blog-collaboration-clickable-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
    background: transparent;
    text-decoration: none;
}

.blog-collaboration-item p {
    max-width: 254px;
    text-align: left;
    margin: 0;
}

/* ===== BLOG CTA LINK ===== */
.blog-cta-link {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.blog-cta-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.blog-cta-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.blog-cta-link:hover i {
    transform: translateX(4px);
}

/* ===== LATEST BLOGS SECTION ===== */
.latest-blogs-section {
    background-color: #E6E6E6;
    padding: 4rem 0;
    margin-top: 4rem;
}

.latest-blogs-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.latest-blogs-title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.blog-card-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: var(--bg-grey);
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    /* Fix blurry SVGs on iOS devices - crisp rendering without transforms */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure integer pixel values */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

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

.blog-card-tag {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0 0 1.25rem 0;
    flex: 1;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.blog-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card-avatar img,
.blog-card-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fix blurry SVGs on iOS devices - crisp rendering without transforms */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.blog-card-author-info {
    flex: 1;
}

.blog-card-author-name {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.blog-card-date {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .latest-blogs-section {
        padding: 3rem 0;
    }

    .latest-blogs-title {
        font-size: 28px;
        margin-bottom: 2rem;
    }

    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ===== RIGHT SIDEBAR - CTA BOXES ===== */
.cta-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: start;
    height: fit-content;
}

.cta-box {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.cta-text {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.cta-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.3);
}

/* Newsletter email section in CTA box */
.newsletter-email-section {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

.newsletter-email-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.2s ease;
}

.newsletter-email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

.newsletter-email-input::placeholder {
    color: var(--text-light);
}

.btn-submit-newsletter {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit-newsletter:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 112, 192, 0.2);
}

.btn-submit-newsletter:active {
    transform: translateY(0);
}

.btn-submit-newsletter:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success message for newsletter subscription */
.newsletter-email-success {
    text-align: center;
    padding: 1.5rem 1rem;
    animation: slideDown 0.3s ease;
}

.newsletter-email-success i {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 1rem;
    display: block;
}

.newsletter-email-success p {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .toc-sidebar,
    .cta-sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }
    
    .toc-sidebar {
        order: 3;
    }
    
    .cta-sidebar {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .cta-box {
        min-width: 280px;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .blog-post-container .container {
        padding: 0 1.5rem;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-share {
        width: 100%;
        justify-content: space-between;
    }

    .author-info {
        width: 100%;
    }
    
    .blog-layout {
        gap: 1.5rem;
    }
    
    .cta-sidebar {
        flex-direction: column;
    }
    
    .cta-box {
        min-width: 100%;
    }
    
    .toc-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toc-author-img {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .blog-post-container {
        padding: 1.5rem 0 3rem;
    }

    .blog-post-container .container {
        padding: 0 1rem;
    }

    .blog-title {
        margin-bottom: 1rem;
    }

    .blog-description {
        margin-bottom: 2rem;
    }

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

    .audio-player {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .audio-play-btn {
        width: 36px;
        height: 36px;
    }

    .audio-time {
        font-size: 12px;
        min-width: 70px;
    }

    .audio-control-btn {
        width: 28px;
        height: 28px;
    }

    .listen-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Collaboration items responsive */
    .blog-collaboration-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .blog-collaboration-visual {
        margin-bottom: 1rem;
    }

    .blog-collaboration-image {
        width: 100%;
        max-width: 322px;
        height: auto;
    }

    .blog-collaboration-item p {
        max-width: 100%;
        text-align: center;
    }

    /* Chart images responsive */
    .blog-chart-image {
        width: 100%;
        max-width: 377px;
        height: auto;
    }

    /* Images grid responsive - already handled above */

    /* Section titles responsive */
    .blog-section-title {
        font-size: 28px;
        line-height: 38px;
    }

    .blog-subsection-heading {
        font-size: 16px;
    }

    /* TOC sidebar mobile */
    .toc-sidebar {
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
        padding-top: 1.5rem;
    }
}

/* Additional responsive breakpoints */
@media (max-width: 1200px) {
    .blog-layout {
        grid-template-columns: 240px 1fr 240px;
        gap: 1.5rem;
    }

    .blog-content {
        width: 100%;
        max-width: 616px;
    }
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toc-sidebar {
        order: 3;
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
        padding-top: 1.5rem;
    }

    .blog-content-main {
        order: 1;
    }

    .cta-sidebar {
        order: 2;
    }

    .blog-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .blog-collaboration-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .blog-collaboration-image {
        width: 100%;
        max-width: 322px;
        height: auto;
    }

    .blog-collaboration-item p {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .blog-layout {
        gap: 1.5rem;
    }

    .latest-blogs-section .container {
        padding: 0 1.5rem;
    }

    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .blog-chart-image {
        width: 100%;
        max-width: 377px;
        height: auto;
    }

    /* Images grid responsive - already handled above */
}

/* ===== SHARE MODAL ===== */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.share-modal-content {
    position: relative;
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #E5E5E5;
}

.share-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.share-modal-title i {
    font-size: 18px;
    color: var(--text-primary);
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.share-modal-close:hover {
    background-color: #f5f5f5;
    color: var(--text-primary);
}

.share-modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.share-section {
    margin-bottom: 1.5rem;
}

.share-section:last-child {
    margin-bottom: 0;
}

.share-section-title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.share-section-description {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.share-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.share-action-btn:hover {
    background-color: #f8f9fa;
    color: var(--text-primary);
}

.share-action-btn i {
    font-size: 16px;
    color: var(--text-primary);
}

.share-action-btn:hover i {
    color: var(--text-primary);
}

.copy-link-btn {
    margin-top: 0.5rem;
}

.more-options-btn {
    margin-bottom: 0.5rem;
}

.share-divider {
    height: 1px;
    background-color: #E5E5E5;
    margin: 1.5rem 0;
}

.share-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #E5E5E5;
}

.btn-subscribe {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-subscribe:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.3);
}

.btn-login {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    text-align: center;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none !important;
}

/* Responsive styles for share modal */
@media (max-width: 576px) {
    .share-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .share-modal-header {
        padding: 1.25rem 1.25rem 0.875rem;
    }

    .share-modal-body {
        padding: 1.25rem;
    }

    .share-modal-footer {
        padding: 0.875rem 1.25rem 1.25rem;
        flex-direction: column;
    }

    .btn-subscribe,
    .btn-login {
        width: 100%;
    }
    
    .share-email-form {
        flex-direction: column;
    }
    
    .btn-submit-email {
        width: 100%;
    }
}

/* Email subscription section */
.share-modal-email-section {
    padding: 1.5rem;
    border-top: 1px solid #E5E5E5;
    animation: slideDown 0.3s ease;
}

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

.share-email-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.share-email-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.2s ease;
}

.share-email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

.share-email-input::placeholder {
    color: var(--text-light);
}

.btn-submit-email {
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-submit-email:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 112, 192, 0.2);
}

.btn-submit-email:active {
    transform: translateY(0);
}

.btn-submit-email:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success message for email subscription */
.share-email-success {
    text-align: center;
    padding: 1.5rem 1rem;
    animation: slideDown 0.3s ease;
}

.share-email-success i {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 1rem;
    display: block;
}

.share-email-success p {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

/* ===== FIX BLURRY SVGs ON iOS DEVICES ===== */
/* This fixes the common issue where SVGs appear blurry on iPhone/iPad Safari */
img[src$=".svg"],
img[src*=".svg"],
.blog-content img[src$=".svg"],
.blog-content img[src*=".svg"] {
    /* Optimize image rendering for SVGs - no transforms that cause blur */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Prevent subpixel rendering issues */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure integer pixel positioning */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    /* Prevent rasterization */
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}

/* Additional iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    img[src$=".svg"],
    img[src*=".svg"] {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        /* Use translate3d instead of translateZ to avoid blur */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        /* Ensure no fractional pixels */
        -webkit-font-smoothing: antialiased;
    }
}

/* ===== BLOG LIST MENU ===== */
.blog-list-container {
    max-width: 900px;
    margin: 0 auto;
}

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

.blog-list-item {
    margin-bottom: 1rem;
}

.blog-list-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    gap: 1rem;
}

.blog-list-link:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.1);
}

.blog-list-number {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
    min-width: 2rem;
}

.blog-list-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    flex: 1;
}

.blog-list-link i {
    font-size: 16px;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.blog-list-link:hover i {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .blog-list-link {
        padding: 1.25rem;
    }
    
    .blog-list-title {
        font-size: 16px;
    }
}

/* ===== IMAGE ZOOM / MAGNIFIER ===== */
/* Direct zoom on click - in-place zoom with directional zoom and panning */
.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.3s ease !important;
    transform-origin: center center;
    position: relative;
    z-index: 1;
    user-select: none;
    -webkit-user-drag: none;
    display: block;
    margin: 0 auto;
    will-change: transform;
    /* Override any translate3d transforms from other rules - only when not zoomed */
}

.zoomable-image:not(.zoomed) {
    transform: scale(1) !important;
}

.zoomable-image:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Zoomed state - transform is controlled by JavaScript for directional zoom and panning */
.zoomable-image.zoomed {
    cursor: grab;
    z-index: 9999 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    /* Transform is applied via JavaScript with translate() and scale() */
    transition: transform 0.3s ease !important;
}

/* When actively dragging, show grabbing cursor and disable transition */
.zoomable-image.zoomed.dragging {
    cursor: grabbing !important;
    transition: none !important;
    user-select: none;
}

/* When panning (mouse move), disable transition for smooth movement */
.zoomable-image.zoomed.panning:not(.dragging) {
    transition: transform 0.1s ease-out !important;
}

/* Ensure parent containers use overflow: hidden to contain zoomed images */
.blog-content {
    overflow: visible;
}

.blog-chart-container {
    overflow: hidden;
    position: relative;
}

.blog-image-item {
    overflow: hidden;
    position: relative;
}

.blog-collaboration-item {
    overflow: hidden;
    position: relative;
}

/* Prevent link navigation when clicking zoomable images */
a .zoomable-image,
a > .zoomable-image {
    pointer-events: auto;
}

/* Override translate3d transforms for zoomable images - only when not zoomed */
.blog-chart-image.zoomable-image:not(.zoomed),
.blog-image-item .blog-chart-image.zoomable-image:not(.zoomed),
.blog-collaboration-image.zoomable-image:not(.zoomed),
.blog-content img.zoomable-image:not(.zoomed) {
    transform: scale(1) !important;
}

/* Transform is controlled by JavaScript for zoomed images (allows translate + scale) */
/* No CSS transform rule here - JavaScript sets it via inline style */

/* ===== PERSONAS LAYOUT IN BLOG ===== */
.blog-custom-html {
    margin: 2rem 0;
    overflow: hidden;
}

.blog-custom-html .personas-layout {
    width: 100%;
    max-width: 600px;
    height: auto;
    min-height: 250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    gap: 0.75rem;
    padding: 1rem 0;
}

.blog-custom-html .personas-left-column,
.blog-custom-html .personas-right-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.blog-custom-html .personas-left-column a,
.blog-custom-html .personas-right-column a {
    width: 150px;
    height: 65px;
    background-size: cover;
    background-position: center;
    display: block;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.blog-custom-html .personas-center-image {
    width: 220px;
    height: 160px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #005DE9;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .blog-custom-html .personas-layout {
        max-width: 550px;
        gap: 0.5rem;
    }
    
    .blog-custom-html .personas-left-column a,
    .blog-custom-html .personas-right-column a {
        width: 140px;
        height: 60px;
    }
    
    .blog-custom-html .personas-center-image {
        width: 200px;
        height: 145px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .blog-custom-html .personas-layout {
        flex-direction: column;
        max-width: 100%;
        min-height: auto;
        gap: 0.75rem;
    }
    
    .blog-custom-html .personas-left-column,
    .blog-custom-html .personas-right-column {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .blog-custom-html .personas-left-column a,
    .blog-custom-html .personas-right-column a {
        width: 30%;
        max-width: 130px;
        height: 55px;
    }
    
    .blog-custom-html .personas-center-image {
        width: 100%;
        max-width: 250px;
        height: 130px;
        font-size: 15px;
        order: -1;
    }
}

@media (max-width: 480px) {
    .blog-custom-html .personas-layout {
        gap: 0.5rem;
    }
    
    .blog-custom-html .personas-left-column a,
    .blog-custom-html .personas-right-column a {
        width: 28%;
        max-width: 100px;
        height: 45px;
    }
    
    .blog-custom-html .personas-center-image {
        max-width: 200px;
        height: 110px;
        font-size: 13px;
    }
}



/* Wikipedia Entity Links */
.wiki-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #0066cc;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.wiki-link:hover {
    border-bottom: 1px solid #0066cc;
    color: #0066cc;
}

.wiki-link:visited {
    color: inherit;
}

.wiki-link:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}
