/* Blog Article Styles */

.article-main {
    width: 100%;
    background: linear-gradient(180deg, #FFF4F0 0%, #FFFBF7 40%, #FFFFFF 100%);
    padding: 8rem 0 5rem;
    position: relative;
}

@media (min-width: 640px) {
    .article-main {
        padding: 9rem 0 5rem;
    }
}


.article-main-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .article-main-inner {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .article-main-inner {
        padding: 0 5rem;
    }
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.breadcrumbs a {
    color: #2C254F;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #FD3A84;
}

.breadcrumbs span {
    color: #6b7280;
    font-weight: 400;
}

.breadcrumbs .breadcrumb-current {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    min-width: 0;
}

.breadcrumbs i {
    color: #6b7280;
    font-size: 0.875rem;
}

.article-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.article-title h1 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #2C254F;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .article-title h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .article-title h1 {
        font-size: 3rem;
    }
}

.article-title .handwriting {
    font-family: 'Caveat', cursive;
    font-size: 1.5em;
}

.article-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border: 2px solid #FD3A84;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #FD3A84;
}

.article-specs {
    margin-bottom: 2rem;
    padding: 1.25rem;
    border: 1px solid #f4e6de;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff9f6 0%, #ffffff 100%);
}

.article-specs-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.article-spec {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #f3e7df;
}

.article-spec-key {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2C254F;
}

.article-spec-value {
    font-size: 0.9375rem;
    color: #6b7280;
}

.article-hero-image {
    width: 100%;
    overflow: hidden;
    border-radius: 40px;
    margin-bottom: 3.5rem;
}

.article-hero-image img {
    width: 100%;
    height: auto;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    isolation: isolate;
}

.article-layout::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: -5rem;
    left: 50%;
    width: 100vw;
    pointer-events: none;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.28) 10rem,
        rgba(255, 255, 255, 0.58) 24rem,
        rgba(255, 255, 255, 0.86) 38rem,
        #fff 52rem,
        #fff 100%
    );
    z-index: -1;
}

@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: 300px 1fr;
    }
}

.article-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .article-sidebar {
        display: block;
        position: sticky;
        top: 9rem;
        align-self: start;
        max-height: calc(100vh - 10rem);
        overflow-y: auto;
        scrollbar-width: none;
    }

    .article-sidebar:hover,
    .article-sidebar:focus-within {
        scrollbar-width: thin;
    }

    .article-sidebar::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .article-sidebar:hover::-webkit-scrollbar,
    .article-sidebar:focus-within::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .article-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .article-sidebar::-webkit-scrollbar-thumb {
        background: rgba(44, 37, 79, 0.25);
        border-radius: 999px;
    }

    .article-sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(44, 37, 79, 0.4);
    }
}

.author-card {
    border: 1px solid #ffe5a5;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.author-card::before {
    content: '';
    position: absolute;
    left: -5rem;
    top: -2.5rem;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 229, 165, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.author-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    position: relative;
    z-index: 10;
}

.author-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 10;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2C254F;
}

.author-time {
    font-size: 0.875rem;
    color: #6b7280;
}

.reading-time-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.reading-time-value i {
    font-size: 1.25rem;
    color: #6b7280;
}

.reading-time-value span {
    font-size: 0.875rem;
    color: #6b7280;
}

.author-reading-time {
    flex: 0 0 auto;
}

.author-reading-time .reading-time-value {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

.author-reading-time .reading-time-value i {
    font-size: 1rem;
}

.author-reading-time .reading-time-value span {
    white-space: nowrap;
}

.table-of-contents {
    /* Sidebar is sticky, not individual TOC */
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #2C254F;
    transition: all 0.2s;
    text-decoration: none;
}

.toc-link:hover {
    color: #FD3A84;
}

.toc-link.sub {
    display: flex;
    align-items: center;
    padding-left: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.toc-link.sub i {
    font-size: 0.75rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.toc-link.active {
    background: #f3f4f6;
    color: #2C254F;
    font-weight: 700;
}

.toc-link.sub.active {
    background: #f9fafb;
    color: #2C254F;
    font-weight: 600;
}

.article-content {
    max-width: 750px;
}

.article-content h2 {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #2C254F;
    margin: 2.5rem 0 1.5rem;
    scroll-margin-top: 100px;
}

.article-content h3 {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #2C254F;
    margin: 2rem 0 1.5rem;
    scroll-margin-top: 100px;
}

.article-content a:not([class*="btn"]) {
    text-decoration: underline;
    color: #fe4285;
}
.article-content a:hover {
    text-decoration: none;
}
.article-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #2C254F;
    margin-bottom: 1.5rem;
}

.article-content ol,
.article-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.article-content ol li,
.article-content ul li {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #2C254F;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.75rem;
}

.article-content ol li {
    margin-left: 1.25rem;
    padding-left: 0;
    list-style: auto;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #FD3A84 0%, #FFA68D 100%);
    border-radius: 50%;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 2.5rem 0;
    display: block;
}

.article-content table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.article-content thead tr {
    background: linear-gradient(135deg, #FFF4F0 0%, #FFF0E8 100%);
}

.article-content th {
    padding: 1.25rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2C254F;
    text-align: left;
}

.article-content tbody tr {
    border-top: 1px solid #f3f4f6;
}

.article-content tbody tr:hover {
    background-color: #fafafa;
}

.article-content td {
    padding: 1.25rem 1rem;
    font-size: 0.9375rem;
    color: #6b7280;
}

.article-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95em;
    color: #2C254F;
    background: #f7f4fb;
    border: 1px solid #ece7f4;
    border-radius: 6px;
    padding: 0.12rem 0.35rem;
}

.article-content pre {
    max-width: calc(100vw - 2rem);
    margin: 2rem 0;
    padding: 1.125rem;
    overflow-x: auto;
    border-radius: 12px;
    background: #19142b;
    color: #f8f7ff;
    box-shadow: 0 16px 34px rgba(44, 37, 79, 0.16);
    -webkit-overflow-scrolling: touch;
}

.article-content pre code {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 0.9375rem;
    line-height: 1.65;
    white-space: pre;
}

.article-content .table-scroll {
    width: 100%;
    max-width: calc(100vw - 2rem);
    margin: 2.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.article-content .table-scroll table {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
}

.article-content blockquote {
    background: linear-gradient(90deg, rgba(253, 58, 132, 0.05) 0%, rgba(255, 166, 141, 0.05) 100%);
    border-left: 4px solid #FD3A84;
    border-radius: 0 16px 16px 0;
    padding: 1.5rem;
    margin: 2rem 0;
}

.article-content blockquote p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #2C254F;
    font-style: italic;
    margin-bottom: 1rem;
}

.article-content blockquote p:last-of-type {
    margin-bottom: 0;
}

.article-content blockquote cite {
    display: block;
    font-size: 1.125rem;
    color: #6b7280;
    font-weight: 600;
    font-style: normal;
    margin-top: 0.5rem;
}

.article-content details {
    border: 1px solid #f1e4dc;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(44, 37, 79, 0.06);
    margin: 0 0 0.875rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.article-content details:hover,
.article-content details[open] {
    border-color: #ffd3c2;
    box-shadow: 0 14px 34px rgba(44, 37, 79, 0.09);
}

.article-content details[open] {
    background: linear-gradient(180deg, #fffaf7 0%, #ffffff 100%);
}

.article-content summary {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    cursor: pointer;
    color: #2C254F;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
}

.article-content summary::-webkit-details-marker {
    display: none;
}

.article-content summary::before {
    content: '';
    width: 0.625rem;
    height: 0.625rem;
    margin-top: 0.45rem;
    flex: 0 0 auto;
    border-right: 2px solid #FD3A84;
    border-bottom: 2px solid #FD3A84;
    transform: rotate(-45deg);
    transition: transform 0.2s ease, margin-top 0.2s ease;
}

.article-content details[open] summary::before {
    margin-top: 0.3rem;
    transform: rotate(45deg);
}

.article-content summary strong {
    font-weight: inherit;
}

.article-content details p {
    padding: 0 1.125rem 1.125rem 2.625rem;
    margin: 0;
    color: #3b355f;
}

.article-content details > *:not(summary):not(p) {
    margin: 0 1.125rem 1.125rem 2.625rem;
}

.article-shortcode-demo,
.article-faq-demo {
    position: relative;
}

.article-feature-callout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-column: 1 / -1;
    max-width: 260px;
    color: #7D7C84;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    pointer-events: none;
    z-index: 5;
}

.article-feature-callout p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.article-feature-callout span {
    background: linear-gradient(345deg, #FD3A84 0%, #FFA68D 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.article-feature-callout img {
    border-radius: 0;
    margin: 15px 0 0;
    width: 120px;
}

.article-promo-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 2.75rem 0;
    padding: 10px;
    border: 3px dashed #ff998c;
    border-radius: 30px;
    background: #fffaf8e0;
    position: relative;
    overflow: visible;
}

.article-promo-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 1.5rem 1.25rem 0.25rem;
}

.article-content .article-promo-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 0.875rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(253, 58, 132, 0.1);
    color: #fd3a84;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
}

.article-content .article-promo-title {
    max-width: 430px;
    margin: 0 0 0.75rem;
    color: #2C254F;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.18;
}

.article-content .article-promo-text {
    max-width: 430px;
    margin: 0 0 1.25rem;
    color: #554f72;
    font-size: 1rem;
    line-height: 1.55;
}

.article-content .article-promo-button {
    box-shadow: 0 14px 32px rgba(253, 58, 132, 0.22);
}

.article-content .article-promo-button:hover {
    box-shadow: none;
}

.article-content .article-promo-media {
    display: block;
    align-self: end;
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
}

.article-content .article-promo-media:hover {
    text-decoration: none;
}

.article-content .article-promo-media img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
}

@media (min-width: 720px) {
    .article-promo-banner {
        grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
        align-items: stretch;
    }

    .article-promo-content {
        padding: 1.75rem 0.75rem 1.75rem 1.5rem;
    }
}

@media (min-width: 1180px) {
    .article-feature-callout {
        position: absolute;
        left: calc(100% + 2rem);
        grid-column: auto;
        width: 360px;
        max-width: none;
        font-size: 1.125rem;
        overflow: visible;
    }

    .article-feature-callout--shortcode {
        top: 1.25rem;
    }

    .article-feature-callout--faq {
        top: 0.75rem;
    }

    .article-feature-callout p {
        max-width: 320px;
    }

}

@media (max-width: 1179px) {
    .article-shortcode-demo {
        display: flex;
        flex-direction: column;
    }

    .article-shortcode-demo .article-promo-banner {
        order: 1;
    }

    .article-shortcode-demo .article-feature-callout {
        order: 2;
        margin: 0.875rem 0 0;
    }

    .article-faq-demo .article-feature-callout {
        margin: 0.875rem 0 0;
    }

}

@media (max-width: 520px) {
    .article-feature-callout {
        max-width: 100%;
        padding: 0 0.75rem;
        font-size: 1rem;
    }

    .article-feature-callout img {
        display: none;
    }

    .article-promo-banner {
        border-radius: 24px;
    }

    .article-promo-content {
        padding: 1.25rem 1rem 0.125rem;
    }

    .article-content .article-promo-title {
        font-size: 1.35rem;
    }
}

.suggested-reading {
    width: 100%;
    background: linear-gradient(135deg, #FFF4F0 0%, #FFFBF7 50%, #FFF0E8 100%);
    padding: 5rem 0 12rem;
    position: relative;
}


.suggested-reading-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .suggested-reading-inner {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .suggested-reading-inner {
        padding: 0 5rem;
    }
}

.suggested-reading h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #2C254F;
    text-align: center;
    margin-bottom: 3rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.article-card {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    text-decoration: none;
}

.article-card:hover {
    box-shadow: 0 0 20px rgb(255, 237, 228);
}

.article-card:hover .article-card-link {
    color: #FD3A84;
}

.article-card-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 40px 0 0 40px;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    flex: 1;
    padding: 1rem 1rem 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.article-card-badge {
    padding: 0.125rem 0.5rem;
    border: 1px solid #FD3A84;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #FD3A84;
}

.article-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #2C254F;
    margin-bottom: 0.75rem;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #2C254F;
    transition: color 0.2s;
}
