/* Insights page styling */
html {
    scroll-behavior: smooth;
}

.insights-hero-section {
    background-color: #FAF9F4;
}

.insights-heading {
    max-width: 720px;
    color: #18181B;
}

.insights-hero-desc {
    margin-top: 16px;
    margin-bottom: 32px;
    color: #3F3F46;
}

.search-wraper {
    max-width: 390px;
    height: 46px;
    width: 100%;
    border-radius: 9999px;
    border: 1px solid #F4F4F5;
    background-color: white;
    padding: 12px 16px;
    gap: 8px;
    position: relative;
    overflow: visible;
}

.search-wraper .search-feild {
    border: none;
    outline: none;
    background: transparent;
}

.search-btn {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    transition-property: transform;
    overflow: hidden;
}

.blogs-grid:hover {
    transform: scale(1.03);
}

.blog-grid-left {
    background-color: #FAF9F4;
    padding: 48px;
}

.category-pill {
    display: block;
    max-width: fit-content;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: white;
    border: 1px solid #F4F4F5;
    font-size: 12px;
    color: #3F3F46;
}

.blog-heading {
    font-size: 26px;
    font-weight: 400;
    line-height: 34px;
    color: #18181B;
    letter-spacing: -0.52px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.blog-text {
    margin-bottom: 24px;
}

.blogs-oversview-section {
    background-color: white;
}

.search-suggestions {
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--color-white-20);
    border-radius: 16px;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    color: #000;
}

.slider-btn {
    width: 68px;
    height: 48px;
    border-radius: 99999px;
    opacity: 0.3;
    background: var(--color-white);
}

.slider-btn:not(.active) {
    cursor: not-allowed;
}

.slide-next img {
    transform: rotate(180deg);
    transform-origin: center;
}

.slider-btn.active {
    background-color: var(--color-primary);
    opacity: 1;
}

.blog-thumbnail {
    height: 246px;
    border-radius: 16px 16px 0 0;
}

.blog-card {
    border: 1px solid var(--color-white-20);
    display: block;
    border-radius: 16px;
    height: 100% !important;
}

.blog-content {
    background: var(--color-white-08);
    backdrop-filter: blur(6px);
    padding: 24px;
    height: calc(100% - 226px);
}

.trending-blogs-section {
    background-color: #FAF9F4;
}

/* Sidebar grid removed */

.insight-searched-results.section-loader {
    min-height: 320px;
    position: relative;
}

/* Filter styles removed */

.insight-searched-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
    column-gap: 24px;
    height: fit-content;
}

.insight-searched-item {
    display: flex;
    flex-direction: column;
    align-items: start;
    border-radius: 12px;
    overflow: hidden;
}

.insight-thumbnail {
    height: 196px;
}

.insight-content {
    padding: 24px;
    background: var(--color-white);
}

.search-suggestions.active {
    display: flex !important;
    min-height: 88px;
    flex-direction: column;
}

.suggestion-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-white-10);
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f4f4f5;
}

.search-suggestions .suggestion-item {
    color: #3f3f46;
}

.search-suggestions a.suggestion-item:hover {
    color: #18181b;
}

.popular-blogs-cta {
    background-image: url('../images/blogs-cta-bg.png');
    background-size: cover;
    background-position: center;
    padding: 40px;
}

.insight-gradient-left {
    max-width: 646px;
    width: 100%;
    gap: 16px;
}

.max-w-364 {
    max-width: 364px;
}

.grid {
    display: grid;
}

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

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.col_span_2 {
    grid-column: span 2;
}

.col_span_full {
    grid-column: span 3;
}

.insight-results-pagination {
    margin-top: 8px;
}

.insight-results-pagination .insights-pagination {
    width: 100%;
}

.insight-results-pagination .insights-pagination-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.insight-results-pagination .insights-pagination-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.insight-results-pagination .insights-pagination-text {
    text-decoration: none;
    color: #52525B;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    font-family: 'Inter Tight', sans-serif;
    transition: color 0.15s;
}

.insight-results-pagination .insights-pagination-text:hover:not(.is-disabled) {
    color: #18181B;
}

.insight-results-pagination .insights-pagination-text.is-disabled,
.insight-results-pagination .insights-pagination-arrow.is-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.insight-results-pagination .insights-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #18181B;
    color: #FFFFFF;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}

.insight-results-pagination .insights-pagination-arrow:hover:not(.is-disabled) {
    opacity: 0.85;
}

.insight-results-pagination .insights-pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.insight-results-pagination .insights-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 4px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    font-family: 'Inter Tight', sans-serif;
    text-decoration: none;
    color: #52525B;
    transition: color 0.15s, background 0.15s;
}

.insight-results-pagination .insights-pagination-page:hover {
    color: #18181B;
}

.insight-results-pagination .insights-pagination-page.is-active {
    background: #18181B;
    color: #FFFFFF;
    cursor: default;
}

.insight-results-pagination .insights-pagination-ellipsis {
    font-size: 14px;
    line-height: 20px;
    color: #71717A;
    letter-spacing: 2px;
    user-select: none;
}

.gap_32 {
    gap: 32px;
}

.rounded_12 {
    border-radius: 12px;
}

.blog-image {
    max-height: 390px;
}

.section-loader::before {
    border-color: #000 !important;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
}

.btn-animate-swap svg path {
    transition: stroke 0.3s ease;
}

.btn-animate-swap:hover svg path {
    stroke: #000 !important;
}

@media (max-width:1204px) {
    .container {
        padding: 0 60px;
    }
}

@media (max-width:991px) {
    .container {
        padding: 0 40px;
    }

    .lg_block {
        display: block;
    }

    .insight-searched-results {
        grid-template-columns: repeat(2, 1fr);
    }

    .col_span_full {
        grid-column: span 2;
    }
}

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

    .blog-grid-left {
        padding: 16px;
    }

    .md_flex {
        display: flex;
    }

    .md_hidden {
        display: none;
    }
}

@media (max-width: 575px) {
    .sm_lh_28 {
        line-height: 28px;
    }

    .sm_fs_36 {
        font-size: 36px;
    }

    .sm_lh_54 {
        line-height: 54px;
    }

    .sm_fs_20 {
        font-size: 20px;
    }

    .sm_fw_400 {
        font-weight: 400;
    }

    .container {
        padding: 0 24px;
    }

    .max-w-364 {
        max-width: 100%;
    }

    .blog-heading {
        font-size: 20px;
        font-weight: 400;
        line-height: 28px;
        margin-top: 24px;
        margin-bottom: 8px;
    }

    .blog-text {
        font-family: 'Plus Jakarta Sans';
        color: var(--color-gray-100);
        margin-top: 0;
        margin-bottom: 24px;
    }

    .blog-content {
        padding: 16px;
    }

    .trending-blogs-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .insight-content {
        padding: 16px;
    }

    .insight-searched-results {
        column-gap: 0;
        row-gap: 16px;
        grid-template-columns: 1fr;
    }

    .sm_fs_14 {
        font-size: 14px;
    }

    .sm_fs_16 {
        font-size: 16px;
    }

    .sm_lh_21 {
        line-height: 21px;
    }

    .sm_py_32 {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .sm_mt_16 {
        margin-top: 16px;
    }

    .sm_grid-cols-1 {
        grid-template-columns: 1fr;
    }

    .popular-blogs-cta {
        padding: 24px;
    }

    .sm_mt_none {
        margin-top: 0 !important;
    }

    .col_span_2 {
        grid-column: span 1;
    }

    .col_span_full {
        grid-column: span 1;
    }
}

/* ============================================================
   SINGLE BLOG POST DETAIL LAYOUT
   ============================================================ */

.insights-slider-section,
.blog-content-section,
.article-section {
    background: #FAF9F4;
}

.article-section {
    padding-top: 80px;
}

.blog-content-section {
    padding-bottom: 80px;
    margin-top: -2px;
}

.blog-sidebar-heading {
    color: #A1A1AA;
    transition: color 0.2s;
}

.active .blog-sidebar-heading {
    color: #27272A;
}

.active-elipse {
    display: flex;
    width: 5px !important;
    height: 5px;
    border-radius: 999px;
    background: #27272A;
    opacity: 0;
    margin-top: 6px;
    flex-shrink: 0;
}

.active .active-elipse {
    opacity: 1;
}

.blog-meta {
    margin-top: 24px;
    color: #71717A;
    font-size: 14px;
    font-weight: 400;
}

.author-name,
.created-on {
    color: #3F3F46;
}

a.author-name {
    text-decoration: underline;
}

.blog-h1 {
    font-size: 44px;
    font-weight: 500;
    line-height: 60px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #18181B;
    letter-spacing: -0.88px;
}

#main-blog-content h2,
#main-blog-content h3 {
    scroll-margin-top: 120px;
}

.share-container {
    padding: 19px 0;
    border-top: 1px solid var(--color-black-110);
    border-bottom: 1px solid var(--color-black-110);
    margin-top: 40px;
    gap: 8px;
}

.main-image-container {
    border-radius: 12px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.main-image-container img {
    width: 100%;
    max-height: 513px;
    object-fit: cover;
    border-radius: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 599999px;
    background: #FAF9F4;
    width: 32px;
    height: 32px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.share-btn:hover {
    background: #E4E4E7;
}

.share-notice {
    width: 100%;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #FAF9F4;
    color: #52525B;
    font-size: 12px;
    line-height: 18px;
    font-family: Inter, sans-serif;
}

.share-notice[hidden] {
    display: none !important;
}

/* --- TTS Audio Player --- */
.audio-player-wrapper {
    background-color: white;
    padding: 16px;
    border-radius: 12px;
    max-width: 246px;
    width: 100%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s, right 0.2s;
}

.audio-player-wrapper:hover {
    transform: translateY(-2px);
}

.audio-player-wrapper.expended-widget {
    flex-direction: column;
    gap: 24px;
    align-items: start;
    max-width: 280px;
    border-radius: 16px;
    cursor: default;
}

.audio-player-wrapper.expended-widget:hover {
    transform: none;
}

.mobile-player-container,
.audio-player-wrapper.mobile-player {
    display: none;
}

.audio-player-wrapper.expended-widget .player-icon {
    display: none;
}

.full-widget {
    display: none;
}

.full-widget.open {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.headphone-icon {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid #F6F4ED;
    background: #FAF9F4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-icon {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid #C1C300;
    background: #F3FE00;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-icon-large {
    width: 72px;
    height: 72px;
    border-radius: 9999px;
    border: 1px solid #C1C300;
    background: #F3FE00;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-time {
    color: #A1A1AA;
    font-size: 12px;
    line-height: 19px;
}

.waveforms {
    display: flex;
    align-items: end;
    gap: 2px;
    height: 40px;
    width: 100%;
    margin-top: 16px;
    margin-bottom: 12px;
    overflow: hidden;
}

.waveform-bar {
    border-radius: 1.5px;
    background: #D9D9D9;
    flex: 1;
    min-height: 4px;
    transition: background-color 0.2s ease;
}

.waveform-bar.active {
    background: #27272A;
}

.progressbar-slider {
    height: 4px;
    width: 100%;
    border-radius: 9999px;
    background: #F1F1F1;
    margin-bottom: 16px;
    position: relative;
    cursor: pointer;
}

.progressbar-slider .progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #27272A;
    border-radius: 9999px;
    pointer-events: none;
}

.progressbar-slider .handle {
    position: absolute;
    left: 0;
    top: -3.5px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background-color: #27272A;
    transform: translateX(-50%);
    pointer-events: none;
}

.play-toggle-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6666px;
    border: 0.667px solid #F6F4ED;
    background: #FAF9F4;
    cursor: pointer;
}

.play-toggle-btn.muted {
    border: 0.667px solid #F3FE00;
    background: #FEFFE6;
}

.speed-btn {
    width: 36px;
    border-radius: 9px;
    color: #A1A1AA;
    font-size: 10px;
    transition: all 0.2s ease-in-out;
}

.speed-btn.active-speed {
    color: #7A7409;
    border: 0.667px solid #F3FE00;
    background-color: #FEFFE6;
}

/* --- Table of Contents Sidebar --- */
.trending-blogs-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.blog-headings-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    gap: 20px;
    background: #f3fe00;
    padding: 15px;
    border-radius: 14px;
}

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

#blog-headings-list li {
    font-size: 14px;
    line-height: 30px;
    color: var(--color-gray-200);
    cursor: pointer;
    transition: color 0.2s, padding-left 0.2s;
}

#blog-headings-list li.active a {
    color: #27272A;
    font-weight: 500;
}

/* --- Right Sidebar CTA Widgets --- */
.right-sidebar-wrapper {
    padding: 16px;
    background-color: white;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.right-sidebar-wrapper-sticky {
    position: sticky;
    top: 120px;
    height: fit-content;
    gap: 20px;
}

.trending-insights-aside {
    gap: 12px;
}

/* --- CKEditor Content Styles --- */
.blog-content.ck-content {
    backdrop-filter: none !important;
    background: transparent !important;
    height: auto !important;
    padding: 20px 16px;
    max-width: 100%;
}

.blog-content.ck-content * {
    font-family: "Inter Tight", sans-serif !important;
}

.blog-content.ck-content span:not(table *),
.blog-content.ck-content p:not(:has(span)):not(table *) {
    color: #463F3F;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.8;
}

.blog-content.ck-content p {
    margin-bottom: 24px;
}

.blog-content.ck-content h2 {
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
    color: #1F1F1F;
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.blog-content.ck-content h3 {
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
    color: #1F1F1F;
    margin-top: 32px;
    margin-bottom: 16px;
}

.blog-content.ck-content blockquote {
    border-left: 4px solid var(--color-primary);
    background: rgba(0, 0, 0, 0.02);
    padding: 18px 24px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4B5563;
}

.blog-content.ck-content blockquote p {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.8;
    color: #4B5563;
}

.blog-content.ck-content ul,
.blog-content.ck-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: #463F3F;
    font-size: 18px;
    line-height: 1.8;
}

.blog-content.ck-content li {
    margin-bottom: 8px;
}

.blog-content.ck-content figure.image {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.blog-content.ck-content figure.image img {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 100%;
    height: auto;
}

.blog-content.ck-content figure.image figcaption {
    font-size: 13px;
    color: #71717A;
    text-align: center;
}

.blog-content.ck-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 16px;
}

.blog-content.ck-content table th,
.blog-content.ck-content table td {
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
    color: #000;
}

.blog-content.ck-content table th {
    background: rgba(0, 0, 0, 0.03);
    color: #1F1F1F;
    font-weight: 600;
}

.blog-content.ck-content table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.01);
}

.blog-content.ck-content a {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s;
}

.blog-content.ck-content a:hover {
    opacity: 0.8;
}

/* --- Media Queries --- */
@media (max-width: 1204px) {
    .audio-player-wrapper {
        right: -60px;
    }
}

@media (max-width: 991px) {
    .blog-content.ck-content {
        padding-left: 0;
        padding-right: 0;
    }

    .blog-headings-sidebar,
    .trending-insights-aside,
    .audio-player-wrapper.desktop-player {
        display: none !important;
    }

    .trending-blogs-grid {
        display: block;
    }

    .mobile-player-container {
        display: flex;
        position: sticky;
        top: 90px;
        left: 0;
        max-width: 100% !important;
        padding-bottom: 16px;
        padding-top: 12px;
        z-index: 30;
        background-color: #FAF9F4;
    }

    .audio-player-wrapper.mobile-player {
        display: flex !important;
        max-width: 100% !important;
        position: sticky;
        bottom: auto;
        right: auto;
    }
}

@media (max-width: 768px) {
    .article-section {
        padding: 32px 0;
        padding-top: 32px;
        padding-bottom: 24px !important;
    }

    .main-image-container {
        padding-top: 32px;
        padding-bottom: 0;
    }
}

@media (max-width: 575px) {
    .blog-h1 {
        font-size: 32px;
        line-height: 44px;
        font-weight: 500;
        letter-spacing: -0.64px;
    }

    .mobile-player-container {
        padding-bottom: 16px;
        top: 80px;
    }

    .audio-player-wrapper.mobile-player {
        display: flex !important;
        max-width: 100% !important;
        position: sticky;
    }
}