/* ============================================================
   PAGE WRAPPER
============================================================ */

.insight-detail-page,
.insight-detail-page * {
    box-sizing: border-box;
}

.insight-detail-page {
    background: var(--white);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.insight-detail-page .container-custom {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .insight-detail-page .container-custom {
        padding: 0 20px;
    }
}

/* ============================================================
   SECTION LABELS / TITLES
============================================================ */

.insight-detail-page .section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--teal);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 17px;
}

.insight-detail-page .section-label::before {
    content: "";
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--orange));
    border-radius: 4px;
}

.insight-detail-page .section-title {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -2px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

/* ============================================================
   HERO
============================================================ */

.insight-detail-page .insight-hero {
    min-height: 520px;
    background:
        radial-gradient(circle at 82% 22%, rgba(98,87,232,.23), transparent 28%),
        radial-gradient(circle at 15% 90%, rgba(39,143,145,.18), transparent 30%),
        var(--black);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.insight-detail-page .insight-hero .hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 70px 70px;
    -webkit-mask-image: linear-gradient(to right, black, transparent);
    mask-image: linear-gradient(to right, black, transparent);
    pointer-events: none;
}

.insight-detail-page .insight-hero .container-custom {
    position: relative;
    z-index: 3;
}

.insight-detail-page .insight-hero-content {
    max-width: 850px;
}

.insight-detail-page .insight-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.insight-detail-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9fd6d5;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all .3s ease;
}

.insight-detail-page .back-link:hover {
    color: var(--orange);
    transform: translateX(-3px);
}

.insight-detail-page .insight-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.insight-detail-page .insight-tag {
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #c7d3d3;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.insight-detail-page .insight-hero-title {
    font-size: clamp(40px, 5.5vw, 68px);
    line-height: 1.02;
    letter-spacing: -3px;
    font-weight: 800;
    margin: 0 0 24px;
    color: #ffffff;
}

.insight-detail-page .insight-hero-title .hero-highlight {
    color: var(--orange);
}

.insight-detail-page .insight-hero-description {
    max-width: 720px;
    color: #b8c1c2;
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 40px;
}

.insight-detail-page .insight-hero-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.insight-detail-page .insight-hero-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #889696;
    font-size: 12px;
    font-weight: 600;
}

.insight-detail-page .insight-hero-meta .meta-item i {
    color: #9fd6d5;
    font-size: 14px;
}

/* ============================================================
   ARTICLE BODY
============================================================ */

.insight-detail-page .insight-body-section {
    padding: 100px 0;
    background: var(--white);
}

.insight-detail-page .insight-body-section .row {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.insight-detail-page .insight-body-section .col-lg-8 {
    flex: 1 1 62%;
    min-width: 0;
}

.insight-detail-page .insight-body-section .col-lg-4 {
    flex: 1 1 30%;
    min-width: 280px;
}

@media (max-width: 992px) {
    .insight-detail-page .insight-body-section .col-lg-8,
    .insight-detail-page .insight-body-section .col-lg-4 {
        flex: 1 1 100%;
    }
}

.insight-detail-page .insight-article {
    color: var(--text);
}

.insight-detail-page .insight-article .lead-paragraph {
    font-size: 19px;
    line-height: 1.75;
    color: var(--text);
    font-weight: 500;
    margin: 0 0 28px;
    padding-left: 22px;
    border-left: 3px solid var(--teal);
}

.insight-detail-page .insight-article p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--muted);
    margin: 0 0 22px;
}

.insight-detail-page .insight-article strong {
    color: var(--text);
    font-weight: 700;
}

.insight-detail-page .insight-article em {
    font-style: italic;
    color: var(--text);
}

.insight-detail-page .article-heading {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: -.8px;
    font-weight: 800;
    color: var(--text);
    margin: 48px 0 20px;
    padding-top: 12px;
}

.insight-detail-page .article-heading:first-of-type {
    margin-top: 32px;
}

.insight-detail-page .article-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.insight-detail-page .article-list li {
    position: relative;
    padding: 10px 0 10px 30px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.insight-detail-page .article-list li:last-child {
    border-bottom: 0;
}

.insight-detail-page .article-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}

.insight-detail-page .article-list li strong {
    color: var(--text);
    font-weight: 700;
}

/* ============================================================
   ARTICLE CALLOUT
============================================================ */

.insight-detail-page .article-callout {
    display: flex;
    gap: 20px;
    padding: 28px 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(39,143,145,.06), rgba(237,138,34,.04));
    border: 1px solid rgba(39,143,145,.2);
    margin: 36px 0;
}

.insight-detail-page .article-callout .callout-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(39,143,145,.1);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.insight-detail-page .article-callout .callout-content strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--teal);
    margin: 0 0 10px;
}

.insight-detail-page .article-callout .callout-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
}

/* ============================================================
   ARTICLE QUOTE
============================================================ */

.insight-detail-page .article-quote {
    position: relative;
    padding: 40px 40px 40px 70px;
    margin: 40px 0;
    background: var(--light);
    border-radius: 12px;
    border-left: 4px solid var(--orange);
}

.insight-detail-page .article-quote i {
    position: absolute;
    top: 32px;
    left: 26px;
    font-size: 32px;
    color: var(--orange);
    opacity: .3;
}

.insight-detail-page .article-quote p {
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -.3px;
}

/* ============================================================
   ARTICLE PHASES
============================================================ */

.insight-detail-page .article-phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 32px 0;
}

.insight-detail-page .phase-card {
    padding: 26px 22px;
    border-radius: 12px;
    background: var(--light);
    border: 1px solid var(--border);
    transition: all .3s ease;
}

.insight-detail-page .phase-card:hover {
    transform: translateY(-4px);
    border-color: var(--teal);
    box-shadow: 0 16px 40px rgba(10,14,16,.08);
}

.insight-detail-page .phase-card .phase-number {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--teal);
    margin: 0 0 10px;
}

.insight-detail-page .phase-card h4 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px;
    letter-spacing: -.3px;
}

.insight-detail-page .phase-card p {
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
    color: var(--muted);
}

@media (max-width: 768px) {
    .insight-detail-page .article-phases {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ARTICLE AUTHOR
============================================================ */

.insight-detail-page .article-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 60px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
}

.insight-detail-page .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--orange));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.insight-detail-page .author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.insight-detail-page .author-info strong {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
}

.insight-detail-page .author-info span {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

/* ============================================================
   SIDEBAR
============================================================ */

.insight-detail-page .insight-sidebar {
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.insight-detail-page .sidebar-card {
    padding: 26px 24px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: all .3s ease;
}

.insight-detail-page .sidebar-card:hover {
    border-color: var(--teal);
    box-shadow: 0 12px 40px rgba(10,14,16,.06);
}

.insight-detail-page .sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    margin: 0 0 18px;
}

.insight-detail-page .sidebar-title i {
    color: var(--teal);
    font-size: 16px;
}

.insight-detail-page .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-detail-page .toc-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.insight-detail-page .toc-list li:last-child {
    border-bottom: 0;
}

.insight-detail-page .toc-list li a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .3s ease;
    display: block;
}

.insight-detail-page .toc-list li a:hover {
    color: var(--teal);
    padding-left: 4px;
}

/* ============================================================
   SIDEBAR CTA CARD
============================================================ */

.insight-detail-page .sidebar-cta {
    background:
        radial-gradient(circle at 80% 20%, rgba(39,143,145,.15), transparent 60%),
        linear-gradient(135deg, var(--black), #1a2225);
    color: #ffffff;
    border-color: transparent;
    text-align: center;
}

.insight-detail-page .sidebar-cta:hover {
    border-color: transparent;
    box-shadow: 0 16px 50px rgba(10,14,16,.15);
}

.insight-detail-page .sidebar-cta-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(39,143,145,.2);
    color: #9fd6d5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 18px;
}

.insight-detail-page .sidebar-cta h4 {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.3;
    letter-spacing: -.3px;
}

.insight-detail-page .sidebar-cta p {
    color: #b8c1c2;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 20px;
}

.insight-detail-page .sidebar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 6px;
    background: var(--orange);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all .3s ease;
}

.insight-detail-page .sidebar-btn:hover {
    background: #d7740f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(237,138,34,.3);
}

/* ============================================================
   TAG CLOUD
============================================================ */

.insight-detail-page .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.insight-detail-page .tag-pill {
    padding: 7px 14px;
    border-radius: 100px;
    background: var(--light);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    transition: all .3s ease;
    cursor: pointer;
}

.insight-detail-page .tag-pill:hover {
    background: var(--teal);
    color: #ffffff;
    border-color: var(--teal);
}

/* ============================================================
   RELATED INSIGHTS
============================================================ */

.insight-detail-page .related-insights {
    padding: 100px 0;
    background: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.insight-detail-page .related-header {
    margin-bottom: 50px;
}

.insight-detail-page .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.insight-detail-page .related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all .4s cubic-bezier(.22,1,.36,1);
    display: flex;
    flex-direction: column;
}

.insight-detail-page .related-card:hover {
    transform: translateY(-6px);
    border-color: var(--teal);
    box-shadow: 0 24px 60px rgba(10,14,16,.08);
}

.insight-detail-page .related-image {
    position: relative;
    height: 160px;
    background:
        radial-gradient(circle at 30% 30%, rgba(39,143,145,.4), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(237,138,34,.3), transparent 60%),
        linear-gradient(135deg, #0a0e10, #1a2225);
    overflow: hidden;
}

.insight-detail-page .related-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: .5;
}

.insight-detail-page .related-body {
    padding: 26px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insight-detail-page .related-category {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--teal);
    margin: 0 0 12px;
}

.insight-detail-page .related-card h3 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
    margin: 0 0 12px;
    letter-spacing: -.3px;
}

.insight-detail-page .related-card p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 20px;
    flex: 1;
}

.insight-detail-page .related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    text-decoration: none;
    transition: all .3s ease;
    align-self: flex-start;
}

.insight-detail-page .related-link i {
    transition: transform .3s ease;
}

.insight-detail-page .related-link:hover {
    color: var(--orange);
}

.insight-detail-page .related-link:hover i {
    transform: translateX(4px);
}

/* ============================================================
   CTA
============================================================ */

.insight-detail-page .insight-cta {
    padding: 100px 0;
    color: #ffffff;
    background: linear-gradient(110deg, #207f81, var(--black));
}

.insight-detail-page .insight-cta .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.insight-detail-page .insight-cta .col-lg-8 {
    flex: 1 1 60%;
    min-width: 0;
}

.insight-detail-page .insight-cta .col-lg-4 {
    flex: 0 0 auto;
    text-align: right;
}

@media (max-width: 992px) {
    .insight-detail-page .insight-cta .col-lg-8,
    .insight-detail-page .insight-cta .col-lg-4 {
        flex: 1 1 100%;
        text-align: left;
    }
}

.insight-detail-page .insight-cta .section-label {
    color: #b9eeee;
}

.insight-detail-page .insight-cta .section-label::before {
    background: #b9eeee;
}

.insight-detail-page .insight-cta h2 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1;
    letter-spacing: -2.5px;
    font-weight: 800;
    margin: 0 0 18px;
    color: #ffffff;
}

.insight-detail-page .insight-cta p {
    max-width: 650px;
    color: #c7d3d3;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.insight-detail-page .insight-cta .btn-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    transition: .3s;
    text-decoration: none;
}

.insight-detail-page .insight-cta .btn-main:hover {
    background: var(--orange) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ============================================================
   REVEAL
============================================================ */

.insight-detail-page .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all .9s cubic-bezier(.22,1,.36,1);
}

.insight-detail-page .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1024px) {
    .insight-detail-page .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insight-detail-page .insight-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .insight-detail-page .insight-hero {
        min-height: auto;
        padding: 60px 0;
    }

    .insight-detail-page .insight-hero-title {
        font-size: 38px;
        letter-spacing: -2px;
    }

    .insight-detail-page .insight-hero-meta {
        gap: 18px;
    }

    .insight-detail-page .insight-body-section {
        padding: 60px 0;
    }

    .insight-detail-page .insight-article .lead-paragraph {
        font-size: 17px;
        padding-left: 16px;
    }

    .insight-detail-page .article-heading {
        font-size: 22px;
        margin: 36px 0 16px;
    }

    .insight-detail-page .article-quote {
        padding: 30px 26px 30px 58px;
    }

    .insight-detail-page .article-quote p {
        font-size: 17px;
    }

    .insight-detail-page .related-insights {
        padding: 60px 0;
    }

    .insight-detail-page .related-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .insight-detail-page .insight-cta {
        padding: 70px 0;
    }

    .insight-detail-page .insight-cta .btn-main {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .insight-detail-page .insight-hero-title {
        font-size: 32px;
    }

    .insight-detail-page .insight-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }
}