
/* ==================================================
   START: SINGLE BLOG PAGE
================================================== */

.page-blog-single {
    background-color: var(--color-black);
}

.single-blog-article {
    min-width: 0;
}


/* ==================================================
   START: SINGLE BLOG HERO
================================================== */

.single-blog-hero {
    position: relative;
    isolation: isolate;
    padding: 30px 0 50px;
    background: linear-gradient(135deg, #080D14, #101828 55%, #103F40);
    overflow: hidden;
}

.single-blog-hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(ellipse at top center, rgba(8, 203, 182, 0.12), transparent 65%),
        linear-gradient(rgba(8, 203, 182, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 203, 182, 0.035) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
}

/* START: BREADCRUMB */

.single-blog-breadcrumb {
    margin-bottom: 32px;
}

.single-blog-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.single-blog-breadcrumb li {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-light);
    font-size: 0.8125rem;
}

.single-blog-breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-blog-breadcrumb a:hover,
.single-blog-breadcrumb li[aria-current="page"] {
    color: var(--brand-teal);
}

.single-blog-breadcrumb svg {
    width: 14px;
    height: 14px;
}

/* END: BREADCRUMB */


/* START: ARTICLE HERO CONTENT */

.single-blog-hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.single-blog-hero-content h1 {
    margin: 18px 0;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.single-blog-excerpt {
    max-width: 720px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 1.0625rem;
    line-height: 1.8;
}

/* END: ARTICLE HERO CONTENT */


/* START: ARTICLE META INFORMATION */

.single-blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: 24px;
}

.single-blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    font-size: 0.8125rem;
    font-weight: 500;
}

.single-blog-meta svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--brand-teal);
}

/* END: ARTICLE META INFORMATION */

/* ==================================================
   END: SINGLE BLOG HERO
================================================== */


/* ==================================================
   START: ARTICLE FEATURED IMAGE
================================================== */

.single-blog-cover {
    padding: 30px 0 0;
}

.single-blog-featured-image {
    margin: 0;
    aspect-ratio: 7 / 3;
    background-color: #192737;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.single-blog-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ==================================================
   END: ARTICLE FEATURED IMAGE
================================================== */


/* ==================================================
   START: ARTICLE CONTENT LAYOUT
================================================== */

.single-blog-body {
    padding: 50px 0 25px;
}

.single-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(260px, 1fr);
    align-items: start;
    gap: 48px;
}

.single-blog-content {
    min-width: 0;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.9;
}

.single-blog-content > section {
    margin-bottom: 32px;
    scroll-margin-top: 20px;
}

.single-blog-content > section:last-child {
    margin-bottom: 0;
}

/* ==================================================
   END: ARTICLE CONTENT LAYOUT
================================================== */


/* ==================================================
   START: ARTICLE TYPOGRAPHY
================================================== */

.single-blog-content h2 {
    margin: 0 0 16px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.single-blog-content h3 {
    margin: 24px 0 12px;
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
}

.single-blog-content p {
    margin-bottom: 16px;
    color: var(--color-text-light);
    overflow-wrap: anywhere;
}

.single-blog-content strong {
    color: var(--color-white);
    font-weight: 700;
}

.single-blog-content a {
    color: var(--brand-teal);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
    transition: color 0.3s ease;
}

.single-blog-content a:hover {
    color: var(--brand-coral);
}

/* START: ARTICLE LISTS */

.single-blog-content ul,
.single-blog-content ol {
    margin: 16px 0 20px;
    padding-left: 24px;
}

.single-blog-content ul {
    list-style: disc;
}

.single-blog-content ol {
    list-style: decimal;
}

.single-blog-content li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.single-blog-content li::marker {
    color: var(--brand-teal);
}

/* END: ARTICLE LISTS */

/* ==================================================
   END: ARTICLE TYPOGRAPHY
================================================== */


/* ==================================================
   START: ARTICLE HIGHLIGHT BOX
================================================== */

.single-blog-highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 28px 0 36px;
    padding: 24px;
    background: linear-gradient(135deg, #101828, #103332);
    border: 1px solid rgba(8, 203, 182, 0.2);
    border-left: 3px solid var(--brand-teal);
    border-radius: 10px;
}

.single-blog-highlight > svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-top: 3px;
    color: var(--brand-teal);
}

.single-blog-highlight strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-teal);
    font-size: 1.0625rem;
}

.single-blog-highlight p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* ==================================================
   END: ARTICLE HIGHLIGHT BOX
================================================== */


/* ==================================================
   START: ARTICLE CHECKLIST
================================================== */

.single-blog-content .single-blog-checklist {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.single-blog-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 12px 16px;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.single-blog-checklist svg {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    margin-top: 3px;
    color: var(--brand-teal);
}

/* ==================================================
   END: ARTICLE CHECKLIST
================================================== */


/* ==================================================
   START: STICKY ARTICLE SIDEBAR
================================================== */

.single-blog-sidebar {
    position: sticky;
    top: calc(var(--header-height, 85px) + 25px);
    min-width: 0;
}

.single-blog-sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-height: calc(100dvh - var(--header-height, 85px) - 50px);
    overflow-y: auto;
    scrollbar-width: thin;
}

/* START: TABLE OF CONTENTS */

.single-blog-toc {
    padding: 24px;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.single-blog-toc h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 800;
}

.single-blog-toc h2 svg {
    flex-shrink: 0;
    width: 21px;
    height: 21px;
    color: var(--brand-teal);
}

.single-blog-toc ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.single-blog-toc a {
    display: block;
    padding: 9px 12px;
    color: var(--color-text-light);
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.single-blog-toc a:hover,
.single-blog-toc a.active,
.single-blog-toc a[aria-current="location"] {
    color: var(--brand-teal);
    background-color: rgba(8, 203, 182, 0.08);
    border-left-color: var(--brand-teal);
}

/* END: TABLE OF CONTENTS */


/* START: SIDEBAR CTA */

.single-blog-sidebar-cta {
    padding: 28px 20px;
    background: linear-gradient(145deg, #101828, #103F40);
    border: 1px solid rgba(8, 203, 182, 0.25);
    border-radius: var(--radius-md);
    text-align: center;
}

.single-blog-sidebar-cta > svg {
    width: 38px;
    height: 38px;
    margin: 0 auto 16px;
    color: var(--brand-teal);
    stroke-width: 1.6;
}

.single-blog-sidebar-cta h3 {
    margin-bottom: 12px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.45;
}

.single-blog-sidebar-cta p {
    margin-bottom: 18px;
    color: var(--color-text-light);
    font-size: 0.8125rem;
    line-height: 1.75;
}

.single-blog-sidebar-cta .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    font-size: 0.8125rem;
}

/* END: SIDEBAR CTA */

/* ==================================================
   END: STICKY ARTICLE SIDEBAR
================================================== */


/* ==================================================
   START: ARTICLE TAGS & SOCIAL SHARING
================================================== */

.single-blog-bottom {
    padding: 15px 0 40px;
}

/* START: ARTICLE TAGS */

.single-blog-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}

.single-blog-tags > span:first-child {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 700;
}

.single-blog-tag {
    padding: 7px 12px;
    color: var(--color-text-light);
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* END: ARTICLE TAGS */


/* START: SOCIAL SHARE BUTTONS */

.single-blog-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.single-blog-share h2 {
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
}

.single-blog-share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.single-blog-share-buttons a,
.single-blog-share-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--brand-teal);
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.single-blog-share-buttons svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

.single-blog-share-buttons a:hover,
.single-blog-share-buttons button:hover {
    color: var(--brand-dark);
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
}

.single-blog-share-buttons button[hidden] {
    display: none !important;
}

#blog-share-status {
    flex-basis: 100%;
    margin: 0;
    color: var(--brand-teal);
    font-size: 0.8125rem;
}

#blog-share-status:empty {
    height: 0;
    margin-top: -16px;
}

/* END: SOCIAL SHARE BUTTONS */


/* START: BACK TO BLOG LINK */

.single-blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    color: var(--brand-teal);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.single-blog-back-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.single-blog-back-link:hover svg {
    transform: translateX(-4px);
}

/* END: BACK TO BLOG LINK */

/* ==================================================
   END: ARTICLE TAGS & SOCIAL SHARING
================================================== */


/* ==================================================
   START: RELATED ARTICLES SECTION
================================================== */

.single-blog-related {
    padding: 45px 0 60px;
    background-color: var(--color-dark);
    border-top: 1px solid var(--color-border);
}

.single-blog-related .section-heading {
    margin-bottom: 30px;
}

.single-blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.single-blog-related-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.single-blog-related-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
}

.single-blog-related-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.single-blog-related-content > span {
    display: block;
    margin-bottom: 10px;
    color: var(--brand-teal);
    font-size: 0.75rem;
    font-weight: 600;
}

.single-blog-related-content h3 {
    margin: 0 0 16px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
}

.single-blog-related-content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--brand-teal);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.single-blog-coming-soon {
    margin: auto 0 0;
    color: var(--color-text-light);
    font-size: 0.75rem;
    font-weight: 500;
}

@media (hover: hover) {
    .single-blog-related-card:hover {
        transform: translateY(-4px);
        border-color: var(--brand-teal);
    }
}

/* ==================================================
   END: RELATED ARTICLES SECTION
================================================== */


/* ==================================================
   START: SINGLE BLOG FINAL CTA
================================================== */

.single-blog-cta {
    padding: 50px 0 70px;
}

.single-blog-cta-wrapper {
    position: relative;
    padding: 45px 32px;
    background: linear-gradient(135deg, #101828, #102B32 55%, #075E59);
    border: 1px solid rgba(8, 203, 182, 0.25);
    border-radius: var(--radius-xl);
    text-align: center;
    overflow: hidden;
}

.single-blog-cta-wrapper > svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 18px;
    color: var(--brand-teal);
    stroke-width: 1.6;
}

.single-blog-cta-wrapper h2 {
    margin: 15px 0 18px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.3;
}

.single-blog-cta-wrapper h2 .text-gradient {
    display: block;
}

.single-blog-cta-wrapper p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.single-blog-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.single-blog-cta-buttons .btn {
    min-height: 48px;
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
}

/* ==================================================
   END: SINGLE BLOG FINAL CTA
================================================== */


/* ==================================================
   START: KEYBOARD ACCESSIBILITY
================================================== */

.page-blog-single main a:focus-visible,
.page-blog-single main button:focus-visible {
    outline: 2px solid var(--brand-teal);
    outline-offset: 4px;
}

/* ==================================================
   END: KEYBOARD ACCESSIBILITY
================================================== */


/* ==================================================
   START: SINGLE BLOG RESPONSIVE DESIGN
================================================== */

/* LAPTOP */

@media (max-width: 1200px) {

    .single-blog-layout {
        gap: 32px;
    }

    .single-blog-toc {
        padding: 20px;
    }

    .single-blog-related-grid {
        gap: 20px;
    }
}


/* TABLET */

@media (max-width: 1024px) {

    .single-blog-layout {
        grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
        gap: 26px;
    }

    .single-blog-hero {
        padding-bottom: 40px;
    }

    .single-blog-body {
        padding-top: 36px;
    }

    .single-blog-content {
        font-size: 0.9375rem;
    }

    .single-blog-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* SMALL TABLET */

@media (max-width: 768px) {

    .single-blog-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .single-blog-sidebar {
        position: static;
        grid-row: 1;
    }

    .single-blog-sidebar-sticky {
        max-height: none;
        overflow: visible;
    }

    .single-blog-sidebar-cta {
        display: none;
    }

    .single-blog-featured-image {
        aspect-ratio: 16 / 9;
    }

    .single-blog-toc {
        padding: 20px;
    }
}


/* MOBILE */

@media (max-width: 576px) {

    .single-blog-hero {
        padding: 22px 0 32px;
    }

    .single-blog-breadcrumb {
        margin-bottom: 24px;
    }

    .single-blog-breadcrumb li {
        font-size: 0.6875rem;
    }

    .single-blog-hero-content h1 {
        font-size: clamp(1.75rem, 6.5vw, 2.25rem);
        line-height: 1.3;
    }

    .single-blog-excerpt {
        font-size: 0.875rem;
    }

    .single-blog-meta {
        gap: 12px 18px;
        margin-top: 18px;
    }

    .single-blog-meta span {
        font-size: 0.75rem;
    }

    .single-blog-cover {
        padding-top: 20px;
    }

    .single-blog-featured-image {
        border-radius: 12px;
    }

    .single-blog-body {
        padding: 28px 0 15px;
    }

    .single-blog-content {
        font-size: 0.9375rem;
        line-height: 1.85;
    }

    .single-blog-content h2 {
        font-size: 1.375rem;
    }

    .single-blog-content > section {
        margin-bottom: 26px;
    }

    .single-blog-highlight {
        gap: 12px;
        padding: 18px 14px;
    }

    .single-blog-highlight > svg {
        width: 23px;
        height: 23px;
    }

    .single-blog-checklist li {
        padding: 11px 12px;
        font-size: 0.875rem;
    }

    .single-blog-share {
        align-items: flex-start;
        flex-direction: column;
    }

    #blog-share-status {
        flex-basis: auto;
        width: 100%;
    }

    .single-blog-bottom {
        padding-bottom: 30px;
    }

    .single-blog-related {
        padding: 35px 0 40px;
    }

    .single-blog-related-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .single-blog-related-content {
        padding: 18px;
    }

    .single-blog-cta {
        padding: 30px 0 45px;
    }

    .single-blog-cta-wrapper {
        padding: 32px 18px;
        border-radius: 18px;
    }

    .single-blog-cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .single-blog-cta-buttons .btn {
        width: 100%;
        max-width: 320px;
        font-size: 0.875rem;
    }
}


/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .page-blog-single main *,
    .page-blog-single main *::before,
    .page-blog-single main *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .single-blog-related-card:hover,
    .single-blog-back-link:hover svg {
        transform: none;
    }
}

/* ==================================================
   END: SINGLE BLOG RESPONSIVE DESIGN
================================================== */


/* ==================================================
   END: SINGLE BLOG PAGE
================================================== */
